joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4262b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0045eea0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004252d4
test al, al
jne 0x426319
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f2968]
mov dl, 1
mov eax, dword [0x423ef8]
call fcn.00447f04
call fcn.0045dcb4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042511c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x426918
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x426a40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.00425374
xor eax, eax
push ebp
push 0x426a1b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00425924
test al, al
je 0x4269ff
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004267f8
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0045e5f8
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4269ff
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0045eea0
push eax
push edi
push esi
call sub.ADVAPI32.DLL_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004252d4
test al, al
je 0x4269fb
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0045eea0
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0045eef0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004267f8
pop ecx
inc edi
dec ebx
jne 0x4269a3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426a22
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.00425374
ret
Function at 0x426a50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x426c9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.00425374
xor eax, eax
push ebp
push 0x426c74
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00425924
test al, al
je 0x426c58
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0045e5f8
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x426c58
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0045eea0
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004252d4
test al, al
je 0x426c4c
mov eax, dword [ebp - 4]
call fcn.0045eea0
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0045eef0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00426368
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x426c4c
xor eax, eax
push ebp
push 0x426c45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.00425374
xor eax, eax
push ebp
push 0x426c27
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045eea0
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.0045eef0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00425378
mov eax, dword [ebp - 4]
call fcn.0045eea0
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.0045eef0
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00426368
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x426c04
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00426918
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00426a50
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426c0b
mov eax, dword [ebp - 0x24]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x426adb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426c7b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.00425374
ret
Function at 0x442c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x442ce9
test eax, edx
je 0x442cec
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x442ca7
movzx eax, word [eax]
sub eax, ecx
jmp 0x442cce
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x442ccf
add ecx, 4
js 0x442cbf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x442ccc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x442cce
xor eax, eax
ret
test eax, eax
je 0x442cf8
test edx, edx
jne 0x442c98
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x446e84
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x446ebd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0045e5f8
jmp 0x446ec6
mov eax, ebx
mov edx, esi
call fcn.0045e850
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x446ed0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x446ef2
movzx eax, word [esp]
jmp 0x446ef4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x447bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x447cd5
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004479c0
mov esi, eax
mov eax, dword [0x4f26dc]
cmp byte [eax], 0
je 0x447c7d
mov eax, dword [0x4f26e4]
call fcn.0045c4a8
call fcn.0045c128
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x447b88]
call fcn.00460058
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x447cf0
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x447cb9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4f2548]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f29a0]
call fcn.0046014c
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447cdc
lea eax, [ebp - 4]
mov edx, dword [0x447b88]
call fcn.00460064
ret

Function at 0x448d30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x448e06
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0045e898
lea eax, [ebp - 4]
call fcn.0045ea00
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0045eea0
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x448df0
mov eax, ebx
call fcn.0045bf24
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x448de9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0045eea0
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x448dd3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x448e18
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x448dd3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448df0
mov eax, dword [ebp - 0x10]
call fcn.0045bf40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448e0d
lea eax, [ebp - 4]
call fcn.0045e490
ret
Function at 0x449630
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0045e940
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00461b48
mov edi, eax
cmp edi, 0x104
jbe 0x4495db
mov eax, edi
add eax, eax
call fcn.0045bf24
mov esi, eax
jmp 0x4495dd
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00461b48
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x449616
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x449600
mov eax, esp
cmp esi, eax
je 0x449623
mov eax, esi
call fcn.0045bf40
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x44965c
cmp bl, 0
je 0x449658
cmp bl, 0x41
jl 0x449653
cmp bl, 0x5a
jg 0x449653
or bl, 0x20
xor al, bl
inc esi
jmp 0x449637
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x44959c

Function at 0x449df4
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0045ef2c
add esp, 0x800
pop ebx
ret

Function at 0x45c334
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.0045e490
test esi, esi
jne 0x45c36a
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.0045e5f8
jmp 0x45c388
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0045c278
mov edi, eax
test esi, esi
je 0x45c388
cmp dword [ebx], 0
je 0x45c388
dec esi
jmp 0x45c371
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x45d310
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.0045d6fc
mov byte [esp], al
cmp byte [esp], 0
jne 0x45d499
test edi, edi
je 0x45d499
mov byte [esp + 1], 0
test ebp, ebp
jle 0x45d3d0
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x45d3ab
cmp edi, 0xffffffff
je 0x45d36f
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x45d36f
mov byte [esp], 0
jmp 0x45d499
mov ebx, dword [esi]
cmp ebx, 1
jg 0x45d3ab
test ebx, ebx
jne 0x45d3a4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0045a2e4
test eax, eax
jne 0x45d3a4
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x45d499
pause
dec ebp
test ebp, ebp
jg 0x45d354
cmp edi, 0xffffffff
je 0x45d3d0
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x45d3ce
mov byte [esp], 0
jmp 0x45d499
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x45d31e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0045a2e4
cmp ebx, eax
jne 0x45d3d0
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0045d50c
mov edx, eax
mov ebx, dword [0x4f5900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x45d437
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x45d435
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x45d437
xor edi, edi
cmp byte [esp], 0
je 0x45d460
mov ebx, dword [esi]
test bl, 1
jne 0x45d479
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0045a2e4
cmp ebx, eax
jne 0x45d43d
mov byte [esp + 1], 1
jmp 0x45d479
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0045a2e4
cmp ebx, eax
jne 0x45d460
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x45d3ea
cmp byte [esp], 0
je 0x45d499
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 0x45e140
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f5088], 0
je 0x45e1a1
cmp word [0x4f5364], 0xd7b2
jne 0x45e169
cmp dword [0x4f536c], 0
jbe 0x45e169
mov eax, 0x4f5360
call dword [0x4f537c]
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 0x45e1cc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4eb540], 0
jne 0x45e1bd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x45e34c
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 [0x4eb510], 0
je 0x45e377
mov edx, edi
mov eax, esi
call dword [0x4eb510]
mov ebx, eax
jmp 0x45e388
mov eax, 8
call fcn.0045bf24
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4f5089], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x45e314
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 0x45e3bd
mov edx, 8
mov eax, ebx
call fcn.0045bf40
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x460608
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 0x46076d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045e490
cmp si, word [0x4ebd00]
jb 0x4606a0
cmp si, word [0x4ebf00]
ja 0x4606a0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4606a0
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4ebd00]
jae 0x46067a
mov edi, ebx
dec edi
jmp 0x46069b
cmp si, word [ebx*8 + 0x4ebd00]
jbe 0x46068a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x46069b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4ebd04]
call fcn.00460518
jmp 0x4606a0
cmp edi, dword [ebp - 8]
jae 0x460664
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x46074f
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x46074f
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.0045ef2c
push dword [ebp - 0x160]
push 0x460788
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0045ef2c
push dword [ebp - 0x164]
push 0x460798
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0045ef2c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0045f164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460774
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0045e4f0
ret
Function at 0x460920
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 0x460a23
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f7b91
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x4f7baa]
jne 0x46096c
mov eax, esi
mov edx, 0x4f7bac
mov ecx, 0x55
call fcn.0045ef2c
push 0x4f7b91
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x460a0d
push 0x4f7b91
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0045e490
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4609db
cmp byte [0x4f7b90], 0
je 0x4609a0
mov edx, esi
mov eax, ebx
call fcn.00460804
jmp 0x4609db
mov edx, esi
mov eax, ebx
call fcn.00460608
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4609db
cmp dword [esi], 0
je 0x4609c4
mov eax, esi
mov edx, 0x460a3c
call fcn.0045f084
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00460608
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0045f084
push 0x4f7b91
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x4f7baa], bx
push 0xaa
mov eax, dword [esi]
call fcn.0045eea0
push eax
push 0x4f7bac
call sub.KERNEL32.DLL_lstrcpynW
push 0x4f7b91
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460a2a
lea eax, [ebp - 4]
call fcn.0045e490
ret
Function at 0x460c58
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.0045e574
xor eax, eax
push ebp
push 0x460e7d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x460c98
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x460cb2
push 0x105
mov eax, dword [ebp - 4]
call fcn.0045eea0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x460e67
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x460e8c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x460d81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x460e8c
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x460d81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x460ec8
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x460d81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x460ec8
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x460d81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x460efc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x460d81
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x460f30
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x460e67
xor eax, eax
push ebp
push 0x460e60
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00460a64
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 0x460df0
mov eax, dword [ebp - 0x10]
call fcn.0045bf24
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.0045eef0
jmp 0x460e3b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x460f70
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x460e3b
mov eax, dword [ebp - 0x10]
call fcn.0045bf24
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x460f70
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0045eef0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460e67
cmp dword [ebp - 8], 0
je 0x460e56
mov eax, dword [ebp - 8]
call fcn.0045bf40
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 0x460e84
lea eax, [ebp - 4]
call fcn.0045e490
ret