joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1453bbd
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100928f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [ebp + 8], 0
je 0x1453be7
cmp dword [ebp + 0xc], 0
jne 0x1453be1
cmp dword [ebp + 0x10], 0
je 0x1453be7
cmp dword [ebp + 0x14], 0
jne 0x1453beb
xor al, al
jmp 0x1453c4f
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
push 0x33
call fcn.01453c02
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01496651
mov esp, ebp
pop ebp
ret

Function at 0x145404d
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100928f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [ebp + 8], 0
je 0x1454077
cmp dword [ebp + 0xc], 0
jne 0x1454071
cmp dword [ebp + 0x10], 0
je 0x1454077
cmp dword [ebp + 0x14], 0
jne 0x1454079
jmp 0x14540cc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push 0x33
call 0x145408c
add dword [esp], 5
retf
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01496651
mov esp, ebp
pop ebp
ret

Function at 0x145412d
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100928f0]
xor eax, ebp
mov dword [ebp - 4], eax
xorpd xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
push 0x33
call 0x145414d
add dword [esp], 5
retf

Function at 0x145bbad
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x145bbf6
mov al, byte [esi]
push eax
call fcn.01468f9d
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x145bbd4
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x1464c3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x71e], 0
je 0x1464cc0
cmp dword [edi + 0x1b0], 0
je 0x1464c8a
push esi
push 1
push edi
call fcn.01457b1d
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.01457b1d
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x1464cc0
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x10081650
push 2
push eax
call fcn.014972c2
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.014972c2
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x146733d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.0144a1dd
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.014a336f
Function at 0x146cdad
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x146cdcb
cmp dword [esi + 0x78], 0
je 0x146cdcb
push 2
push 3
push esi
call fcn.014695bd
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0146c7ad
add esp, 4
test esi, esi
je 0x146cdeb
cmp dword [esi + 0x78], 0
je 0x146cdeb
push 3
push esi
call fcn.014695fd
add esp, 8
pop esi
pop ebp
ret
Function at 0x147896d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0149bf51
add esp, 0x18
test eax, eax
je 0x147898f
cmp eax, 0xffffffff
jne 0x1478991
xor eax, eax
pop ebp
ret

Function at 0x147e64d
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov esi, dword [ebp + 8]
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 2
je 0x147e68a
push 0x100861ec
push esi
call fcn.01464ccd
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x147e6a1
push ecx
push 0x10086208
push esi
call fcn.01464d8d
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x147e6ba
push ebx
push esi
call fcn.0147e30d
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x147e6cf
push esi
call fcn.0147d33d
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x147e6e4
push esi
call fcn.0147e2ed
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x147e6f4
push esi
call fcn.0147e52d
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1494e1d
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x100928cc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1494e4a
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x1494e91
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x1494e97
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1494ef7
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec dword [ebp + 0x10]
jne 0x1494ebd
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x1494f24
nop
mov eax, dword [esi + 4]
push 1
push 0x10089165
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x10089164
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x1494efd
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x150ec79
Capabilities:
Encode data using xor

Disassembly:
and byte [eax], 0x59
sub byte [esi], dh
dec esp
sahf
into
adc al, al
inc esp
cld
lahf
mov eax, 0xe84b7018
mov ecx, dword [esi + 0x54990562]
mov dword [ebp - 0x1047e341], esp
jecxz 0x150ec69
popfd
push ds
pop edx
sub byte [edx - 0xa396914], ah
ficomp word [edi]
mov dh, 0x95
sbb byte [edx - 0x3de40a0e], bl
insd dword es:[edi], dx
adc al, 0x5f
std
push edi
test dword [edx - 0x5c5a4280], eax
pop ebx
cmpsb byte [esi], byte es:[edi]
cdq
fcmovnu st(0), st(4)
ja 0x150ebea
sar esp, 1
test al, 0xa5
enter 0xffffffffffffb1ec, 0xffffffffffffffc9
add bl, byte [esi + eax*2 - 0x4ea24d65]
std
mov byte [esi - 0x22044e88], dl
movsd dword es:[edi], dword [esi]
jns 0x150ec34
mov edx, 0x7ab2efa5
in al, dx
test ebx, ebx
push eax
pop edx
pop edx
rep lodsb al, byte [esi]
push es
cmp al, 0x5a
mov eax, 0x22bf7160
int 0x72
out dx, eax
insd dword es:[edi], dx
jge 0x150ebcb
sub byte [eax], ch
adc byte [ebx], dh
in eax, dx
sbb dword [eax + 0x5a], eax
hlt
inc esp
test cl, ah
xchg esp, eax
mov bh, 0x5c
jns 0x150ec03
lodsd eax, dword [esi]
nop
xor ecx, dword [ebx + esi*2 - 0x67]
jb 0x150eca8
invalid
pop ecx
pop ecx
test al, 0x53
push esp
or byte [edi + ecx*2], bh
mov dword [0xd9225a5f], eax
cmp al, 0xeb
cmp dword [edi - 0xe], edx
aas
loopne 0x150ec7d
jg 0x150ec36
leave
sub eax, 0x3759159a
salc
aad 0xb0
movsd dword es:[edi], dword [esi]
push ebp
insb byte es:[edi], dx
xchg ebp, eax
push esp
mov ch, 0x2e
xor eax, 0xc22b5a34
push es
xor byte [edx + edx*8 - 0x62], dh
lahf
add eax, dword [ecx]
pop esi
rcr byte [esi + 0x5e01039f], cl
invalid
Function at 0x401210
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x41c7f0]
sub esp, 0x3f0
cmp eax, 0x63
ja 0x401281
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x3f8]
lea edx, [esp + 4]
push ecx
push edx
push 0
push str.InstallPath
push eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401281
mov eax, dword [0x41c7f0]
lea ecx, [esp + 8]
lea edx, [eax + eax*4]
inc eax
mov dword [0x41c7f0], eax
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edx, [edx*8 + 0x403980]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x401277
add esp, 0x3f0
ret

Function at 0x401400
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
sub esp, 0x314
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x401523
lea eax, [esp]
push eax
push 0x40242c
push 1
push 0
push 0x40243c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401517
mov eax, dword [esp]
mov edx, dword [esp + 0x318]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
push 0x403980
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x40244c
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x40150d
push esi
push edi
push 0
lea edx, [esp + 0x14]
push 0x10
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov word [esp + 0x114], 0
repne scasb al, byte es:[edi]
mov ax, word [0x403020]
mov ecx, 0x81
mov word [edi - 1], ax
xor eax, eax
lea edi, [esp + 0x116]
mov esi, 0x403064
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push 0x104
repne scasb al, byte es:[edi]
dec edi
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
push 0xffffffffffffffff
push edx
push 1
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x114]
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
add esp, 0x314
jmp dword [sym.imp.ole32.dll_CoUninitialize]
add esp, 0x314
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40480c
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.00406fc0
test esi, esi
jne 0x404842
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.00407148
jmp 0x404860
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004046f0
mov edi, eax
test esi, esi
je 0x404860
cmp dword [ebx], 0
je 0x404860
dec esi
jmp 0x404849
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406094
mov byte [esp], al
cmp byte [esp], 0
jne 0x405e31
test edi, edi
je 0x405e31
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d68
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405d43
cmp edi, 0xffffffff
je 0x405d07
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d07
mov byte [esp], 0
jmp 0x405e31
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405d43
test ebx, ebx
jne 0x405d3c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025f0
test eax, eax
jne 0x405d3c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405e31
pause
dec ebp
test ebp, ebp
jg 0x405cec
cmp edi, 0xffffffff
je 0x405d68
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d66
mov byte [esp], 0
jmp 0x405e31
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405cb6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025f0
cmp ebx, eax
jne 0x405d68
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405ea4
mov edx, eax
mov ebx, dword [0x54e8cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405dcf
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405dcd
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405dcf
xor edi, edi
cmp byte [esp], 0
je 0x405df8
mov ebx, dword [esi]
test bl, 1
jne 0x405e11
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025f0
cmp ebx, eax
jne 0x405dd5
mov byte [esp + 1], 1
jmp 0x405e11
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025f0
cmp ebx, eax
jne 0x405df8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405d82
cmp byte [esp], 0
je 0x405e31
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406c70
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54e054], 0
je 0x406cd1
cmp word [0x54e330], 0xd7b2
jne 0x406c99
cmp dword [0x54e338], 0
jbe 0x406c99
mov eax, 0x54e32c
call dword [0x54e348]
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 0x406cfc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x548028], 0
jne 0x406ced
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406e7c
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 [0x54802c], 0
je 0x406ea7
mov edx, edi
mov eax, esi
call dword [0x54802c]
mov ebx, eax
jmp 0x406eb8
mov eax, 8
call fcn.00404424
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x54e055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406e44
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 0x406eed
mov edx, 8
mov eax, ebx
call fcn.00404440
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4093bc
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 0x409521
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406fc0
cmp si, word [0x5487dc]
jb 0x409454
cmp si, word [0x5489dc]
ja 0x409454
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409454
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5487dc]
jae 0x40942e
mov edi, ebx
dec edi
jmp 0x40944f
cmp si, word [ebx*8 + 0x5487dc]
jbe 0x40943e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40944f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5487e0]
call fcn.004092cc
jmp 0x409454
cmp edi, dword [ebp - 8]
jae 0x409418
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409503
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409503
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.00407c28
push dword [ebp - 0x160]
push 0x40953c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407c28
push dword [ebp - 0x164]
push 0x40954c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407c28
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409528
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407020
ret
Function at 0x4096d4
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 0x4097d7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x550b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x550b6e]
jne 0x409720
mov eax, esi
mov edx, 0x550b70
mov ecx, 0x55
call fcn.00407c28
push 0x550b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4097c1
push 0x550b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406fc0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40978f
cmp byte [0x550b54], 0
je 0x409754
mov edx, esi
mov eax, ebx
call fcn.004095b8
jmp 0x40978f
mov edx, esi
mov eax, ebx
call fcn.004093bc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40978f
cmp dword [esi], 0
je 0x409778
mov eax, esi
mov edx, 0x4097f0
call fcn.00407d80
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004093bc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407d80
push 0x550b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x550b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407b8c
push eax
push 0x550b70
call sub.kernel32.dll_lstrcpynW
push 0x550b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097de
lea eax, [ebp - 4]
call fcn.00406fc0
ret
Function at 0x409a0c
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.004070a4
xor eax, eax
push ebp
push 0x409c31
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409a4c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409a66
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407b8c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409c1b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c40
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b35
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c40
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b35
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b35
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b35
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cb0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b35
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ce4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409c1b
xor eax, eax
push ebp
push 0x409c14
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409818
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 0x409ba4
mov eax, dword [ebp - 0x10]
call fcn.00404424
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.00407bec
jmp 0x409bef
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409d24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409bef
mov eax, dword [ebp - 0x10]
call fcn.00404424
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409d24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407bec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c1b
cmp dword [ebp - 8], 0
je 0x409c0a
mov eax, dword [ebp - 8]
call fcn.00404440
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 0x409c38
lea eax, [ebp - 4]
call fcn.00406fc0
ret