joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008450
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1002c50
call fcn.01004858
xor esi, esi
cmp dword [0x1009d48], esi
jne 0x1008494
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100847f
mov dword [0x1009d48], edi
jmp 0x1008494
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1008494
mov dword [0x1009d48], 2
mov eax, dword [0x1009d48]
cmp eax, 2
je 0x1008575
cmp eax, esi
je 0x1008575
cmp eax, 1
jne 0x10084d9
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x10084c2
mov eax, dword [0x1009c2c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x10084e0
xor eax, eax
jmp 0x1008587
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.010048b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1008516
cmp edi, esi
jne 0x1008531
lea eax, [ebx + ebx]
push eax
call fcn.010058fe
pop ecx
mov edi, eax
cmp edi, esi
je 0x10084d9
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1008564
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x100854e
push esi
push esi
jmp 0x1008554
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x1008570
push edi
call fcn.01005543
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1008587
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.01004891
ret

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

Disassembly:
pop ecx
lodsd eax, dword [esi]
inc ecx
lea edi, [eax + ebx]
jmp 0x1013075
cmp ecx, dword [edx + 0x18]
je 0x10130f6
push 0
jmp 0x1017d3c
ret
ja 0x1017d3d
xor eax, 0xe565bd0a
sbb eax, dword [esp + 4]
jne 0x101306b
lea edi, [ebx]
jmp 0x1013122
lea esi, [ebx]
add edi, dword [edx + 0x1c]
add esi, dword [edx + 0x24]
jmp 0x10131a3
sub dword [esp], eax
lea edi, [edi + 1]
pop eax
cmp byte [edi], 1
jmp 0x1013106
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
add esi, dword [edx + 0x20]
jmp 0x101306a
push ebx
lea esi, [esi + ecx*2]
movzx eax, word [esi]
jmp 0x10131d5
pop esi
add esi, dword [edi + eax*4]
ret 4
mov edx, ebx
mov esi, ebx
mov eax, ebx
jmp 0x1013182
pop eax
imul eax, eax, 0xf
push eax
movzx eax, byte [edi]
jmp 0x101315c
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10016040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x40f7bd
call esi
lea eax, [ebp - 8]
mov byte [0x40f7bd], 0xe9
push eax
mov dword [0x40f7be], 0x3aa5d3
push dword [ebp - 8]
push 5
push 0x40f7bd
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x41cf71
call esi
lea eax, [ebp - 8]
mov byte [0x41cf71], 0xe9
push eax
mov dword [0x41cf72], 0x396a8d
push dword [ebp - 8]
push 5
push 0x41cf71
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x418e67
call esi
lea eax, [ebp - 8]
mov byte [0x418e67], 0xe9
push eax
mov dword [0x418e68], 0x3a3ffa
push dword [ebp - 8]
push 5
push 0x418e67
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x406c3a
call esi
lea eax, [ebp - 8]
mov byte [0x406c3a], 0xe9
push eax
mov dword [0x406c3b], 0x3f6892
push dword [ebp - 8]
push 5
push 0x406c3a
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x428e11
call esi
lea eax, [ebp - 8]
mov byte [0x428e11], 0xe9
push eax
mov dword [0x428e12], 0x7f1d4
push dword [ebp - 8]
push 5
push 0x428e11
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x423100
call esi
lea eax, [ebp - 8]
mov byte [0x423100], 0xe9
push eax
mov dword [0x423101], 0x80b5f
push dword [ebp - 8]
push 5
push 0x423100
call esi
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10016c94]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x10017374]
cmp eax, dword [edi + 4]
jg 0x100011f6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x40
push 0x414d58
call esi
test eax, eax
je 0x1000119c
mov eax, 0x100012b0
mov byte [0x414d58], 0xe9
sub eax, 0x414d5d
mov dword [0x414d59], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x40
push 0x414d58
call esi
mov eax, dword [0x10017374]
cmp eax, dword [edi + 4]
jg 0x10001236
lea eax, [ebp - 8]
push eax
push 0x40
push 0x40
push 0x40940d
call esi
test eax, eax
je 0x100011e6
mov eax, 0x10001c90
mov byte [0x40940d], 0xe9
sub eax, 0x409412
mov dword [0x40940e], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x40
push 0x40940d
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10002244
mov esp, ebp
pop ebp
ret
push 0x10017374
call fcn.100022a3
add esp, 4
cmp dword [0x10017374], 0xffffffff
jne 0x10001163
push 0x1000e200
mov dword [0x10017378], 0x10013dd8
call fcn.1000260c
push 0x10017374
call fcn.10002252
add esp, 8
jmp 0x10001163
push 0x10017374
call fcn.100022a3
add esp, 4
cmp dword [0x10017374], 0xffffffff
jne 0x100011ad
push 0x1000e200
mov dword [0x10017378], 0x10013dd8
call fcn.1000260c
push 0x10017374
call fcn.10002252
add esp, 8
jmp 0x100011ad

Function at 0x10001280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000129e
push 0
push 0
push 0
push sym.Patch.dll_RageZone
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x1000564e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000568d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000568d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000568d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000568d
cmp dword [ecx + 0x74], 0xe
jbe 0x1000568d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10008517
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 0x100085b4
push ebx
push esi
call fcn.100084e0
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.10008474
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10008561
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100085b3
push edi
push eax
call fcn.100094d2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10008581
call fcn.10006fb9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100085b2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10008474
add esp, 0x20
test eax, eax
jne 0x100085a0
push edi
call fcn.10006fb9
jmp 0x100085a8
push ebx
call fcn.10006fb9
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 0x10008821
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010518
push 0x10010510
push str.FlsAlloc
push 0x1f
call fcn.1000873d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008855
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f124]
call esi
jmp 0x1000885b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000889f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010528
push 0x10010520
push str.FlsGetValue
push 0x21
call fcn.1000873d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100088d6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100088de
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10010530
push 0x10010528
push str.FlsSetValue
push 0x22
call fcn.1000873d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008918
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000f124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000dfb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000dfdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000dfdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x3abb5e91
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1d874a6b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403000
Capabilities:
Access peb ldr_data
Get file attributes
Get file size
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor eax, eax
add eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x428ee4], eax
mov eax, dword [0x428ee8]
xor edx, edx
mov ecx, 0x6cc1019a
div ecx
xor edx, edx
push str.X_Zpn_T.0WheLT_
push 0x38091fe5
push str._sVC__xwwZt7W_S
push str.c_T2_xxjnw
mov ecx, eax
xor ecx, 0x38
add ecx, 0xfb
mov dword [0x428ee8], ecx
or ecx, 0xf68e0d8e
mov eax, 0xc1
div ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
and eax, 0x7d
sub eax, esi
xor eax, 0x7b
mov dword [0x428ee8], eax
call fcn.0040398f
imul eax, eax, 0x58ce78a1
or eax, 0x4d
mov dword [0x428ee8], eax
jmp loc.00432000

Function at 0x403cd7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [0x428ee8]
push str._PZR2Fgyw9I
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, dword [ebp + 8]
mov ecx, eax
or esi, 0xd19f8a47
xor edx, edx
mov eax, 0x7a3cb5a5
div esi
xor edx, edx
and ecx, 0x772d
mov esi, eax
or esi, 0xe8b4c33e
mov eax, 0x7676
div esi
sub ecx, eax
lea eax, [edi + ecx]
pop edi
pop esi
pop ebp
ret

Function at 0x403eeb
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push str.m_w59EMikJ2N4K
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
mov eax, dword [ebp + 0xc]
not ecx
and ecx, dword [ebp + 8]
xor edx, edx
and ecx, 0x10
or ecx, 0x38435ceb
div ecx
pop ebp
ret

Function at 0x403f12
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push str.N_Y_IYTt_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 0xc]
add ecx, 0x7c1b904
and eax, 0x9b1
or ecx, 0x5776dec3
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
sub eax, ecx
sub eax, dword [ebp + 8]
pop ebp
ret

Function at 0x403f92
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x403fc0
mov ecx, dword [ebp - 4]
cmp ecx, 2
jl 0x403fc0
push dword [eax + ecx*4 - 4]
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
leave
ret
xor eax, eax
leave
ret
Function at 0x4044f4
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.00406b30
test esi, esi
jne 0x40452c
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.00406c6c
jmp 0x40454a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404438
mov edi, eax
test esi, esi
je 0x40454a
cmp dword [ebx], 0
je 0x40454a
dec esi
jmp 0x404533
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4060d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x444054], 0
je 0x406131
cmp word [0x444330], 0xd7b2
jne 0x4060f9
cmp dword [0x444338], 0
jbe 0x4060f9
mov eax, 0x44432c
call dword [0x444348]
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 0x40615c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44002c], 0
jne 0x40614d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408768
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 0x4088cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406b30
cmp si, word [0x4407d0]
jb 0x408802
cmp si, word [0x4409d0]
ja 0x408802
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408802
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4407d0]
jae 0x4087dc
mov edi, ebx
dec edi
jmp 0x4087fd
cmp si, word [ebx*8 + 0x4407d0]
jbe 0x4087ec
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4087fd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4407d4]
call fcn.00408678
jmp 0x408802
cmp edi, dword [ebp - 0xc]
jae 0x4087c6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4088b1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4088b1
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.00406d18
push dword [ebp - 0x164]
push 0x4088ec
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406d18
push dword [ebp - 0x168]
push 0x4088fc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d18
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004070c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4088d6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406b28
ret
Function at 0x408a88
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 0x408b8d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x446b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x446b74]
jne 0x408ad4
mov eax, esi
mov edx, 0x446b78
mov ecx, 0x55
call fcn.00406d18
push 0x446b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408b77
push 0x446b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406b30
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b45
cmp byte [0x446b58], 0
je 0x408b0a
mov edx, esi
mov eax, ebx
call fcn.00408968
jmp 0x408b45
mov edx, esi
mov eax, ebx
call fcn.00408768
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408b45
cmp dword [esi], 0
je 0x408b2e
mov eax, esi
mov edx, 0x408ba8
call fcn.00406f20
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408768
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406f20
push 0x446b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x446b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406bbc
push eax
push 0x446b78
call sub.kernel32.dll_lstrcpynW
push 0x446b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b94
lea eax, [ebp - 4]
call fcn.00406b20
ret
Function at 0x408dcc
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.00406b18
xor eax, eax
push ebp
push 0x408fb1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408e0c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408e26
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406bbc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408f9b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408fc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408eb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408fc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408eb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ff4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408eb5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409028
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408f9b
xor eax, eax
push ebp
push 0x408f94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408bd0
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 0x408f24
mov eax, dword [ebp - 0x10]
call fcn.004041a0
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.00406cdc
jmp 0x408f6f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409068
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408f6f
mov eax, dword [ebp - 0x10]
call fcn.004041a0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409068
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f9b
cmp dword [ebp - 8], 0
je 0x408f8a
mov eax, dword [ebp - 8]
call fcn.004041bc
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 0x408fb8
lea eax, [ebp - 4]
call fcn.00406b20
ret
Function at 0x40927c
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.00406b18
mov eax, dword [ebp - 0x21c]
call fcn.00406b18
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40941b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406b30
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406bbc
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 0x40931c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40932e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409319
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4093e7
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 0x409357
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.00408dcc
cmp dword [ebp - 0x220], 0
je 0x40938f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409170
pop ecx
mov ebx, eax
jmp 0x4093e7
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408a88
mov eax, dword [ebp - 0x224]
call fcn.00409170
pop ecx
mov ebx, eax
test bl, bl
jne 0x4093da
cmp byte [0x446b58], 0
jne 0x4093da
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408a88
mov eax, dword [ebp - 0x228]
call fcn.00409170
pop ecx
mov ebx, eax
test bl, bl
jne 0x4093e7
push ebp
call fcn.00409220
pop ecx
mov ebx, eax
test bl, bl
je 0x4093fd
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406d18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409422
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406b28
ret

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