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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x450130]
cmp byte [eax + 0xc], 0
je 0x4388c1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4388ba
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x451b64], 0
jne 0x4387a8
push 0x4388c8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4388d0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b64], eax
cmp dword [0x44fb10], 0
jne 0x4388a3
push 0x4388e0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44fb10], eax
cmp dword [0x44fb10], 0
je 0x4388a3
push 0x4388ec
mov eax, dword [0x44fb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b68], eax
push 0x4388fc
mov eax, dword [0x44fb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b6c], eax
push 0x438910
mov eax, dword [0x44fb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b70], eax
push 0x438928
mov eax, dword [0x44fb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b74], eax
push 0x438940
mov eax, dword [0x44fb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b78], eax
push 0x438954
mov eax, dword [0x44fb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b7c], eax
push 0x43896c
mov eax, dword [0x44fb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b80], eax
push 0x438984
mov eax, dword [0x44fb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b84], eax
push 0x4389a0
mov eax, dword [0x44fb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b88], eax
push 0x4389ac
mov eax, dword [0x44fb10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4388c1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43c74c
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.00403fbc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43c79b
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.0040422c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x443eb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x443f00]
test si, 4
je 0x443ec4
or bl, 1
test si, 8
je 0x443ece
or bl, 4
test si, 1
je 0x443ed8
or bl, 8
test si, 2
je 0x443ee2
or bl, 0x10
test si, 0x10
je 0x443eec
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x443efb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x443f04
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x443f3c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x443f1d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x443f2c
or bl, 4
test esi, 0x20000000
je 0x443f37
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44a5e4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44a5f6
add esp, 0xfffffff0
call fcn.00403590
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419224
mov eax, dword [0x44fe04]
mov dword [eax + 4], ebx
mov dword [eax], 0x44a988
mov eax, dword [0x44fe10]
mov dword [eax + 4], ebx
mov dword [eax], 0x44a994
mov eax, ebx
call fcn.0044a9a0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4114ac]
call fcn.00403254
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4114ac]
call fcn.00403254
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4114ac]
call fcn.00403254
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4114ac]
call fcn.00403254
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4114ac]
call fcn.00403254
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, 0x446dbc
push eax
push 0
push 0
mov eax, dword [0x44ff54]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ac48]
call fcn.0041c08c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ac48]
call fcn.0041c08c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ac48]
call fcn.0041c08c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044adc0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ac9c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ac9c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ac9c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44a733
call fcn.004035e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44aa80
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 0x44ac2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ac0c
mov dl, 1
mov eax, dword [0x4118c8]
call fcn.00403254
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403fbc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44abfb
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.00438ab4
test al, al
je 0x44abee
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, 0x44ac3c
lea eax, [ebp - 0x254]
call fcn.004089fc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44abee
xor eax, eax
push ebp
push 0x44abe7
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 0x44ac74
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44abd0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040422c
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 0x44abd0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040422c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44abee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44aaf1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004153a4
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 0x44ac32
lea eax, [ebp - 0x260]
call fcn.00403fbc
ret

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

Disassembly:
push ecx
mov eax, dword [0x451bb0]
cmp byte [eax + 0xa5], 0
jne 0x44b5d1
cmp dword [0x451bc8], 0
jne 0x44b592
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44b51c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x451bc8], eax
cmp dword [0x451bc4], 0
jne 0x44b5ad
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x451bc4], eax
cmp dword [0x451bcc], 0
jne 0x44b5d1
push esp
push 0
push 0
push 0x44b4c0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x451bcc], eax
pop edx
ret
Function at 0x44b6c8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44b6df
add esp, 0xfffffff0
call fcn.00403590
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419224
mov eax, dword [0x44ff40]
cmp word [eax + 2], 0
jne 0x44b707
mov eax, dword [0x44ff40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ce30
mov eax, dword [0x44ffec]
cmp word [eax + 2], 0
jne 0x44b721
mov eax, dword [0x44ffec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d028
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4114ac]
call fcn.00403254
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4114ac]
call fcn.00403254
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b3f8]
call fcn.00421040
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44b8a8
mov eax, dword [0x44fe64]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421410
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44d5d8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44fe64]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c038
test eax, eax
je 0x44b816
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004083f0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c060
test eax, eax
je 0x44b82a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040422c
mov eax, dword [0x44fd68]
cmp byte [eax], 0
jne 0x44b85e
mov eax, ebx
call fcn.0044b9d0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044d7b4
mov eax, ebx
call fcn.0044e178
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44b89e
call fcn.004035e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44bc50
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x451bb0]
cmp dword [eax + 0x30], 0
je 0x44bcfa
cmp dword [ebx + 0x94], 0
jne 0x44bcf4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44bbe0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44bcf4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44bcba
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44bcf4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413814
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44bcc9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44c85c
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 0x44c891
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.004040ac
jmp 0x44c89e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404010
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44d990
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44d9d1
mov eax, esi
call fcn.00434174
test al, al
je 0x44d9d1
mov eax, dword [ebx + 0x84]
call fcn.00433f14
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44d9d1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00433f14
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4052d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41f12b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40418c
call fcn.00405adb
push 4
mov dword [esp + 0x18], 0
call fcn.00406a60
mov edi, eax
add esp, 4
test edi, edi
je 0x405344
push ebx
call fcn.00405f17
mov dword [edi], eax
call fcn.00405c97
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00405a1c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405338
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00405a44
pop ebx
jmp 0x405346
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x407104
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4225a8]
jne 0x40710e
repz ret
jmp fcn.0040dbfc
Function at 0x41aa5a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4225a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c31c
and dword [ebp - 0x14], 0
cmp dword [0x81f3d8], 0
mov dword [ebp - 0x18], eax
jne 0x41ab0d
push 0x403e00
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41abb5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403df4
push ebx
call edi
test eax, eax
je 0x41abb5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403de4
push ebx
mov dword [0x81f3d8], eax
call edi
push eax
call esi
push 0x403dd0
push ebx
mov dword [0x81f3dc], eax
call edi
push eax
call esi
push 0x403db4
push ebx
mov dword [0x81f3e0], eax
call edi
push eax
call esi
mov dword [0x81f3e8], eax
test eax, eax
je 0x41ab0d
push 0x403d9c
push ebx
call edi
push eax
call esi
mov dword [0x81f3e4], eax
mov eax, dword [0x81f3e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ab66
cmp dword [0x81f3e8], ecx
je 0x41ab66
push eax
call esi
push dword [0x81f3e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ab66
test ebx, ebx
je 0x41ab66
call edi
test eax, eax
je 0x41ab5d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ab5d
test byte [ebp - 8], 1
jne 0x41ab66
or dword [ebp + 0x10], 0x200000
jmp 0x41ab99
mov eax, dword [0x81f3dc]
cmp eax, dword [ebp - 0x18]
je 0x41ab99
push eax
call esi
test eax, eax
je 0x41ab99
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ab99
mov eax, dword [0x81f3e0]
cmp eax, dword [ebp - 0x18]
je 0x41ab99
push eax
call esi
test eax, eax
je 0x41ab99
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81f3d8]
call esi
test eax, eax
je 0x41abb5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41abb7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407104
leave
ret

Function at 0x41e4a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0xcc9848], ax
mov word [0xcc984c], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0xcc9848
mov dword [0xcc9854], 0x320033
mov dword [0xcc985c], 0x6c006c
mov word [0xcc984e], cx
mov dword [0xcc9850], 0x6c0065
mov dword [0xcc9858], 0x64002e
mov word [0xcc984a], dx
mov word [0xcc9860], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0xcc9844]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0xcc9840], eax
mov eax, dword [0xcc8030]
push edx
push eax
mov byte [0x81f403], 0x65
mov dword [0x81f3f9], 0x75747269
mov word [0x81f3fd], 0x6c61
mov byte [0x81f3f8], 0x56
mov word [0x81f404], 0x7463
mov byte [0x81f406], 0
mov dword [0x81f3ff], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x41e5a0
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1280
call fcn.0041d980
cmp dword [0xcc9844], 0x37
push esi
jne 0x41e6a1
push 0
lea eax, [esp + 0x284]
push eax
push 0x403ee4
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
call esi
xor eax, eax
lea edx, [esp + 8]
push edx
push eax
push eax
push eax
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ReadFileScatter]
push 0
lea eax, [esp + 0x684]
push eax
push 0x403ef0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0xa84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0x60]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
call esi
push 0x403f18
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x38], 0
call fcn.00410220
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov edx, dword [0xccbfa8]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + ebx]
mov edx, dword [0xcc8030]
mov byte [edx + ebx], cl
pop esi
add esp, 0x1280
ret
Function at 0x41e940
Capabilities:
Accept command line arguments
Get geographical location
Query environment variable

Disassembly:
mov eax, dword [0xcc9844]
mov ecx, dword [0xcc8030]
sub esp, 0x984
push ebx
push ebp
shr eax, 3
xor ebp, ebp
push esi
push edi
cmp eax, ebp
jbe 0x41eb3b
mov dword [esp + 0x3c], 0x9e3779b9
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [0x81d030]
mov edx, dword [0x81d034]
mov dword [esp + 0x1c], eax
mov eax, dword [0x81d038]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x81d03c]
mov dword [esp + 0x18], 0xc6ef3720
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], 0x20
mov ebx, dword [esp + 0x18]
mov eax, edi
shl eax, 4
add eax, dword [esp + 0x34]
mov esi, edi
add ebx, edi
shr esi, 5
cmp dword [0xcc9844], 0x1b
mov dword [esp + 0x14], eax
jne 0x41e9f6
push ebp
call dword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
add esi, dword [esp + 0x44]
xor eax, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], eax
mov dword [0xcc8034], ebp
mov eax, dword [esp + 0x24]
add dword [0xcc8034], eax
mov ecx, dword [0xcc8034]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x40]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
xor eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
sub dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x48]
add esi, ecx
cmp dword [0xcc9844], 0x1be
mov dword [esp + 0x14], eax
jne 0x41ea8b
push ebp
lea eax, [esp + 0x194]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
shr ecx, 5
add ecx, dword [esp + 0x38]
cmp dword [0xcc9844], 0x979
mov dword [0xcc8038], 0xff6b3619
mov dword [0xcc803c], 0xffffffff
mov dword [esp + 0x24], ecx
jne 0x41eac6
lea ecx, [esp + 0x50]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x14]
xor eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
xor dword [esp + 0x14], eax
sub edi, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x3c]
add dword [esp + 0x20], eax
sub dword [esp + 0x18], eax
dec dword [esp + 0x2c]
jne 0x41e9b2
cmp dword [0xcc9844], 0x8d4
jne 0x41eb04
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [eax], edi
mov dword [eax + 4], edx
cmp dword [0xcc9844], 0x17
jne 0x41eb26
lea eax, [esp + 0x50]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ecx, dword [esp + 0x28]
add ecx, 8
dec dword [esp + 0x30]
mov dword [esp + 0x28], ecx
jne 0x41e972
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x984
ret