joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430af0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x430bd8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0xd
je 0x430b1f
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0x41
jne 0x430bd8
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
and ecx, 0x8000
je 0x430b44
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x430bd8
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0xd
jne 0x430b98
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x54], 0
je 0x430b96
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00544bc3
mov dword [ebp - 0xc], eax
push 0
push 1
push 0x111
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
jmp 0x430c25
jmp 0x430bd8
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0x41
jne 0x430bd8
push 0xffffffffffffffff
push 0
push 0xb1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
jne 0x430bd1
push 0
push 0
push 0xb7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
jmp 0x430c25
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x58], 0
je 0x430c19
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x430c19
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 8]
cmp edx, 9
jne 0x430c19
push 0xfbbd28
push 0
push 0xc2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
jmp 0x430c25
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00542d0c
mov esp, ebp
pop ebp
ret 4
Function at 0x431790
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
jmp 0x4317ab
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0xc], edx
jge 0x431807
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0xf8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp - 4]
jbe 0x4317e7
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jb 0x431805
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
jae 0x431805
mov eax, dword [ebp - 0xc]
jmp 0x43180a
jmp 0x4317a2
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 4

Function at 0x431810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
push 0xfbbd90
mov eax, dword [ebp + 8]
push eax
call fcn.0056660b
add esp, 8
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
setne cl
test ecx, ecx
jne 0x431868
mov edx, dword [ebp + 0x10]
mov dword [edx], 0xffffffff
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x431860
mov eax, dword [ebp - 4]
push eax
call fcn.005664c9
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x43194a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.00566420
add esp, 4
push eax
call fcn.00566321
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x4318b1
mov dword [ebp - 0x14], 0
cmp dword [ebp - 4], 0
je 0x4318a9
mov eax, dword [ebp - 4]
push eax
call fcn.005664c9
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x43194a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
cmp dword [ebp + 0x14], 0
je 0x4318c8
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00561104
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4318fb
mov dword [ebp - 0x18], 0
cmp dword [ebp - 4], 0
je 0x4318f6
mov edx, dword [ebp - 4]
push edx
call fcn.005664c9
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x43194a
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00566304
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x431927
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov word [ecx + edx], ax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 4], 0
je 0x431947
mov edx, dword [ebp - 4]
push edx
call fcn.005664c9
add esp, 4
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x431950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0xfbbd98
mov eax, dword [ebp + 8]
push eax
call fcn.0056660b
add esp, 8
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
setne cl
test ecx, ecx
jne 0x43199c
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x431997
mov edx, dword [ebp - 4]
push edx
call fcn.005664c9
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4319ce
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00566784
add esp, 0x10
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x4319cb
mov eax, dword [ebp - 4]
push eax
call fcn.005664c9
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x432f90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret

Function at 0x433b10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne 0x433c80
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0xd
jne 0x433b8b
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
and eax, 0x8000
je 0x433b58
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00544bc3
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0xc]
call fcn.00434190
mov eax, 1
jmp 0x433c8c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0x1b
jne 0x433bd2
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00544bc3
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x100], 0xffffffff
push 0
push 0
mov ecx, dword [ebp - 0x10]
call fcn.00434190
mov eax, 1
jmp 0x433c8c
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0x26
jne 0x433c1b
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00544bc3
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x100], 0
jle 0x433c12
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x100]
sub ecx, 1
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00434490
mov eax, 1
jmp 0x433c8c
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0x28
jne 0x433c80
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00544bc3
mov dword [ebp - 0x18], eax
push 0
push 0
push 0x1004
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 1
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x100], ecx
jge 0x433c79
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x100]
add ecx, 1
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00434490
mov eax, 1
jmp 0x433c8c
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00542d0c
mov esp, ebp
pop ebp
ret 4
Function at 0x434e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 0x100]
mov byte [ebp - 2], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 0x101]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
jmp 0x434e76
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x434f26
movzx ecx, byte [ebp - 2]
add ecx, 1
and ecx, 0x800000ff
jns 0x434e99
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + edx]
movzx edx, byte [ebp - 1]
add ecx, edx
and ecx, 0x800000ff
jns 0x434ebd
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 1], cl
movzx eax, byte [ebp - 1]
add eax, dword [ebp - 0x10]
push eax
movzx ecx, byte [ebp - 2]
add ecx, dword [ebp - 0x10]
push ecx
call fcn.00434e10
add esp, 8
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + edx]
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x10]
movzx edx, byte [eax + edx]
add ecx, edx
and ecx, 0x800000ff
jns 0x434f00
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 9], cl
movzx eax, byte [ebp - 9]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + eax]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov byte [edx], cl
jmp 0x434e6d
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 2]
mov byte [eax + 0x100], cl
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 1]
mov byte [edx + 0x101], al
mov esp, ebp
pop ebp
ret
Function at 0x443c10
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f768
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1004618]
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.004c5fe0
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 + 0x3c]
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.004c5fe0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004025d0
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 + 0x3c]
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.004c5fe0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004025d0
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.004c5fe0
add esp, 0xc
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x443d97
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 + 0x3c]
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.004c5fe0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004025d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x46a190
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a06c0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1004618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.004d0ed0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x68], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 0x30]
call eax
test eax, eax
jne 0x46a248
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x46a224
mov ecx, dword [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x46a240
mov ecx, dword [ebp + 0xc]
call fcn.00402570
mov dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x18]
jmp 0x46a35c
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x6c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x30]
call eax
test eax, eax
jne 0x46a2b4
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x46a290
mov ecx, dword [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x46a2ac
mov ecx, dword [ebp + 0xc]
call fcn.00402570
mov dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x1c]
jmp 0x46a35c
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x70]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x70]
mov eax, dword [edx + 0x30]
call eax
test eax, eax
jne 0x46a31d
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x46a2fc
mov ecx, dword [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x46a318
mov ecx, dword [ebp + 0xc]
call fcn.00402570
mov dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x20]
jmp 0x46a35c
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x46a33d
mov ecx, dword [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x46a359
mov ecx, dword [ebp + 0xc]
call fcn.00402570
mov dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x476a60
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 0x476a88
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 0x476ab1
xor eax, eax
jmp 0x476b03
cmp dword [ebp + 0x10], 0
je 0x476ac8
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 0x476b00
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 0x476af6
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 0x484a70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00560b8c
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
jmp 0x484a97
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jge 0x484bbd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
test edx, edx
jl 0x484ba5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x100
jge 0x484ba5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0xd
jne 0x484adc
jmp 0x484a8e
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 0x484b12
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
push eax
call fcn.00484850
add esp, 4
jmp 0x484ba3
movsx ecx, word [ebp - 4]
test ecx, ecx
jge 0x484b27
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 0x484b8c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x61
jl 0x484b62
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x7a
jle 0x484b80
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x41
jl 0x484b8c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5a
jg 0x484b8c
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.00484940
add esp, 8
jmp 0x484bb8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
push ecx
call fcn.00484850
add esp, 4
jmp 0x484a8e
mov esp, ebp
pop ebp
ret

Function at 0x484cb0
Capabilities:
Log keystrokes

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1006940]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x485053
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx]
test eax, eax
je 0x485053
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x7f
jle 0x485048
mov dword [ebp - 4], 1
jmp 0x485053
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x48502a
cmp dword [ebp - 4], 0
je 0x48506a
mov ecx, dword [ebp + 8]
push ecx
call fcn.00484a70
add esp, 4
jmp 0x48512d
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404bd0
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 0x485123
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
cmp edx, 0x7f
jge 0x485106
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x14], cl
cmp byte [ebp - 0x14], 0xa
je 0x4850b8
cmp byte [ebp - 0x14], 0xd
je 0x4850b6
jmp 0x4850e8
jmp 0x4850fb
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 0x4850fb
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 0x48511e
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 0x485087
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esp, ebp
pop ebp
ret
Function at 0x4d1d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0xfbbd98
mov eax, dword [ebp + 8]
push eax
call fcn.0056660b
add esp, 8
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
setne cl
test ecx, ecx
jne 0x4d1dbc
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x4d1db7
mov edx, dword [ebp - 4]
push edx
call fcn.005664c9
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x4d1e12
mov eax, dword [ebp - 4]
push eax
push 1
push 2
push 0xfc9aec
call fcn.00566784
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.00566784
add esp, 0x10
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], 0
je 0x4d1e0f
mov edx, dword [ebp - 4]
push edx
call fcn.005664c9
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4d1e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0xfbbd98
mov eax, dword [ebp + 8]
push eax
call fcn.0056660b
add esp, 8
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
setne cl
test ecx, ecx
jne 0x4d1e6c
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x4d1e67
mov edx, dword [ebp - 4]
push edx
call fcn.005664c9
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4d1eab
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.00566784
add esp, 0x10
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x4d1ea8
mov ecx, dword [ebp - 4]
push ecx
call fcn.005664c9
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret