joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44688c
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 0x446ada
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.004451b0
xor eax, eax
push ebp
push 0x446ab0
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.00445760
test al, al
je 0x446a94
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00484e44
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x446a94
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.00485b20
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.00445110
test al, al
je 0x446a88
mov eax, dword [ebp - 4]
call fcn.00485b20
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00485b70
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004461a4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x446a88
xor eax, eax
push ebp
push 0x446a81
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.004451b0
xor eax, eax
push ebp
push 0x446a63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00485b20
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00485b70
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004451b4
mov eax, dword [ebp - 4]
call fcn.00485b20
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00485b70
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004461a4
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x446a40
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.00446754
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0044688c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446a47
mov eax, dword [ebp - 0x24]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x446917
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446ab7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.004451b0
ret
Function at 0x467f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x467f79
test eax, edx
je 0x467f7c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x467f37
movzx eax, word [eax]
sub eax, ecx
jmp 0x467f5e
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 0x467f5f
add ecx, 4
js 0x467f4f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x467f5c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x467f5e
xor eax, eax
ret
test eax, eax
je 0x467f88
test edx, edx
jne 0x467f28
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x468f3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00485b20
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x468fa6
test ah, 4
je 0x468f9f
test bl, bl
jne 0x468f64
mov al, 1
jmp 0x468fcd
test al, 0x10
je 0x468f6c
xor eax, eax
jmp 0x468fcd
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x468f90
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x468fcd
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x468fcd
test al, 0x10
sete al
jmp 0x468fcd
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x468fc7
cmp ebx, 3
je 0x468fc7
cmp ebx, 0x7b
je 0x468fc7
mov eax, esi
call fcn.00468efc
test al, al
jne 0x468fcb
xor eax, eax
jmp 0x468fcd
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x468fd4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00485b20
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x46907b
test esi, 0x400
jne 0x469010
test esi, 0x10
setne bl
jmp 0x469095
cmp byte [esp], 0
je 0x469044
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocStringLen
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x469095
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x469095
test esi, 0x10
je 0x469050
mov bl, 1
jmp 0x469095
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocStringLen
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x469077
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x469095
mov bl, 1
jmp 0x469095
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x46908f
cmp eax, 3
je 0x46908f
cmp eax, 0x7b
jne 0x469093
xor ebx, ebx
jmp 0x469095
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46cf7c
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 0x46cfb5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00484e44
jmp 0x46cfbe
mov eax, ebx
mov edx, esi
call fcn.0048509c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x46cfc8
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 0x46cfea
movzx eax, word [esp]
jmp 0x46cfec
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x46dca8
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 0x46ddcd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0046dab8
mov esi, eax
mov eax, dword [0x61fab4]
cmp byte [eax], 0
je 0x46dd75
mov eax, dword [0x61fabc]
call fcn.00482cb8
call fcn.0048286c
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 [0x46dc80]
call fcn.00486e90
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 0x46dde8
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x46ddb1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x61f918]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6203a8]
call fcn.0048709c
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 0x46ddd4
lea eax, [ebp - 4]
mov edx, dword [0x46dc80]
call fcn.00486fb4
ret
Function at 0x46ee28
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 0x46eefe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004850e4
lea eax, [ebp - 4]
call fcn.00485288
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00485b20
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x46eee8
mov eax, ebx
call fcn.00482668
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46eee1
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.00485b20
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x46eecb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x46ef10
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x46eecb
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 0x46eee8
mov eax, dword [ebp - 0x10]
call fcn.00482684
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ef05
lea eax, [ebp - 4]
call fcn.00484cbc
ret

Function at 0x46fac8
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.00485194
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00488ac0
mov edi, eax
cmp edi, 0x104
jbe 0x46fa73
mov eax, edi
add eax, eax
call fcn.00482668
mov esi, eax
jmp 0x46fa75
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00488ac0
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x46faae
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 0x46fa98
mov eax, esp
cmp esi, eax
je 0x46fabb
mov eax, esi
call fcn.00482684
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 0x46faf4
cmp bl, 0
je 0x46faf0
cmp bl, 0x41
jl 0x46faeb
cmp bl, 0x5a
jg 0x46faeb
or bl, 0x20
xor al, bl
inc esi
jmp 0x46facf
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x46fa34

Function at 0x47028c
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.00485bc4
add esp, 0x800
pop ebx
ret
Function at 0x482b10
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.00484cbc
test esi, esi
jne 0x482b46
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.00484e44
jmp 0x482b64
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004829f4
mov edi, eax
test esi, esi
je 0x482b64
cmp dword [ebx], 0
je 0x482b64
dec esi
jmp 0x482b4d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x483b20
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.00483f0c
mov byte [esp], al
cmp byte [esp], 0
jne 0x483ca9
test edi, edi
je 0x483ca9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x483be0
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x483bbb
cmp edi, 0xffffffff
je 0x483b7f
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x483b7f
mov byte [esp], 0
jmp 0x483ca9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x483bbb
test ebx, ebx
jne 0x483bb4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00480a0c
test eax, eax
jne 0x483bb4
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x483ca9
pause
dec ebp
test ebp, ebp
jg 0x483b64
cmp edi, 0xffffffff
je 0x483be0
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x483bde
mov byte [esp], 0
jmp 0x483ca9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x483b2e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00480a0c
cmp ebx, eax
jne 0x483be0
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00483d1c
mov edx, eax
mov ebx, dword [0x6234c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x483c47
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x483c45
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x483c47
xor edi, edi
cmp byte [esp], 0
je 0x483c70
mov ebx, dword [esi]
test bl, 1
jne 0x483c89
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00480a0c
cmp ebx, eax
jne 0x483c4d
mov byte [esp + 1], 1
jmp 0x483c89
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00480a0c
cmp ebx, eax
jne 0x483c70
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x483bfa
cmp byte [esp], 0
je 0x483ca9
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 0x48496c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x622c50], 0
je 0x4849cd
cmp word [0x622f2c], 0xd7b2
jne 0x484995
cmp dword [0x622f34], 0
jbe 0x484995
mov eax, 0x622f28
call dword [0x622f44]
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 0x4849f8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x5f5f98], 0
jne 0x4849e9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x484b78
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 [0x5f5f64], 0
je 0x484ba3
mov edx, edi
mov eax, esi
call dword [0x5f5f64]
mov ebx, eax
jmp 0x484bb4
mov eax, 8
call fcn.00482668
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x622c51], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x484b40
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 0x484be9
mov edx, 8
mov eax, ebx
call fcn.00482684
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x487558
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 0x4876bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00484cbc
cmp si, word [0x5f6758]
jb 0x4875f0
cmp si, word [0x5f6958]
ja 0x4875f0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4875f0
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5f6758]
jae 0x4875ca
mov edi, ebx
dec edi
jmp 0x4875eb
cmp si, word [ebx*8 + 0x5f6758]
jbe 0x4875da
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4875eb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f675c]
call fcn.00487468
jmp 0x4875f0
cmp edi, dword [ebp - 8]
jae 0x4875b4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x48769f
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x48769f
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.00485bc4
push dword [ebp - 0x160]
push 0x4876d8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00485bc4
push dword [ebp - 0x164]
push 0x4876e8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00485bc4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00485dfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4876c4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00484d1c
ret
Function at 0x487870
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 0x487973
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x625759
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x625772]
jne 0x4878bc
mov eax, esi
mov edx, 0x625774
mov ecx, 0x55
call fcn.00485bc4
push 0x625759
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x48795d
push 0x625759
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00484cbc
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x48792b
cmp byte [0x625758], 0
je 0x4878f0
mov edx, esi
mov eax, ebx
call fcn.00487754
jmp 0x48792b
mov edx, esi
mov eax, ebx
call fcn.00487558
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x48792b
cmp dword [esi], 0
je 0x487914
mov eax, esi
mov edx, 0x48798c
call fcn.00485d1c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00487558
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00485d1c
push 0x625759
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x625772], bx
push 0xaa
mov eax, dword [esi]
call fcn.00485b20
push eax
push 0x625774
call sub.KERNEL32.DLL_lstrcpynW
push 0x625759
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48797a
lea eax, [ebp - 4]
call fcn.00484cbc
ret
Function at 0x487ba8
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.00484da0
xor eax, eax
push ebp
push 0x487dcd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x487be8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x487c02
push 0x105
mov eax, dword [ebp - 4]
call fcn.00485b20
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x487db7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487ddc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x487cd1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487ddc
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x487cd1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487e18
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x487cd1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487e18
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x487cd1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487e4c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x487cd1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487e80
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x487db7
xor eax, eax
push ebp
push 0x487db0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004879b4
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 0x487d40
mov eax, dword [ebp - 0x10]
call fcn.00482668
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.00485b70
jmp 0x487d8b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x487ec0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x487d8b
mov eax, dword [ebp - 0x10]
call fcn.00482668
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x487ec0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00485b70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487db7
cmp dword [ebp - 8], 0
je 0x487da6
mov eax, dword [ebp - 8]
call fcn.00482684
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 0x487dd4
lea eax, [ebp - 4]
call fcn.00484cbc
ret