joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa0e1
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xddc
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test edx, edx
je 0x4aa306
test esi, esi
je 0x4aa306
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x874], ebx
mov dword [ebp - 0x870], ebx
mov dword [ebp - 0x86c], ebx
mov dword [ebp - 0x868], ebx
mov dword [ebp - 0x864], ebx
mov dword [ebp - 0x860], ebx
mov dword [ebp - 0x644], ebx
mov dword [ebp - 0x640], ebx
mov dword [ebp - 0x63c], ebx
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x630], ebx
sub eax, ebx
je 0x4aa2d7
sub eax, 1
je 0x4aa179
sub eax, 1
je 0x4aa23f
sub eax, 1
jne 0x4aa2f1
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x20c]
push eax
push dword [edx + 4]
call edi
test eax, eax
je 0x4aa2d2
push ebx
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0047314d
test eax, eax
je 0x4aa2d2
lea eax, [ebp - 0x414]
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x4aa237
push ebx
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0047314d
test eax, eax
je 0x4aa237
cmp dword [ebp + 0x10], 1
jne 0x4aa297
test byte [ebp - 0x854], 0x10
jne 0x4aa2d2
test byte [ebp - 0x624], 0x10
jne 0x4aa237
mov ecx, dword [ebp - 0x628]
mov eax, dword [ebp - 0x62c]
cmp dword [ebp - 0x858], ecx
ja 0x4aa237
jb 0x4aa2d2
cmp dword [ebp - 0x85c], eax
jb 0x4aa2d2
cmp dword [ebp - 0x858], ecx
jb 0x4aa2f1
ja 0x4aa237
cmp dword [ebp - 0x85c], eax
jbe 0x4aa2f1
xor ebx, ebx
inc ebx
jmp 0x4aa2f1
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 0xddc]
push 0x408
push 0x2b4
push eax
push ebx
push dword [edx + 4]
call edi
test eax, eax
je 0x4aa2f1
push 0x408
push 0x2b4
lea eax, [ebp - 0xb28]
push eax
push ebx
push dword [esi + 4]
call edi
test eax, eax
je 0x4aa2f1
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0xbc8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, eax
jmp 0x4aa2f1
push dword [ebp - 0x638]
lea ecx, [ebp - 0x86c]
push dword [ebp - 0x63c]
call fcn.004a9819
test al, al
jne 0x4aa2d2
push dword [ebp - 0x638]
lea ecx, [ebp - 0x86c]
push dword [ebp - 0x63c]
call fcn.004a9838
xor ebx, ebx
test al, al
setne bl
jmp 0x4aa2f1
or ebx, 0xffffffff
jmp 0x4aa2f1
push dword [esi + 8]
mov eax, dword [edx]
push dword [edx + 8]
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jns 0x4aa2ee
xor eax, eax
jmp 0x4aa2f3
movsx ebx, ax
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 0xc
call fcn.004465fa
int3

Function at 0x4aabbf
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0053e934
call fcn.0044816f
cmp dword [eax + 0x14], 0
jne 0x4aabda
mov ecx, esi
pop esi
jmp fcn.004a9fb6
pop esi
ret
Function at 0x4c97c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00444133
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x21
call esi
push 0x20
mov ebx, eax
call esi
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.0043d23b
mov edi, dword [ebp - 0x18]
mov esi, eax
test edi, 0x1000
je 0x4c9838
cmp esi, 3
jne 0x4c9827
push 2
pop esi
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4c9838
xor eax, eax
jmp 0x4c988d
cmp esi, 0xa
jl 0x4c9842
cmp esi, 0x11
jle 0x4c9847
cmp esi, 4
jne 0x4c988b
test edi, 0x800
je 0x4c9854
push 2
pop eax
jmp 0x4c988d
mov eax, dword [ebp - 0x1c]
neg ebx
push ebx
neg eax
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
test edi, 0x200
je 0x4c988b
mov eax, esi
sub eax, 4
je 0x4c98d8
sub eax, 9
je 0x4c98c4
sub eax, 1
je 0x4c98b4
dec eax
sub eax, 1
je 0x4c98a0
sub eax, 1
je 0x4c98d8
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00564ee1
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 8]
setle al
dec eax
and eax, 5
add eax, 0xa
jmp 0x4c988d
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
setl al
add eax, 0xb
jmp 0x4c988d
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
setl al
lea eax, [eax*2 + 0xa]
jmp 0x4c988d
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 8]
setg al
lea eax, [eax*4 + 0xb]
jmp 0x4c988d
Function at 0x583647
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005834c6

Function at 0x588f7f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00588c3f
Function at 0x10006450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1000646e
xor eax, eax
jmp 0x1000648c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0x4550
je 0x10006489
xor eax, eax
jmp 0x1000648c
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10006ed0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10006660
cmp eax, 1
jne 0x10006efe
mov dword [ebp - 8], 0x1004
jmp 0x10006fa6
push 0
push 8
call fcn.10006b90
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10006f9f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
cmp dword [ebp + 0x10], 1
jne 0x10006f57
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0x10006e30
call fcn.10009a17
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10006f55
mov dword [ebp - 8], 0x1001
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.10006bf0
jmp 0x10006f9d
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0x10006e70
push 0
push 0
call fcn.10009bc8
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006f8f
mov dword [ebp - 8], 0x1001
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.10006bf0
jmp 0x10006f9d
cmp dword [ebp + 0x14], 0
je 0x10006f9d
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
jmp 0x10006fa6
mov dword [ebp - 8], 0x1002
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10008380
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001a068]
jne 0x1000838a
repz ret
jmp fcn.10009d78
Function at 0x1000d777
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1001a9f0]
je 0x1000d792
inc edi
cmp edi, 0x17
jb 0x1000d783
cmp edi, 0x17
jae 0x1000d912
push ebp
push 3
call fcn.100119e2
cmp eax, 1
pop ecx
je 0x1000d8de
push 3
call fcn.100119e2
test eax, eax
pop ecx
jne 0x1000d7c6
cmp dword [0x1001b238], 1
je 0x1000d8de
cmp ebx, 0xfc
je 0x1000d911
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1001b870
push ebp
call fcn.1000f9c4
add esp, 0xc
test eax, eax
je 0x1000d7fc
push esi
push esi
push esi
push esi
push esi
call fcn.1000bf38
add esp, 0x14
push 0x104
mov esi, 0x1001b889
push esi
push 0
mov byte [0x1001b98d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000d840
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000f9c4
add esp, 0xc
test eax, eax
je 0x1000d840
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000bf38
add esp, 0x14
push esi
call fcn.10008f90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000d885
push esi
call fcn.10008f90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1001bb84
push 0x100174cc
sub ecx, eax
push ecx
push eax
call fcn.100113c6
add esp, 0x14
test eax, eax
je 0x1000d885
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000bf38
add esp, 0x14
jmp 0x1000d887
xor esi, esi
push 0x100174c8
push ebx
push ebp
call fcn.10011307
add esp, 0xc
test eax, eax
je 0x1000d8a7
push esi
push esi
push esi
push esi
push esi
call fcn.1000bf38
add esp, 0x14
push dword [edi*8 + 0x1001a9f4]
push ebx
push ebp
call fcn.10011307
add esp, 0xc
test eax, eax
je 0x1000d8c9
push esi
push esi
push esi
push esi
push esi
call fcn.1000bf38
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10011825
add esp, 0xc
jmp 0x1000d911
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000d911
cmp ebp, 0xffffffff
je 0x1000d911
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1001a9f4]
push dword [esi]
call fcn.10008f90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10011825
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1000a142
xor ebx, ebx
cmp dword [0x1001bc7c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100118fb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100119db
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100119db
push eax
call fcn.1000a0d4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001bc7c], eax
call esi
push eax
call fcn.1000a0d4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001bc80], eax
call esi
push eax
call fcn.1000a0d4
mov dword [0x1001bc84], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000a76a
test eax, eax
pop ecx
pop ecx
je 0x100118c9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000bf38
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100118fb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1000a0d4
cmp eax, ebx
pop ecx
mov dword [0x1001bc8c], eax
je 0x100118fb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000a0d4
pop ecx
mov dword [0x1001bc88], eax
mov eax, dword [0x1001bc88]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10011980
cmp dword [0x1001bc8c], ecx
je 0x10011980
push eax
call fcn.1000a14b
push dword [0x1001bc8c]
mov esi, eax
call fcn.1000a14b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10011980
cmp edi, ebx
je 0x10011980
call esi
cmp eax, ebx
je 0x1001194d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001194d
test byte [ebp - 0x18], 1
jne 0x10011980
lea eax, [ebp - 0x10]
push eax
call fcn.1000a7a1
test eax, eax
pop ecx
je 0x10011968
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000bf38
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10011977
or dword [ebp + 0x10], 0x200000
jmp 0x100119bb
or dword [ebp + 0x10], 0x40000
jmp 0x100119bb
mov eax, dword [0x1001bc80]
cmp eax, dword [ebp - 8]
je 0x100119bb
push eax
call fcn.1000a14b
cmp eax, ebx
pop ecx
je 0x100119bb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100119bb
mov eax, dword [0x1001bc84]
cmp eax, dword [ebp - 8]
je 0x100119bb
push eax
call fcn.1000a14b
cmp eax, ebx
pop ecx
je 0x100119bb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001bc7c]
call fcn.1000a14b
cmp eax, ebx
pop ecx
je 0x100119db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100119dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406848
test esi, esi
jne 0x404580
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406984
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405e0c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b2050], 0
je 0x405e6d
cmp word [0x4b232c], 0xd7b2
jne 0x405e35
cmp dword [0x4b2334], 0
jbe 0x405e35
mov eax, 0x4b2328
call dword [0x4b2344]
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 0x405e98
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4af030], 0
jne 0x405e89
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405ff8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4af034], 0
je 0x40601e
mov edx, esi
mov eax, ebx
call dword [0x4af034]
jmp 0x40602d
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b2051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fc0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4085e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40874b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406848
cmp si, word [0x4af7d0]
jb 0x40867e
cmp si, word [0x4af9d0]
ja 0x40867e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40867e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4af7d0]
jae 0x408658
mov edi, ebx
dec edi
jmp 0x408679
cmp si, word [ebx*8 + 0x4af7d0]
jbe 0x408668
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408679
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4af7d4]
call fcn.004084f4
jmp 0x40867e
cmp edi, dword [ebp - 0xc]
jae 0x408642
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40872d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40872d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a30
push dword [ebp - 0x164]
push 0x408768
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a30
push dword [ebp - 0x168]
push 0x408778
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a30
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406de8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408752
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406840
ret
Function at 0x40877c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x408962
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b4b58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x4b4b70]
cmp ax, word [ebp - 2]
jne 0x4087d4
mov eax, dword [ebp - 6]
mov edx, 0x4b4b74
mov ecx, 0x55
call fcn.00406a30
push 0x4b4b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40894c
push 0x4b4b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406848
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408914
cmp byte [0x4b4b54], 0
je 0x4088ca
call dword [0x4b4b4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4b4b50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4088c3
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4b4b48]
test al, al
je 0x40889c
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004041d4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4b4b48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x408891
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x40888d
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x40887a
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.004069f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408914
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4b4b50]
cmp dword [ebp - 0x10], 0
je 0x4088c2
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004085e4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x408914
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x4088f9
mov eax, dword [ebp - 6]
mov edx, 0x40897c
call fcn.00406c44
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004085e4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406c44
mov eax, dword [ebp - 6]
push 0x4b4b58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4b4b70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004068d4
push eax
push 0x4b4b74
call sub.kernel32.dll_lstrcpynW
push 0x4b4b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408969
lea eax, [ebp - 0x1c]
call fcn.00406838
ret
Function at 0x408ba0
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.00406830
xor eax, eax
push ebp
push 0x408d85
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408be0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408bfa
push 0x105
mov eax, dword [ebp - 4]
call fcn.004068d4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408d6f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408d94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408c89
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408d94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408c89
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408dc8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408c89
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408dfc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408d6f
xor eax, eax
push ebp
push 0x408d68
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004089a4
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 0x408cf8
mov eax, dword [ebp - 0x10]
call fcn.004041d4
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.004069f4
jmp 0x408d43
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408e3c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408d43
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408e3c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004069f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d6f
cmp dword [ebp - 8], 0
je 0x408d5e
mov eax, dword [ebp - 8]
call fcn.004041f0
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 0x408d8c
lea eax, [ebp - 4]
call fcn.00406838
ret
Function at 0x409050
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406830
mov eax, dword [ebp - 0x21c]
call fcn.00406830
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4091ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406848
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004068d4
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x4090f0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409102
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4090ed
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4091bb
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x40912b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408ba0
cmp dword [ebp - 0x220], 0
je 0x409163
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00408f44
pop ecx
mov ebx, eax
jmp 0x4091bb
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040877c
mov eax, dword [ebp - 0x224]
call fcn.00408f44
pop ecx
mov ebx, eax
test bl, bl
jne 0x4091ae
cmp byte [0x4b4b54], 0
jne 0x4091ae
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040877c
mov eax, dword [ebp - 0x228]
call fcn.00408f44
pop ecx
mov ebx, eax
test bl, bl
jne 0x4091bb
push ebp
call fcn.00408ff4
pop ecx
mov ebx, eax
test bl, bl
je 0x4091d1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091f6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406840
ret

Function at 0x409968
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