joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a2a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46c920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00449e50
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00449ed0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00449ed0
lea ecx, [esi + 0xc]
call fcn.0045e506
lea ecx, [esi + 0x10]
call fcn.0045e506
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044c700
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044c700
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044c700
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045e57b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045e57b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44af48
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46cb48
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44af58
call fcn.0044b470
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44b03b
cmp byte [edi], 0
je 0x44b03b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44af7d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00449c70
test eax, eax
jne 0x44af9d
push 0x48c460
lea ecx, [esi + 0x38]
call fcn.0045e6b8
jmp 0x44b03b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00449cc0
test eax, eax
jne 0x44afcc
mov ecx, esi
call fcn.00449dc0
push edi
add esi, 0x38
push 0x48c43c
push esi
call fcn.0045c517
add esp, 0xc
jmp 0x44b03b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044bcf0
test eax, eax
je 0x44b034
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044b110
test eax, eax
jne 0x44b050
push edi
lea eax, [esi + 0x38]
push 0x48c418
push eax
call fcn.0045c517
add esp, 0xc
mov ecx, esi
call fcn.0044b470
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44b0f8
mov ecx, dword [0x48c6d0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045c517
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00449d70
test eax, eax
jne 0x44b0ba
push 0x48c3fc
lea ecx, [esi + 0x38]
call fcn.0045e6b8
jmp 0x44b0ca
push 0xfa
mov ecx, esi
call fcn.0044bcf0
test eax, eax
jne 0x44b0e7
mov ecx, esi
call fcn.0044b470
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045e57b
jmp 0x44b03b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045e57b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46091f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x460957
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045e9d6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045e9ae
jmp 0x460963
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46200d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46204f
call fcn.00467b8e
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46204f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x462046
xor eax, eax
jmp 0x462057
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046205d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4680be
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4680ec
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46810a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00468024
jmp 0x46810a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46810a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00468024
test edi, edi
mov eax, edi
jne 0x4680f4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4cf5e8
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004cf667
jae 0x4cf5f4
xor ecx, ecx
call fcn.004cf667
jae 0x4cf61e
xor eax, eax
call fcn.004cf667
jae 0x4cf62f
mov al, 0x10
call fcn.004cf667
adc al, al
jae 0x4cf610
jne 0x4cf65c
stosb byte es:[edi], al
jmp 0x4cf5f5
call fcn.004cf673
dec ecx
loop 0x4cf63b
mov eax, ebp
call fcn.004cf671
jmp 0x4cf65d
lodsb al, byte [esi]
shr eax, 1
je 0x4cf683
adc ecx, 2
mov ebp, eax
jmp 0x4cf65d
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004cf671
cmp eax, 0x7d00
jae 0x4cf65b
cmp eax, 0x500
jae 0x4cf65c
cmp eax, 0x7f
ja 0x4cf65d
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4cf5f5
pop ebp
ret 8
Function at 0x405814
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43504c], 0
je 0x405875
cmp word [0x435328], 0xd7b2
jne 0x40583d
cmp dword [0x435330], 0
jbe 0x40583d
mov eax, 0x435324
call dword [0x435340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x4058a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x433024], 0
jne 0x405891
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4071b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40731d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405a94
cmp si, word [0x4337d0]
jb 0x407250
cmp si, word [0x4339d0]
ja 0x407250
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x407250
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4337d0]
jae 0x40722a
mov edi, ebx
dec edi
jmp 0x40724b
cmp si, word [ebx*8 + 0x4337d0]
jbe 0x40723a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40724b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4337d4]
call fcn.004070c8
jmp 0x407250
cmp edi, dword [ebp - 8]
jae 0x407214
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4072ff
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4072ff
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004062b4
push dword [ebp - 0x160]
push 0x407338
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004062b4
push dword [ebp - 0x164]
push 0x407348
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004062b4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406454
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407324
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405af4
ret
Function at 0x4074d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4075d3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x437b4d
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x437b66]
jne 0x40751c
mov eax, esi
mov edx, 0x437b68
mov ecx, 0x55
call fcn.004062b4
push 0x437b4d
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4075bd
push 0x437b4d
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405a94
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40758b
cmp byte [0x437b4c], 0
je 0x407550
mov edx, esi
mov eax, ebx
call fcn.004073b4
jmp 0x40758b
mov edx, esi
mov eax, ebx
call fcn.004071b8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40758b
cmp dword [esi], 0
je 0x407574
mov eax, esi
mov edx, 0x4075ec
call fcn.00406374
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004071b8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406374
push 0x437b4d
call sub.kernel32.dll_EnterCriticalSection
mov word [0x437b66], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406228
push eax
push 0x437b68
call sub.kernel32.dll_lstrcpynW
push 0x437b4d
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4075da
lea eax, [ebp - 4]
call fcn.00405a94
ret
Function at 0x407808
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b78
xor eax, eax
push ebp
push 0x407a2d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407848
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407862
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406228
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x407a17
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407a3c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407931
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407a3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407931
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407a78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407931
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407a78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407931
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407aac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407931
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407ae0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x407a17
xor eax, eax
push ebp
push 0x407a10
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407614
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4079a0
mov eax, dword [ebp - 0x10]
call fcn.004040a4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406278
jmp 0x4079eb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x407b20
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4079eb
mov eax, dword [ebp - 0x10]
call fcn.004040a4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x407b20
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a17
cmp dword [ebp - 8], 0
je 0x407a06
mov eax, dword [ebp - 8]
call fcn.004040c0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a34
lea eax, [ebp - 4]
call fcn.00405a94
ret
Function at 0x407d6c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b78
xor eax, eax
push ebp
push 0x407e2c
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004062b4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004063cc
mov eax, dword [ebx]
call fcn.00407c34
test al, al
jne 0x407e09
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004062b4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004063cc
mov eax, dword [ebx]
call fcn.00407c34
test al, al
jne 0x407e09
mov eax, ebx
call fcn.00405a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e33
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405af4
lea eax, [ebp - 4]
call fcn.00405a94
ret

Function at 0x4084c0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40f060
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40f099
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405bf0
jmp 0x40f0a2
mov eax, ebx
mov edx, esi
call fcn.00405e48
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f0ac
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40f0ce
movzx eax, word [esp]
jmp 0x40f0d0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40fd8c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x40feb1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0040fb9c
mov esi, eax
mov eax, dword [0x4344ec]
cmp byte [eax], 0
je 0x40fe59
mov eax, dword [0x43406c]
call fcn.004043cc
call fcn.00404200
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40fd64]
call fcn.00406c44
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x40fecc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40fe95
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x433fc8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x437c30]
call fcn.00406cfc
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40feb8
lea eax, [ebp - 4]
mov edx, dword [0x40fd64]
call fcn.00406c50
ret

Function at 0x4118e0
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004062b4
add esp, 0x800
pop ebx
ret
Function at 0x402d90
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 0x402dcd
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 0x402ded
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f3c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403068
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ccc
test esi, esi
jne 0x40309f
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.00404dbc
jmp 0x4030c0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402f04
mov dword [esp], eax
test esi, esi
je 0x4030c0
cmp dword [ebx], 0
je 0x4030c0
dec esi
jmp 0x4030a7
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403cc8
Capabilities:
Query or enumerate registry value

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

Function at 0x404aa4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e804c], 0
je 0x404b05
cmp word [0x4e8220], 0xd7b2
jne 0x404acd
cmp dword [0x4e8228], 0
jbe 0x404acd
mov eax, 0x4e821c
call dword [0x4e8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e3070
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 0x404b2c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e3030], 0
jne 0x404b21
push 0
push 0x4e3068
push 0x4e3070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c80
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.00402b58
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c48
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406f40
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 0x406fa6
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.00404f3c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036f4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406f90
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406fad
lea eax, [ebp - 0x10]
call fcn.00404ccc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040518c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409e95
test al, 0x10
jne 0x409e99
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a030
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040518c
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40a044
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040518c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a066
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d4c0
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 0x40d4f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404dbc
jmp 0x40d502
mov eax, ebx
mov edx, esi
call fcn.00404d20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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