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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c3e8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6db3f0]
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 + 0x38]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0x244d4348
mov eax, dword [ebp + 8]
push eax
call fcn.004ad9a0
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x28]
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 + 0x28]
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.004ad9a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00425a30
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x2c]
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 + 0x28]
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.004ad9a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00425a30
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
push 0x54455854
mov eax, dword [ebp + 8]
push eax
call fcn.004ad9a0
add esp, 0xc
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x43fbb7
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x30]
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 + 0x28]
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.004ad9a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00425a30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4617b0
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 0x4617d8
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 0x461801
xor eax, eax
jmp 0x461853
cmp dword [ebp + 0x10], 0
je 0x461818
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 0x461850
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 0x461846
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 0x4682a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dba8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6db3f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
mov dword [eax], vtable.VObj.0
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x3c]
mov dword [edx], vtable.ExprItem.0
mov eax, dword [ebp - 0x3c]
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], vtable.ExprItem_NamedData.0
mov edx, dword [ebp - 0x3c]
add edx, 0xc
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0xe]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.004be5b0
mov edx, dword [ebp - 0x3c]
add edx, 0x30
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [eax], 0
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x2c], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x46adb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57de98
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6db3f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov dword [eax], vtable.VObj.0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x40]
mov dword [edx], vtable.ExprItem.0
mov eax, dword [ebp - 0x40]
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx], vtable.ExprItem_WindowHandle.0
mov edx, dword [ebp - 0x40]
add edx, 0x10
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0xe]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.004be5b0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x48], 0
mov ecx, dword [ebp - 0x40]
mov byte [ecx + 0x30], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x40]
mov byte [ecx + 0x44], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x46ea40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00542109
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
jmp 0x46ea67
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jge 0x46eb8d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
test edx, edx
jl 0x46eb75
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x100
jge 0x46eb75
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0xd
jne 0x46eaac
jmp 0x46ea5e
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 0x46eae2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
push eax
call fcn.0046e820
add esp, 4
jmp 0x46eb73
movsx ecx, word [ebp - 4]
test ecx, ecx
jge 0x46eaf7
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 0x46eb5c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x61
jl 0x46eb32
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x7a
jle 0x46eb50
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x41
jl 0x46eb5c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5a
jg 0x46eb5c
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.0046e910
add esp, 8
jmp 0x46eb88
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
push ecx
call fcn.0046e820
add esp, 4
jmp 0x46ea5e
mov esp, ebp
pop ebp
ret

Function at 0x46ec80
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push eax
call fcn.0046eba0
add esp, 4
test eax, eax
je 0x46ec9d
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 0x46ee00
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6dd6f0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46ee43
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx]
test eax, eax
je 0x46ee43
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x7f
jle 0x46ee38
mov dword [ebp - 4], 1
jmp 0x46ee43
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x46ee1a
cmp dword [ebp - 4], 0
je 0x46ee5a
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046ea40
add esp, 4
jmp 0x46ef1d
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404bf0
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 0x46ef13
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
cmp edx, 0x7f
jge 0x46eef6
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x14], cl
cmp byte [ebp - 0x14], 0xa
je 0x46eea8
cmp byte [ebp - 0x14], 0xd
je 0x46eea6
jmp 0x46eed8
jmp 0x46eeeb
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 0x46eeeb
mov edx, dword [ebp - 0x10]
movsx ax, byte [edx]
movzx ecx, ax
push ecx
call fcn.004049c0
add esp, 4
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x46ef0e
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
push ecx
call fcn.004049c0
add esp, 4
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
jmp 0x46ee77
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esp, ebp
pop ebp
ret
Function at 0x4b9230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x696c40
mov eax, dword [ebp + 8]
push eax
call fcn.0054620c
add esp, 8
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
setne cl
test ecx, ecx
jne 0x4b927c
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x4b9277
mov edx, dword [ebp - 4]
push edx
call fcn.005460ca
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x4b92d2
mov eax, dword [ebp - 4]
push eax
push 1
push 2
push 0x6a3054
call fcn.00546385
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.00546385
add esp, 0x10
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], 0
je 0x4b92cf
mov edx, dword [ebp - 4]
push edx
call fcn.005460ca
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4b92e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x696c40
mov eax, dword [ebp + 8]
push eax
call fcn.0054620c
add esp, 8
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
setne cl
test ecx, ecx
jne 0x4b932c
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x4b9327
mov edx, dword [ebp - 4]
push edx
call fcn.005460ca
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4b936b
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.00546385
add esp, 0x10
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x4b9368
mov ecx, dword [ebp - 4]
push ecx
call fcn.005460ca
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4c3270
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584843
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6db3f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
mov dword [eax], vtable.VObj.0
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x4c]
mov dword [edx], vtable.ExprItem.0
mov eax, dword [ebp - 0x4c]
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], vtable.ExprItem_Solver.0
mov ecx, dword [ebp - 0x4c]
add ecx, 0xc
call fcn.00425070
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
add edx, 0x10
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x19]
push eax
lea ecx, [ebp - 0x1a]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.005173d0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x30], 0
jne 0x4c3316
mov edx, dword [ebp - 0x4c]
fld qword [0x6a33a8]
fstp qword [edx + 0x38]
jmp 0x4c3322
mov eax, dword [ebp - 0x4c]
fld qword [0x6a33a0]
fstp qword [eax + 0x38]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e9690
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6db3f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x4e96c5
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4e96c9
xor eax, eax
jmp 0x4e971e
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00424d50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00424e30
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 0x4e9730
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.00425a30
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 0x4f4e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 1
push 0
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4f4ed3
mov dword [ebp - 8], 0
mov byte [ebp - 0xc], 0
xor edx, edx
mov byte [ebp - 0xb], dl
push 0
lea eax, [ebp - 8]
push eax
push 2
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jne 0x4f4ebe
movzx ecx, byte [ebp - 0xc]
cmp ecx, 0xff
jne 0x4f4ebe
movzx edx, byte [ebp - 0xb]
cmp edx, 0xfe
jne 0x4f4ebe
jmp 0x4f4ed3
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esp, ebp
pop ebp
ret
Function at 0x4f4ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0xffffffff
jne 0x4f4f96
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x10], 0
xor ecx, ecx
mov byte [ebp - 0xf], cl
push 0
lea edx, [ebp - 4]
push edx
push 2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0
jne 0x4f4f4d
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 1
jmp 0x4f4f81
cmp dword [ebp - 4], 2
jne 0x4f4f77
movzx ecx, byte [ebp - 0x10]
cmp ecx, 0xff
jne 0x4f4f77
movzx edx, byte [ebp - 0xf]
cmp edx, 0xfe
jne 0x4f4f77
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 1
jmp 0x4f4f81
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x50c9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x50c9e9
xor ecx, ecx
jne 0x50c9e9
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 0x50ca30
mov eax, dword [ebp - 0xc]
jmp 0x50ca8d
cmp dword [ebp - 4], 1
je 0x50ca43
cmp dword [ebp - 4], 2
je 0x50ca43
mov eax, 0xd
jmp 0x50ca8d
cmp dword [ebp + 0xc], 0
je 0x50ca81
cmp dword [ebp - 8], 0
je 0x50ca79
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x50ca70
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x50ca77
mov eax, 0xd
jmp 0x50ca8d
jmp 0x50ca81
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 0x515490
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 0x51c200
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 + 4]
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.00424f40
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00424fd0
mov esp, ebp
pop ebp
ret 4

Function at 0x51c4c0
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 0x51c4d4
xor eax, eax
jmp 0x51c4ef
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.00545f05
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x51c500
Capabilities:
Write 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 0x51c514
xor eax, eax
jmp 0x51c52f
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.00546385
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5235de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x523602
cmp dword [edi + 0x54], 0
jne 0x523602
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0052e9d1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0052359f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x529118
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x52915f
call fcn.0052e9d1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x52915f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x52917b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00528c90
mov esi, eax
test edi, edi
je 0x529179
test ebx, ebx
je 0x529179
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x529fc2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x589e5f
call fcn.005491be
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x529fe7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x52a02d
lea ecx, [ebp - 0x10]
call fcn.00425070
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00529831
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040d610
mov eax, esi
call fcn.00549296
ret 8

Function at 0x52d6d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x52d71b
call fcn.0052e9d1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x52d71b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x52d75e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x52d747
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x52d747
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x52d75b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc