joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040b5
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x408480
call fcn.0040741f
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsUser_AgentPost_Platform
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40411a
push str.TencentTraveler_4.0
lea ecx, [ebp - 0x14]
call fcn.00401ce9
and dword [ebp - 4], 0
push 0xa
push str.IEAK
push 1
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403496
call fcn.004074f7
ret
Function at 0x40534c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x40e1ec]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x18
mov eax, 0x40870f
call fcn.0040741f
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x40c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x414]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jne 0x4053ac
push 0x409454
mov ecx, edi
call fcn.00401ce9
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
jmp 0x4053f9
push 0x3fe
lea eax, [ebp + 2]
push ebx
push eax
mov word [ebp], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x14]
xor esi, esi
push dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], 0x1ff
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00401ce9
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00407410
add ebp, 0x404
leave
ret
Function at 0x406fa2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40e1ec]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00406ee1
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x406ff1
cmp dword [ebp - 0x1c], 5
jb 0x407009
jmp 0x407005
cmp dword [ebp - 0x10], 1
jne 0x407009
cmp dword [ebp - 0x1c], 4
ja 0x407005
jne 0x407009
cmp dword [ebp - 0x18], 0
jbe 0x407009
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40ac60
call fcn.00402642
test eax, eax
jge 0x40702a
mov byte [0x40e210], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00407410
add ebp, 0x78
leave
ret

Function at 0x407410
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e1ec]
jne 0x40741a
repz ret
jmp fcn.00407ad0
Function at 0x402948
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402985
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029a5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404a40
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047d0
test esi, esi
jne 0x402baa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048c0
jmp 0x402bc8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a88
mov edi, eax
test esi, esi
je 0x402bc8
cmp dword [ebx], 0
je 0x402bc8
dec esi
jmp 0x402bb1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031dc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4c1008], 0x8088405
inc edx
mov dword [ebx + 0x4c1008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c1024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403828
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403808
xor eax, eax
push ebp
push 0x403801
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403844
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403808
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4c1024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c1024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4067c4
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 0x40682a
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.00404a40
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031f8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406814
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406831
lea eax, [ebp - 0x10]
call fcn.004047d0
ret

Function at 0x40e6fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40e735
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048c0
jmp 0x40e73e
mov eax, ebx
mov edx, esi
call fcn.00404824
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e748
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40e769
mov al, byte [esp]
jmp 0x40e76b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f72c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f802
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404868
lea eax, [ebp - 8]
call fcn.00404cfc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cac
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f7ec
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f7e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cac
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f7cf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f814
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f7cf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f7ec
mov eax, dword [ebp - 0x10]
call fcn.0040273c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f809
lea eax, [ebp - 8]
call fcn.004047d0
ret
Function at 0x40fe08
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40fe6c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404a40
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040aec0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fe73
lea eax, [ebp - 0xc]
call fcn.004047d0
ret

Function at 0x41e7e8
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41e835
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041e5d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41e84d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41f9b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c98e0
cmp dword [edi], 0
jne 0x41fa34
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c98dc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c14a4
mov ecx, 2
call fcn.00402a48
mov edx, 0x41f990
lea eax, [esi + 5]
call fcn.0041f9b0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f9b0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fa09
mov dword [0x4c98dc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x422b7c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.004047d0
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00404cac
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x422bc1
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.004048c0
jmp 0x422bda
mov edx, ebx
dec edx
mov eax, esi
call fcn.00404e38
push ebx
mov eax, dword [esi]
call fcn.00404cac
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x422e14
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
mov eax, pe_nt_image_headers32
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404a40
add esp, 0x100
pop ebx
ret

Function at 0x422ec8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404c9c
xor eax, eax
push ebp
push 0x422fc4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.00404824
lea edx, [ebp - 0x80c]
mov eax, dword [ebp - 4]
call fcn.0040b4a0
cmp dword [ebp - 0x80c], 0
jne 0x422f4c
lea eax, [ebp - 0x810]
call fcn.00422ea8
push dword [ebp - 0x810]
push 0x422fdc
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b6c
lea eax, [ebp - 4]
xor ecx, ecx
xor edx, edx
call fcn.00423c70
test al, al
je 0x422f9e
mov eax, dword [ebp - 4]
call fcn.00404cac
push eax
push 0x800
lea eax, [ebp - 0x808]
push eax
mov eax, ebx
call fcn.00404cac
push eax
mov eax, dword [ebp - 8]
call fcn.00404cac
push eax
mov eax, edi
call fcn.00404cac
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x808]
mov eax, esi
call fcn.004048c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422fcb
lea eax, [ebp - 0x810]
mov edx, 2
call fcn.004047f4
lea eax, [ebp - 4]
call fcn.004047d0
ret
Function at 0x42371c
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.00404c9c
mov eax, dword [ebp - 8]
call fcn.00404c9c
xor eax, eax
push ebp
push 0x423820
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004047d0
cmp dword [ebp - 4], 0
je 0x423774
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x423774
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404d4c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404cac
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x423805
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404cac
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4237f5
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00404e38
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00404cac
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.00404aac
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00404d0c
jmp 0x4237fc
mov eax, ebx
call fcn.004047d0
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 0x423827
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047f4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404cac
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x423ab1
test al, 0x10
jne 0x423ab5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x42447c
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.00404c9c
xor eax, eax
push ebp
push 0x424566
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404aac
dec eax
jle 0x4244e5
mov edx, dword [ebp - 4]
mov eax, 0x42457c
call fcn.00404df0
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404aac
dec eax
cmp ebx, eax
jne 0x4244e5
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00404aac
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404d0c
mov eax, dword [ebp - 4]
call fcn.00404aac
mov ebx, eax
test ebx, ebx
jle 0x42451c
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.00404d04
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 0x4244fa
mov eax, dword [ebp - 4]
call fcn.00404aac
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 0x424550
lea eax, [ebp - 4]
call fcn.00404d04
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 0x42456d
lea eax, [ebp - 4]
call fcn.004047d0
ret

Function at 0x424b0c
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.00404e38
cmp dword [ebp - 4], 0
jle 0x424b49
mov eax, ebx
call fcn.00404d04
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.00404aac
mov esi, eax
test esi, esi
jle 0x424b7d
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.00404d04
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 0x424b5d
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x426458
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.00404a40
mov eax, dword [esi]
call fcn.00404aac
mov ebx, eax
test ebx, ebx
jbe 0x4264ca
mov dword [edi], 1
mov eax, dword [esi]
mov edx, dword [edi]
mov al, byte [eax + edx - 1]
and eax, 0xff
bt dword [0x4c1dfc], eax
jae 0x4264c5
mov eax, esi
call fcn.00404d04
mov edx, dword [edi]
mov byte [eax + edx - 1], 0x5f
inc dword [edi]
dec ebx
jne 0x4264a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428f0c
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x428f4b
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x428f4b
cmp dword [eax + 0x3c], 0
je 0x428f4b
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x428f49
cmp dword [esi], 0x4550
je 0x428f4b
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x42b24c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov esi, ecx
mov ebx, edx
shl ebx, 2
add ebx, eax
mov eax, ebx
call fcn.00405c44
test eax, eax
je 0x42b28c
push esp
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], esi
push esp
mov eax, dword [esp + 4]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
push 4
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
pop edx
pop esi
pop ebx
ret

Function at 0x42b448
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.00402a48
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 0x42ba50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], edx
mov dword [esp], eax
lea ebp, [esp + 0x10]
mov eax, dword [0x4c9908]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42ba93
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4c9908]
call fcn.00417da4
mov ebx, eax
mov eax, dword [esp]
cmp eax, dword [ebx]
jne 0x42ba8f
mov eax, dword [ebx + 4]
jmp 0x42bb59
inc edi
dec esi
jne 0x42ba72
mov edi, dword [esp]
mov ebx, edi
xor esi, esi
mov edx, ebp
mov eax, ebx
call fcn.0042b640
test al, al
jne 0x42baab
mov byte [ebp], 1
xor eax, eax
mov al, byte [ebp]
add esi, eax
xor eax, eax
mov al, byte [ebp]
add ebx, eax
cmp esi, 5
jb 0x42ba9a
mov edx, esi
mov eax, edi
call fcn.0042b830
add eax, 5
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
call fcn.0040271c
mov ebp, eax
mov eax, 0x14
call fcn.0040271c
mov ebx, eax
mov eax, dword [esp]
mov dword [ebx], eax
mov dword [ebx + 4], ebp
mov eax, dword [esp + 8]
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], esi
mov eax, esi
call fcn.0040271c
mov dword [ebx + 0xc], eax
mov edx, dword [ebx + 0xc]
mov eax, edi
mov ecx, esi
call fcn.00402a48
mov edx, ebx
mov eax, dword [0x4c9908]
call fcn.00417c48
lea eax, [esp + 0xc]
push eax
push 0x40
mov eax, dword [esp + 0x10]
push eax
push ebp
call sub.kernel32.dll_VirtualProtect
mov edx, ebp
mov eax, edi
mov ecx, esi
call fcn.00402a48
mov ecx, esi
mov edx, edi
mov eax, ebp
call fcn.0042b8cc
lea edx, [esi + edi]
lea eax, [esi + ebp]
call fcn.0042b488
mov edx, dword [esp + 4]
mov eax, edi
call fcn.0042b488
mov eax, ebp
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42bdc0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
mov edx, 0x40
mov eax, ebx
call fcn.00423130
test al, al
je 0x42be04
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x42be04
cmp dword [eax + 0x3c], 0
je 0x42be04
mov esi, dword [eax + 0x3c]
add esi, ebx
mov edx, 0xf8
mov eax, esi
call fcn.00423130
test al, al
je 0x42be02
cmp dword [esi], 0x4550
je 0x42be04
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x42c414
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 0x42c4a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x42c4b4]
mov dword [ebp - 7], eax
mov ax, word [0x42c4b8]
mov word [ebp - 3], ax
mov al, byte [0x42c4ba]
mov byte [ebp - 1], al
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.00404a40
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040aec0
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 0x42c4ad
lea eax, [ebp - 0x2c]
call fcn.004047d0
ret
Function at 0x42c640
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
mov al, 1
cmp byte [0x4c2008], 0
jne 0x42c668
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
mov byte [0x4c2008], 1
add esp, 0x190
ret

Function at 0x42c684
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404cac
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004031bc
test ebx, ebx
je 0x42c6cf
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret