joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e69c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call esi
mov eax, dword [ebp - 0x108]
xor ecx, ecx
sub eax, ecx
je 0x44e8c7
dec eax
je 0x44e85c
dec eax
jne 0x44e8c3
mov eax, dword [ebp - 0x114]
cmp eax, 3
jne 0x44e726
mov eax, dword [ebp - 0x110]
sub eax, ecx
je 0x44e71c
sub eax, 0x32
je 0x44e712
dec eax
jne 0x44e8c3
mov esi, 0x400
jmp 0x44e849
mov esi, 0x200
jmp 0x44e849
mov esi, pe_nt_image_headers32
jmp 0x44e849
cmp eax, 4
jne 0x44e741
cmp dword [ebp - 0x110], ecx
jne 0x44e8c3
mov esi, 0x800
jmp 0x44e849
cmp eax, 5
jne 0x44e79e
mov eax, dword [ebp - 0x110]
sub eax, ecx
je 0x44e794
dec eax
je 0x44e78a
dec eax
jne 0x44e8c3
call fcn.0044e220
cmp eax, 2
jne 0x44e780
call fcn.0044e5c0
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x6000
add esi, 0x80002000
jmp 0x44e849
mov esi, 0x8000
jmp 0x44e849
mov esi, 0x2000
jmp 0x44e849
mov esi, 0x1000
jmp 0x44e849
cmp eax, 6
jne 0x44e8c3
push 0x11c
push ecx
lea eax, [ebp - 0x234]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x234], 0x11c
call esi
test eax, eax
jne 0x44e7f4
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x234], 0x114
call esi
test eax, eax
jne 0x44e7f4
mov eax, 0x4000
jmp 0x44e8ca
cmp dword [ebp - 0x230], 6
jne 0x44e843
cmp byte [ebp - 0x11a], 1
jne 0x44e82b
call fcn.0044e5c0
test eax, eax
je 0x44e7ea
cmp byte [ebp - 0x11a], 1
jne 0x44e82b
call fcn.0044e5c0
test eax, eax
je 0x44e82b
mov eax, 0x10000
jmp 0x44e8ca
call fcn.0044e5c0
neg eax
sbb eax, eax
and eax, 0xc000
add eax, 0x80004000
jmp 0x44e8ca
mov esi, dword [ebp - 0x238]
call fcn.0044e30d
test eax, eax
je 0x44e858
or esi, 0x80000000
mov eax, esi
jmp 0x44e8ca
cmp dword [ebp - 0x114], 4
jne 0x44e8c3
cmp dword [ebp - 0x110], ecx
jne 0x44e897
movzx eax, word [ebp - 0x102]
sub eax, 0x41
je 0x44e892
dec eax
je 0x44e88e
dec eax
je 0x44e88a
sub eax, 0x1e
je 0x44e892
dec eax
je 0x44e88e
dec eax
jne 0x44e892
push 8
jmp 0x44e894
push 4
jmp 0x44e894
push 2
pop eax
jmp 0x44e8ca
cmp dword [ebp - 0x110], 0xa
jne 0x44e8b6
mov eax, 0x7cf
cmp word [ebp - 0x10c], ax
sbb eax, eax
and eax, 0xfffffff0
add eax, 0x20
jmp 0x44e8ca
cmp dword [ebp - 0x110], 0x5a
jne 0x44e8c3
push 0x40
jmp 0x44e894
xor eax, eax
jmp 0x44e8ca
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004534b8
leave
ret

Function at 0x44ead9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x44eb1e
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x44eb21
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x44eb6f
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x44eb72
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push 0x45f664
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x44ebcc
push dword [ebp + 0x14]
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x44ebcf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push 0x45f664
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x44ec1c
push 4
push dword [ebp + 0x14]
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x44f18f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x418], eax
xor eax, eax
xor ebx, ebx
push 0x3fe
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push ebx
push eax
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x40c], ebx
call sub.MSVCR100.dll_memset
push 0x44
pop edi
push edi
lea eax, [ebp - 0x46c]
push ebx
push eax
call sub.MSVCR100.dll_memset
mov ax, word [ebp + 0x14]
add esp, 0x18
mov dword [ebp - 0x46c], edi
cmp ax, bx
je 0x44f217
mov dword [ebp - 0x440], 1
mov word [ebp - 0x43c], ax
mov edi, dword [sym.imp.MSVCR100.dll_wcscpy]
cmp esi, ebx
je 0x44f255
cmp word [esi], 0x22
je 0x44f255
push 0x400
call sub.mfc100u.dll_new
pop ecx
mov dword [ebp - 0x408], eax
cmp eax, ebx
jne 0x44f243
xor eax, eax
jmp 0x44f320
push esi
push eax
call edi
pop ecx
pop ecx
mov dword [ebp - 0x410], 1
jmp 0x44f25b
mov dword [ebp - 0x408], esi
cmp dword [ebp - 0x414], ebx
je 0x44f274
push dword [ebp - 0x414]
lea eax, [ebp - 0x404]
push eax
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x404]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebx
je 0x44f304
cmp dword [ebp + 0x18], ebx
je 0x44f2ec
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x428]
call esi
test eax, eax
je 0x44f2dd
call fcn.0044e587
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x40c], 0x103
je 0x44f2b1
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x428]
call esi
push dword [ebp - 0x428]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x424]
call esi
jmp 0x44f30a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x410], ebx
je 0x44f31e
push dword [ebp - 0x408]
call sub.mfc100u.dll_delete
pop ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
leave
ret
Function at 0x44f32f
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x21c], esi
cmp eax, esi
jne 0x44f3ab
push 0x44
call sub.mfc100u.dll_new
mov edi, eax
pop ecx
cmp edi, esi
jne 0x44f38d
xor eax, eax
jmp 0x44f519
push 0x10
call sub.mfc100u.dll_new
pop ecx
mov dword [ebp - 0x214], eax
cmp eax, esi
je 0x44f386
mov dword [ebp - 0x220], 1
jmp 0x44f3b3
mov edi, eax
mov dword [ebp - 0x214], ecx
cmp dword [ebp - 0x210], esi
jne 0x44f3d9
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
push 0x10
push esi
push dword [ebp - 0x214]
call sub.MSVCR100.dll_memset
push 0x44
push esi
push edi
call sub.MSVCR100.dll_memset
mov ax, word [ebp + 0x14]
add esp, 0x18
mov dword [edi], 0x44
cmp ax, si
je 0x44f40d
mov dword [edi + 0x2c], 1
mov word [edi + 0x30], ax
cmp ebx, esi
je 0x44f453
cmp word [ebx], 0x22
je 0x44f453
push 0x400
call sub.mfc100u.dll_new
pop ecx
mov dword [ebp - 0x218], eax
cmp eax, esi
jne 0x44f43d
mov ebx, dword [ebp - 0x214]
mov dword [ebp - 0x210], esi
jmp 0x44f4fd
push ebx
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy]
pop ecx
pop ecx
mov dword [ebp - 0x224], 1
jmp 0x44f459
mov dword [ebp - 0x218], ebx
mov ebx, dword [ebp - 0x214]
push ebx
push edi
push dword [ebp - 0x210]
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x228]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x210], eax
cmp eax, esi
je 0x44f4e3
cmp dword [ebp + 0x18], esi
je 0x44f4c8
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x44f4b9
call fcn.0044e587
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x21c], 0x103
je 0x44f48d
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x220], esi
je 0x44f4e9
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44f4e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x224], esi
je 0x44f4fd
push dword [ebp - 0x218]
call sub.mfc100u.dll_delete
pop ecx
cmp dword [ebp - 0x220], esi
je 0x44f513
push ebx
call sub.mfc100u.dll_delete
push edi
call sub.mfc100u.dll_delete
pop ecx
pop ecx
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
leave
ret

Function at 0x44f528
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 5
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
pop ebp
ret
Function at 0x44f54c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
pop ebp
ret
Function at 0x450b48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x450b86
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x450b85
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebx]
test eax, eax
jle 0x450b82
mov dword [ebp + 8], eax
xor edx, edx
mov eax, edi
mov ecx, 0xff
div ecx
lea ecx, [edx + 1]
xor byte [esi], cl
add eax, ecx
add edi, eax
inc esi
dec dword [ebp + 8]
jne 0x450b68
mov dword [ebx], edi
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x450bbe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
je 0x450c3f
mov ebx, dword [ebp + 0x18]
cmp ebx, eax
je 0x450c3f
mov edi, dword [ebp + 0x1c]
cmp edi, eax
je 0x450c3f
cmp dword [ebp + 0x14], eax
jle 0x450c36
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jle 0x450bf0
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll__read]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x450c3a
test esi, esi
je 0x450c36
add dword [ebp - 4], esi
push esi
push dword [ebp + 0xc]
push dword [ebx]
call fcn.00426490
mov dword [ebx], eax
movzx eax, word [edi]
push esi
push dword [ebp + 0xc]
push eax
call fcn.004264e0
mov word [edi], ax
mov eax, dword [ebp + 0x14]
add esp, 0x18
cmp dword [ebp - 4], eax
jl 0x450be2
xor eax, eax
jmp 0x450c42
xor eax, eax
inc eax
jmp 0x450c42
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450c47
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
push ebx
mov dword [edi], esi
call dword [sym.imp.MSVCR100.dll__waccess]
pop ecx
pop ecx
test eax, eax
je 0x450c83
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
mov dword [edi], eax
push 2
jmp 0x450deb
push 0x40
push 0x8000
push ebx
call dword [sym.imp.MSVCR100.dll__wsopen]
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x450cad
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
mov dword [edi], eax
push 3
jmp 0x450deb
push eax
call dword [sym.imp.MSVCR100.dll__filelength]
mov ebx, eax
mov dword [ebp - 0x4c], ebx
mov dword [esp], 0x4040
call dword [sym.imp.MSVCR100.dll_malloc]
pop ecx
mov dword [ebp - 0x38], eax
cmp eax, esi
jne 0x450ced
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
push esi
push dword [ebp - 0x30]
mov dword [edi], eax
push esi
push esi
call fcn.00450b89
add esp, 0x10
push 4
jmp 0x450deb
lea eax, [ebx - 0x28]
mov ebx, dword [sym.imp.MSVCR100.dll__lseek]
push esi
push eax
push dword [ebp - 0x30]
call ebx
push 0x28
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x18
cmp eax, 0x28
je 0x450d36
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
push esi
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x38]
mov dword [edi], eax
call fcn.00450b89
xor eax, eax
add esp, 0x10
inc eax
jmp 0x450dec
push esi
push esi
push dword [ebp - 0x30]
call ebx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push 4
push eax
mov dword [ebp - 0x34], 0xa3457934
call fcn.00450b48
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.00450b48
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push 4
push eax
call fcn.00450b48
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x4c]
add eax, 0xffffffd8
push eax
push 0x4000
push dword [ebp - 0x38]
mov dword [ebp - 0x34], 0xf2357a8b
push dword [ebp - 0x30]
mov dword [ebp - 0x40], 0x89ff
call fcn.00450bbe
add esp, 0x4c
push esi
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x38]
cmp eax, esi
jne 0x450d24
call fcn.00450b89
mov eax, dword [ebp - 0x4c]
add esp, 0x10
cmp eax, dword [ebp - 0x3c]
jne 0x450de9
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x48]
jne 0x450de9
movzx eax, word [ebp - 0x40]
cmp eax, dword [ebp - 0x44]
jne 0x450de9
xor eax, eax
jmp 0x450dec
push 5
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
leave
ret

Function at 0x450e7b
Capabilities:
Acquire debug privileges

Disassembly:
push str.SeDebugPrivilege
call fcn.00450dfb
pop ecx
ret
Function at 0x452e76
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebx]
test eax, eax
je 0x452ea8
mov dword [ebp + 0x10], eax
xor edx, edx
mov eax, edi
mov ecx, 0xff
div ecx
lea ecx, [edx + 1]
xor byte [esi], cl
add eax, ecx
add edi, eax
inc esi
dec dword [ebp + 0x10]
jne 0x452e8e
mov dword [ebx], edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4534b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46af24]
jne 0x4534c2
repz ret
jmp fcn.00453f4f

Function at 0x45431d
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4543f2
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4543e1
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x4543cb
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x4543e1
push eax
push edi
push dword [ebp - 0x110]
call fcn.004542ba
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x4543f4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004534b8
leave
ret 4
Function at 0x401000
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x404
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3ff
add eax, 0xfffffffc
cmp eax, 0x15
ja case.0x401033.5
movzx eax, byte [eax + 0x4011a4]
jmp dword [eax*4 + 0x401178]
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x76
push edx
jmp 0x401148
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call edi
cmp eax, 0x404
je 0x401082
call edi
cmp eax, 0xc04
je 0x401082
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x7e
push ecx
jmp 0x401148
push 0x200
lea edx, [esp + 8]
push edx
push 0x7f
jmp 0x401142
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x79
push edx
jmp 0x401148
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x77
push ecx
jmp 0x401148
push 0x200
lea edx, [esp + 8]
push edx
push 0x7d
jmp 0x401142
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x7b
push edx
jmp 0x401148
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x7c
push ecx
jmp 0x401148
push 0x200
lea edx, [esp + 8]
push edx
push 0x80
jmp 0x401142
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x7a
push edx
jmp 0x401148
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x78
push ecx
jmp 0x401148
push 0x200
lea edx, [esp + 8]
push edx
push 0x75
mov eax, dword [0x4274fc]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 4]
push ecx
push 0x400
push esi
call fcn.0040a931
mov ecx, dword [esp + 0x410]
add esp, 0xc
pop edi
xor ecx, esp
call fcn.0040a922
add esp, 0x404
ret
Function at 0x4013a0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x404
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3ff
add eax, 0xfffffffc
cmp eax, 0x15
ja case.0x4013d3.5
movzx eax, byte [eax + 0x401568]
jmp dword [eax*4 + 0x40153c]
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x8e
push edx
jmp 0x40150c
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call edi
cmp eax, 0x404
je 0x401428
call edi
cmp eax, 0xc04
je 0x401428
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x96
push ecx
jmp 0x40150c
push 0x200
lea edx, [esp + 8]
push edx
push 0x97
jmp 0x401506
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x91
push edx
jmp 0x40150c
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x8f
push ecx
jmp 0x40150c
push 0x200
lea edx, [esp + 8]
push edx
push 0x95
jmp 0x401506
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x93
push edx
jmp 0x40150c
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x94
push ecx
jmp 0x40150c
push 0x200
lea edx, [esp + 8]
push edx
push 0x98
jmp 0x401506
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x92
push edx
jmp 0x40150c
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x90
push ecx
jmp 0x40150c
push 0x200
lea edx, [esp + 8]
push edx
push 0x8d
mov eax, dword [0x4274fc]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 4]
push ecx
push 0x400
push esi
call fcn.0040a931
mov ecx, dword [esp + 0x410]
add esp, 0xc
pop edi
xor ecx, esp
call fcn.0040a922
add esp, 0x404
ret
Function at 0x401580
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x404
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3ff
add eax, 0xfffffffc
cmp eax, 0x15
ja case.0x4015b3.5
movzx eax, byte [eax + 0x401748]
jmp dword [eax*4 + 0x40171c]
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x9a
push edx
jmp 0x4016ec
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call edi
cmp eax, 0x404
je 0x401608
call edi
cmp eax, 0xc04
je 0x401608
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0xa2
push ecx
jmp 0x4016ec
push 0x200
lea edx, [esp + 8]
push edx
push 0xa3
jmp 0x4016e6
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x9d
push edx
jmp 0x4016ec
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x9b
push ecx
jmp 0x4016ec
push 0x200
lea edx, [esp + 8]
push edx
push 0xa1
jmp 0x4016e6
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x9f
push edx
jmp 0x4016ec
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0xa0
push ecx
jmp 0x4016ec
push 0x200
lea edx, [esp + 8]
push edx
push 0xa4
jmp 0x4016e6
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x9e
push edx
jmp 0x4016ec
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x9c
push ecx
jmp 0x4016ec
push 0x200
lea edx, [esp + 8]
push edx
push 0x99
mov eax, dword [0x4274fc]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 4]
push ecx
push 0x400
push esi
call fcn.0040a931
mov ecx, dword [esp + 0x410]
add esp, 0xc
pop edi
xor ecx, esp
call fcn.0040a922
add esp, 0x404
ret
Function at 0x401760
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x404
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3ff
add eax, 0xfffffffc
cmp eax, 0x15
ja case.0x401793.5
movzx eax, byte [eax + 0x401928]
jmp dword [eax*4 + 0x4018fc]
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0xa6
push edx
jmp 0x4018cc
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call edi
cmp eax, 0x404
je 0x4017e8
call edi
cmp eax, 0xc04
je 0x4017e8
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0xae
push ecx
jmp 0x4018cc
push 0x200
lea edx, [esp + 8]
push edx
push 0xaf
jmp 0x4018c6
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0xa9
push edx
jmp 0x4018cc
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0xa7
push ecx
jmp 0x4018cc
push 0x200
lea edx, [esp + 8]
push edx
push 0xad
jmp 0x4018c6
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0xab
push edx
jmp 0x4018cc
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0xac
push ecx
jmp 0x4018cc
push 0x200
lea edx, [esp + 8]
push edx
push 0xb0
jmp 0x4018c6
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0xaa
push edx
jmp 0x4018cc
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0xa8
push ecx
jmp 0x4018cc
push 0x200
lea edx, [esp + 8]
push edx
push 0xa5
mov eax, dword [0x4274fc]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 4]
push ecx
push 0x400
push esi
call fcn.0040a931
mov ecx, dword [esp + 0x410]
add esp, 0xc
pop edi
xor ecx, esp
call fcn.0040a922
add esp, 0x404
ret