joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0195
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a02ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a02ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0050c9c6
mov esi, eax
test esi, esi
je 0x4a02ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4a02ad
mov ecx, esi
call fcn.004a0120
cmp edi, eax
jge 0x4a02ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4a0233
mov dword [esp + 0x34], 1
jmp 0x4a028e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4a02ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0049e970
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4addb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4addfc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4addfc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4adde6
push eax
call ebp
test ax, ax
jl 0x4addf4
inc esi
add edi, 4
cmp esi, 6
jb 0x4addd8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.004adab0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4b0cc0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4b0d20
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4b0d20
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4b0d20
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4b0d20
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4b0d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4bbb70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4bbb7b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4bbc7e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x5c9248]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5c9248]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5c9248]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5c9248]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5c9248]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5c9248]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5c9248]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5c9248]
xor eax, edx
inc ecx
dec edi
jne 0x4bbb96
pop edi
test esi, esi
je 0x4bbca0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5c9248]
xor eax, edx
inc ecx
dec esi
jne 0x4bbc82
pop esi
pop ebx
not eax
ret
Function at 0x4c2c10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c2c83
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c2c78
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.004fb932
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x4d7ab0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x521be6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x600db4]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.0050d369
cmp dword [0x63f874], ebx
je 0x4d7b20
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.0050ae46
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x600db4]
push ebp
push edi
mov edi, 1
mov dword [0x63f874], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4d7b49
mov dword [esp + 0x20], ebx
jmp 0x4d7b50
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.0050f538
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.0050af7f
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4d7bae
mov dword [esp + 0x14], ebx
jmp 0x4d7bb5
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4d7bcf
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4d7bc9
cmp eax, 2
jne 0x4d7bcf
mov dword [esp + 0x18], edi
jmp 0x4d7bd3
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4d7be1
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0050c99f
mov edi, eax
cmp edi, ebx
jne 0x4d7bf1
xor eax, eax
jmp 0x4d7bf4
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4d7c1c
mov ecx, esi
call fcn.0050f538
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4d7c34
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x63f874], 0
test eax, eax
je 0x4d7c5d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4d7c5d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.0050ae46
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0050ae46
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4d9b80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x521dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00511c95
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.004d9ac0
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00511bc3
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4d9c47
cmp dword [esp + 0x40], 1
jne 0x4d9c45
cmp ecx, eax
jge 0x4d9c47
mov eax, ecx
cmp eax, 0x12c
jge 0x4d9c53
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004d9ca0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00511d07
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4ddf80
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5222c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x600db4]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.0050d369
mov edx, dword [0x600db4]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x4ddfda
mov dword [esp + 0x1c], ebx
jmp 0x4ddfe1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.0050f538
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.0050af7f
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4de032
mov dword [esp + 0x14], ebx
jmp 0x4de039
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x4de054
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4de04e
cmp eax, 2
jne 0x4de054
mov dword [esp + 0x18], edi
jmp 0x4de058
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4de066
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0050c99f
mov edi, eax
cmp edi, ebx
jne 0x4de076
xor eax, eax
jmp 0x4de079
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4de0a1
mov ecx, esi
call fcn.0050f538
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x4de0bd
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4de0dc
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x4de0dc
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.0050ae46
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.0050ae46
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4ea740
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4ea7a6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4ea7a6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4ea787
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4eab30
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4eab68
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4eb790
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4eb7d9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4ebc50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5235f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004eb800
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004eb880
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004eb880
lea ecx, [esi + 0xc]
call fcn.0050add1
lea ecx, [esi + 0x10]
call fcn.0050add1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004ecde0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004ecde0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004ecde0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0050ae46
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0050ae46
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x50d369
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50d3a1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0050b2ed
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050b2c5
jmp 0x50d3ad
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x50ebe6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x50ec28
call fcn.00515da8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50ec28
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50ec1f
xor eax, eax
jmp 0x50ec30
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050ec36
pop edi
pop esi
pop ebx
ret 4

Function at 0x5162d8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x516306
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x516324
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051623e
jmp 0x516324
mov eax, dword [esi + 0x14]
test eax, eax
je 0x516324
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051623e
test edi, edi
mov eax, edi
jne 0x51630e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5190cd
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5190f5
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x519106
push 2
call edi
test ax, ax
jge 0x519106
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0050c99f
cmp dword [esi + 0x30], ebx
jne 0x5191e0
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0050c99f
cmp eax, dword [esp + 0x34]
jne 0x5191e0
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x51917c
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5191c1
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5191e0
cmp eax, 0x205
je 0x5191e0
cmp eax, 0x201
je 0x5191e0
cmp eax, 0x204
je 0x5191e0
cmp eax, ebx
jne 0x5191a7
cmp dword [esp + 0x1c], 0x1b
je 0x5191e0
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x666078]
jbe 0x5191d6
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x519139
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x1006fb5
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xdcd0
call fcn.01009450
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 8]
lea ecx, [ebp - 0x1980]
push dword [esi + 0xc]
call fcn.01007998
lea ecx, [ebp - 0x20]
call fcn.01004176
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fa
push dword [esi + 8]
call edi
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc40]
push 0x1002740
push eax
call ebx
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
je 0x1007023
lea eax, [ebp - 0xc40]
push eax
push 0
push 0xc
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3fb
push dword [esi + 8]
call edi
mov edi, eax
invalid

Function at 0x10076a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0x410
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x100776e
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0100932e
mov eax, dword [ebp + 8]
add esp, 0xc
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x100775a
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007741
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, dword [ebp - 8]
je 0x100773e
push 0x10027e4
push dword [ebp + 8]
call fcn.010076a1
pop ecx
pop ecx
xor ebx, ebx
inc ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x1007770
push edi
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10078f6
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push 0x1002834
mov esi, 0x1002824
push esi
mov ebx, ecx
call fcn.01005f92
test eax, eax
je 0x1007944
push edi
push 0
push 0x1002820
push 0x1002818
push esi
push esi
push 0
call fcn.01009661
add esp, 0x18
mov edi, 0x1002808
push edi
mov ecx, ebx
call fcn.0100784a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
push esi
call edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret

Function at 0x1007947
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push 0x1002864
mov esi, 0x1002854
push esi
mov ebx, ecx
call fcn.01005f92
test eax, eax
je 0x1007995
push edi
push 0
push 0x1002820
push 0x1002818
push esi
push esi
push 0
call fcn.01009661
add esp, 0x18
mov edi, 0x1002844
push edi
mov ecx, ebx
call fcn.0100784a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
push esi
call edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x100e541
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100e561
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100da05
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x100e582
test byte [esp + 8], 2
je 0x100e582
mov dword [0x10135f8], 0xd
mov dword [0x10135fc], 5
jmp 0x100e55d
xor eax, eax
ret

Function at 0x100e8b2
Capabilities:
Clear file content

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
cmp edi, dword [0x1014a28]
jae 0x100ea0e
mov eax, edi
sar eax, 5
mov eax, dword [eax*4 + 0x1014a40]
mov ecx, edi
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x100ea0e
push 1
push esi
push edi
call fcn.0100d146
or ebp, 0xffffffff
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0xc], eax
je 0x100ea0a
push 2
push esi
push edi
call fcn.0100d146
add esp, 0xc
cmp eax, ebp
je 0x100ea0a
push ebx
mov ebx, dword [esp + 0x1c]
sub ebx, eax
test ebx, ebx
jle 0x100e9b6
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
jne 0x100e94e
mov dword [0x10135f8], 0xc
or esi, 0xffffffff
jmp 0x100e9f6
push 0x8000
push edi
call fcn.0100ea47
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov eax, 0x1000
cmp ebx, eax
jge 0x100e96a
mov eax, ebx
push eax
push ebp
push edi
call fcn.0100d1d2
add esp, 0xc
cmp eax, 0xffffffff
je 0x100e982
sub ebx, eax
test ebx, ebx
jg 0x100e95f
jmp 0x100e998
cmp dword [0x10135fc], 5
jne 0x100e995
mov dword [0x10135f8], 0xd
or esi, 0xffffffff
push dword [esp + 0x18]
push edi
call fcn.0100ea47
pop ecx
pop ecx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100e9f6
jge 0x100e9f6
push 0
push dword [esp + 0x20]
push edi
call fcn.0100d146
push edi
call fcn.0100dbf2
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebp
jne 0x100e9f6
mov dword [0x10135f8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10135fc], eax
push 0
push dword [esp + 0x14]
push edi
call fcn.0100d146
add esp, 0xc
mov eax, esi
pop ebx
jmp 0x100ea1b
mov eax, ebp
jmp 0x100ea1b
mov dword [0x10135f8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x1028f2a
Capabilities:
Get common file path

Disassembly:
mov dword [ecx], 0x1001408
jmp fcn.0102bf83