joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41af90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44d559
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x46997c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0x80000002
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.00419670
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 1
call fcn.0042a966
mov eax, dword [esp + 0x44]
sub eax, 1
mov esi, dword [esp + 0x48]
mov byte [esp + 0x38], 2
je 0x41b0c4
sub eax, 1
je 0x41b09e
sub eax, 1
jne 0x41b04f
push str.SOFTWARETencentQQGameSYS
lea ecx, [esp + 0x14]
call fcn.00419610
test eax, eax
je 0x41b04f
push esi
push str.HallDirectory
lea ecx, [esp + 0x18]
call fcn.004196c0
push str.QQGame.exe
mov ecx, esi
call fcn.004020d0
lea ecx, [esp + 0x10]
call fcn.00419650
mov eax, dword [esi]
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.0042a9f2
test eax, eax
jne 0x41b04f
mov ecx, esi
call fcn.00401360
mov esi, dword [esi]
sub esi, 0x10
push esi
call fcn.00401410
mov esi, dword [esp + 0x44]
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 1
mov byte [esp + 0x38], 1
call fcn.0042a98a
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.00419690
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
push str.Software_tencentPLATFORM_TYPE_LIST2
lea ecx, [esp + 0x14]
call fcn.00419610
test eax, eax
je 0x41b04f
push esi
push str.TypePath
lea ecx, [esp + 0x18]
call fcn.004196c0
jmp 0x41b02d
push str.Software_tencentQQ
lea ecx, [esp + 0x14]
call fcn.00419610
test eax, eax
je 0x41b04f
push esi
push str.Install
lea ecx, [esp + 0x18]
call fcn.004196c0
lea ecx, [esp + 0x10]
call fcn.00419650
push str.coralqq.exe
lea eax, [esp + 0x48]
push esi
push eax
call fcn.00412240
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 3
call fcn.0042a9f2
mov edi, eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b13f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x41b154
push str.coralqq.exe
mov ecx, esi
call fcn.004020d0
jmp 0x41b04f
push str.QQ.exe
lea ecx, [esp + 0x4c]
push esi
push ecx
call fcn.00412240
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 4
call fcn.0042a9f2
lea ecx, [esp + 0x48]
mov edi, eax
mov byte [esp + 0x38], 2
call fcn.004014b0
test edi, edi
je 0x41b048
push str.QQ.exe
mov ecx, esi
call fcn.004020d0
jmp 0x41b04f
Function at 0x421356
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42138f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041ca70
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004012e0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x422eaa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x422eed
call fcn.00423df4
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x422eed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x422f08
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00422a61
test ebx, ebx
mov esi, eax
je 0x422f06
test edi, edi
je 0x422f06
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x425f90
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x425fb9
call fcn.00423df4
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x425fdc
push eax
push dword [esi + 4]
call fcn.00425f1b
push esi
push eax
mov ecx, 0x46d330
call fcn.00425bf5
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x426f32
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x426f3b
xor eax, eax
jmp 0x426fa4
cmp dword [esp + 8], 0
jne 0x426f47
call fcn.0041c906
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0043525a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x426f82
push dword [esi + 0x10]
call fcn.00434f9f
test eax, eax
pop ecx
jne 0x426f82
mov esi, dword [esi + 0xc]
call fcn.00432a51
push esi
push dword [eax]
push 1
call fcn.0042ce3e
push dword [esi + 0x10]
call fcn.00434fce
test eax, eax
pop ecx
je 0x426fa1
push dword [esi + 0x10]
call fcn.00434ef3
push eax
call fcn.00408a80
pop ecx
pop ecx
jmp 0x426f70
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x426fad
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x426fb7
call fcn.0041c906
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00430186
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x426fe4
mov esi, dword [esi + 0xc]
call fcn.00432a51
push esi
push dword [eax]
push 1
call fcn.0042ce3e
pop esi
ret 8
Function at 0x42e1fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46997c]
jne 0x42e208
repz ret
jmp fcn.00436394

Function at 0x44343f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00438a42
xor ebx, ebx
cmp dword [0x46e0fc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x443514
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x44347f
xor eax, eax
jmp 0x4435d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x458f78
push edi
call esi
cmp eax, ebx
je 0x443478
push eax
call fcn.004389df
mov dword [esp], 0x458f68
push edi
mov dword [0x46e0fc], eax
call esi
push eax
call fcn.004389df
mov dword [esp], 0x458f54
push edi
mov dword [0x46e100], eax
call esi
push eax
call fcn.004389df
mov dword [0x46e104], eax
lea eax, [ebp - 8]
push eax
call fcn.004357ed
test eax, eax
pop ecx
pop ecx
je 0x4434e2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f85e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x443514
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004389df
cmp eax, ebx
pop ecx
mov dword [0x46e10c], eax
je 0x443514
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004389df
pop ecx
mov dword [0x46e108], eax
mov eax, dword [0x46e108]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x44358d
cmp dword [0x46e10c], esi
je 0x44358d
push eax
call fcn.00438a4b
pop ecx
call eax
cmp eax, ebx
je 0x44355a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x46e10c]
call fcn.00438a4b
pop ecx
call eax
test eax, eax
je 0x44355a
test byte [ebp - 0x18], 1
jne 0x44358d
lea eax, [ebp - 0xc]
push eax
call fcn.00435824
test eax, eax
pop ecx
je 0x443575
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f85e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x443584
or dword [ebp + 0x10], 0x200000
jmp 0x4435be
or dword [ebp + 0x10], 0x40000
jmp 0x4435be
mov eax, dword [0x46e100]
cmp eax, esi
je 0x4435be
push eax
call fcn.00438a4b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4435be
mov eax, dword [0x46e104]
cmp eax, esi
je 0x4435be
push dword [ebp - 4]
push eax
call fcn.00438a4b
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x46e0fc]
call fcn.00438a4b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x447826
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x46997c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004477bb
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 fcn.0042f0a0
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 0x447875
cmp dword [ebp - 0x1c], 5
jb 0x44788d
jmp 0x447889
cmp dword [ebp - 0x10], 1
jne 0x44788d
cmp dword [ebp - 0x1c], 4
ja 0x447889
jne 0x44788d
cmp dword [ebp - 0x18], 0
jbe 0x44788d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x45922c
call fcn.0044768f
test eax, eax
jge 0x4478ae
mov byte [0x46b828], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e1fe
add ebp, 0x78
leave
ret
Function at 0x409a30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x47d244], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x409a6d
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409a58
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x409a4a
mov dword [ecx*4 + 0x47d240], eax
inc ecx
cmp ecx, 0x100
jne 0x409a43
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x409a8f
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x47d240]
jmp 0x409a77
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x100011a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10004000
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1000700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 0xc]
lea edi, [ebx + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebx], eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ecx + 4]
mov dword [ebp - 0x14], ecx
sub eax, dword [ecx]
je 0x10001227
push eax
mov ecx, edi
call fcn.10002b00
mov eax, dword [ebp - 0x14]
mov edi, dword [edi]
mov esi, dword [eax + 4]
mov eax, dword [eax]
sub esi, eax
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x14]
lea eax, [esi + edi]
lea edi, [ebx + 4]
add esp, 0xc
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
lea esi, [ebx + 0x10]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
je 0x10001275
push eax
mov ecx, esi
call fcn.10002b00
push dword [ebp - 0x14]
mov esi, dword [esi]
push 0x90
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, esi
lea esi, [ebx + 0x10]
mov dword [esi + 4], eax
lea eax, [ebp - 0x14]
mov byte [ebx + 0x1c], 0
push eax
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 0x40
push eax
push dword [ebx]
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [ebx + 0x1c], 0
jne 0x100012c7
mov eax, dword [edi + 4]
sub eax, dword [edi]
je 0x100012ae
push eax
push dword [ebx]
push dword [esi]
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
je 0x100012c3
push eax
push ecx
push dword [ebx]
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [ebx + 0x1c], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000300e
mov esp, ebp
pop ebp
ret 8

Function at 0x10001d70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10001d97
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x10001d00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x4029f4
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.00403fa8
test esi, esi
jne 0x402a2a
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.00404098
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x485020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403168
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403148
xor eax, eax
push ebp
push 0x403141
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 0x403184
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 0x403148
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x485020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x485020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x487048], 0
je 0x403e8d
cmp word [0x48721c], 0xd7b2
jne 0x403e55
cmp dword [0x487224], 0
jbe 0x403e55
mov eax, 0x487218
call dword [0x487234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48506c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403eb4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x485030], 0
jne 0x403ea9
push 0
push 0x485064
push 0x48506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40539c
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 0x4055cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40541f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4055cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40541f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4055e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4054a8
xor eax, eax
push ebp
push 0x4054a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004051e4
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 0x405486
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405608
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405486
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 0x4054a8
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 0x4055c2
cmp byte [ebp - 0xd], 0
jne 0x4054ef
cmp byte [ebp - 0x12], 0
je 0x4055c2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405508
dec ebx
cmp byte [ebx], 0x2e
je 0x405517
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405507
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4055c2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405554
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 0x4055c2
cmp byte [ebp - 0xd], 0
je 0x4055c2
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 0x4055c2
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 0x405c94
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 0x405cfa
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.00404218
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c94
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ce4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d01
lea eax, [ebp - 0x10]
call fcn.00403fa8
ret

Function at 0x40b134
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 0x40b16d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404098
jmp 0x40b176
mov eax, ebx
mov edx, esi
call fcn.00403ffc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b180
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 0x40b1a1
mov al, byte [esp]
jmp 0x40b1a3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b828
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b6a0
mov eax, dword [0x4863f8]
cmp byte [eax], 0
je 0x40b8a4
mov eax, dword [0x486200]
call fcn.00402b00
call fcn.00402834
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408994
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b8ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b8da
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4861ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x487664]
call fcn.004051a8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c140
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 0x40c216
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404040
lea eax, [ebp - 8]
call fcn.004044b8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404468
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c200
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c1f9
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.00404468
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c1e3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c228
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c1e3
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 0x40c200
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c21d
lea eax, [ebp - 8]
call fcn.00403fa8
ret

Function at 0x40c728
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 0x40c78c
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.00404218
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408418
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c793
lea eax, [ebp - 0xc]
call fcn.00403fa8
ret

Function at 0x41b150
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x487884
cmp dword [edi], 0
jne 0x41b1cc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x487880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4853ec
mov ecx, 2
call fcn.004028c8
mov edx, 0x41b128
lea eax, [esi + 5]
call fcn.0041b148
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b148
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 0x41b1a1
mov dword [0x487880], 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 0x41c760
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41c766
ret
Function at 0x41efd0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41f021
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f008
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41eff8
jmp 0x41f021
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41f009
pop ebx
mov esp, ebp
pop ebp
ret