joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421118
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x421128
mov esi, 0x80070057
jmp 0x42113c
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42113c
mov esi, 0x80047e0b
mov eax, esi
pop esi
ret

Function at 0x421140
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4c3360]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x49dac1
call fcn.00454d31
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], esi
call fcn.00407632
xor eax, eax
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp]
push eax
push esi
push esi
push 0x8023
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
jl 0x4211ac
push 0x4b00dc
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040b474
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044fc8e
add ebp, 0x20c
leave
ret

Function at 0x421263
Capabilities:
Create process on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, 0x80004005
jne 0x421277
mov eax, 0x80070057
pop esi
ret
push 1
push 0
push 0
push dword [esp + 0x14]
push 0x4aeecc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x421295
xor esi, esi
mov eax, esi
pop esi
ret

Function at 0x42194b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x4219b8
cmp word [ebx], si
je 0x4219b8
push 0x44
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.004501b0
add esp, 0xc
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x48]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4219b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4219b0
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4219bd
mov eax, 0x80070057
pop esi
leave
ret 4
Function at 0x4237aa
Capabilities:
Delete file

Disassembly:
push 0x54
mov eax, 0x49fd87
call fcn.00454d67
mov ebx, ecx
mov eax, dword [ebx + 0x48]
push 0x4adb1c
push eax
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x2d], 1
call fcn.0041f44f
mov esi, eax
lea eax, [ebp - 0x3c]
mov edx, esi
call fcn.0041f7b5
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
mov edx, esi
mov dword [ebp - 0x44], ecx
call fcn.0041f78e
mov ecx, dword [eax]
mov eax, dword [eax + 4]
lea edi, [ebp - 0x44]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
call fcn.0041fe88
test al, al
jne 0x423916
lea esi, [ebp - 0x3c]
call fcn.0041fdaf
add eax, 8
push 0x4adb68
push eax
call fcn.0041f44f
lea esi, [ebp - 0x2c]
mov ecx, eax
call fcn.0041ee43
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x42383c
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040b362
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 1
call fcn.00421805
pop ecx
push 0
push 1
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00407ab4
test esi, esi
jge 0x4238bc
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x423871
lea ecx, [ebp - 0x28]
mov eax, dword [ebx + 0x48]
mov ebx, dword [ebx + 0x4c]
push ecx
push 1
push esi
push ebx
mov ebx, eax
call fcn.0041908a
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x2d], 0
jae 0x423893
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4238b9
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4238aa
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x34]
push 0
push esi
push dword [eax + 0x4c]
call fcn.00418e71
mov ebx, dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00407ab4
lea esi, [ebp - 0x3c]
call fcn.0041fdda
lea edi, [ebp - 0x44]
call fcn.0041fe88
test al, al
je 0x42380c
cmp byte [ebp - 0x2d], 0
jne 0x423916
push 0xffffffffffffffff
push ebx
call fcn.00423721
lea ecx, [ebp - 0x54]
call fcn.0045066b
push 0x4ba488
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x4b1354
mov dword [ebp - 0x48], 0x80047ec4
call fcn.004548cc
call fcn.00454dea
ret
Function at 0x425e19
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
xor ecx, ecx
push edi
cmp byte [esi], cl
je 0x425e2d
mov ecx, 0x10000000
mov eax, dword [esi + 0xc]
push ecx
push 0
push 0
push 1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x50], eax
test eax, eax
jne 0x425e92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4c6094]
cmp eax, 0x4c6094
je 0x425e7b
test byte [eax + 0x1c], 1
je 0x425e7b
cmp byte [eax + 0x19], 2
jb 0x425e7b
push esi
push 0x4adafc
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00425267
add esp, 0x14
test esi, esi
jle 0x425e8b
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x425fab
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 4], ecx
cmp ecx, 0xffffffff
je 0x425ed7
mov eax, dword [0x4c6094]
cmp eax, 0x4c6094
je 0x425ecb
test byte [eax + 0x1c], 1
je 0x425ecb
cmp byte [eax + 0x19], 4
jb 0x425ecb
push ecx
push 0x4adafc
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00425267
add esp, 0x14
mov eax, dword [ebp - 4]
imul eax, eax, 0x3e8
mov dword [ebp - 4], eax
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [ebp - 4]
push eax
push 3
push dword [esi + 0x50]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x425f27
push 4
lea eax, [ebp - 4]
push eax
push 5
push dword [esi + 0x50]
call edi
test eax, eax
je 0x425f27
push 4
lea eax, [ebp - 4]
push eax
push 6
push dword [esi + 0x50]
call edi
test eax, eax
je 0x425f27
push 4
lea eax, [ebp - 4]
push eax
push 2
push dword [esi + 0x50]
call edi
test eax, eax
jne 0x425f59
call ebx
mov ecx, dword [0x4c6094]
cmp ecx, 0x4c6094
je 0x425f59
test byte [ecx + 0x1c], 1
je 0x425f59
cmp byte [ecx + 0x19], 3
jb 0x425f59
push eax
push 0x4adafc
push 0x1f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00425267
add esp, 0x14
movzx ecx, word [esi + 0x28]
mov eax, dword [esi + 8]
push 0
push ecx
push eax
push dword [esi + 0x50]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 0x54], eax
test eax, eax
jne 0x425fa9
call ebx
mov esi, eax
mov eax, dword [0x4c6094]
cmp eax, 0x4c6094
je 0x425e7b
test byte [eax + 0x1c], 1
je 0x425e7b
cmp byte [eax + 0x19], 2
jb 0x425e7b
push esi
push 0x4adafc
push 0x20
jmp 0x425e6d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4282df
Capabilities:
Hash data using sha512

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4c3360]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x10
pop ecx
push eax
lea eax, [ebp - 0x150]
mov esi, 0x4c4f30
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x14c], 0
and dword [ebp - 0x150], 0
push eax
mov eax, dword [ebp + 0xc]
call fcn.0042833f
push ebx
lea eax, [ebp - 0x150]
call fcn.00428708
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
pop esi
call fcn.0044fc8e
leave
ret
Function at 0x42c627
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x24
mov eax, 0x49d2d6
call fcn.00454cfe
push dword [ebp + 0x14]
xor ebx, ebx
push ebx
push ebx
push 0x800e
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jne 0x42c66e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42c667
and eax, edi
or eax, esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x42c695
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x42c695
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x42c692
and eax, edi
or eax, esi
mov dword [ebp - 0x10], eax
push 4
pop eax
push ebx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
push dword [eax]
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call ebx
test eax, eax
jne 0x42c6c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42c73a
and eax, edi
or eax, esi
jmp 0x42c73a
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.00421abd
xor eax, eax
push eax
lea ecx, [ebp - 0x14]
push ecx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], eax
call fcn.00421b0c
push eax
mov eax, dword [ebp + 0x14]
push 2
push dword [eax]
call ebx
test eax, eax
jne 0x42c719
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42c703
and eax, edi
or eax, esi
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00421c94
push dword [ebp - 0x30]
call fcn.0044fc83
mov eax, esi
jmp 0x42c739
push 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.00421bc5
lea ecx, [ebp - 0x30]
call fcn.00421c94
push dword [ebp - 0x30]
call fcn.0044fc83
mov eax, dword [ebp - 0x10]
pop ecx
call fcn.00454dd6
ret

Function at 0x42c740
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 8
push 0x18
xor ebx, ebx
push ebx
mov edi, 0x4b136c
push edi
push dword [esp + 0x20]
call esi
cmp eax, ebx
jne 0x42c7a6
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xffff
mov ebp, 0x80070000
test eax, eax
jle 0x42c779
and eax, ebx
or eax, ebp
cmp eax, 0x8009000f
jne 0x42c795
push 0
push 0x18
push 0
push edi
push dword [esp + 0x24]
call esi
test eax, eax
je 0x42c795
xor ebx, ebx
jmp 0x42c7a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42c7a3
and eax, ebx
or eax, ebp
mov ebx, eax
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x42d488
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, 0xe0000000
push esi
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42d588
push esi
push 0x4b13b8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x42d57f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x28]
push eax
push esi
call edi
test eax, eax
je 0x42d575
cmp dword [ebp - 0x24], 4
jne 0x42d575
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42d55e
cmp dword [ebp - 0x24], 3
jne 0x42d55e
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
call esi
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jmp 0x42d550
cmp dword [ebp - 0x24], 3
jne 0x42d55d
cmp ebx, dword [ebp - 0x14]
jae 0x42d521
call esi
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jmp 0x42d52b
call esi
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
ja 0x42d55d
mov eax, dword [ebp - 0x10]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x42d547
mov ecx, 0x2710
cmp eax, ecx
jbe 0x42d549
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x42d50c
pop ebx
cmp dword [ebp - 0x24], 1
je 0x42d575
push 0x4b13b8
push 0x4b1448
call fcn.004086ad
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop esi
leave
ret
Function at 0x42ef59
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x49c6f6
call fcn.00454cfe
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x42ef82
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.0042ff30
xor al, al
jmp 0x42f0e0
call fcn.0042e9ae
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 0xc]
call fcn.0045283d
push dword [ebp + 0xc]
call fcn.0045fa15
push ebx
push ebx
push dword [ebp + 0xc]
mov esi, eax
call fcn.0045283d
add esp, 0x1c
cmp esi, ebx
jg 0x42efbb
push ebx
push ebx
push 0xd
jmp 0x42ef73
mov ebx, 0x4c8870
mov dword [ebp - 0x10], ebx
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00430bce
lea eax, [esi + 1]
push eax
call fcn.00435e81
push dword [ebp + 0xc]
mov edi, eax
push 1
push esi
push edi
mov dword [ebp - 0x14], edi
mov byte [edi], 0
call fcn.004987e7
add esp, 0x14
cmp eax, 1
je 0x42f026
push edi
call fcn.0044fdab
mov edi, dword [ebp + 8]
pop ecx
push 0
push 0
push 2
xor ecx, ecx
pop eax
call fcn.0042ff30
cmp dword [ebp - 0x10], ebx
je 0x42ef7b
push dword [ebp - 0x10]
call fcn.0044fdab
pop ecx
jmp 0x42ef7b
mov ebx, edi
mov eax, ebx
mov byte [eax + esi], 0
cmp byte [eax], 0
je 0x42f08b
mov al, byte [ebx]
cmp al, 0xa
jne 0x42f04b
mov eax, ebx
sub eax, edi
inc eax
push eax
push edi
lea edi, [ebp - 0x10]
call fcn.00430cbe
inc ebx
jmp 0x42f081
cmp al, 0xd
jne 0x42f085
mov eax, ebx
sub eax, edi
test eax, eax
jle 0x42f061
push eax
push edi
lea edi, [ebp - 0x10]
call fcn.00430cbe
push 1
lea eax, [ebp + 0xc]
push eax
lea edi, [ebp - 0x10]
mov byte [ebp + 0xc], 0xa
call fcn.00430cbe
lea eax, [ebx + 1]
cmp byte [eax], 0xa
jne 0x42f07f
inc ebx
inc ebx
jmp 0x42f081
mov ebx, eax
mov edi, ebx
jmp 0x42f086
inc ebx
cmp byte [ebx], 0
jne 0x42f033
sub ebx, edi
je 0x42f099
push ebx
push edi
lea edi, [ebp - 0x10]
call fcn.00430cbe
push dword [ebp - 0x14]
call fcn.0044fdab
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
pop ecx
push 1
push 0
lea ecx, [edi + 8]
push ecx
mov ecx, esi
call dword [eax + 8]
cmp byte [esi + 0x2c], 0
je 0x42f0cf
cmp edi, 0x4c8870
je 0x42ef7b
push edi
jmp 0x42f01b
cmp edi, 0x4c8870
je 0x42f0de
push edi
call fcn.0044fdab
pop ecx
mov al, 1
call fcn.00454dd6
ret 8
Function at 0x4324ad
Capabilities:
Check mutex on windows

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x4324fa
push 0x4b2dc4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4324d2
call fcn.0043506f
mov ebx, eax
jmp 0x4324fa
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4324fa
cmp eax, 0x80
je 0x4324fa
call fcn.0043506f
push dword [esi + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 8], 0
mov eax, ebx
pop ebx
ret

Function at 0x432b3a
Capabilities:
Get common file path

Disassembly:
push ecx
and dword [ebx], 0
push esi
push edi
push 0x4c78f8
push 0x276
call fcn.00457cf1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x432b5e
mov eax, 0x8007000e
jmp 0x432bbf
push esi
push 1
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, 0x80004005
jne 0x432b7c
mov edi, 0x80047bfe
test edi, edi
jge 0x432b8a
push esi
call fcn.0044fdab
mov eax, edi
jmp 0x432bbe
xor eax, eax
push 0x4b2e50
push esi
mov word [esi + 0x208], ax
call fcn.004982c7
push esi
call fcn.0043bdbc
add esp, 0xc
mov ecx, esi
call fcn.00432ff5
push 0x4b2eb0
push esi
call fcn.004982c7
pop ecx
mov dword [ebx], esi
xor eax, eax
pop ecx
pop edi
pop esi
pop ecx
ret
Function at 0x4333ec
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x1c
and dword [eax], 0
push ebx
push esi
push edi
mov esi, 0x2880
mov edi, 0x4c78f8
jmp 0x43345e
push esi
push 0
push dword [esp + 0x14]
call fcn.004501b0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x10]
mov dword [esp + 0x24], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebx, eax
test ebx, ebx
je 0x433479
push dword [esp + 0xc]
call fcn.0044fdab
pop ecx
cmp ebx, 0x6f
jne 0x433588
mov eax, dword [esp + 0x1c]
cmp esi, eax
jae 0x43358c
lea esi, [eax + 0x288]
cmp esi, eax
jb 0x433581
push edi
push esi
call fcn.00457cf1
pop ecx
mov dword [esp + 0x10], eax
pop ecx
test eax, eax
jne 0x43340a
mov eax, 0x8007000e
jmp 0x4335a3
xor edx, edx
mov ecx, 0x288
mov eax, esi
div ecx
push edi
xor ecx, ecx
push 2
pop edx
mov dword [esp + 0x18], 0x8007000e
mov ebx, eax
inc ebx
mov eax, ebx
imul eax, eax, 0x11
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00457cf1
pop ecx
pop ecx
mov dword [esp + 0x18], eax
test eax, eax
je 0x433548
mov ecx, dword [esp + 0xc]
and dword [esp + 0x14], 0
lea edx, [ecx + esi - 0x288]
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], eax
mov esi, ecx
test ebx, ebx
je 0x43353a
mov eax, dword [esi + 0x190]
mov dword [esp + 0x20], eax
test eax, eax
je 0x433577
cmp eax, 8
ja 0x433577
xor edi, edi
test eax, eax
jbe 0x433516
movzx eax, byte [esi + edi + 0x194]
cdq
push edx
push eax
push 2
pop ecx
lea edx, [esp + 0x18]
call fcn.0043508d
inc edi
pop ecx
pop ecx
cmp edi, dword [esp + 0x20]
jb 0x4334f6
mov esi, dword [esi]
test esi, esi
je 0x433562
cmp esi, dword [esp + 0xc]
jb 0x43356d
cmp esi, dword [esp + 0x24]
ja 0x43356d
mov ecx, dword [esp + 0x10]
add dword [esp + 0x10], 2
dec ebx
push 0x7c
pop eax
mov word [ecx], ax
jne 0x4334d5
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
and dword [esp + 0x18], 0
mov dword [eax], ecx
push dword [esp + 0x18]
call fcn.0044fdab
pop ecx
push dword [esp + 0xc]
call fcn.0044fdab
mov eax, dword [esp + 0x18]
pop ecx
jmp 0x4335a3
mov ecx, dword [esp + 0x10]
xor eax, eax
mov word [ecx], ax
jmp 0x43353a
mov dword [esp + 0x14], 0x80047bc4
jmp 0x433548
mov dword [esp + 0x14], 0x80047bc3
jmp 0x433548
mov eax, 0x80047bc2
jmp 0x4335a3
test ebx, ebx
jle 0x43359a
and ebx, 0xffff
or ebx, 0x80070000
test ebx, ebx
jl 0x4335a1
mov ebx, 0x80047830
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4337c1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov ebx, eax
cmp dword [ebp + 8], esi
jne 0x4337fc
lea ecx, [ebp - 0xc]
call fcn.00476b94
push 1
push 2
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0xc]
call fcn.00476ce2
lea ecx, [ebp - 0xc]
call fcn.00476ad6
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4337f3
push dword [ebp + 8]
call fcn.0044fc9d
lea edi, [eax + eax + 2]
cmp edi, esi
pop ecx
jg 0x433814
mov eax, 0x80047bc8
jmp 0x433874
cmp ebx, esi
je 0x433858
cmp word [ebx], si
je 0x433858
lea eax, [ebp - 8]
push eax
push ebx
call fcn.004335d1
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
jl 0x433854
push edi
push dword [ebp + 8]
push 1
push esi
push 0x4ad660
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.004335aa
push dword [ebp - 8]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x433874
push edi
push dword [ebp + 8]
push 1
push esi
push 0x4ad660
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.004335aa
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433879
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
and dword [eax], 0
push ebx
push esi
push edi
push 0x40
pop esi
lea eax, [esi + 0x40]
mov ebx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
mov edi, 0x4c78f8
mov eax, esi
jmp 0x433994
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call fcn.004335aa
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, 0x800700ea
cmp dword [ebp - 4], eax
jne 0x4338e0
cmp ecx, ebx
ja 0x433929
mov dword [ebp - 4], 0x80047bc9
cmp dword [ebp - 4], 0
jl 0x433924
cmp ecx, ebx
jbe 0x4338ed
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x433924
cmp dword [ebp - 0xc], 1
je 0x43390c
cmp dword [ebp - 0xc], 2
je 0x43390c
cmp dword [ebp - 0xc], 7
je 0x43390c
mov dword [ebp - 4], 0x80047bca
cmp dword [ebp - 4], 0
jl 0x433924
test cl, 1
je 0x43391e
mov dword [ebp - 4], 0x80047bcb
cmp dword [ebp - 4], 0
jge 0x433929
cmp dword [ebp - 4], eax
jne 0x433943
shr ecx, 1
lea ebx, [ecx + 2]
mov dword [ebp - 8], ecx
cmp ebx, ecx
jb 0x43393c
lea eax, [ebx + ebx]
cmp eax, ebx
jae 0x433943
mov dword [ebp - 4], 0x80047bcc
cmp dword [ebp - 4], 0
jl 0x433979
cmp ebx, dword [ebp - 0x10]
jbe 0x4339d8
push edi
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00457cf1
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4339bc
mov dword [ebp - 4], 0x8007000e
push esi
call fcn.0044fdab
mov eax, dword [ebp - 4]
pop ecx
cmp eax, 0x800700ea
jne 0x4339f5
mov eax, ebx
add ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
push edi
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00457cf1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4338a2
mov eax, 0x8007000e
jmp 0x4339f5
mov ecx, dword [ebp - 8]
add ecx, ecx
push ecx
push esi
push eax
call fcn.00450c90
push esi
call fcn.0044fdab
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add esp, 0x10
xor eax, eax
mov word [esi + ecx*2], ax
mov ecx, dword [ebp - 8]
mov word [esi + ecx*2 + 2], ax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret