joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43753c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x44f114]
cmp byte [eax + 0xc], 0
je 0x4376a9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4376a2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x450b64], 0
jne 0x437590
push 0x4376b0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4376b8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b64], eax
cmp dword [0x44eb00], 0
jne 0x43768b
push 0x4376c8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44eb00], eax
cmp dword [0x44eb00], 0
je 0x43768b
push 0x4376d4
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b68], eax
push 0x4376e4
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b6c], eax
push 0x4376f8
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b70], eax
push 0x437710
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b74], eax
push 0x437728
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b78], eax
push 0x43773c
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b7c], eax
push 0x437754
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b80], eax
push 0x43776c
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b84], eax
push 0x437788
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b88], eax
push 0x437794
mov eax, dword [0x44eb00]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4376a9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43b534
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004043b4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43b583
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404624
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442d2c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442d7c]
test si, 4
je 0x442d40
or bl, 1
test si, 8
je 0x442d4a
or bl, 4
test si, 1
je 0x442d54
or bl, 8
test si, 2
je 0x442d5e
or bl, 0x10
test si, 0x10
je 0x442d68
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442d77
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x442d80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442db8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442d99
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442da8
or bl, 4
test esi, 0x20000000
je 0x442db3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44947c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44948e
add esp, 0xfffffff0
call fcn.00403960
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419710
mov eax, dword [0x44edf4]
mov dword [eax + 4], ebx
mov dword [eax], 0x449820
mov eax, dword [0x44ee00]
mov dword [eax + 4], ebx
mov dword [eax], 0x44982c
mov eax, ebx
call fcn.00449838
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411a08]
call fcn.00403610
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411a08]
call fcn.00403610
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411a08]
call fcn.00403610
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411a08]
call fcn.00403610
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411a08]
call fcn.00403610
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x445c50
push eax
push 0
push 0
mov eax, dword [0x44ef40]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b134]
call fcn.0041c59c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b134]
call fcn.0041c59c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b134]
call fcn.0041c59c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00449c88
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449b50
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449b50
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449b50
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4495cb
call fcn.004039b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x449934
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x449adf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x449ac0
mov dl, 1
mov eax, dword [0x411e24]
call fcn.00403610
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043b4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x449aaf
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043789c
test al, al
je 0x449aa2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x449af0
lea eax, [ebp - 0x254]
call fcn.00408e70
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x449aa2
xor eax, eax
push ebp
push 0x449a9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x449b28
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x449a84
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404624
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x449a84
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404624
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449aa2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4499a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415900
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449ae6
lea eax, [ebp - 0x260]
call fcn.004043b4
ret

Function at 0x44a428
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x450bb0]
cmp byte [eax + 0xa5], 0
jne 0x44a499
cmp dword [0x450bc8], 0
jne 0x44a45a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a3e4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x450bc8], eax
cmp dword [0x450bc4], 0
jne 0x44a475
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x450bc4], eax
cmp dword [0x450bcc], 0
jne 0x44a499
push esp
push 0
push 0
push 0x44a388
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x450bcc], eax
pop edx
ret
Function at 0x44ab2c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x450bb0]
cmp dword [eax + 0x30], 0
je 0x44abd6
cmp dword [ebx + 0x94], 0
jne 0x44abd0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44aabc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44abd0

Function at 0x44b734
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44b769
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044a4
jmp 0x44b776
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404408
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c8b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c8f1
mov eax, esi
call fcn.004330a4
test al, al
je 0x44c8f1
mov eax, dword [ebx + 0x84]
call fcn.00432e44
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c8f1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00432e44
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44d18c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404864
xor eax, eax
push ebp
push 0x44d2b8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x14
call sub.user32.dll_GetKeyState
test al, 1
setne byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.00404674
test eax, eax
jle 0x44d2a2
mov dword [ebp - 0xc], eax
mov esi, 1
mov eax, dword [ebp - 4]
mov bl, byte [eax + esi - 1]
mov eax, ebx
call fcn.00402e50
mov ebx, eax
mov eax, dword [ebp - 4]
cmp bl, byte [eax + esi - 1]
je 0x44d22c
cmp byte [ebp - 5], 0
je 0x44d1ff
push 0
push 0
push 0
push 0x10
call sub.user32.dll_keybd_event
push 0
push 0
push 0
push ebx
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push ebx
call sub.user32.dll_keybd_event
cmp byte [ebp - 5], 0
je 0x44d298
push 0
push 2
push 0
push 0x10
call sub.user32.dll_keybd_event
jmp 0x44d298
push ebx
call sub.user32.dll_VkKeyScanA
mov edi, eax
cmp byte [ebp - 5], 0
jne 0x44d244
cmp bl, 0x41
jb 0x44d244
cmp bl, 0x5a
jbe 0x44d24b
test di, 0x100
jle 0x44d258
push 0
push 0
push 0
push 0x10
call sub.user32.dll_keybd_event
push 0
push 0
push 0
mov eax, edi
push eax
call sub.user32.dll_keybd_event
push 0
push 2
push 0
mov eax, edi
push eax
call sub.user32.dll_keybd_event
cmp byte [ebp - 5], 0
jne 0x44d284
cmp bl, 0x41
jb 0x44d284
cmp bl, 0x5a
jbe 0x44d28b
test di, 0x100
jle 0x44d298
push 0
push 2
push 0
push 0x10
call sub.user32.dll_keybd_event
inc esi
dec dword [ebp - 0xc]
jne 0x44d1d3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d2bf
lea eax, [ebp - 4]
call fcn.004043b4
ret
Function at 0x44d4c8
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x44d4d0
push ebx
push esi
push edi
mov eax, 0x44d2f0
call fcn.00406238
xor eax, eax
push ebp
push 0x44d693
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x44efb8]
mov eax, dword [eax]
call fcn.0044bb98
mov eax, dword [0x44efb8]
mov eax, dword [eax]
mov edx, 0x44d6ac
call fcn.0044b780
mov eax, dword [0x44efb8]
mov eax, dword [eax]
call fcn.0044bbb0
mov eax, dword [0x44efb8]
mov eax, dword [eax]
call fcn.0044ba74
lea edx, [ebp - 0x18]
mov eax, 1
call fcn.00402dec
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408100
mov edx, dword [ebp - 0x14]
mov eax, 0x450bd0
call fcn.00404408
lea edx, [ebp - 0x20]
mov eax, 2
call fcn.00402dec
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00408100
mov edx, dword [ebp - 0x1c]
mov eax, 0x450bd4
call fcn.00404408
mov eax, dword [0x450bd0]
mov edx, 0x44d6c8
call fcn.004047c0
jne 0x44d593
mov eax, 0x450bd8
mov edx, 0x44d6d4
call fcn.00404408
jmp 0x44d5b7
mov eax, dword [0x450bd0]
mov edx, 0x44d6f4
call fcn.004047c0
jne 0x44d678
mov eax, 0x450bd8
mov edx, 0x44d700
call fcn.00404408
lea edx, [ebp - 0x28]
mov eax, 3
call fcn.00402dec
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00408100
mov eax, dword [ebp - 0x24]
mov edx, 1
call fcn.00408378
mov dword [0x450bdc], eax
xor ebx, ebx
mov esi, 2
test bl, bl
jne 0x44d678
push 0x1f4
call sub.kernel32.dll_Sleep
mov eax, dword [0x450bd8]
call fcn.00404874
push eax
push 0
call sub.user32.dll_FindWindowA
mov edi, eax
push edi
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x44efb8]
mov eax, dword [eax]
call fcn.0044ba74
test edi, edi
je 0x44d671
cmp dword [0x450bdc], 1
jle 0x44d63b
mov eax, dword [0x450bdc]
sub eax, 2
jl 0x44d63b
inc eax
dec eax
jne 0x44d638
mov eax, dword [0x450bd4]
call fcn.0044d18c
push 0
push 0
push 0
push 0xd
call sub.user32.dll_MapVirtualKeyA
push eax
push 0xd
call sub.user32.dll_keybd_event
push 0
push 2
push 0
push 0xd
call sub.user32.dll_MapVirtualKeyA
push eax
push 0xd
call sub.user32.dll_keybd_event
mov bl, 1
dec esi
jne 0x44d5e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d69a
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.004043d8
ret
Function at 0x10480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push eax
push 0x7b05d06
push 0x61545b29
pushfd
sub eax, 0x5e6433b2
push eax
xor eax, eax
je 0x104a8
pop es
and dword [eax], edi
inc ebx
das
dec esi
bound esi, qword [edx + 0x71]
mov eax, dword [0x585a]
pop eax
popfd
pop eax
pop eax
pop eax
call fcn.00010918
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x104e7
push 0
push 0x104f0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x104e7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x46903a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x469079
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x469079
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x469079
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x469079
cmp dword [ecx + 0x74], 0xe
jbe 0x469079
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4728f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47291d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47291d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x474af5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4841d8
push 0x4841d0
push str.FlsAlloc
push 0x1f
call fcn.00474f0c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x474b29
push dword [ebp + 8]
mov ecx, esi
call dword [section..40cfg]
call esi
jmp 0x474b2f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x474b73
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4841e8
push 0x4841e0
push str.FlsGetValue
push 0x21
call fcn.00474f0c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x474baa
push dword [ebp + 8]
mov ecx, esi
call dword [section..40cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x474bb2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4841f0
push 0x4841e8
push str.FlsSetValue
push 0x22
call fcn.00474f0c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x474bec
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..40cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x478673
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0047415b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0047415b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4786ea
cmp word [ecx], dx
je 0x4786ea
mov eax, dword [0x484624]
push edi
dec eax
push eax
push 0x484510
call fcn.00478863
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x47875d
cmp word [eax], dx
je 0x47875d
mov eax, dword [edi]
test eax, eax
je 0x47870e
cmp word [eax], dx
je 0x47870e
lea eax, [ebp - 0x10]
push eax
call fcn.004788c4
jmp 0x478717
lea eax, [ebp - 0x10]
push eax
call fcn.00478bb2
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x478787
mov eax, dword [0x48450c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x484200
call fcn.00478863
add esp, 0xc
test al, al
je 0x478787
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x478752
cmp word [eax], di
je 0x478752
lea eax, [ebp - 0x10]
push eax
call fcn.004788c4
pop ecx
jmp 0x478789
lea eax, [ebp - 0x10]
push eax
call fcn.00478bb2
jmp 0x47874f
mov eax, dword [edi]
test eax, eax
je 0x478774
cmp word [eax], dx
je 0x478774
lea eax, [ebp - 0x10]
push eax
call fcn.00478ce6
pop ecx
jmp 0x478787
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x478852
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00478dd8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x478852
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x478852
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x478852
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4787df
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00474d4f
test ebx, ebx
je 0x47884d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00474d4f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x478852
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x478852
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0047e647
add esp, 0x10
xor eax, eax
inc eax
jmp 0x478854
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466cac
leave
ret
Function at 0x478ede
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0047415b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x478f4d
cmp esi, dword [ebp - 4]
je 0x478f48
cmp dword [ebp + 0xc], 0
je 0x478f48
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x478f25
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00478fa7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x478f4f
xor eax, eax
inc eax
jmp 0x478f4f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x479f09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004697a0
mov eax, dword [0x48f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00476b30
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x479f4b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x47a0a7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047e370
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4916a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00479cb1
mov ecx, dword [esi*4 + 0x4916a8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x47a0a0
cmp eax, dword [ecx + edi + 0x24]
jne 0x47a0a0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47a0a0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00479cb1
add esp, 0x14
test edx, edx
jl 0x47a0a0
jg 0x47a016
test eax, eax
jb 0x47a0a0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x47a0a0
jl 0x47a030
cmp dword [ebp - 0x1008], eax
ja 0x47a0a0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x47a04e
test ebx, ebx
je 0x47a087
cmp ecx, edi
jae 0x47a087
mov al, byte [ecx]
cmp al, 0xd
jne 0x47a068
lea eax, [edi - 1]
cmp ecx, eax
jae 0x47a074
cmp byte [ecx + 1], 0xa
jne 0x47a074
inc ecx
jmp 0x47a074
movzx eax, al
movsx eax, byte [eax + 0x4900f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x47a04e
cmp edx, ebx
jne 0x47a04e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47a0a5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00466cac
leave
ret
Function at 0x47a4af
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x47a54c
push ebx
push esi
call fcn.0047a54f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00474019
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x47a4f9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47a54b
push edi
push eax
call fcn.00473f09
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x47a519
call fcn.00473ecf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47a54a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00474019
add esp, 0x20
test eax, eax
jne 0x47a538
push edi
call fcn.00473ecf
jmp 0x47a540
push ebx
call fcn.00473ecf
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret