joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451ed3
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 + 0x4852d8]
je 0x451eee
inc edi
cmp edi, 0x17
jb 0x451edf
cmp edi, 0x17
jae 0x45206e
push ebp
push 3
call fcn.0045df35
cmp eax, 1
pop ecx
je 0x45203a
push 3
call fcn.0045df35
test eax, eax
pop ecx
jne 0x451f22
cmp dword [0x485010], 1
je 0x45203a
cmp ebx, 0xfc
je 0x45206d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x488c60
push ebp
call fcn.0044ec0c
add esp, 0xc
test eax, eax
je 0x451f58
push esi
push esi
push esi
push esi
push esi
call fcn.0044a602
add esp, 0x14
push 0x104
mov esi, 0x488c79
push esi
push 0
mov byte [0x488d7d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x451f9c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044ec0c
add esp, 0xc
test eax, eax
je 0x451f9c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044a602
add esp, 0x14
push esi
call fcn.0044d310
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x451fe1
push esi
call fcn.0044d310
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x488f74
push 0x473b74
sub ecx, eax
push ecx
push eax
call fcn.0044d472
add esp, 0x14
test eax, eax
je 0x451fe1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044a602
add esp, 0x14
jmp 0x451fe3
xor esi, esi
push 0x473b70
push ebx
push ebp
call fcn.0044ef8d
add esp, 0xc
test eax, eax
je 0x452003
push esi
push esi
push esi
push esi
push esi
call fcn.0044a602
add esp, 0x14
push dword [edi*8 + 0x4852dc]
push ebx
push ebp
call fcn.0044ef8d
add esp, 0xc
test eax, eax
je 0x452025
push esi
push esi
push esi
push esi
push esi
call fcn.0044a602
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045dd78
add esp, 0xc
jmp 0x45206d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45206d
cmp ebp, 0xffffffff
je 0x45206d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4852dc]
push dword [esi]
call fcn.0044d310
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 0x45dd78
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00452e3c
xor ebx, ebx
cmp dword [0x48953c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45de4e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45df2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x474630
push edi
call esi
cmp eax, ebx
je 0x45df2e
push eax
call fcn.00452dce
mov dword [esp], 0x474620
push edi
mov dword [0x48953c], eax
call esi
push eax
call fcn.00452dce
mov dword [esp], 0x47460c
push edi
mov dword [0x489540], eax
call esi
push eax
call fcn.00452dce
mov dword [0x489544], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044ed1a
test eax, eax
pop ecx
pop ecx
je 0x45de1c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044a602
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45de4e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00452dce
cmp eax, ebx
pop ecx
mov dword [0x48954c], eax
je 0x45de4e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00452dce
pop ecx
mov dword [0x489548], eax
mov eax, dword [0x489548]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45ded3
cmp dword [0x48954c], ecx
je 0x45ded3
push eax
call fcn.00452e45
push dword [0x48954c]
mov esi, eax
call fcn.00452e45
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45ded3
cmp edi, ebx
je 0x45ded3
call esi
cmp eax, ebx
je 0x45dea0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45dea0
test byte [ebp - 0x18], 1
jne 0x45ded3
lea eax, [ebp - 0x10]
push eax
call fcn.0044ed51
test eax, eax
pop ecx
je 0x45debb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044a602
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45deca
or dword [ebp + 0x10], 0x200000
jmp 0x45df0e
or dword [ebp + 0x10], 0x40000
jmp 0x45df0e
mov eax, dword [0x489540]
cmp eax, dword [ebp - 8]
je 0x45df0e
push eax
call fcn.00452e45
cmp eax, ebx
pop ecx
je 0x45df0e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45df0e
mov eax, dword [0x489544]
cmp eax, dword [ebp - 8]
je 0x45df0e
push eax
call fcn.00452e45
cmp eax, ebx
pop ecx
je 0x45df0e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48953c]
call fcn.00452e45
cmp eax, ebx
pop ecx
je 0x45df2e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45df30
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4639b2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x484ea8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00463947
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004498a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x463a01
cmp dword [ebp - 0x1c], 5
jb 0x463a19
jmp 0x463a15
cmp dword [ebp - 0x10], 1
jne 0x463a19
cmp dword [ebp - 0x1c], 4
ja 0x463a15
jne 0x463a19
cmp dword [ebp - 0x18], 0
jbe 0x463a19
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x476024
call fcn.00463838
test eax, eax
jge 0x463a3a
mov byte [0x486360], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00448c24
add ebp, 0x78
leave
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x46479c
call fcn.0044d441
mov dword [eax], esi
call fcn.0044d42e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0044a6fe
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x464778
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4647cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044d454
pop ecx
call fcn.0044d42e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4647f2
test al, 1
je 0x4647f2
test byte [esp + 0xc], 2
je 0x4647f2
call fcn.0044d441
mov dword [eax], 5
call fcn.0044d42e
mov dword [eax], 0xd
jmp 0x4647c2
xor eax, eax
pop esi
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x407684
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a390
test esi, esi
jne 0x4076ba
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.0040a528
jmp 0x4076d8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004075c8
mov edi, eax
test esi, esi
je 0x4076d8
cmp dword [ebx], 0
je 0x4076d8
dec esi
jmp 0x4076c1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408f58
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409418
mov byte [esp], al
cmp byte [esp], 0
jne 0x4090e1
test edi, edi
je 0x4090e1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409021
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408ffc
cmp edi, 0xffffffff
je 0x408fbd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408fbd
mov byte [esp], 0
jmp 0x4090e1
cmp dword [esi], 1
jg 0x408ffc
cmp dword [esi], 0
jne 0x408fee
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408fee
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4090e1
lea eax, [esp + 0xc]
call fcn.00408c0c
dec ebp
test ebp, ebp
jg 0x408fa2
cmp edi, 0xffffffff
je 0x409021
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40901f
mov byte [esp], 0
jmp 0x4090e1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408f66
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409021
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040915c
mov edx, eax
mov ebx, dword [0x53c8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409085
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409083
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409085
xor edi, edi
cmp byte [esp], 0
je 0x4090ab
mov ebx, dword [esi]
test bl, 1
jne 0x4090c1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40908b
mov byte [esp + 1], 1
jmp 0x4090c1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4090ab
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409038
cmp byte [esp], 0
je 0x4090e1
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409d70
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x53eb9c
cmp dword [ebp + 0xc], 2
jl 0x409d84
mov ebx, 0x53ebcc
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409dbc
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x405200
mov dword [0x53c01c], eax
mov eax, 0x405208
mov dword [0x53c020], eax
mov eax, ebx
call fcn.00409c54
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x409df1
cmp al, 3
jge 0x409df1
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409e02
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409e0d
call dword [ecx + eax*4]
cmp dword [0x53c040], 0
jne 0x409e23
mov byte [0x53c048], 1
fnstcw word [0x53302c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.0040a0c0
call fcn.00409d04
ret 4

Function at 0x40a028
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53c058], 0
je 0x40a08f
cmp word [0x53c344], 0xd7b2
jne 0x40a051
cmp dword [0x53c34c], 0
jbe 0x40a051
mov eax, 0x53c340
call dword [0x53c35c]
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
mov eax, 0x40a0bc
call fcn.0040aba8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x533036], 0
jne 0x40a0ab
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a250
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x533038], 0
je 0x40a27b
mov edx, edi
mov eax, esi
call dword [0x533038]
mov ebx, eax
jmp 0x40a28c
mov eax, 8
call fcn.00406f84
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x53c059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a218
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a2bc
mov eax, ebx
call fcn.00406fa0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40da3c
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 0x40dba3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a390
cmp si, word [0x533a18]
jb 0x40dad4
cmp si, word [0x533c18]
ja 0x40dad4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dad4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x533a18]
jae 0x40daae
mov edi, ebx
dec edi
jmp 0x40dacf
cmp si, word [ebx*8 + 0x533a18]
jbe 0x40dabe
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40dacf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x533a1c]
call fcn.0040d958
jmp 0x40dad4
cmp edi, dword [ebp - 8]
jae 0x40da98
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40db83
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40db83
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.0040aea8
push dword [ebp - 0x160]
push 0x40dbc0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aea8
push dword [ebp - 0x164]
push 0x40dbd0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aea8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b0e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dbaa
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a3f0
pop eax
jmp eax
Function at 0x40dd58
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 0x40de5e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x53ec14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x53ec2c]
jne 0x40dda4
mov eax, esi
mov edx, 0x53ec2e
mov ecx, 0x55
call fcn.0040aea8
push 0x53ec14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40de46
push 0x53ec14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a390
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40de13
cmp byte [0x53ec10], 0
je 0x40ddd8
mov edx, esi
mov eax, ebx
call fcn.0040dc3c
jmp 0x40de13
mov edx, esi
mov eax, ebx
call fcn.0040da3c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40de13
cmp dword [esi], 0
je 0x40ddfc
mov eax, esi
mov edx, 0x40de78
call fcn.0040b000
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040da3c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b000
push 0x53ec14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x53ec2c], bx
mov eax, dword [esi]
call fcn.0040adf4
mov ecx, eax
mov eax, 0x53ec2e
mov edx, 0xaa
call fcn.0040d8b8
push 0x53ec14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de65
lea eax, [ebp - 4]
call fcn.0040a390
pop eax
jmp eax
Function at 0x40e0a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a484
xor eax, eax
push ebp
push 0x40e2c8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e0e6
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e100
mov eax, dword [ebp - 4]
call fcn.0040adf4
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d8b8
cmp word [ebp - 0x21e], 0
je 0x40e2ab
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e2d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e1cf
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e2d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e1cf
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e314
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e1cf
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e314
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e1cf
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e348
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e1cf
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e37c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e2ab
xor eax, eax
push ebp
push 0x40e2a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040dea0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e232
mov eax, dword [ebp - 0x14]
call fcn.00406f84
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ae54
jmp 0x40e27d
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e3bc
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e27d
mov eax, dword [ebp - 0x14]
call fcn.00406f84
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e3bc
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ae54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e2ab
cmp dword [ebp - 0xc], 0
je 0x40e298
mov eax, dword [ebp - 0xc]
call fcn.00406fa0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e2cf
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a3f0
pop eax
jmp eax
Function at 0x40e5dc
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.0040a484
xor eax, eax
push ebp
push 0x40e69e
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
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.0040aea8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b058
mov eax, dword [ebx]
call fcn.0040e484
test al, al
jne 0x40e679
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aea8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b058
mov eax, dword [ebx]
call fcn.0040e484
test al, al
jne 0x40e679
mov eax, ebx
call fcn.0040a390
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e6a5
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a3f0
lea eax, [ebp - 4]
call fcn.0040a390
pop eax
jmp eax

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