joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100014f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001509
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001544
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001540
lea ebx, [ebx]
cmp esi, eax
jae 0x10001544
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001530
cmp esi, eax
jb 0x1000154a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x100015a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CAboutDlg.virtual_312
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x100185e9
cmp dword [edi + 0x54], 0
jne 0x100185e9
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10019bf3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10018590
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x10001fd0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [edi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push ebx
push ebp
mov ebp, dword [edi + 4]
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 0xc], 0
jbe 0x100020ad
add esi, 0x10
mov ecx, dword [esi]
test ecx, ecx
jne 0x10002041
mov edx, dword [esp + 0x1c]
mov ebx, dword [edx + 0x38]
test ebx, ebx
jle 0x10002091
mov eax, dword [edi + 0x34]
mov ecx, dword [esi - 4]
mov edx, dword [edi + 0x1c]
push eax
push 4
push 0x1000
add ecx, ebp
push ebx
push ecx
call edx
add esp, 0x14
test eax, eax
je 0x100020b7
mov eax, dword [esi - 4]
push ebx
add eax, ebp
push 0
push eax
mov dword [esi - 8], eax
call fcn.10028fd0
jmp 0x1000208e
mov eax, dword [esi + 4]
add eax, ecx
push eax
mov eax, dword [esp + 0x1c]
call fcn.10001fc0
add esp, 4
test eax, eax
je 0x100020b7
mov edx, dword [edi + 0x34]
mov eax, dword [esi - 4]
push edx
push 4
push 0x1000
push ecx
mov ecx, dword [edi + 0x1c]
add eax, ebp
push eax
call ecx
add esp, 0x14
test eax, eax
je 0x100020b7
mov eax, dword [esi + 4]
mov edx, dword [esi]
add eax, dword [esp + 0x14]
mov ebx, dword [esi - 4]
push edx
add ebx, ebp
push eax
push ebx
call fcn.100290e0
mov dword [esi - 8], ebx
add esp, 0xc
mov ecx, dword [edi]
mov eax, dword [esp + 0xc]
movzx edx, word [ecx + 6]
add eax, 1
add esi, 0x28
cmp eax, edx
mov dword [esp + 0xc], eax
jl 0x10001ff7
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10006940
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ecx, dword [ebp + 0x3c]
push esi
push edi
mov edi, dword [ebp]
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov eax, dword [esi + 8]
push ecx
mov dword [esp + 0x18], eax
call fcn.10001f90
add esp, 4
mov ecx, esi
mov edx, ebp
mov dword [esp + 0x18], eax
call fcn.100020c0
mov edx, dword [esi + 0x24]
mov dword [esp + 0x1c], eax
mov eax, 1
add esi, 0x28
cmp word [edi + 6], ax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
jbe 0x10006a51
nop
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0x3c]
push ecx
mov dword [esp + 0x30], eax
call fcn.10001f90
add esp, 4
mov ecx, esi
mov edx, ebp
mov ebx, eax
call fcn.100020c0
cmp dword [esp + 0x18], ebx
mov edi, eax
je 0x100069fc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add edx, eax
cmp edx, ebx
ja 0x100069fc
lea edx, [esp + 0x14]
mov ecx, ebp
call fcn.10006770
test eax, eax
je 0x10006a6e
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], edx
jmp 0x10006a2b
mov eax, dword [esi + 0x24]
test eax, 0x2000000
je 0x10006a16
test dword [esp + 0x20], 0x2000000
je 0x10006a16
or dword [esp + 0x20], eax
jmp 0x10006a23
or eax, dword [esp + 0x20]
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
sub edi, dword [esp + 0x14]
add edi, dword [esp + 0x2c]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
add eax, 1
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
jl 0x100069a0
mov eax, 1
lea edx, [esp + 0x14]
mov ecx, ebp
mov dword [esp + 0x24], eax
call fcn.10006770
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x10013487
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 0x100134ca
call fcn.10019bf3
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 0x100134ca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100134e5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1001303e
test ebx, ebx
mov esi, eax
je 0x100134e3
test edi, edi
je 0x100134e3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x100141e7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10044ec9
call fcn.1002bb56
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1001420c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x10014258
call fcn.10016033
push eax
lea ecx, [ebp - 0x10]
call fcn.10001150
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10013b29
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001090
mov eax, esi
call fcn.1002bc2e
ret 8

Function at 0x10018a9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x10018ae2
call fcn.10019bf3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10018ae2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x10018b25
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x10018b0e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x10018b0e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x10018b22
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10028c29
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10059870]
jne 0x10028c33
repz ret
jmp fcn.1003003c

Function at 0x10039544
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1002fa15
xor ebx, ebx
cmp dword [0x1005d76c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10039619
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10039584
xor eax, eax
jmp 0x100396dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004bc28
push edi
call esi
cmp eax, ebx
je 0x1003957d
push eax
call fcn.1002f9b2
mov dword [esp], 0x1004bc18
push edi
mov dword [0x1005d76c], eax
call esi
push eax
call fcn.1002f9b2
mov dword [esp], 0x1004bc04
push edi
mov dword [0x1005d770], eax
call esi
push eax
call fcn.1002f9b2
mov dword [0x1005d774], eax
lea eax, [ebp - 8]
push eax
call fcn.1002dba4
test eax, eax
pop ecx
pop ecx
je 0x100395e7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002a4da
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10039619
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1002f9b2
cmp eax, ebx
pop ecx
mov dword [0x1005d77c], eax
je 0x10039619
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1002f9b2
pop ecx
mov dword [0x1005d778], eax
mov eax, dword [0x1005d778]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10039692
cmp dword [0x1005d77c], esi
je 0x10039692
push eax
call fcn.1002fa1e
pop ecx
call eax
cmp eax, ebx
je 0x1003965f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1005d77c]
call fcn.1002fa1e
pop ecx
call eax
test eax, eax
je 0x1003965f
test byte [ebp - 0x18], 1
jne 0x10039692
lea eax, [ebp - 0xc]
push eax
call fcn.1002dbdb
test eax, eax
pop ecx
je 0x1003967a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1002a4da
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10039689
or dword [ebp + 0x10], 0x200000
jmp 0x100396c3
or dword [ebp + 0x10], 0x40000
jmp 0x100396c3
mov eax, dword [0x1005d770]
cmp eax, esi
je 0x100396c3
push eax
call fcn.1002fa1e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100396c3
mov eax, dword [0x1005d774]
cmp eax, esi
je 0x100396c3
push dword [ebp - 4]
push eax
call fcn.1002fa1e
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 [0x1005d76c]
call fcn.1002fa1e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x403e59
pop dword [ebp - 0x4c]
mov eax, 0x403e59
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xc1b6ef13
add dword [ebp - 0x5c], 0x8c9b5638
mov dword [ebp - 0x58], 0x58a613b9
sub dword [ebp - 0x58], 0x2672c774
mov dword [ebp - 0x54], 0x26887161
sub dword [ebp - 0x54], 0xda3c2d33
mov dword [ebp - 0x50], 0xac7bd04
add dword [ebp - 0x50], 0xf53842fc
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xf1abcfa4
sub eax, 0xf16b4f18
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x3f2f0e58
sub dword [ebp - 0x5c], 0xcabca502
mov dword [ebp - 0x58], 0x9a38ee35
sub dword [ebp - 0x58], 0x58cc8cc0
mov dword [ebp - 0x54], 0x3f72ae1f
sub dword [ebp - 0x54], 0xdc0341b3
mov dword [ebp - 0x50], 0x5a4a3b5b
sub dword [ebp - 0x50], 0x5a4a3b5b
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x370f5
push 0
call eax
mov ecx, 0x2f8f41ad
sub ecx, 0x2f8ef86d
mov ebx, eax
mov edx, 0x7587a11c
add edx, 0x8ab96ee4
add edx, dword [ebp - 0x4c]
mov edi, 0x80aec8b4
add edi, 0x3d086e0f
xor dword [ebp - 0x10], 0xac16455c
mov esi, dword [edx]
add esi, edi
sub dword [ebp - 0x2c], edx
mov dword [ebx], esi
mov dword [ebp - 8], 0x71790ca1
add ebx, 0xdc755f7
add ebx, 0xf238aa0d
add edx, 0x54948c3
add edx, 0xfab6b741
loop 0x403f71
add eax, 0xe33b7f76
add eax, 0x1cc5985d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407290
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407290
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407290
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407290
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407290
mov dword [0x41203c], eax
call fcn.00407290
test eax, eax
jge 0x402550
push 8
call fcn.00407290
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407290
pop ecx
push 1
call fcn.00407290
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407290
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407290
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407290
jmp 0x402495

Function at 0x407290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40729f
pop dword [ebp - 0x48]
mov eax, 0x6d4a97fd
sub eax, 0x6d0a255e
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3ac1c
push 0
mov eax, 0x9dec5585
add eax, 0x62548b53
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x98990a8e
sub ecx, 0x9898bca8
mov edi, eax
mov ebx, 0xa4d9cafc
sub ebx, 0xa4988f38
add ebx, dword [ebp - 0x48]
mov esi, 0x746b3d20
xor dword [ebp - 0x1c], 0xc84deeda
mov edx, dword [ebx]
add dword [ebp - 0x28], edx
add edx, esi
sub dword [ebp - 0x14], 0x75078046
mov dword [edi], edx
sub dword [ebp - 0x30], 0xd7c546f9
add edi, 0x8f206b47
sub edi, 0x8f206b43
add ebx, 0xac60afb7
sub ebx, 0xac60afb3
loop 0x4072f8
add eax, 0x12a6b
mov ebx, eax
add eax, 0xfba6772c
sub eax, 0xfba67727
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x402a40
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.004044b4
test esi, esi
jne 0x402a76
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004045a4
jmp 0x402a94
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402954
mov edi, eax
test esi, esi
je 0x402a94
cmp dword [ebx], 0
je 0x402a94
dec esi
jmp 0x402a7d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403558
Capabilities:
Query or enumerate registry value

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

Function at 0x4042b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47a048], 0
je 0x404315
cmp word [0x47a21c], 0xd7b2
jne 0x4042dd
cmp dword [0x47a224], 0
jbe 0x4042dd
mov eax, 0x47a218
call dword [0x47a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x477090
push 0xfffffffffffffff5
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 0x40433c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x477030], 0
jne 0x404331
push 0
push 0x477088
push 0x477090
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x404468
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040270c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47a049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404430
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405ad4
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d04
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d20
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405be0
xor eax, eax
push ebp
push 0x405bd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040591c
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 0x405bbe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d40
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405bbe
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 0x405be0
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_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405cfa
cmp byte [ebp - 0xd], 0
jne 0x405c27
cmp byte [ebp - 0x12], 0
je 0x405cfa
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c40
dec ebx
cmp byte [ebx], 0x2e
je 0x405c4f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c3f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405cfa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c8c
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 0x405cfa
cmp byte [ebp - 0xd], 0
je 0x405cfa
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 0x405cfa
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 0x4063cc
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 0x406432
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404724
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040311c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40641c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406439
lea eax, [ebp - 0x10]
call fcn.004044b4
ret

Function at 0x40bb18
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
test eax, eax
jle 0x40bb51
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045a4
jmp 0x40bb5a
mov eax, ebx
mov edx, esi
call fcn.00404508
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bb64
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
test eax, eax
jle 0x40bb85
mov al, byte [esp]
jmp 0x40bb87
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cb24
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 0x40cbfa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040454c
lea eax, [ebp - 8]
call fcn.004049c4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404974
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cbe4
mov eax, ebx
call fcn.0040270c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cbdd
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.00404974
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cbc7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc0c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cbc7
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 0x40cbe4
mov eax, dword [ebp - 0x10]
call fcn.0040272c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc01
lea eax, [ebp - 8]
call fcn.004044b4
ret