joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406650
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406880
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066d3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406880
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066d3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40689c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40675c
xor eax, eax
push ebp
push 0x406755
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406498
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40673a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4068bc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40673a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40675c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406876
cmp byte [ebp - 0xd], 0
jne 0x4067a3
cmp byte [ebp - 0x12], 0
je 0x406876
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4067bc
dec ebx
cmp byte [ebx], 0x2e
je 0x4067cb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4067bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406876
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406808
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406876
cmp byte [ebp - 0xd], 0
je 0x406876
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406876
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406fec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x407052
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404e1c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004034f8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40703c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407059
lea eax, [ebp - 0x10]
call fcn.00404bac
ret

Function at 0x40a38c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x40a3bd
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40a4dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405088
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40a502
test byte [ebp - 0xc], 0x10
jne 0x40a506
xor eax, eax
jmp 0x40a508
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x40a780
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405088
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40af58
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405088
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40af80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405088
push eax
call sub.kernel32.dll_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x40e688
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40e6d0
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.00404c9c
jmp 0x40e6db
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00404c00
mov esp, ebp
pop ebp
ret 4

Function at 0x40e6e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40e712
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40e718
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x40fb50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40fc2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404c44
lea eax, [ebp - 0xc]
call fcn.004050d8
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405088
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40fc18
mov eax, dword [ebp - 0x10]
call fcn.00402910
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40fc11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405088
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40fbfb
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40fc3c
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40fbfb
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fc18
mov eax, dword [ebp - 0x18]
call fcn.00402930
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fc35
lea eax, [ebp - 0xc]
call fcn.00404bac
ret
Function at 0x410534
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41059e
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404e1c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409fe0
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4105a5
lea eax, [ebp - 0x14]
call fcn.00404bac
ret

Function at 0x425db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x425de6
push ebp
call fcn.00425d40
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x425e0c
push ebp
call fcn.00425d40
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.004256b4
mov esp, ebp
pop ebp
ret 4
Function at 0x42dc20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x512890], 0
jne 0x42dccd
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [0x51288c]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x50d6e0
mov ecx, 2
call fcn.00402bf8
mov edx, 0x42dbdc
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0042dbfc
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.0042dbfc
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x512890]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x512890], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x42dc87
mov eax, dword [ebp - 8]
mov dword [0x51288c], eax
mov eax, dword [0x512890]
mov dword [ebp - 4], eax
mov eax, dword [0x512890]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x512890], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x42fc3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00405078
mov eax, dword [ebp - 8]
call fcn.00405078
xor eax, eax
push ebp
push 0x42fd40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404bac
cmp dword [ebp - 4], 0
je 0x42fc94
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x42fc94
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405128
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00405088
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42fd25
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405088
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42fd15
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00405214
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00405088
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
push ebx
mov eax, dword [ebx]
call fcn.00404e88
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.004050e8
jmp 0x42fd1c
mov eax, ebx
call fcn.00404bac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fd47
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404bd0
ret
Function at 0x42ff4c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
push esi
mov esi, 0x42ffa4
lea edi, [ebp - 0x400]
mov ecx, pe_nt_image_headers32
rep movsd dword es:[edi], dword [esi]
pop esi
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, ebx
call fcn.00405088
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, esi
lea edx, [ebp - 0x400]
mov ecx, 0x400
call fcn.00404e1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4303e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405088
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x430401
test al, 0x10
jne 0x430405
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x430998
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405078
xor eax, eax
push ebp
push 0x430a82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404e88
dec eax
jle 0x430a01
mov edx, dword [ebp - 4]
mov eax, 0x430a98
call fcn.004051cc
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404e88
dec eax
cmp ebx, eax
jne 0x430a01
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e88
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004050e8
mov eax, dword [ebp - 4]
call fcn.00404e88
mov ebx, eax
test ebx, ebx
jle 0x430a38
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.004050e0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 8]
dec ebx
jne 0x430a16
mov eax, dword [ebp - 4]
call fcn.00404e88
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 8], 0
jle 0x430a6c
lea eax, [ebp - 4]
call fcn.004050e0
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430a89
lea eax, [ebp - 4]
call fcn.00404bac
ret

Function at 0x430f64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00405214
cmp dword [ebp - 4], 0
jle 0x430fa1
mov eax, ebx
call fcn.004050e0
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx]
call fcn.00404e88
mov esi, eax
test esi, esi
jle 0x430fd5
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.004050e0
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov edi, dword [ebp - 4]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 4]
dec esi
jne 0x430fb5
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43214c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 4]
mov dword [edi], 0x10
push edi
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, esi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404e1c
mov eax, dword [esi]
call fcn.00404e88
mov ebx, eax
test ebx, ebx
jbe 0x4321be
mov dword [edi], 1
mov eax, dword [esi]
mov edx, dword [edi]
mov al, byte [eax + edx - 1]
and eax, 0xff
bt dword [0x50dac4], eax
jae 0x4321b9
mov eax, esi
call fcn.004050e0
mov edx, dword [edi]
mov byte [eax + edx - 1], 0x5f
inc dword [edi]
dec ebx
jne 0x432195
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432928
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, ecx
shl edx, 2
add edx, eax
mov dword [esp], edx
mov eax, dword [esp]
call fcn.004063e4
test eax, eax
je 0x432982
lea eax, [esp + 4]
push eax
push 0x40
push 4
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esp]
mov dword [eax], ebx
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 4
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
push 4
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop ecx
pop edx
pop ebx
ret

Function at 0x432b7c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
push esp
push 0x40
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.00402bf8
push esp
mov eax, dword [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_VirtualProtect
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x433170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp], edx
mov ebp, eax
lea edi, [esp + 0x14]
mov eax, dword [0x5128b4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4331bc
inc ebx
xor esi, esi
mov edx, esi
mov eax, dword [0x5128b4]
call fcn.00421a50
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax]
jne 0x4331b8
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
jmp 0x4332a2
inc esi
dec ebx
jne 0x433190
mov dword [esp + 8], ebp
mov eax, dword [esp + 8]
mov dword [esp + 0xc], eax
xor ebx, ebx
mov edx, edi
mov eax, dword [esp + 0xc]
call fcn.00432d74
test al, al
jne 0x4331dc
mov byte [edi], 1
xor eax, eax
mov al, byte [edi]
add ebx, eax
xor eax, eax
mov al, byte [edi]
add dword [esp + 0xc], eax
cmp ebx, 5
jb 0x4331ca
mov edx, ebx
mov eax, dword [esp + 8]
call fcn.00432ec8
mov edi, eax
add edi, 5
mov eax, edi
call fcn.00402910
mov esi, eax
mov eax, 0x14
call fcn.00402910
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [eax], ebp
mov eax, dword [esp + 0x18]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x18]
mov dword [eax + 8], edi
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], ebx
mov eax, ebx
call fcn.00402910
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], ebp
mov edx, ebp
mov eax, dword [esp + 8]
mov ecx, ebx
call fcn.00402bf8
mov edx, dword [esp + 0x18]
mov eax, dword [0x5128b4]
call fcn.004217bc
lea eax, [esp + 0x10]
push eax
push 0x40
push edi
push esi
call sub.kernel32.dll_VirtualProtect
mov edx, esi
mov eax, dword [esp + 8]
mov ecx, ebx
call fcn.00402bf8
mov ecx, ebx
mov edx, dword [esp + 8]
mov eax, esi
call fcn.00432f94
mov edx, dword [esp + 8]
add edx, ebx
lea eax, [ebx + esi]
call fcn.00432bbc
mov edx, dword [esp]
mov eax, dword [esp + 8]
call fcn.00432bbc
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433534
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, 0x40
mov eax, ebx
call fcn.0042f630
test al, al
je 0x433588
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x433588
cmp dword [eax + 0x3c], 0
je 0x433588
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [ebp - 4], eax
mov edx, 0xf8
mov eax, dword [ebp - 4]
call fcn.0042f630
test al, al
je 0x433583
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x433588
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ebp
ret
Function at 0x433bd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x433c45
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 7]
push eax
push 0x1004
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x2c]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404e1c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409fe0
push 2
lea edx, [ebp - 0x27]
push edx
push eax
call sub.gdi32.dll_TranslateCharsetInfo
mov ebx, dword [ebp - 0x27]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433c4c
lea eax, [ebp - 0x2c]
call fcn.00404bac
ret

Function at 0x433dd8
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
add esp, 0x190
ret

Function at 0x433e04
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, edx
mov eax, ebx
call fcn.00405088
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp + 4], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call fcn.004034bc
cmp dword [esp + 4], 0
je 0x433e56
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 8], cl
mov cl, byte [edx + 1]
mov byte [esp + 9], cl
mov cl, byte [edx + 2]
mov byte [esp + 0xa], cl
mov al, byte [edx + 3]
mov byte [esp + 0xb], al
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret