joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bf9f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x43bfb9
call fcn.004099fb
mov esi, dword [eax + 0xc]
push dword [0x575d90]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43bfd7
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x43bfcf
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x43c004
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x43bfd1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0043becd
mov esi, eax
jmp 0x43bff6

Function at 0x469147
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0040fb63
call fcn.00401cd5
cmp eax, esi
pop esi
jne 0x469163
mov ecx, 0x574d48
jmp fcn.00413e63
ret

Function at 0x4acb49
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004ac808
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4acb93
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040f773
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405564
jmp 0x4acb9e
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00414c85
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4acba4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041170d
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4acbe1
call fcn.004ac808
mov dword [esi + 0xc], 1
jmp 0x4acbe6
call fcn.004ac808
cmp dword [esi], 0
je 0x4acc2f
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4acc07
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040f773
jmp 0x4acc19
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401720
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405564
jmp 0x4acc53
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4acc53
push dword [esi]
push dword [ebp + 8]
call fcn.00414c85
pop esi
pop ebp
ret 0xc
Function at 0x4c3ad7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.004c3248
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004c31fd
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.004c3248
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004c31fd
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.004c3248
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004c31fd
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004c3238
lahf
mov al, byte [0xa580ba9a]
int3
Function at 0x4e2509
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e2521
mov edi, dword [esi + 0xc]
jmp 0x4e2561
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e253a
call fcn.00409dc9
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e254f
call fcn.00409dc9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e2561
call fcn.00409dc9
call fcn.004099fb
cmp dword [eax + 0x3c], 0
je 0x4e2576
push edi
mov ecx, ebx
call fcn.004e13c7
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e2423
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e2594
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e25a0
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x504242
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x571ce0]
jne 0x50424c
repz ret
jmp fcn.0050acb4
Function at 0x516cd0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x571ce0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0050bf58
and dword [ebp - 0x14], 0
cmp dword [0x5793dc], 0
mov dword [ebp - 0x18], eax
jne 0x516d83
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x516e2b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x516e2b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x550b94
push ebx
mov dword [0x5793dc], eax
call edi
push eax
call esi
push 0x550b80
push ebx
mov dword [0x5793e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5793e4], eax
call edi
push eax
call esi
mov dword [0x5793ec], eax
test eax, eax
je 0x516d83
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5793e8], eax
mov eax, dword [0x5793e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x516ddc
cmp dword [0x5793ec], ecx
je 0x516ddc
push eax
call esi
push dword [0x5793ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x516ddc
test ebx, ebx
je 0x516ddc
call edi
test eax, eax
je 0x516dd3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x516dd3
test byte [ebp - 8], 1
jne 0x516ddc
or dword [ebp + 0x10], 0x200000
jmp 0x516e0f
mov eax, dword [0x5793e0]
cmp eax, dword [ebp - 0x18]
je 0x516e0f
push eax
call esi
test eax, eax
je 0x516e0f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x516e0f
mov eax, dword [0x5793e4]
cmp eax, dword [ebp - 0x18]
je 0x516e0f
push eax
call esi
test eax, eax
je 0x516e0f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5793dc]
call esi
test eax, eax
je 0x516e2b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x516e2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00504242
leave
ret
Function at 0x1002847c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100284bb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100284bb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100284bb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100284bb
cmp dword [ecx + 0x74], 0xe
jbe 0x100284bb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002ae44
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002aee1
push ebx
push esi
call fcn.1002ae0d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002ada1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002ae8e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002aee0
push edi
push eax
call fcn.10029742
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002aeae
call fcn.10029790
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002aedf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002ada1
add esp, 0x20
test eax, eax
jne 0x1002aecd
push edi
call fcn.10029790
jmp 0x1002aed5
push ebx
call fcn.10029790
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002b14e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100332e0
push 0x100332d8
push str.FlsAlloc
push 0x1f
call fcn.1002b06a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b182
push dword [ebp + 8]
mov ecx, esi
call dword [0x10031150]
call esi
jmp 0x1002b188
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002b1cc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100332f0
push 0x100332e8
push str.FlsGetValue
push 0x21
call fcn.1002b06a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b203
push dword [ebp + 8]
mov ecx, esi
call dword [0x10031150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002b20b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100332f8
push 0x100332f0
push str.FlsSetValue
push 0x22
call fcn.1002b06a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b245
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10031150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10030750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003077d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003077d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404678
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.004073fc
test esi, esi
jne 0x4046b0
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.00407538
jmp 0x4046ce
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040455c
mov edi, eax
test esi, esi
je 0x4046ce
cmp dword [ebx], 0
je 0x4046ce
dec esi
jmp 0x4046b7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406538
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x590054], 0
je 0x406599
cmp word [0x590330], 0xd7b2
jne 0x406561
cmp dword [0x590338], 0
jbe 0x406561
mov eax, 0x59032c
call dword [0x590348]
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 0x4065c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x587030], 0
jne 0x4065b5
push 0
push 0x5877a0
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406744
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 [0x587038], 0
je 0x40676a
mov edx, esi
mov eax, ebx
call dword [0x587038]
jmp 0x406779
mov eax, 8
call fcn.004042a4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x590055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40670c
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 0x409730
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 0x409897
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004073fc
cmp si, word [0x5877dc]
jb 0x4097ca
cmp si, word [0x5879dc]
ja 0x4097ca
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4097ca
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5877dc]
jae 0x4097a4
mov edi, ebx
dec edi
jmp 0x4097c5
cmp si, word [ebx*8 + 0x5877dc]
jbe 0x4097b4
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4097c5
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5877e0]
call fcn.00409640
jmp 0x4097ca
cmp edi, dword [ebp - 0xc]
jae 0x40978e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409879
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409879
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.0040760c
push dword [ebp - 0x164]
push 0x4098b4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0040760c
push dword [ebp - 0x168]
push 0x4098c4
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0040760c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004079c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40989e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004073f4
ret
Function at 0x4098c8
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 0x409aae
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x592b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x592b74]
cmp ax, word [ebp - 2]
jne 0x409920
mov eax, dword [ebp - 6]
mov edx, 0x592b78
mov ecx, 0x55
call fcn.0040760c
push 0x592b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409a98
push 0x592b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004073fc
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409a60
cmp byte [0x592b58], 0
je 0x409a16
call dword [0x592b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x592b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x409a0f
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 [0x592b4c]
test al, al
je 0x4099e8
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004042a4
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 [0x592b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4099dd
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4099d9
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4099c6
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.004075b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a60
movzx eax, word [ebp - 0x16]
push eax
call dword [0x592b54]
cmp dword [ebp - 0x10], 0
je 0x409a0e
mov eax, dword [ebp - 0x10]
call fcn.004042c0
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00409730
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x409a60
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x409a45
mov eax, dword [ebp - 6]
mov edx, 0x409ac8
call fcn.00407820
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00409730
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00407820
mov eax, dword [ebp - 6]
push 0x592b5c
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x592b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00407488
push eax
push 0x592b78
call sub.kernel32.dll_lstrcpynW
push 0x592b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ab5
lea eax, [ebp - 0x1c]
call fcn.004073ec
ret
Function at 0x409cec
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.004073e4
xor eax, eax
push ebp
push 0x409ed1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409d2c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409d46
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407488
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409ebb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ee0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409dd5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ee0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409dd5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409f14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409dd5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409f48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409ebb
xor eax, eax
push ebp
push 0x409eb4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409af0
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 0x409e44
mov eax, dword [ebp - 0x10]
call fcn.004042a4
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.004075b8
jmp 0x409e8f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409f88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409e8f
mov eax, dword [ebp - 0x10]
call fcn.004042a4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409f88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004075b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ebb
cmp dword [ebp - 8], 0
je 0x409eaa
mov eax, dword [ebp - 8]
call fcn.004042c0
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 0x409ed8
lea eax, [ebp - 4]
call fcn.004073ec
ret
Function at 0x40a19c
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.004073e4
mov eax, dword [ebp - 0x21c]
call fcn.004073e4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a33b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004073fc
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00407488
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 0x40a23c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a24e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a239
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a307
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 0x40a277
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.00409cec
cmp dword [ebp - 0x220], 0
je 0x40a2af
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040a090
pop ecx
mov ebx, eax
jmp 0x40a307
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004098c8
mov eax, dword [ebp - 0x224]
call fcn.0040a090
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a2fa
cmp byte [0x592b58], 0
jne 0x40a2fa
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004098c8
mov eax, dword [ebp - 0x228]
call fcn.0040a090
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a307
push ebp
call fcn.0040a140
pop ecx
mov ebx, eax
test bl, bl
je 0x40a31d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040760c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a342
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004073f4
ret

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