joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412102
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push str.KERNEL32
mov dword [ebp - 4], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x412205
push edi
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x412194
push dword [ebp + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x82c]
push eax
call fcn.0041261e
test eax, eax
je 0x41216c
lea eax, [ebp - 0x82c]
push eax
call fcn.0041240f
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x82c]
push eax
call edi
test eax, eax
je 0x4121fb
cmp dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
je 0x4121f2
mov eax, SysReAllocString
jmp 0x4121f2
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], ebx
mov cl, byte [eax]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x42c], cl
mov cl, byte [eax + 1]
mov al, byte [eax + 2]
mov byte [ebp - 0x42b], cl
mov byte [ebp - 0x42a], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 0x429], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4121fb
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
shr eax, 0xa
mov dword [esi], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x4122bd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
mov byte [ebp + 0x11], 0x3a
mov byte [ebp + 0x12], 0x5c
mov byte [esi], al
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0x5c
mov byte [esi + 3], al
mov byte [ebp + 0x13], al
xor ebx, ebx
mov al, bl
add al, 0x41
mov byte [ebp + 0x10], al
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, dword [ebp + 8]
jne 0x412316
push dword [ebp + 0xc]
mov al, byte [ebp + 0x10]
mov byte [esi], al
push esi
call fcn.004120be
pop ecx
test eax, eax
pop ecx
je 0x412316
push esi
call fcn.00412259
test eax, eax
pop ecx
jne 0x412323
inc ebx
cmp ebx, 0x1a
jl 0x4122e1
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x41231f

Function at 0x412504
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.004124da
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
pop edi
je 0x412562
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x41255d
cmp eax, 5
jne 0x412562
push 1
pop eax
jmp 0x412564
xor eax, eax
leave
ret 4
Function at 0x4130ea
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push dword [0x430274]
mov ebx, str._04x
lea eax, [ebp - 0x14]
push ebx
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call edi
push eax
call edi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x828]
push eax
push 0x42fc58
call fcn.00412327
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00412568
lea eax, [ebp - 0x428]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x42db80
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x4131a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.dll_VerLanguageNameA
leave
ret

Function at 0x413abd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.00413c59
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x413b71
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x413b63
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x413b27
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x413b50
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x413b5d
cmp byte [ebp - 0x838], bl
je 0x413b63
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x413b71
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00413731
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x413b96
cmp dword [ebp + 0xc], 4
jne 0x413bc2
cmp dword [ebp - 0x14], ebx
jne 0x413bc2
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x413bae
mov ecx, edi
call fcn.00414174
jmp 0x413bc2
cmp ax, 4
mov ecx, edi
jne 0x413bbd
call fcn.00414355
jmp 0x413bc2
call fcn.00414729
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x414174
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.00418450
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x414342
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x414342
cmp dword [ebp - 0x14], 1
jne 0x414342
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x414305
cmp byte [ebp - 0x148], al
je 0x414305
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x4142f7
lea eax, [ebp - 0x96c]
push 0x42a7c8
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x429af8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x4297f8
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x41425b
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.00413942
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x414350
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [edx]
mov eax, dword [eax + 0x1f0]
test cl, cl
je 0x10006974
jmp 0x10006960
imul eax, eax, 0xf4243
movzx ecx, cl
lea edx, [edx + 1]
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x10006960
pop ebp
ret
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push str.kernel32.dll
call esi
push str.ntdll.dll
mov ebx, eax
call esi
mov edi, eax
test ebx, ebx
je 0x401128
test edi, edi
je 0x401128
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleFileNameW
push ebx
call esi
push str.CreateProcessInternalW
push ebx
mov dword [0x403350], eax
call esi
push str.GetCommandLineW
push ebx
mov dword [0x403354], eax
call esi
push str.lstrlenW
push ebx
mov dword [0x403334], eax
call esi
push str.SizeofResource
push ebx
mov dword [0x403338], eax
call esi
push str.LockResource
push ebx
mov dword [0x403344], eax
call esi
push str.FreeResource
push ebx
mov dword [0x403348], eax
call esi
push str.FindResourceW
push ebx
mov dword [0x40334c], eax
call esi
push str.LoadResource
push ebx
mov dword [0x40333c], eax
call esi
push str.NtAllocateVirtualMemory
push edi
mov dword [0x403340], eax
call esi
push str.NtSetContextThread
push edi
mov dword [0x403370], eax
call esi
push str.NtResumeThread
push edi
mov dword [0x403364], eax
call esi
push str.NtTerminateProcess
push edi
mov dword [0x403378], eax
call esi
push str.NtWriteVirtualMemory
push edi
mov dword [0x40337c], eax
call esi
push str.NtGetContextThread
push edi
mov dword [0x403374], eax
call esi
push str.NtReadVirtualMemory
push edi
mov dword [0x403360], eax
call esi
push str.RtlMoveMemory
push edi
mov dword [0x403368], eax
call esi
push str.RtlZeroMemory
push edi
mov dword [0x403358], eax
call esi
push str.NtUnmapViewOfSection
push edi
mov dword [0x40335c], eax
call esi
mov dword [0x40336c], eax
pop edi
pop esi
pop ebx
ret
Function at 0x401130
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dx, word [0x4021bc]
mov ecx, dword [0x4021b8]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0xc]
mov word [ebp - 8], dx
mov dword [ebp - 0xc], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401166
push ebx
push esi
sub eax, edx
push edi
mov edi, eax
xor eax, eax
jmp 0x401180
mov byte [ebp + eax - 0x10c], al
inc eax
cmp eax, 0x100
jb 0x401180
xor ecx, ecx
xor esi, esi
xor edx, edx
mov eax, ecx
div edi
movzx ebx, byte [ebp + ecx - 0x10c]
inc ecx
movzx eax, byte [ebp + edx - 0xc]
add eax, ebx
add esi, eax
and esi, 0xff
mov dl, byte [ebp + esi - 0x10c]
mov byte [ebp + ecx - 0x10d], dl
mov byte [ebp + esi - 0x10c], bl
cmp ecx, 0x100
jb 0x401193
mov edx, dword [ebp + 0xc]
xor eax, eax
xor edi, edi
xor esi, esi
test edx, edx
je 0x401250
jmp 0x4011e0
inc esi
and esi, 0xff
movzx ecx, byte [ebp + esi - 0x10c]
add edi, ecx
and edi, 0xff
movzx ebx, byte [ebp + edi - 0x10c]
mov byte [ebp + esi - 0x10c], bl
mov byte [ebp + edi - 0x10c], cl
movzx ebx, byte [ebp + esi - 0x10c]
add ebx, ecx
and ebx, 0x800000ff
jns 0x401227
dec ebx
or ebx, 0xffffff00
inc ebx
movzx ebx, byte [ebp + ebx - 0x10c]
mov ecx, dword [ebp - 0x110]
xor byte [ecx + eax], bl
inc eax
cmp eax, edx
jb 0x4011e0
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040164e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040164e
mov esp, ebp
pop ebp
ret
Function at 0x40164e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401658
repz ret
jmp fcn.0040165d
Function at 0x402cc0
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 0x402cfd
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 0x402d1d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404e5c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f64
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402fbd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402e00
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402e00
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402fa7
inc ebx
jmp 0x402f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fc4
lea eax, [ebp - 8]
call fcn.00404bec
ret

Function at 0x402fcc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404bec
test esi, esi
jne 0x403003
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404cdc
jmp 0x403024
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e00
mov dword [esp], eax
test esi, esi
je 0x403024
cmp dword [ebx], 0
je 0x403024
dec esi
jmp 0x40300b
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403b84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a3024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c1c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403bfc
xor eax, eax
push ebp
push 0x403bf5
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 0x403c38
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 0x403bfc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a3024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a3024], ax
mov esp, ebp
pop ebp
ret
Function at 0x406c88
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 0x406cee
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.00404e5c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004035e0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406cd8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cf5
lea eax, [ebp - 0x10]
call fcn.00404bec
ret

Function at 0x40e604
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 0x40e63d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404cdc
jmp 0x40e646
mov eax, ebx
mov edx, esi
call fcn.00404c40
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40f64c
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 0x40f722
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404c84
lea eax, [ebp - 8]
call fcn.00405118
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004050c8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f70c
mov eax, ebx
call fcn.00402a88
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f705
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.004050c8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f6ef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f734
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f6ef
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 0x40f70c
mov eax, dword [ebp - 0x10]
call fcn.00402ab8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f729
lea eax, [ebp - 8]
call fcn.00404bec
ret
Function at 0x40fd10
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 0x40fd74
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.00404e5c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ae50
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fd7b
lea eax, [ebp - 0xc]
call fcn.00404bec
ret

Function at 0x41eb00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ab8d0
cmp dword [edi], 0
jne 0x41eb7c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4ab8cc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a3424
mov ecx, 2
call fcn.00402dc0
mov edx, 0x41ead8
lea eax, [esi + 5]
call fcn.0041eaf8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041eaf8
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 0x41eb51
mov dword [0x4ab8cc], 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 0x421a54
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.00404e5c
add esp, 0x100
pop ebx
ret
Function at 0x421a84
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.004050b8
xor eax, eax
push ebp
push 0x421b80
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.00404c40
lea edx, [ebp - 0x80c]
mov eax, dword [ebp - 4]
call fcn.0040b40c
cmp dword [ebp - 0x80c], 0
jne 0x421b08
lea eax, [ebp - 0x810]
call fcn.00421a54
push dword [ebp - 0x810]
push 0x421b98
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404f88
lea eax, [ebp - 4]
xor ecx, ecx
xor edx, edx
call fcn.00422ae4
test al, al
je 0x421b5a
mov eax, dword [ebp - 4]
call fcn.004050c8
push eax
push 0x800
lea eax, [ebp - 0x808]
push eax
mov eax, ebx
call fcn.004050c8
push eax
mov eax, dword [ebp - 8]
call fcn.004050c8
push eax
mov eax, edi
call fcn.004050c8
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x808]
mov eax, esi
call fcn.00404cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421b87
lea eax, [ebp - 0x810]
mov edx, 2
call fcn.00404c10
lea eax, [ebp - 4]
call fcn.00404bec
ret

Function at 0x4222f8
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.004050b8
mov eax, dword [ebp - 8]
call fcn.004050b8
xor eax, eax
push ebp
push 0x4223fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404bec
cmp dword [ebp - 4], 0
je 0x422350
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x422350
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405168
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004050c8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4223e1
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004050c8
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4223d1
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00405254
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.004050c8
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.00404ec8
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00405128
jmp 0x4223d8
mov eax, ebx
call fcn.00404bec
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 0x422403
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c10
ret