joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430f70
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 0x431098
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.0042f914
xor eax, eax
push ebp
push 0x431073
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.0042fec4
test al, al
je 0x431057
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00430e50
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00458f74
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x431057
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.00458ec4
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.0042f874
test al, al
je 0x431053
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00458ec4
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00458ff4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00430e50
pop ecx
inc edi
dec ebx
jne 0x430ffb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43107a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0042f914
ret
Function at 0x4310a8
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 0x4312f6
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.0042f914
xor eax, eax
push ebp
push 0x4312cc
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.0042fec4
test al, al
je 0x4312b0
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00458f74
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x4312b0
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.00458ec4
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.0042f874
test al, al
je 0x4312a4
mov eax, dword [ebp - 4]
call fcn.00458ec4
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00458ff4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004309c0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4312a4
xor eax, eax
push ebp
push 0x43129d
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.0042f914
xor eax, eax
push ebp
push 0x43127f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00458ec4
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00458ff4
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0042f918
mov eax, dword [ebp - 4]
call fcn.00458ec4
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00458ff4
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004309c0
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x43125c
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.00430f70
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004310a8
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431263
mov eax, dword [ebp - 0x24]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x431133
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4312d3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0042f914
ret
Function at 0x43dc64
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x43dd0d
test eax, edx
je 0x43dd10
xor eax, eax
ret
test eax, eax
je 0x43dd20
test edx, edx
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00458ec4
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x43f1a6
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x43f1c7
cmp ebx, 3
je 0x43f1c7
cmp ebx, 0x7b
je 0x43f1c7
mov eax, esi
call fcn.0043f148
test al, al
jne 0x43f1cb
xor eax, eax
jmp 0x43f1cd
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00458ec4
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x43f1e9
test al, 0x10
jne 0x43f1ed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x43f1f4
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00458ec4
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
pop ebx
ret

Function at 0x443054
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 0x44308d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00458f74
jmp 0x443096
mov eax, ebx
mov edx, esi
call fcn.00458e38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4430a0
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 0x4430c2
movzx eax, word [esp]
jmp 0x4430c4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x443854
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 0x443979
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00443664
mov esi, eax
mov eax, dword [0x6b0730]
cmp byte [eax], 0
je 0x443921
mov eax, dword [0x6b0734]
call fcn.004567dc
call fcn.00456360
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 [0x44382c]
call fcn.0045a864
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 0x443994
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x44395d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x6b05a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6b0d3c]
call fcn.0045a958
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 0x443980
lea eax, [ebp - 4]
mov edx, dword [0x44382c]
call fcn.0045a870
ret

Function at 0x444b40
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 0x444c16
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00458e8c
lea eax, [ebp - 4]
call fcn.0045984c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00458ec4
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x444c00
mov eax, ebx
call fcn.00456170
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x444bf9
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.00458ec4
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x444be3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x444c28
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x444be3
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 0x444c00
mov eax, dword [ebp - 0x10]
call fcn.0045618c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444c1d
lea eax, [ebp - 4]
call fcn.00458e28
ret
Function at 0x445e2f
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.00458640
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x445e52
mov eax, edi
add eax, eax
call fcn.00456170
mov esi, eax
jmp 0x445e54
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.USER32.DLL_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x445e8d
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 0x445e77
mov eax, esp
cmp esi, eax
je 0x445e9a
mov eax, esi
call fcn.0045618c
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 0x445ed4
cmp bl, 0
je 0x445ed0
cmp bl, 0x41
jl 0x445ecb
cmp bl, 0x5a
jg 0x445ecb
or bl, 0x20
xor al, bl
inc esi
jmp 0x445eaf
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x445e14

Function at 0x4565cc
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.00458e38
test esi, esi
jne 0x456604
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.00458f74
jmp 0x456622
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004564b0
mov edi, eax
test esi, esi
je 0x456622
cmp dword [ebx], 0
je 0x456622
dec esi
jmp 0x45660b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x456654
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x6a3138], 0x8088405
inc edx
mov dword [ebx + 0x6a3138], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x458054
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6b339c], 0
je 0x4580b5
cmp word [0x6b3678], 0xd7b2
jne 0x45807d
cmp dword [0x6b3680], 0
jbe 0x45807d
mov eax, 0x6b3674
call dword [0x6b3690]
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 0x4580e0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x6a314c], 0
jne 0x4580d1
push 0
push 0x6a38bc
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x458240
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 [0x6a311c], 0
je 0x458266
mov edx, esi
mov eax, ebx
call dword [0x6a311c]
jmp 0x458275
mov eax, 8
call fcn.00456170
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x6b339d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x458208
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 0x4598ec
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x45992e
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
test bl, bl
je 0x45994e
lea eax, [esp + 0x212]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00459048
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x45ae3c
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 0x45afa3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00458e38
cmp si, word [0x6a38f8]
jb 0x45aed6
cmp si, word [0x6a3af8]
ja 0x45aed6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x45aed6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x6a38f8]
jae 0x45aeb0
mov edi, ebx
dec edi
jmp 0x45aed1
cmp si, word [ebx*8 + 0x6a38f8]
jbe 0x45aec0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x45aed1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x6a38fc]
call fcn.0045ad4c
jmp 0x45aed6
cmp edi, dword [ebp - 0xc]
jae 0x45ae9a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x45af85
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x45af85
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.00459048
push dword [ebp - 0x164]
push 0x45afc0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00459048
push dword [ebp - 0x168]
push 0x45afd0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00459048
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00459400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45afaa
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00458e30
ret
Function at 0x45afd4
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 0x45b1ba
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6b5eb0
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [0x6b5ec8]
cmp ax, word [ebp - 2]
jne 0x45b02c
mov eax, dword [ebp - 6]
mov edx, 0x6b5ecc
mov ecx, 0x55
call fcn.00459048
push 0x6b5eb0
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x45b1a4
push 0x6b5eb0
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00458e38
push 2
movzx eax, word [ebp - 2]
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x45b16c
cmp byte [0x6b5eac], 0
je 0x45b122
call dword [0x6b5ea4]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x6b5ea8]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x45b11b
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 [0x6b5ea0]
test al, al
je 0x45b0f4
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00456170
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 [0x6b5ea0]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x45b0e9
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x45b0e5
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x45b0d2
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00458ff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b16c
movzx eax, word [ebp - 0x16]
push eax
call dword [0x6b5ea8]
cmp dword [ebp - 0x10], 0
je 0x45b11a
mov eax, dword [ebp - 0x10]
call fcn.0045618c
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.0045ae3c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x45b16c
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x45b151
mov eax, dword [ebp - 6]
mov edx, 0x45b1d4
call fcn.0045925c
mov eax, dword [ebp - 6]
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.0045ae3c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.0045925c
mov eax, dword [ebp - 6]
push 0x6b5eb0
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x6b5ec8], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00458ec4
push eax
push 0x6b5ecc
call sub.KERNEL32.DLL_lstrcpynW
push 0x6b5eb0
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b1c1
lea eax, [ebp - 0x1c]
call fcn.00458e28
ret
Function at 0x45b3f8
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.00458e20
xor eax, eax
push ebp
push 0x45b5dd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x45b438
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x45b452
push 0x105
mov eax, dword [ebp - 4]
call fcn.00458ec4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x45b5c7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x45b5ec
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x45b4e1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x45b5ec
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x45b4e1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x45b620
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x45b4e1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x45b654
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x45b5c7
xor eax, eax
push ebp
push 0x45b5c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0045b1fc
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 0x45b550
mov eax, dword [ebp - 0x10]
call fcn.00456170
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.00458ff4
jmp 0x45b59b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x45b694
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x45b59b
mov eax, dword [ebp - 0x10]
call fcn.00456170
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x45b694
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00458ff4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b5c7
cmp dword [ebp - 8], 0
je 0x45b5b6
mov eax, dword [ebp - 8]
call fcn.0045618c
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 0x45b5e4
lea eax, [ebp - 4]
call fcn.00458e28
ret
Function at 0x45b8a8
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.00458e20
mov eax, dword [ebp - 0x21c]
call fcn.00458e20
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x45ba47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00458e38
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00458ec4
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 0x45b948
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x45b95a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x45b945
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x45ba13
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 0x45b983
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.0045b3f8
cmp dword [ebp - 0x220], 0
je 0x45b9bb
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0045b79c
pop ecx
mov ebx, eax
jmp 0x45ba13
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0045afd4
mov eax, dword [ebp - 0x224]
call fcn.0045b79c
pop ecx
mov ebx, eax
test bl, bl
jne 0x45ba06
cmp byte [0x6b5eac], 0
jne 0x45ba06
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0045afd4
mov eax, dword [ebp - 0x228]
call fcn.0045b79c
pop ecx
mov ebx, eax
test bl, bl
jne 0x45ba13
push ebp
call fcn.0045b84c
pop ecx
mov ebx, eax
test bl, bl
je 0x45ba29
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00459048
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ba4e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00458e30
ret

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

Function at 0x45c2bc
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x6b3c34], 1
jae 0x45c365
call fcn.004530e4
call fcn.00455f4c
call fcn.0045abbc
mov byte [0x6a313c], 2
mov dword [0x6b3358], 0x69c8ac
mov dword [0x6b335c], 0x69c8d0
mov byte [0x6b339e], 2
call fcn.0045c1d0
mov dword [0x6b33a0], eax
mov dword [0x6b3344], 0x45a1e8
call fcn.00456f7c
mov word [0x6b33a8], 0xd7b0
mov word [0x6b3678], 0xd7b0
mov word [0x6b3948], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x6b3390], eax
call fcn.00454544
mov dword [0x6b338c], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x6b3c1c], eax
mov dword [0x6b3c20], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x6b3384], eax
call fcn.0045c1e4
ret