joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d6b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460012
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x47d144]
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 edi, ecx
cmp dword [edi + 0x24], 0x10
lea esi, [edi + 0x10]
mov eax, esi
jb 0x41d6ed
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x90]
push str.zCSMComm.Mem.Id._s
push eax
call fcn.00421df0
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0xfa000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [0x47d0f4]
mov dword [edi], eax
test eax, eax
je 0x41d83c
cmp eax, 0xffffffff
je 0x41d83c
push 0xfa000
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 4], eax
test eax, eax
je 0x41d83c
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41d759
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x90]
push str.zCSMComm.Ready.Id._s
push eax
call fcn.00421df0
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0
call dword [0x47d0f8]
mov dword [edi + 8], eax
test eax, eax
je 0x41d83c
cmp dword [esi + 0x14], 0x10
jb 0x41d794
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x90]
push str.zCSMComm.Done.Id._s
push eax
call fcn.00421df0
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0
call dword [0x47d0f8]
mov dword [edi + 0xc], eax
test eax, eax
je 0x41d83c
push 8
mov bl, 1
call fcn.00428263
mov esi, eax
mov dword [ebp - 0x98], esi
push 8
mov dword [ebp - 4], 0
call fcn.00428263
mov dword [ebp - 0x9c], eax
mov dword [eax], edi
mov dword [eax + 4], 0x41d870
lea ecx, [esi + 4]
mov byte [ebp - 4], bl
push ecx
push 0
push eax
push 0x421fd0
push 0
push 0
mov dword [ebp - 0x94], ecx
call fcn.0044c28c
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x41d85c
lea eax, [edi + 0x28]
mov dword [edi + 0x70], esi
cmp dword [eax + 0x14], 0x10
jb 0x41d826
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x74], eax
test eax, eax
jne 0x41d83e
xor al, al
jmp 0x41d840
xor bl, bl
mov al, bl
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.004281b1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x94]
push 6
mov dword [eax], 0
call fcn.0042634a
int3
Function at 0x41f690
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460250
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x47d144]
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
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
call fcn.0044c0e9
mov edi, dword [eax]
add edi, 4
mov esi, dword [edi]
test esi, esi
je 0x41f76e
lea esp, [esp]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f6e5
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x41f720
movzx eax, word [esi]
cmp eax, 0x2d
je 0x41f706
cmp eax, 0x2f
jne 0x41f720
lea eax, [esi + 2]
push 0x473820
push eax
call fcn.00443f60
add esp, 8
test eax, eax
sete al
test al, al
jne 0x41f76e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f725
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x41f760
cmp word [esi], 0x2d
jne 0x41f760
cmp word [esi + 2], 0x2d
jne 0x41f760
lea eax, [esi + 4]
push str.language
push eax
call fcn.00443f60
add esp, 8
test eax, eax
sete al
test al, al
jne 0x41f76e
mov esi, dword [edi + 4]
add edi, 4
test esi, esi
jne 0x41f6e0
cmp dword [edi], 0
je 0x41f7ae
mov esi, dword [edi + 4]
test esi, esi
je 0x41f7ae
push 0x2c
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00440840
add esp, 0xc
lea ecx, [ebp - 0x254]
mov edx, esi
call fcn.00424b30
test al, al
je 0x41f7ae
mov esi, dword [ebp - 0x254]
mov dword [ebp - 0x21c], esi
test esi, esi
jne 0x41f7fd
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00440840
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
call fcn.00425050
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
jne 0x41f7fd
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov dword [ebp - 0x21c], esi
push esi
push 7
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x41f896
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x228]
push eax
push 0x41f8c0
push 7
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x228]
call fcn.00424de0
mov esi, 0x409
test al, al
je 0x41f85d
mov esi, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x228]
test edx, edx
je 0x41f896
mov ecx, dword [ebp - 0x220]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x41f88c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f8b4
push ecx
push edx
call fcn.004281c2
add esp, 8
mov eax, esi
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.004281b1
mov esp, ebp
pop ebp
ret
call fcn.00443d74
int3
Function at 0x4222e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov eax, edx
mov dword [ebp - 4], ecx
push esi
mov esi, eax
mov dword [ebp - 0xc], eax
shr esi, 4
push edi
xor edi, edi
lea ebx, [esi + 1]
movzx eax, bx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
push dword [ebp - 8]
push 6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x422331
push 0x409
push dword [ebp - 8]
push 6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x42237a
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x42237a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
shl ebx, 4
shl esi, 4
cmp esi, ebx
jae 0x422371
mov edx, dword [ebp - 0xc]
movzx edi, word [eax]
add eax, 2
test di, di
je 0x42236a
mov ecx, edi
cmp esi, edx
je 0x422383
lea eax, [eax + ecx*2]
inc esi
cmp esi, ebx
jb 0x422356
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push ecx
push eax
push dword [ebp + 0xc]
push esi
call fcn.0044bd78
add esp, 0x10
test eax, eax
jne 0x42236f
push dword [ebp - 8]
mov word [esi + edi*2], ax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4224a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460650
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x47d144]
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 edi, ecx
mov edx, dword [ebp + 8]
mov ecx, edx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x21c], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x220], eax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4224f0
sub ecx, dword [ebp - 0x220]
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x34]
call fcn.00402cf0
mov edx, dword [ebp - 0x21c]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x21c], eax
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422520
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
push ecx
push edx
lea ecx, [edi + 0x4c]
call fcn.00402cf0
test esi, esi
jne 0x422546
mov esi, 0x471e48
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x422550
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422550
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [edi + 0x64]
call fcn.00402cf0
test ebx, ebx
jne 0x422572
mov ebx, 0x471e48
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422577
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x7c]
call fcn.00402cf0
mov eax, dword [ebp + 0x18]
push 0x208
mov dword [edi + 0x94], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00440840
push 0x34
lea eax, [ebp - 0x260]
mov dword [ebp - method.eset::CFileVersionInfo.virtual_0], vtable.eset::CFileVersionInfo.0
push 0
push eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
call fcn.00440840
push dword [ebp - 0x22c]
call fcn.00443ae6
add esp, 0x1c
mov dword [ebp - 0x22c], 0
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4226b1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call fcn.0041c880
test eax, eax
je 0x422675
push 0x104
lea eax, [ebp - 0x218]
push eax
push ecx
lea ecx, [ebp - 0x264]
call fcn.0041c9c0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422656
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x1c]
call fcn.00402cf0
push 0x34
lea eax, [ebp - 0x260]
mov dword [ebp - 0x224], 0
push 0
push eax
mov dword [ebp - 0x228], 0
call fcn.00440840
push dword [ebp - 0x22c]
call fcn.00443ae6
add esp, 0x10
mov dword [ebp - 0x22c], 0
mov eax, dword [edi]
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x4623b8]
mov ecx, edi
call esi
cmp eax, 1
lea eax, [ebp - 0x260]
push 0x34
push 0
push eax
sete bl
call fcn.00440840
push dword [ebp - 0x22c]
call fcn.00443ae6
add esp, 0x10
mov al, bl
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.004281b1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4248c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x47d144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00440840
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov ecx, esi
mov byte [edi + 0x50], 1
call fcn.004222e0
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
push 0x137
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
push 0x137
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004281b1
mov esp, ebp
pop ebp
ret 4

Function at 0x4253f0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47d144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [0x47d108]
test eax, eax
je 0x425534
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42554e
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x24]
mov byte [ebp - 0xd], 0
push eax
push 0x12
push esi
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x425545
cmp dword [ebp - 0x20], 4
jb 0x425545
cmp dword [ebp - 0x24], 3
jne 0x425545
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x425545
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x425525
push ebx
push dword [ebp - 0x18]
call fcn.00443adb
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x425524
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push ebx
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42551b
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42551b
xor esi, esi
cmp dword [ebx], esi
jbe 0x425512
push edi
lea edi, [ebx + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42550d
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x4254f4
jmp 0x425511
mov byte [ebp - 0xd], 1
pop edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call fcn.00443ae6
add esp, 4
pop ebx
push dword [ebp - 0x14]
call dword [0x47d03c]
cmp byte [ebp - 0xd], 0
je 0x42554e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004281b1
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x14]
call dword [0x47d03c]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004281b1
mov esp, ebp
pop ebp
ret
Function at 0x402a6c
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 0x402aa9
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 0x402ac9
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404b68
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402cf8
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.004048f8
test esi, esi
jne 0x402d2e
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.004049e8
jmp 0x402d4c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402bac
mov edi, eax
test esi, esi
je 0x402d4c
cmp dword [ebx], 0
je 0x402d4c
dec esi
jmp 0x402d35
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b2024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403908
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038e8
xor eax, eax
push ebp
push 0x4038e1
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 0x403924
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 0x4038e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4b2024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b2024], ax
mov esp, ebp
pop ebp
ret
Function at 0x406934
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 0x40699a
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.00404b68
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004032d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406984
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069a1
lea eax, [ebp - 0x10]
call fcn.004048f8
ret

Function at 0x40c96c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c9a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004049e8
jmp 0x40c9ae
mov eax, ebx
mov edx, esi
call fcn.0040494c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d9f0
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 0x40dac6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404990
lea eax, [ebp - 8]
call fcn.00404e24
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404dd4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dab0
mov eax, ebx
call fcn.00402890
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40daa9
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.00404dd4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40da93
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dad8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40da93
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 0x40dab0
mov eax, dword [ebp - 0x10]
call fcn.004028b0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dacd
lea eax, [ebp - 8]
call fcn.004048f8
ret
Function at 0x40e09c
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 0x40e100
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.00404b68
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409148
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e107
lea eax, [ebp - 0xc]
call fcn.004048f8
ret

Function at 0x4242d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b588c
cmp dword [edi], 0
jne 0x42434c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b5888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b24c8
mov ecx, 2
call fcn.00402b6c
mov edx, 0x4242a8
lea eax, [esi + 5]
call fcn.004242c8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004242c8
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 0x424321
mov dword [0x4b5888], 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 0x42625c
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.00404dc4
mov eax, dword [ebp - 8]
call fcn.00404dc4
xor eax, eax
push ebp
push 0x426360
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004048f8
cmp dword [ebp - 4], 0
je 0x4262b4
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x4262b4
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404e74
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404dd4
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x426345
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404dd4
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x426335
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00404f60
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00404dd4
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.00404bd4
mov ecx, eax
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00404e34
jmp 0x42633c
mov eax, ebx
call fcn.004048f8
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 0x426367
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040491c
ret

Function at 0x42656c
Capabilities:
Query environment variable

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

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404dd4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x426a21
test al, 0x10
jne 0x426a25
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret