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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45523c]
cmp byte [eax + 0xc], 0
je 0x43bf01
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43befa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x456b68], 0
jne 0x43bde8
push 0x43bf08
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43bf10
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b68], eax
cmp dword [0x454ba0], 0
jne 0x43bee3
push 0x43bf20
call sub.kernel32.dll_LoadLibraryA
mov dword [0x454ba0], eax
cmp dword [0x454ba0], 0
je 0x43bee3
push 0x43bf2c
mov eax, dword [0x454ba0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b6c], eax
push 0x43bf3c
mov eax, dword [0x454ba0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b70], eax
push 0x43bf50
mov eax, dword [0x454ba0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b74], eax
push 0x43bf68
mov eax, dword [0x454ba0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b78], eax
push 0x43bf80
mov eax, dword [0x454ba0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b7c], eax
push 0x43bf94
mov eax, dword [0x454ba0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b80], eax
push 0x43bfac
mov eax, dword [0x454ba0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b84], eax
push 0x43bfc4
mov eax, dword [0x454ba0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b88], eax
push 0x43bfe0
mov eax, dword [0x454ba0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b8c], eax
push 0x43bfec
mov eax, dword [0x454ba0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x456b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bf01
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43fd8c
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.00403f80
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43fddb
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.004041f0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4474f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447540]
test si, 4
je 0x447504
or bl, 1
test si, 8
je 0x44750e
or bl, 4
test si, 1
je 0x447518
or bl, 8
test si, 2
je 0x447522
or bl, 0x10
test si, 0x10
je 0x44752c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44753b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447544
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44757c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44755d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44756c
or bl, 4
test esi, 0x20000000
je 0x447577
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44dc24
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44dc36
add esp, 0xfffffff0
call fcn.00403554
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cad4
mov eax, dword [0x454ee0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44dfc8
mov eax, dword [0x454eec]
mov dword [eax + 4], ebx
mov dword [eax], 0x44dfd4
mov eax, ebx
call fcn.0044dfe0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414b70]
call fcn.00403218
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414b70]
call fcn.00403218
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414b70]
call fcn.00403218
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414b70]
call fcn.00403218
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414b70]
call fcn.00403218
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, 0x44a3fc
push eax
push 0
push 0
mov eax, dword [0x455044]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e4f8]
call fcn.0041f93c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e4f8]
call fcn.0041f93c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e4f8]
call fcn.0041f93c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e400
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e2dc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e2dc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e2dc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44dd73
call fcn.004035ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e0c0
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 0x44e26b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e24c
mov dl, 1
mov eax, dword [0x414f8c]
call fcn.00403218
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f80
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e23b
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.0043c0f4
test al, al
je 0x44e22e
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, 0x44e27c
lea eax, [ebp - 0x254]
call fcn.00408e08
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e22e
xor eax, eax
push ebp
push 0x44e227
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 0x44e2b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e210
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041f0
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 0x44e210
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e22e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e131
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418c30
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 0x44e272
lea eax, [ebp - 0x260]
call fcn.00403f80
ret

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

Disassembly:
push ecx
mov eax, dword [0x456bb4]
cmp byte [eax + 0xa5], 0
jne 0x44ec11
cmp dword [0x456bcc], 0
jne 0x44ebd2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44eb5c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x456bcc], eax
cmp dword [0x456bc8], 0
jne 0x44ebed
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x456bc8], eax
cmp dword [0x456bd0], 0
jne 0x44ec11
push esp
push 0
push 0
push 0x44eb00
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x456bd0], eax
pop edx
ret
Function at 0x44ed08
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ed1f
add esp, 0xfffffff0
call fcn.00403554
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cad4
mov eax, dword [0x455030]
cmp word [eax + 2], 0
jne 0x44ed47
mov eax, dword [0x455030]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450470
mov eax, dword [0x4550e0]
cmp word [eax + 2], 0
jne 0x44ed61
mov eax, dword [0x4550e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450668
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414b70]
call fcn.00403218
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414b70]
call fcn.00403218
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 [0x41eca8]
call fcn.004248f0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44eee8
mov eax, dword [0x454f48]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424cc0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x450c18
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x454f48]
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.0040c5c8
test eax, eax
je 0x44ee56
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004087fc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c5f0
test eax, eax
je 0x44ee6a
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.004041f0
mov eax, dword [0x454e28]
cmp byte [eax], 0
jne 0x44ee9e
mov eax, ebx
call fcn.0044f010
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.00450df4
mov eax, ebx
call fcn.004517b8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44eede
call fcn.004035ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f290
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x456bb4]
cmp dword [eax + 0x30], 0
je 0x44f33a
cmp dword [ebx + 0x94], 0
jne 0x44f334
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f220
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f334
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 0x44f2fa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f334
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.00416ed8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f309
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44fe9c
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 0x44fed1
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.00404070
jmp 0x44fede
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fd4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450fd0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451011
mov eax, esi
call fcn.004378fc
test al, al
je 0x451011
mov eax, dword [ebx + 0x84]
call fcn.0043769c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451011
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043769c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x452a74
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x452b21
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80
lea eax, [ebp - 0x85]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x8c]
lea edx, [ebp - 0x85]
mov ecx, 0x81
call fcn.004041f0
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 4]
mov edx, 3
call fcn.00428d94
cmp dword [ebp - 4], 0
je 0x452b00
test bl, bl
je 0x452af1
mov eax, esi
mov ecx, 0x452b38
mov edx, dword [ebp - 4]
call fcn.0040428c
jmp 0x452b00
mov eax, esi
mov ecx, 0x452b74
mov edx, dword [ebp - 4]
call fcn.0040428c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452b28
lea eax, [ebp - 0x8c]
call fcn.00403f80
lea eax, [ebp - 4]
call fcn.00403f80
ret
Function at 0x452ba4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x452c19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004045cc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404440
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x452bfc
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004044a0
jmp 0x452c03
mov eax, ebx
call fcn.00403f80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452c20
lea eax, [ebp - 4]
call fcn.00403f80
ret

Function at 0x452c28
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x404], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x452cb1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, ebx
call fcn.00404440
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
jne 0x452c75
mov eax, esi
mov edx, ebx
call fcn.00403fd4
jmp 0x452c98
lea eax, [ebp - 0x404]
lea edx, [ebp - 0x400]
mov ecx, 0x400
call fcn.004041f0
mov eax, dword [ebp - 0x404]
mov edx, esi
call fcn.00407ef4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452cb8
lea eax, [ebp - 0x404]
call fcn.00403f80
ret
Function at 0x452cc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x452e81
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80
lea eax, [ebp - 0x91]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x91]
mov ecx, 0x81
call fcn.004041f0
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 4]
mov edx, 3
call fcn.00428d94
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00452ba4
cmp dword [ebp - 4], 0
je 0x452e5b
cmp dword [ebp - 8], 0
je 0x452e5b
lea ecx, [ebp - 0x10]
mov edx, 0x452e98
mov eax, ebx
call fcn.00452c28
push esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0xb
lea edx, [ebp - 0xa0]
xor ecx, ecx
mov eax, 0x452eb0
call fcn.00408e88
mov eax, dword [esi]
call fcn.004085fc
test al, al
jne 0x452e5b
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 0xb
lea edx, [ebp - 0xb0]
mov ecx, 1
mov eax, 0x452ef0
call fcn.00408e88
mov eax, dword [esi]
call fcn.004085fc
test al, al
jne 0x452e5b
lea edx, [ebp - 0xc]
mov eax, 0x452f38
call fcn.0040d2bc
push esi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0xb
lea edx, [ebp - 0xa0]
xor ecx, ecx
mov eax, 0x452f50
call fcn.00408e88
mov eax, dword [esi]
call fcn.004085fc
test al, al
jne 0x452e5b
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0xb
lea edx, [ebp - 0xa0]
xor ecx, ecx
mov eax, 0x452f80
call fcn.00408e88
mov eax, dword [esi]
call fcn.004085fc
test al, al
jne 0x452e5b
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0xb
lea edx, [ebp - 0xa0]
xor ecx, ecx
mov eax, 0x452fc0
call fcn.00408e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452e88
lea eax, [ebp - 0x98]
call fcn.00403f80
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403fa4
ret
Function at 0x4534e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x4534e9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404430
mov eax, dword [ebp - 8]
call fcn.00404430
mov eax, dword [ebp + 0xc]
call fcn.00404430
mov eax, dword [ebp + 8]
call fcn.00404430
xor eax, eax
push ebp
push 0x453721
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4536aa
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [0x4550c4]
mov eax, dword [eax]
call fcn.00450980
lea edx, [ebp - 0xc]
mov eax, dword [0x454e84]
call fcn.00451c38
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, 0x453734
call fcn.00405884
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov ecx, 0x453744
call fcn.00405884
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
call fcn.00404018
mov eax, dword [ebp - 0x28]
call fcn.00404440
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
push 0x45375c
push dword [ebp - 4]
push 0x453768
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404300
mov eax, dword [ebp - 0x2c]
call fcn.00404440
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 0x1c]
call fcn.004086a4
mov eax, dword [ebp - 0x138]
call fcn.00404440
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
lea eax, [ebp - 0x18]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebp - 8]
call fcn.00404440
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0x1c]
call fcn.004086a4
mov edx, dword [ebp - 0x13c]
lea eax, [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
call fcn.0040428c
push 0
mov eax, dword [ebp - 0x24]
call fcn.00404440
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
lea eax, [ebp - 0x131]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x131]
mov ecx, 0x105
call fcn.004041f0
push dword [ebp - 0x144]
push 0x453774
push dword [ebp - 8]
push 0x453780
lea eax, [ebp - 0x140]
mov edx, 4
call fcn.00404300
mov edx, dword [ebp - 0x140]
lea eax, [ebp - 0x20]
call fcn.004047ac
push 0
mov eax, dword [ebp - 0x20]
call fcn.004047bc
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4536b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453728
lea eax, [ebp - 0x144]
mov edx, 4
call fcn.00403fa4
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00403fa4
lea eax, [ebp - 0x20]
call fcn.00404660
lea eax, [ebp - 0x1c]
call fcn.00403f80
lea eax, [ebp - 0x14]
call fcn.00405840
lea eax, [ebp - 0x10]
call fcn.00405840
lea eax, [ebp - 0xc]
call fcn.00405840
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403fa4
lea eax, [ebp + 8]
mov edx, 2
call fcn.00403fa4
ret
Function at 0x4538c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4539ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403f80
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00404440
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4539d7
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
jbe 0x4539a0
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x4539a0
xor eax, eax
mov dword [ebp - 8], eax
pushal
mov esi, dword [ebp - 4]
add esi, 0x4c
movzx ecx, word [esi]
add esi, 2
add esi, ecx
mov ecx, dword [esi + 0x10]
add esi, ecx
mov dword [ebp - 8], esi
popal
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.00404178
mov eax, dword [ebp - 8]
call fcn.004087c0
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp word [eax], 0
je 0x4539a0
mov eax, dword [ebp - 8]
inc eax
movzx eax, byte [eax]
add eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404178
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404248
xor eax, eax
push ebp
push 0x4539cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4539d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4539f4
lea eax, [ebp - 0xc]
call fcn.00403f80
ret
Function at 0x40615b
Capabilities:
Create pipe
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4dcc58]
mov ecx, dword [0x4dbbac]
sub esp, 0xe84
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40625e
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x4dcc58], 0x959
jne 0x40624c
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x405920
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x405978
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0xe80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00405f68
add ebx, 8
dec dword [ebp - 8]
jne 0x406184
pop edi
pop esi
pop ebx
leave
ret