joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442f40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5664c8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0xfc6800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0x244d4348
mov eax, dword [ebp + 8]
push eax
call fcn.004b4bd0
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [eax + 0x4c]
call edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
push 0x2457494e
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b4bd0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00427470
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x64], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 0x4c]
call eax
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
push 0x244d454e
mov edx, dword [ebp + 8]
push edx
call fcn.004b4bd0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00427470
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
push 0x54455854
mov eax, dword [ebp + 8]
push eax
call fcn.004b4bd0
add esp, 0xc
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x4430c7
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x4c]
call eax
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
push 0x24524554
mov edx, dword [ebp + 8]
push edx
call fcn.004b4bd0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00427470
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x475c90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
cmp dword [ebp + 0x10], 0
je 0x475cb8
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
push 0
push 0x2000000
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x475ce1
xor eax, eax
jmp 0x475d33
cmp dword [ebp + 0x10], 0
je 0x475cf8
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x14], 0xffffffff
je 0x475d30
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x475d26
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x4804d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00526686
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
jmp 0x4804f7
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jge 0x48061d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
test edx, edx
jl 0x480605
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x100
jge 0x480605
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0xd
jne 0x48053c
jmp 0x4804ee
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
push edx
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov word [ebp - 4], ax
movsx eax, word [ebp - 4]
cmp eax, 0xffffffff
jne 0x480572
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
push eax
call fcn.004802b0
add esp, 4
jmp 0x480603
movsx ecx, word [ebp - 4]
test ecx, ecx
jge 0x480587
movsx edx, word [ebp - 4]
not edx
add edx, 1
mov word [ebp - 4], dx
movsx eax, word [ebp - 4]
sar eax, 8
and eax, 1
mov dword [ebp - 0xc], eax
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 1
je 0x4805ec
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x61
jl 0x4805c2
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x7a
jle 0x4805e0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x41
jl 0x4805ec
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5a
jg 0x4805ec
xor edx, edx
cmp dword [ebp - 0xc], 0
sete dl
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
movsx ecx, word [ebp - 4]
and ecx, 0xff
push ecx
call fcn.004803a0
add esp, 8
jmp 0x480618
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
push ecx
call fcn.004802b0
add esp, 4
jmp 0x4804ee
mov esp, ebp
pop ebp
ret

Function at 0x480710
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push eax
call fcn.00480630
add esp, 4
test eax, eax
je 0x48072d
mov ecx, dword [ebp + 0xc]
or ecx, 1
mov dword [ebp + 0xc], ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
movzx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
movzx ecx, byte [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
pop ebp
ret
Function at 0x480b20
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xfc8b70]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x480b63
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx]
test eax, eax
je 0x480b63
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x7f
jle 0x480b58
mov dword [ebp - 4], 1
jmp 0x480b63
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x480b3a
cmp dword [ebp - 4], 0
je 0x480b7a
mov ecx, dword [ebp + 8]
push ecx
call fcn.004804d0
add esp, 4
jmp 0x480c3d
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042f3c0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x480c33
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
cmp edx, 0x7f
jge 0x480c16
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x14], cl
cmp byte [ebp - 0x14], 0xa
je 0x480bc8
cmp byte [ebp - 0x14], 0xd
je 0x480bc6
jmp 0x480bf8
jmp 0x480c0b
push 0
push 0
push 0
push 0xd
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0xd
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0xd
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0xd
call dword [sym.imp.USER32.dll_keybd_event]
jmp 0x480c0b
mov edx, dword [ebp - 0x10]
movsx ax, byte [edx]
movzx ecx, ax
push ecx
call fcn.004049a0
add esp, 4
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x480c2e
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
push ecx
call fcn.004049a0
add esp, 4
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
jmp 0x480b97
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esp, ebp
pop ebp
ret
Function at 0x4bab60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0xf7feb8
mov eax, dword [ebp + 8]
push eax
call fcn.0052c2f5
add esp, 8
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
setne cl
test ecx, ecx
jne 0x4babac
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x4baba7
mov edx, dword [ebp - 4]
push edx
call fcn.0052c1b3
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x4bac02
mov eax, dword [ebp - 4]
push eax
push 1
push 2
push 0xf8d5cc
call fcn.0052c46e
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0052c46e
add esp, 0x10
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], 0
je 0x4babff
mov edx, dword [ebp - 4]
push edx
call fcn.0052c1b3
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4bac10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0xf7feb8
mov eax, dword [ebp + 8]
push eax
call fcn.0052c2f5
add esp, 8
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
setne cl
test ecx, ecx
jne 0x4bac5c
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x4bac57
mov edx, dword [ebp - 4]
push edx
call fcn.0052c1b3
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4bac9b
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0052c46e
add esp, 0x10
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x4bac98
mov ecx, dword [ebp - 4]
push ecx
call fcn.0052c1b3
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4baca0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0xfc6800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0xf8d5d0
mov eax, dword [ebp + 8]
push eax
call fcn.0052c2f5
add esp, 8
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp dword [ebp - 0x10], 0
setne cl
test ecx, ecx
jne 0x4bad1c
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x4bad14
mov edx, dword [ebp - 0x10]
push edx
call fcn.0052c1b3
add esp, 4
mov eax, dword [ebp - 0x2c]
jmp 0x4bae9c
push 2
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0052d3c3
add esp, 0x10
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0052d2dd
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jg 0x4bad88
jl 0x4bad54
cmp dword [ebp - 0x1c], 0
ja 0x4bad88
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004bab60
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x4bad80
mov edx, dword [ebp - 0x10]
push edx
call fcn.0052c1b3
add esp, 4
mov eax, dword [ebp - 0x30]
jmp 0x4bae9c
mov byte [ebp - 0x20], 0
xor eax, eax
mov byte [ebp - 0x1f], al
push 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0052d3c3
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
push 1
push 2
lea eax, [ebp - 0x20]
push eax
call fcn.0052bfee
add esp, 0x10
push 2
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0052d3c3
add esp, 0x10
movzx edx, byte [ebp - 0x20]
cmp edx, 0xff
jne 0x4bade9
movzx eax, byte [ebp - 0x1f]
cmp eax, 0xfe
jne 0x4bade9
mov dword [ebp - 0x54], 1
jmp 0x4badf0
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x4bae25
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00526686
add esp, 4
shl eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.0052c46e
add esp, 0x10
jmp 0x4bae79
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0042f3c0
add esp, 8
cmp dword [ebp - 0x28], 0
je 0x4bae79
mov edx, dword [ebp - 0x28]
movsx eax, byte [edx]
test eax, eax
je 0x4bae79
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
push 1
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0052c46e
add esp, 0x10
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x4bae99
mov eax, dword [ebp - 0x10]
push eax
call fcn.0052c1b3
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4d87a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0xfc6800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x4d87d5
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4d87d9
xor eax, eax
jmp 0x4d882e
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00426870
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00426950
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x18]
push edx
push 0x4d8840
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00427470
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4de140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 4], eax
push 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [0xf8e4f4]
push edx
mov eax, dword [0xf8e4f0]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x4de1de
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x10], 0
xor ecx, ecx
mov byte [ebp - 0xf], cl
push 0
lea edx, [ebp - 0xc]
push edx
push 2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 2
jne 0x4de1c5
movzx eax, byte [ebp - 0x10]
cmp eax, 0xff
jne 0x4de1c5
movzx ecx, byte [ebp - 0xf]
cmp ecx, 0xfe
jne 0x4de1c5
jmp 0x4de1de
push 0
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esp, ebp
pop ebp
ret
Function at 0x4de1f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0xffffffff
jne 0x4de2de
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0
xor edx, edx
mov dword [ebp - 0xc], edx
push 1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0xf8e4f4]
push ecx
mov edx, dword [0xf8e4f0]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push 0
mov edx, dword [0xf8e4f4]
push edx
mov eax, dword [0xf8e4f0]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 4], 0
mov byte [ebp - 0x14], 0
xor eax, eax
mov byte [ebp - 0x13], al
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0
jne 0x4de292
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], 1
jmp 0x4de2c5
cmp dword [ebp - 4], 2
jne 0x4de2bb
movzx eax, byte [ebp - 0x14]
cmp eax, 0xff
jne 0x4de2bb
movzx ecx, byte [ebp - 0x13]
cmp ecx, 0xfe
jne 0x4de2bb
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], 1
jmp 0x4de2c5
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4e3c10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570429
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0xfc6800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4e3c78
push 0
mov ecx, dword [ebp + 8]
call fcn.00475d90
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x4e3d8e
lea edx, [ebp - 0x20]
push edx
call dword [0xfc8c34]
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00475d40
mov byte [ebp - 4], 3
cmp dword [ebp - 0x20], 0
je 0x4e3cba
mov ecx, dword [ebp - 0x20]
call fcn.004024b0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
jmp 0x4e3ccc
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jge 0x4e3d53
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [0xfc8c20]
add esp, 8
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x58]
push eax
call fcn.00475d40
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00475d40
mov dword [ebp - 0x64], eax
push 0
mov byte [ebp - 4], 4
call dword [0xfc8c54]
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [ebp - 0x28], 0
je 0x4e3d4e
mov ecx, dword [ebp - 0x28]
call fcn.004024b0
mov dword [ebp - 0x28], 0
jmp 0x4e3cc3
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00475d40
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x4e3d8b
mov ecx, dword [ebp - 0x18]
call fcn.004024b0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4f32b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4f32b9
xor ecx, ecx
jne 0x4f32b9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4f3300
mov eax, dword [ebp - 0xc]
jmp 0x4f335d
cmp dword [ebp - 4], 1
je 0x4f3313
cmp dword [ebp - 4], 2
je 0x4f3313
mov eax, 0xd
jmp 0x4f335d
cmp dword [ebp + 0xc], 0
je 0x4f3351
cmp dword [ebp - 8], 0
je 0x4f3349
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4f3340
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x4f3347
mov eax, 0xd
jmp 0x4f335d
jmp 0x4f3351
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4f6050
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0x42444c7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov byte [eax + 8], 0xe9
mov ecx, dword [ebp - 8]
add ecx, 0xd
mov edx, dword [ebp + 8]
sub edx, ecx
mov eax, dword [ebp - 8]
mov dword [eax + 9], edx
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0xd
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xd
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esp, ebp
pop ebp
ret 8

Function at 0x5006d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00426a60
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00426af0
mov esp, ebp
pop ebp
ret 4

Function at 0x500990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x5009a4
xor eax, eax
jmp 0x5009bf
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0052bfee
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc