joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016770
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
push edi
add esi, dword [0x10060180]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp + 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100167b8
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100167dd
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100167fe
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100167fe
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100167f8
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100167fe
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
shl bl, 2
add cl, cl
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
xor eax, eax
mov byte [esi + 0x14], bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100168a0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1005f424]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x100169b2
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x100169ab
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1001696f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1001696f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1001696f
mov edx, dword [esi]
test edx, edx
jne 0x10016938
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x1005fda0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10016993
lea edi, [esi + 8]
jmp 0x10016962
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10016962
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1005fda0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100169c5
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100168f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100169ab
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x100169ab
push eax
push ebx
push dword [0x1005fda0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004e807
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10016993

Function at 0x10016a10
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.100168a0
add esp, 4
test eax, eax
jne 0x10016a40
mov eax, 9
pop esi
pop ebp
ret
cmp dword [esi], 0
je 0x10016a8f
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10016a89
push ebx
nop
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10016a82
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10016d20
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10016a50
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10016e90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x10016ee0
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10016ecf
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10016ec8
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10016ea5
pop ebx
push dword [edi]
push 0
push dword [0x1005fda0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret

Function at 0x10016ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10060178]
test eax, eax
je 0x10016f0c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x10016f62
mov eax, dword [eax]
test eax, eax
jne 0x10016f00
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10016f5f
push esi
push edi
xor edi, edi
mov dword [eax + 8], 0
lea edx, [eax + 0x20]
lea esi, [edi + 0x20]
mov dword [edx], edi
mov ecx, edx
mov dword [eax + 4], edx
add esi, 0x20
add edx, 0x20
mov edi, ecx
cmp esi, 0xfe0
jbe 0x10016f35
mov ecx, dword [0x10060178]
mov dword [eax], ecx
mov dword [0x10060178], eax
pop edi
pop esi
test eax, eax
jne 0x10016f62
xor eax, eax
ret
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
Function at 0x100209b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0xc0]
mov eax, dword [ecx + 0xc8]
push esi
push edi
lea esi, [ebp + 8]
mov edi, 4
mov eax, dword [eax + edx*4 - 4]
not eax
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100543c8]
sub edi, 1
jne 0x100209d0
mov ecx, dword [0x1005fdc0]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1aa4], eax
jne 0x10020a02
mov dword [ecx + 0x1aa8], eax
cmp dword [ecx + 0x1adc], eax
jne 0x10020a11
mov byte [ecx + 0x1ae0], 1
pop ebp
ret 4

Function at 0x10021490
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
not ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
test edi, edi
je 0x100214f3
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100214d6
cmp edi, 2
jb 0x100214d6
cmp byte [esi], cl
jne 0x100214d6
cmp byte [esi + 1], cl
jne 0x100214d6
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100543c8]
jmp 0x100214a7
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100543c8]
test edi, edi
jne 0x100214a7
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10021528
nop word [eax + eax]
cmp cl, 0x23
jne 0x1002150f
cmp byte [esi], cl
jne 0x1002150f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100543c8]
test cl, cl
jne 0x10021500
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x10021760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
xor edx, edx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x10021780
cmp eax, esi
jae 0x100218f8
mov cl, byte [eax]
mov byte [ebp - 3], cl
test cl, cl
je 0x100218f8
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x10054904]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x100217b2
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp - 3]
mov byte [ebp - 4], cl
cmp esi, edx
jae 0x100217ca
mov bl, byte [esi]
mov byte [ebp - 1], bl
jmp 0x100217ce
mov byte [ebp - 1], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x100217d9
mov ch, byte [esi]
jmp 0x100217db
xor ch, ch
lea ebx, [eax + 3]
mov byte [ebp - 3], ch
cmp ebx, edx
jae 0x100217e9
mov bl, byte [ebx]
jmp 0x100217eb
xor bl, bl
movzx esi, byte [ebp - 1]
movzx edx, ch
movzx ecx, cl
movzx edi, bl
mov byte [ebp - 2], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x10054924]
and ebx, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov ebx, dword [ebp - 8]
and ecx, 0x3f
or ebx, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x1005494c]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x10054938]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x10054960]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x100218df
xor edx, edx
cmp byte [ebp - 4], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x1002176e
add eax, ebx
test esi, esi
je 0x100218ee
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x1002176e
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10021970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
dec eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x10], ecx
lea eax, [ebx + eax*2]
mov dword [ebp - 0x18], eax
cmp ebx, eax
mov eax, dword [ebp + 0x10]
jae 0x10021b2e
push esi
mov esi, dword [ebp + 0x14]
push edi
nop dword [eax]
test esi, esi
je 0x100219ac
cmp eax, esi
jae 0x10021b29
mov bl, byte [eax]
mov byte [ebp + 0xf], bl
test bl, bl
je 0x10021b29
movzx ecx, bl
mov edx, esi
shr ecx, 3
xor ebx, ebx
movsx ecx, byte [ecx + 0x10054904]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x100219de
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp + 0xf]
mov byte [ebp - 3], cl
cmp esi, edx
jae 0x100219f3
mov bh, byte [esi]
jmp 0x100219f5
xor bh, bh
lea esi, [eax + 2]
mov byte [ebp - 2], bh
cmp esi, edx
jae 0x10021a03
mov ch, byte [esi]
jmp 0x10021a05
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 1], ch
cmp esi, edx
jae 0x10021a13
mov bl, byte [esi]
jmp 0x10021a15
xor bl, bl
movzx edx, ch
movzx ecx, cl
movzx esi, bh
movzx edi, bl
mov byte [ebp + 0xf], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x10054924]
and ebx, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov ebx, dword [ebp - 8]
and ecx, 0x3f
or ebx, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x1005494c]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x10054938]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x10054960]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x10021b06
xor edx, edx
mov esi, 0xfffd
cmp byte [ebp + 0xf], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
jmp 0x10021b0c
add eax, ebx
test esi, esi
je 0x10021b26
mov ecx, dword [ebp - 0x10]
mov word [ecx], si
add ecx, 2
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x18]
jb 0x100219a0
jmp 0x10021b29
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
pop edi
pop esi
xor edx, edx
mov word [ecx], dx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x10021b3c
mov dword [edx], eax
sub ecx, ebx
sar ecx, 1
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10022f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x1005fdc0]
cmp byte [esi + 0x2db0], 0
je 0x1002300b
cmp dword [esi + 0x2db8], 0
push edi
lea edi, [esi + 0x2dbc]
je 0x10022ffc
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10022fb6
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1002d2c0
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.1002ce60
mov edx, dword [edi]
mov ecx, 0x1005fdc4
push dword [esi + 0x2db8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2dc4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.1002ce60
pop edi
pop esi
pop ebp
ret
Function at 0x10029c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1005fdc0]
push esi
mov esi, dword [ebp + 8]
mov dword [eax + 0x2d6c], 0
test esi, esi
je 0x10029cd9
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push edi
push eax
call fcn.10029ce0
push 0x10054aa4
push esi
mov edi, eax
call fcn.10021280
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10029cd8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
ret

Function at 0x1002be00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [0x1005fdc0]
cmp byte [edi + 0x2d69], 0
lea eax, [edi + 0x20]
jne 0x1002bf25
mov ecx, dword [eax]
push ebx
test ecx, ecx
je 0x1002bf1d
push esi
push 0x10054aa0
push ecx
call fcn.10021280
mov esi, eax
add esp, 8
test esi, esi
je 0x1002bf19
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x1002bf0f
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1002bf0f
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x1002bf0f
push 0
push dword [ebp - 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1002bf0f
mov eax, dword [0x1005fdc0]
test eax, eax
je 0x1002bea5
inc dword [eax + 0x370]
push dword [0x1005fdc8]
push ebx
call dword [0x1005f260]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1002bf0f
push esi
push dword [ebp - 4]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp - 4]
je 0x1002befb
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [0x1005fdc0]
test eax, eax
je 0x1002bee9
dec dword [eax + 0x370]
push dword [0x1005fdc8]
push ebx
call dword [0x1005f264]
add esp, 8
jmp 0x1002bf19
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp - 4]
push ebx
call fcn.10022b40
add esp, 0xc
jmp 0x1002beda
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [edi + 0x20]
pop esi
mov byte [edi + 0x2d69], 1
pop ebx
movss xmm0, dword [edi + 0x2d6c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1002bf76
subss xmm0, dword [edi + 0x18]
comiss xmm1, xmm0
movss dword [edi + 0x2d6c], xmm0
jb 0x1002bf76
mov eax, dword [eax]
test eax, eax
je 0x1002bf65
push eax
call fcn.10029c80
add esp, 4
mov dword [edi + 0x2d6c], 0
pop edi
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x358], 1
mov dword [edi + 0x2d6c], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1003dda0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1005f424]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.10020b10
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x14]
push eax
push dword [0x1005fdd0]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
movd xmm0, eax
lea eax, [ebp - 0x24]
cvtdq2ps xmm0, xmm0
push eax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movss dword [edi + 0xc], xmm0
xorps xmm0, xmm0
movss dword [edi + 8], xmm1
movlpd qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [0x1005fdd8]
mov edx, dword [ebp - 0x20]
sbb edx, dword [0x1005fddc]
call fcn.1004f220
mov edx, dword [0x1005fde4]
mov ecx, dword [0x1005fde0]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
call fcn.1004f220
movss xmm1, dword [ebp - 0x18]
cvtsd2ss xmm0, xmm0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
divss xmm1, xmm0
movss dword [edi + 0x10], xmm1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [0x1005fdd8], eax
mov dword [0x1005fddc], ecx
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [edi + 0xf4], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [edi + 0xf5], al
call esi
shr eax, 0xf
and al, 1
mov byte [edi + 0xf7], 0
mov byte [edi + 0xf6], al
call fcn.10020b10
mov esi, eax
cmp byte [esi + 0x34f], 0
je 0x1003deda
cvttss2si ecx, dword [esi + 0xdc]
lea eax, [ebp - 0x1c]
push eax
push dword [0x1005fdd0]
mov dword [ebp - 0x1c], ecx
cvttss2si ecx, dword [esi + 0xe0]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x1003deda
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xdc], 0xff7fffff
mov dword [esi + 0xe0], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x1003df50
mov ecx, dword [0x1005fdd0]
cmp eax, ecx
je 0x1003df0e
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1003df50
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1003df50
lea eax, [ebp - 0x2c]
push eax
push dword [0x1005fdd0]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1003df50
movd xmm0, dword [ebp - 0x2c]
movd xmm1, dword [ebp - 0x28]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xdc], xmm0
movss dword [esi + 0xe0], xmm1
cmp byte [edi + 0xa8], 0
pop edi
pop esi
je 0x1003df60
or eax, 0xffffffff
jmp 0x1003df65
call fcn.10020bb0
cmp dword [0x1005f33c], eax
je 0x1003df77
mov dword [0x1005f33c], eax
call fcn.1003e2c0
call fcn.1003e000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004e807
mov esp, ebp
pop ebp
ret
Function at 0x100411a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051980
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1005f424]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4c], ebx
jle 0x100411fd
xor edi, edi
mov eax, dword [esi + 0x54]
mov ecx, dword [edi + eax]
test ecx, ecx
je 0x100411f4
cmp byte [edi + eax + 8], 0
je 0x100411f4
push ecx
call fcn.100230b0
mov eax, dword [esi + 0x54]
add esp, 4
mov dword [edi + eax], 0
inc ebx
add edi, 0x78
cmp ebx, dword [esi + 0x4c]
jl 0x100411d0
xor edx, edx
cmp dword [esi + 0x34], edx
jle 0x1004123d
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + edx*4]
mov eax, dword [esi + 0x54]
mov ebx, dword [edi + 0x34]
cmp ebx, eax
jb 0x10041237
mov ecx, dword [esi + 0x4c]
shl ecx, 4
sub ecx, dword [esi + 0x4c]
lea eax, [eax + ecx*8]
cmp ebx, eax
jae 0x10041237
mov dword [edi + 0x34], 0
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + edx*4]
mov word [eax + 0x38], cx
inc edx
cmp edx, dword [esi + 0x34]
jl 0x10041204
mov eax, dword [esi + 0x54]
test eax, eax
je 0x10041262
push eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
call fcn.100230b0
add esp, 4
mov dword [esi + 0x54], 0
mov eax, dword [esi + 0x48]
test eax, eax
je 0x10041287
push eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
call fcn.100230b0
add esp, 4
mov dword [esi + 0x48], 0
mov eax, dword [esi + 0x14]
mov dword [esi + 0x464], 0xffffffff
mov dword [esi + 0x460], 0xffffffff
test eax, eax
je 0x100412ab
push eax
call fcn.100230b0
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100412bb
push eax
call fcn.100230b0
add esp, 4
xor ebx, ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
cmp dword [esi + 0x34], ebx
jle 0x1004133a
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x10041334
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10041460
mov eax, dword [edi + 0x28]
mov byte [ebp - 4], 1
test eax, eax
je 0x100412fc
push eax
call fcn.100230b0
add esp, 4
mov eax, dword [edi + 0x1c]
mov byte [ebp - 4], 2
test eax, eax
je 0x10041310
push eax
call fcn.100230b0
add esp, 4
mov eax, dword [edi + 8]
mov byte [ebp - 4], 3
test eax, eax
je 0x10041324
push eax
call fcn.100230b0
add esp, 4
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.100230b0
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x34]
jl 0x100412d0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1004135f
push eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
call fcn.100230b0
add esp, 4
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10045ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x10045ae7
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.100230b0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10045b0c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.100230b0
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10045b31
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.100230b0
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10045b72
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.100230b0
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10045b97
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.100230b0
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x10045bbc
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.100230b0
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10041380