joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452db4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45abdc]
cmp dword [eax + 0x30], 0
je 0x452e5e
cmp dword [ebx + 0x94], 0
jne 0x452e58
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452d44
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452e58
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x452e1e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452e58
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413990
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452e2d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4539c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4539f5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x453a02
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454ae4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454b25
mov eax, esi
call fcn.0043addc
test al, al
je 0x454b25
mov eax, dword [ebx + 0x84]
call fcn.0043ab04
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454b25
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ab04
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x100024f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret

Function at 0x10004f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10004f3e
xor eax, eax
jmp 0x10004f5f
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x8de2b0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de2b6
pop ebp
sub ebp, 6
sub ebp, 0x4de2b0
jmp 0x8de314
jmp 0x8de31d
mov eax, 0x4de2b0
add eax, ebp
add eax, 0x93
mov ecx, 0x625
mov edx, 0xf0fafe67
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de334
jmp 0x8de347
or eax, 0x77670f27
packuswb mm5, qword [bp + di + 0x674b]
out 0x97, al
xchg edi, eax
hlt
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x55552e7c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2a3c508f
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4020b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414050]
jne 0x4020bf
repz ret
jmp fcn.004031c6

Function at 0x408ad9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040379a
and dword [ebp - 4], 0
cmp dword [0x415e40], 0
mov ebx, eax
jne 0x408b8a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c3b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c3b
push eax
call fcn.00403728
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x415e40], eax
call esi
push eax
call fcn.00403728
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x415e44], eax
call esi
push eax
call fcn.00403728
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x415e48], eax
call esi
push eax
call fcn.00403728
pop ecx
mov dword [0x415e50], eax
test eax, eax
je 0x408b8a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403728
pop ecx
mov dword [0x415e4c], eax
mov eax, dword [0x415e4c]
cmp eax, ebx
je 0x408be2
cmp dword [0x415e50], ebx
je 0x408be2
push eax
call fcn.004037a3
push dword [0x415e50]
mov esi, eax
call fcn.004037a3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408be2
test edi, edi
je 0x408be2
call esi
test eax, eax
je 0x408bd9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408bd9
test byte [ebp - 0xc], 1
jne 0x408be2
or dword [ebp + 0x10], 0x200000
jmp 0x408c1b
mov eax, dword [0x415e44]
cmp eax, ebx
je 0x408c1b
push eax
call fcn.004037a3
pop ecx
test eax, eax
je 0x408c1b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c1b
mov eax, dword [0x415e48]
cmp eax, ebx
je 0x408c1b
push eax
call fcn.004037a3
pop ecx
test eax, eax
je 0x408c1b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x415e40]
call fcn.004037a3
pop ecx
test eax, eax
je 0x408c3b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c3d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40faf7
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x414050]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov eax, ebp
mov dword [esp + 0x38], 2
call fcn.0040b190
mov eax, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
lea eax, [esp + 0x54]
mov dword [esp + 0x24], ebx
call fcn.0040b030
mov ecx, dword [esp + 0x50]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40c5d4
lea edx, [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
lea eax, [esp + 0x64]
mov dword [esp + 0x24], ebx
call fcn.0040b030
mov ecx, dword [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push ecx
call esi
cmp eax, ebx
jne 0x40c5c9
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x40c5c9
add eax, 2
push eax
call fcn.004020aa
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40c5c9
lea edx, [esp + 0x14]
push edx
push edi
lea eax, [esp + 0x24]
push eax
push ebx
lea eax, [esp + 0x64]
call fcn.0040b030
mov ecx, dword [esp + 0x28]
push eax
push ecx
call esi
cmp eax, ebx
jne 0x40c5c0
mov eax, dword [esp + 0x14]
cmp eax, 1
jbe 0x40c5c0
shr eax, 1
dec eax
mov edx, edi
lea esi, [esp + 0x24]
call fcn.0040b140
mov esi, ebp
mov byte [esp + 0x38], 3
call fcn.0040b360
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 2
call fcn.0040b180
push edi
call fcn.004024ee
add esp, 4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x48]
mov byte [esp + 0x38], 1
call fcn.0040b180
lea ecx, [esp + 0x54]
mov byte [esp + 0x38], bl
call fcn.0040b180
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x40463c
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.004073ec
test esi, esi
jne 0x404674
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.00407528
jmp 0x404692
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404580
mov edi, eax
test esi, esi
je 0x404692
cmp dword [ebx], 0
je 0x404692
dec esi
jmp 0x40467b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40649c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5b3054], 0
je 0x4064fd
cmp word [0x5b3330], 0xd7b2
jne 0x4064c5
cmp dword [0x5b3338], 0
jbe 0x4064c5
mov eax, 0x5b332c
call dword [0x5b3348]
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 0x406528
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5a9030], 0
jne 0x406519
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4066a8
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 [0x5a9038], 0
je 0x4066ce
mov edx, esi
mov eax, ebx
call dword [0x5a9038]
jmp 0x4066dd
mov eax, 8
call fcn.00404278
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5b3055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406670
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 0x409258
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 0x4093bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004073ec
cmp si, word [0x5a97f4]
jb 0x4092f2
cmp si, word [0x5a99f4]
ja 0x4092f2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4092f2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5a97f4]
jae 0x4092cc
mov edi, ebx
dec edi
jmp 0x4092ed
cmp si, word [ebx*8 + 0x5a97f4]
jbe 0x4092dc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4092ed
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5a97f8]
call fcn.00409168
jmp 0x4092f2
cmp edi, dword [ebp - 0xc]
jae 0x4092b6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4093a1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4093a1
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.004075ec
push dword [ebp - 0x164]
push 0x4093dc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004075ec
push dword [ebp - 0x168]
push 0x4093ec
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004075ec
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004079a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093c6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004073e4
ret
Function at 0x4093f0
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 0x4095d6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5b5b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x5b5b74]
cmp ax, word [ebp - 2]
jne 0x409448
mov eax, dword [ebp - 6]
mov edx, 0x5b5b78
mov ecx, 0x55
call fcn.004075ec
push 0x5b5b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4095c0
push 0x5b5b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004073ec
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409588
cmp byte [0x5b5b58], 0
je 0x40953e
call dword [0x5b5b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x5b5b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x409537
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 [0x5b5b4c]
test al, al
je 0x409510
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404278
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 [0x5b5b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x409505
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x409501
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4094ee
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00407598
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409588
movzx eax, word [ebp - 0x16]
push eax
call dword [0x5b5b54]
cmp dword [ebp - 0x10], 0
je 0x409536
mov eax, dword [ebp - 0x10]
call fcn.00404294
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00409258
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x409588
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x40956d
mov eax, dword [ebp - 6]
mov edx, 0x4095f0
call fcn.00407800
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00409258
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00407800
mov eax, dword [ebp - 6]
push 0x5b5b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x5b5b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00407478
push eax
push 0x5b5b78
call sub.kernel32.dll_lstrcpynW
push 0x5b5b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095dd
lea eax, [ebp - 0x1c]
call fcn.004073dc
ret
Function at 0x409814
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.004073d4
xor eax, eax
push ebp
push 0x4099f9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409854
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40986e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407478
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4099e3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a3c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4099e3
xor eax, eax
push ebp
push 0x4099dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409618
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 0x40996c
mov eax, dword [ebp - 0x10]
call fcn.00404278
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.00407598
jmp 0x4099b7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409ab0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4099b7
mov eax, dword [ebp - 0x10]
call fcn.00404278
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409ab0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407598
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099e3
cmp dword [ebp - 8], 0
je 0x4099d2
mov eax, dword [ebp - 8]
call fcn.00404294
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 0x409a00
lea eax, [ebp - 4]
call fcn.004073dc
ret
Function at 0x409cc4
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.004073d4
mov eax, dword [ebp - 0x21c]
call fcn.004073d4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409e63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004073ec
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407478
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 0x409d64
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409d76
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409d61
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409e2f
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 0x409d9f
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.00409814
cmp dword [ebp - 0x220], 0
je 0x409dd7
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409bb8
pop ecx
mov ebx, eax
jmp 0x409e2f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004093f0
mov eax, dword [ebp - 0x224]
call fcn.00409bb8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409e22
cmp byte [0x5b5b58], 0
jne 0x409e22
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004093f0
mov eax, dword [ebp - 0x228]
call fcn.00409bb8
pop ecx
mov ebx, eax
test bl, bl
jne 0x409e2f
push ebp
call fcn.00409c68
pop ecx
mov ebx, eax
test bl, bl
je 0x409e45
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004075ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409e6a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004073e4
ret

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