joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x10009b74
test eax, eax
jne 0x10009c8e
mov edi, dword [0x103621e8]
test edi, edi
je 0x10009c8e
xor ebx, ebx
jmp 0x10009b97
mov edi, dword [edi + 8]
test edi, edi
je 0x10009bb9
push dword [edi + 4]
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x10009b90
mov esi, eax
push 0
push dword [edi + 4]
call sub.KERNEL32.dll_TlsSetValue
push esi
call dword [edi]
add esp, 4
mov bl, 1
jmp 0x10009b90
test bl, 1
je 0x10009c8e
mov edi, dword [0x103621e8]
test edi, edi
je 0x10009c8e
xor ebx, ebx
jmp 0x10009be7
mov edi, dword [edi + 8]
test edi, edi
je 0x10009c09
push dword [edi + 4]
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x10009be0
mov esi, eax
push 0
push dword [edi + 4]
call sub.KERNEL32.dll_TlsSetValue
push esi
call dword [edi]
add esp, 4
mov bl, 1
jmp 0x10009be0
test bl, 1
je 0x10009c8e
mov edi, dword [0x103621e8]
test edi, edi
je 0x10009c8e
xor ebx, ebx
jmp 0x10009c27
mov edi, dword [edi + 8]
test edi, edi
je 0x10009c49
push dword [edi + 4]
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x10009c20
mov esi, eax
push 0
push dword [edi + 4]
call sub.KERNEL32.dll_TlsSetValue
push esi
call dword [edi]
add esp, 4
mov bl, 1
jmp 0x10009c20
test bl, 1
je 0x10009c8e
mov edi, dword [0x103621e8]
test edi, edi
je 0x10009c8e
xor ebx, ebx
jmp 0x10009c67
mov edi, dword [edi + 8]
test edi, edi
je 0x10009c89
push dword [edi + 4]
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x10009c60
mov esi, eax
push 0
push dword [edi + 4]
call sub.KERNEL32.dll_TlsSetValue
push esi
call dword [edi]
add esp, 4
mov bl, 1
jmp 0x10009c60
test bl, 1
jne 0x10009c99
mov al, byte [0x102e8ec0]
pop esi
pop edi
pop ebx
ret 0xc
mov edi, dword [0x103621e8]
jmp 0x10009ca4
mov edi, dword [edi + 8]
test edi, edi
je 0x10009c8e
push dword [edi + 4]
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x10009ca1
mov esi, eax
push 0
push dword [edi + 4]
call sub.KERNEL32.dll_TlsSetValue
push esi
call dword [edi]
add esp, 4
jmp 0x10009ca1
Function at 0x10009cf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov edi, ecx
mov ecx, 0x10362248
call fcn.1000bf60
mov esi, dword [edi]
test esi, esi
jne 0x10009d69
mov ebx, dword [edi + 4]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x10009de6
mov esi, eax
test ebx, ebx
je 0x10009d5d
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10009e2f
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], 0
mov ecx, eax
mov eax, dword [0x103621e8]
nop dword [eax]
mov dword [ecx + 8], eax
lock cmpxchg dword [0x103621e8], ecx
jne 0x10009d50
mov eax, esi
test esi, esi
xchg dword [edi], eax
je 0x10009dff
mov eax, dword [0x103621ec]
test eax, eax
je 0x10009d8a
cmp eax, 0x1000a750
jne 0x10009daf
mov eax, dword [0x10362248]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x10009ddd
mov ecx, 0x102ce0c1
mov edx, 0x17
call fcn.1000a380
test eax, eax
mov eax, 0x1000a750
cmovne eax, edx
mov dword [0x103621ec], eax
cmp eax, 0x1000a750
je 0x10009d79
mov eax, dword [0x10362204]
test eax, eax
jne 0x10009dd6
mov ecx, 0x102ce3b0
mov edx, 0x17
call fcn.1000a380
test eax, eax
mov eax, 0x1000c640
cmovne eax, edx
mov dword [0x10362204], eax
push 0x10362248
call eax
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
ret
mov ecx, 0x102cef7d
mov edx, 0x2e
push 0x102cefac
call fcn.1000a770
add esp, 4
ud2
mov ecx, esp
mov dword [esp], str.assertion_failed:_key___0library_std_src_syswindows_thread_local_key.rskind::
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0x10], str.formatter_errorfailed_to_write_whole_buffer
mov dword [esp + 0x14], 0
call fcn.1000af10
ud2
mov ecx, 0xc
mov edx, 4
call fcn.10001280
ud2

Function at 0x10009e40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
sub esp, 0xc
mov eax, dword [0x10358ef0]
test eax, eax
jne 0x10009e58
mov ecx, 0x10358ef0
call fcn.10009cf0
push eax
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x10009e6d
xor edi, edi
mov esi, eax
cmp eax, 1
je 0x10009ee9
jmp 0x10009ea9
call sub.KERNEL32.dll_GetProcessHeap
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10009ef1
mov dword [eax], 0
mov dword [eax + 0xc], 0x10358ef0
mov esi, eax
mov eax, dword [0x10358ef0]
test eax, eax
jne 0x10009ea2
mov ecx, 0x10358ef0
call fcn.10009cf0
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
lea edi, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test ecx, ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
je 0x10009ee9
test eax, eax
je 0x10009ee9
lock dec dword [eax]
jne 0x10009ee9
lea ecx, [esp + 8]
call fcn.1000a2c0
mov eax, edi
add esp, 0xc
pop esi
pop edi
ret
mov ecx, 0x10
mov edx, 4
call fcn.10001280
ud2
Function at 0x1000ad80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x10358efc]
test eax, eax
jne 0x1000ad94
mov ecx, 0x10358efc
call fcn.10009cf0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x1000ada6
cmp dword [eax], 1
mov esi, eax
je 0x1000ae13
mov eax, dword [0x10358efc]
test eax, eax
jne 0x1000adb9
mov ecx, 0x10358efc
call fcn.10009cf0
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x1000ae18
mov esi, eax
test eax, eax
jne 0x1000ae06
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1000ae1e
mov dword [eax], 0
mov dword [eax + 8], 0x10358efc
mov esi, eax
mov eax, dword [0x10358efc]
test eax, eax
jne 0x1000adff
mov ecx, 0x10358efc
call fcn.10009cf0
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov dword [esi + 4], 0
mov dword [esi], 1
add esi, 4
jmp 0x1000ae1a
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0xc
mov edx, 4
call fcn.10001280
ud2
Function at 0x10078d50
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0x811c9dc5
mov dword [ebp - 8], 0
jmp 0x10078d81
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jae 0x10078db0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
imul ecx, dword [ebp - 4], 0x1000193
mov dword [ebp - 4], ecx
jmp 0x10078d78
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100872b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x100872db
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x10087338
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [ebp - 2], dl
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + edx]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x10087313
movzx eax, byte [ebp - 1]
movzx ecx, byte [ebp - 2]
cmp eax, ecx
je 0x10087336
movzx ecx, byte [ebp - 2]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
movzx ebx, byte [eax + edx]
xor ebx, ecx
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + edx], bl
jmp 0x100872d2
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10087ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10087af6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10087af6
xor al, al
jmp 0x10087b04
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x10087b02
xor al, al
jmp 0x10087b04
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x10089f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10089f7c
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x10087b10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x1035a980]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x64], edx
mov eax, 1
pop ebp
ret 0xc
Function at 0x100b62d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0x10
jae 0x100b62f7
jmp 0x100b63d2
mov edx, dword [ebp - 0xc]
and edx, 3
je 0x100b6332
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
movzx eax, byte [ebp - 1]
cmp eax, 0x80
jl 0x100b6330
movzx ecx, byte [ebp - 1]
cmp ecx, 0xbf
jg 0x100b6330
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x100b62f7
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
and eax, 0xfffffffc
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x1c]
je 0x100b63cc
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
and eax, 0x80808080
jne 0x100b636c
jmp 0x100b63c7
mov ecx, dword [ebp - 0x10]
xor ecx, 0x80808080
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xc0000000
jne 0x100b638c
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xc00000
jne 0x100b63a0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
and eax, 0xc000
jne 0x100b63b3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xc0
jne 0x100b63c7
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x100b6347
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x18]
je 0x100b640d
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 2], cl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
movzx eax, byte [ebp - 2]
cmp eax, 0x80
jl 0x100b640b
movzx ecx, byte [ebp - 2]
cmp ecx, 0xbf
jg 0x100b640b
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x100b63d2
xor eax, eax
jne 0x100b640d
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
xor edx, edx
jne 0x100b641a
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x100ee960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.1006eeb0
add esp, 4
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.100eea00
add esp, 8
mov dword [ebp - 0xc], 0x100ee900
mov edx, dword [ebp - 4]
add edx, 4
push edx
push 0
lea ecx, [ebp - 8]
call fcn.100700d0
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x100ee9c4
lea ecx, [ebp - 8]
call fcn.100eed30
nop
jmp 0x100ee9d6
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
push 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea ecx, [ebp - 8]
call fcn.100eea90
nop
mov esp, ebp
pop ebp
ret 4

Function at 0x100f3ff0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.100774d0
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100f4042
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100f4a40
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
nop
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x10104960
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
add eax, 0x170
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x16f
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x70
push edx
call fcn.10105fe0
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x1010499d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xff
jge 0x101049cd
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x101049bb
mov byte [ebp - 1], 1
jmp 0x101049bf
mov byte [ebp - 1], 0
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov al, byte [ebp - 1]
mov byte [edx + 0x70], al
jmp 0x10104994
mov esp, ebp
pop ebp
ret
Function at 0x10132540
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0x102b6a58
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x101325a1
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor edx, eax
mov eax, dword [ebp - 0x10]
xor ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x1013255b
mov eax, dword [ebp - 4]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x101325b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0x102b6a58
cmp dword [ebp + 0xc], 0
je 0x10132669
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0x14], 0
je 0x10132667
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 3], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov dl, byte [ebp - 3]
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 2]
cmp eax, 0x23
jne 0x10132644
cmp dword [ebp + 0xc], 2
jb 0x10132644
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x10132644
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x10132644
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
movzx edx, byte [ebp - 2]
xor ecx, edx
mov edx, dword [ebp - 0x10]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 0xc], eax
jmp 0x101325db
jmp 0x101326de
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov al, byte [ebp - 4]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x101326de
movzx edx, byte [ebp - 1]
cmp edx, 0x23
jne 0x101326bf
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x101326bf
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x101326bf
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shr edx, 8
mov eax, dword [ebp - 0xc]
and eax, 0xff
movzx ecx, byte [ebp - 1]
xor eax, ecx
mov ecx, dword [ebp - 0x10]
xor edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
jmp 0x10132669
mov eax, dword [ebp - 0xc]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x10133730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
xor edx, edx
pop ebp
ret

Function at 0x10133750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor edx, edx
pop ebp
ret
Function at 0x1017bdc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10358f40]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10125840
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x90]
call fcn.1017ca90
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [0x10360520]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
nop
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
cvtsi2ss xmm0, edx
push ecx
movss dword [esp], xmm0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cvtsi2ss xmm0, eax
push ecx
movss dword [esp], xmm0
lea ecx, [ebp - 0x40]
call fcn.10073050
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [0x10360528]
mov edx, dword [ebp - 0x30]
sbb edx, dword [0x1036052c]
call fcn.10239450
cvtsd2ss xmm0, xmm0
mov edx, dword [0x10360534]
mov ecx, dword [0x10360530]
movss dword [ebp - 0x38], xmm0
call fcn.10239450
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebp - 0x38]
divss xmm1, xmm0
mov edx, dword [ebp - 0x18]
movss dword [edx + 0x10], xmm1
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [0x10360528], eax
mov dword [0x1036052c], ecx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x1017beab
mov dword [ebp - 0x1c], 1
jmp 0x1017beb2
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x1c]
mov byte [eax + 0xf8], cl
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x1017beda
mov dword [ebp - 0x20], 1
jmp 0x1017bee1
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x20]
mov byte [eax + 0xf9], cl
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
je 0x1017bf09
mov dword [ebp - 0x24], 1
jmp 0x1017bf10
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x24]
mov byte [eax + 0xfa], cl
mov edx, dword [ebp - 0x18]
mov byte [edx + 0xfb], 0
call fcn.1017bff0
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 0xa8]
test ecx, ecx
je 0x1017bf42
mov dword [ebp - 0x28], 0xffffffff
jmp 0x1017bf4a
call fcn.101302e0
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov eax, dword [0x1034dba0]
cmp eax, dword [ebp - 0x2c]
je 0x1017bf69
mov ecx, dword [ebp - 0x2c]
mov dword [0x1034dba0], ecx
call fcn.1017bf80
nop
call fcn.1017c110
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102390e8
mov esp, ebp
pop ebp
ret
Function at 0x101a4850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x103625cc]
mov dword [ebp - 4], eax
jmp 0x101a4868
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x101a487e
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x101a487c
mov eax, dword [ebp - 4]
jmp 0x101a48f9
jmp 0x101a4860
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x101a48f6
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x101a48b8
mov edx, dword [ebp - 4]
mov eax, dword [0x103625cc]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x103625cc], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x101a5fc0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10358f40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x101a60ff
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x101a60f4
cmp dword [ebp - 0x20], 0x10
jb 0x101a60d8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x101a60d8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x101a60d8
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x101a6068
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
push edx
push 0
mov eax, dword [0x1036053c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x101a6066
jmp 0x101a60f4
jmp 0x101a60b8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x101a60b8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x1036053c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x101a60a2
jmp 0x101a60f4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x20], 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x101a6002
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102390e8
mov esp, ebp
pop ebp
ret