joyce8/EMBER2024-capa huggingface dataset:
Function at 0x565b92
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x565baa
mov edi, dword [esi + 0xc]
jmp 0x565bea
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x565bc3
call fcn.00489193
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x565bd8
call fcn.00489193
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x565bea
call fcn.00489193
call fcn.0049dd8e
cmp dword [eax + 0x3c], 0
je 0x565bff
push edi
mov ecx, ebx
call fcn.00564a4e
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00565aac
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x565c1d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x565c29
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10003070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movups xmm0, xmmword [0x101216e0]
mov eax, dword [0x10121708]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 8], eax
mov esi, ecx
mov ax, word [0x1012170c]
push 3
movups xmmword [ebp - 0x30], xmm0
push 0
movups xmm0, xmmword [0x101216f0]
mov word [ebp - 4], ax
mov eax, 0x30
push 0
mov word [ebp - 6], ax
lea eax, [ebp - 0x30]
movups xmmword [ebp - 0x20], xmm0
push 0xc0000000
movq xmm0, qword [0x10121700]
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10003136
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x100030ff
mov ax, word [ebp - 6]
cmp ax, 0x39
jae 0x10003142
inc ax
mov word [ebp - 6], ax
jmp 0x10003115
cmp eax, 0xe7
jne 0x10003142
push 0x2710
lea eax, [ebp - 0x30]
push eax
call ebx
test eax, eax
je 0x10003142
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x100030e6
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100035b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa90
lea eax, [ebp - 0x88]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0xfde9
call esi
push 0x20
lea eax, [ebp - 0x48]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0xfde9
call esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x10121870
push Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10003614
push 0x1012189c
jmp 0x100036b9
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea eax, [ebp - 0x290]
push eax
push 0
push 0
push 0x101218b8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100036b4
mov ecx, dword [ebp - 8]
cmp ecx, 1
jb 0x100036b4
shr ecx, 1
mov eax, esi
je 0x10003678
lea edx, [esi + 0x5c]
nop dword [eax + eax]
cmp word [ebp + eax*2 - 0x290], 0x2f
jne 0x10003673
mov word [ebp + eax*2 - 0x290], dx
inc eax
cmp eax, ecx
jb 0x10003660
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x101218e8
lea eax, [ebp - 0xa90]
push 0x800
push eax
call fcn.100034d0
lea eax, [ebp - 0xa90]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10003240
add esp, 0x1c
pop esi
mov esp, ebp
pop ebp
ret
push 0x101218cc
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.100036f0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004ca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x110f42e8
push 0x64
call fcn.10117f0f
mov esi, eax
add esp, 8
test esi, esi
je 0x10004e0b
push 0x63
lea ecx, [esi + 1]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + 4]
mov byte [esi], 1
push 2
push eax
call sub.MSVCP140.dll__Mtx_init_in_situ
lea eax, [esi + 0x34]
push eax
call sub.MSVCP140.dll__Cnd_init_in_situ
xorps xmm0, xmm0
mov dword [0x1127fd68], esi
add esp, 0x18
movq qword [esi + 0x5c], xmm0
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp + 8]
je 0x10004d1e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10004d13
cmp byte [eax], 0
je 0x10004d13
push eax
push esi
call fcn.100035b0
jmp 0x10004d1b
push 0
push esi
call fcn.10003540
add esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
push 0x1125a678
mov dword [0x1127fb64], eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x10004e1a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10004d55
movups xmm0, xmmword [eax]
movups xmmword [0x1127b71c], xmm0
movq xmm0, qword [eax + 0x10]
jmp 0x10004d5f
xorps xmm0, xmm0
movups xmmword [0x1127b71c], xmm0
movq qword [0x1127b72c], xmm0
xorps xmm0, xmm0
push 0x1125a678
movups xmmword [0x1127b734], xmm0
movq qword [0x1127b744], xmm0
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
cmp dword [0x1127b718], 0
jne 0x10004e15
push esi
call fcn.10006010
mov dword [0x1127b718], eax
mov dword [eax + 8], 0x10003720
mov eax, dword [0x1127b718]
mov dword [eax + 0xc], 0x10003730
mov al, 1
mov esi, dword [0x1127fd68]
xchg byte [esi], al
push 4
call fcn.10117bb7
add esp, 8
test eax, eax
je 0x10004dcd
mov dword [eax], esi
jmp 0x10004dcf
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x10003780
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x10004e20
cmp dword [esi + 0x60], 0
je 0x10004dfd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 4]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x1127fd68], 0
pop esi
mov esp, ebp
pop ebp
ret
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
push 6
mov dword [ebp - 4], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x10011bf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x10011c10
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x10011e90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x10011eee
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x10011eb0
mov eax, dword [edi]
jmp 0x10011fd9
cmp eax, 0x4e0
jb 0x10011fd9
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x10011f10
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x10011f60
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015190
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
test ecx, ecx
je 0x10015297
call fcn.100b55c0
test al, al
je 0x10015297
push esi
push dword [0x1128ff94]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
test ax, ax
je 0x100151d8
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001a820
test byte [eax], 1
jne 0x10015296
cmp byte [0x1128ff92], 0
je 0x10015296
push dword [0x1128ff94]
call esi
test ax, ax
je 0x10015296
mov eax, dword [0x1128fed4]
push edi
mov ecx, dword [eax]
call fcn.100b5ff0
mov edi, dword [ebp + 8]
mov esi, eax
mov ecx, dword [0x11290cfc]
push edi
call fcn.10051da0
mov ecx, dword [0x11290cfc]
call fcn.10003b40
mov ecx, dword [0x1128fed4]
mov ecx, dword [ecx]
call fcn.100b5ff0
cmp esi, 9
jne 0x10015261
cmp eax, esi
je 0x10015261
mov eax, dword [0x11290b50]
mov ecx, dword [eax + 0x1c]
mov eax, dword [edi + 0x30]
and eax, 0xfffff9e7
mov dword [0x1129122c], ecx
or eax, 2
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x30], eax
jmp 0x10015267
mov ecx, dword [0x1129122c]
mov eax, dword [0x11290b50]
mov eax, dword [eax + 0x1c]
sub eax, ecx
sub eax, 2
cmp eax, 0xc
ja 0x10015295
mov eax, dword [edi + 0x30]
and eax, 0xfffff9e7
mov dword [edi + 0x24], 0
or eax, 4
mov dword [edi + 0x28], 0
mov dword [edi + 0x30], eax
pop edi
pop esi
pop ebp
ret

Function at 0x100152a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x11290b50]
xor ecx, ecx
movss xmm0, dword [eax + 0x10]
comiss xmm0, dword [0x112911d0]
movzx eax, byte [0x11290d5a]
cmova eax, ecx
mov byte [0x11290d5a], al
mov eax, dword [0x1128fed4]
cmp dword [eax], ecx
jne 0x100152d4
mov dword [0x112911d0], ecx
cmp byte [0x11290030], cl
je 0x10015361
push dword [0x11290038]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10015361
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
test ecx, ecx
je 0x10015361
call fcn.100b5ff0
cmp eax, 9
je 0x10015361
cmp eax, 8
je 0x10015361
test byte [0x11290d54], 1
je 0x10015361
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001a820
test byte [eax], 1
jne 0x10015361
mov ecx, dword [ebp + 8]
mov byte [0x112911d8], 1
or dword [ecx + 0x30], 2
mov eax, dword [0x11290b50]
movss xmm0, dword [eax + 0x10]
addss xmm0, dword [0x10122b70]
mov byte [0x11290d5a], 1
mov eax, dword [ecx + 8]
inc eax
or dword [ecx + 0x30], 4
mov dword [0x112911d4], eax
movss dword [0x112911d0], xmm0
pop ebp
ret
Function at 0x10015370
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1011a431
push eax
mov dword fs:[0], esp
cmp byte [0x1128ff4f], 0
je 0x10015425
cmp byte [0x1129002f], 0
je 0x100153af
push dword [0x11290050]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x10015425
cmp byte [0x11290d60], 0
jne 0x10015425
mov eax, dword [0x1128fed4]
cmp dword [eax], 0
je 0x10015425
mov eax, dword fs:[0x2c]
mov ecx, dword [0x11297ea4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1129119c]
cmp eax, dword [ecx + 4]
jg 0x10015433
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001a820
test byte [eax], 1
jne 0x10015410
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.100b5ff0
cmp eax, 9
je 0x10015410
cmp byte [0x11291198], 0
jne 0x10015410
mov eax, dword [ebp + 8]
and dword [eax + 0x30], 0xfffffffd
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001a820
mov al, byte [eax]
and al, 1
mov byte [0x11291198], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x1129119c
call fcn.10118384
add esp, 4
cmp dword [0x1129119c], 0xffffffff
jne 0x100153de
mov eax, dword [0x1128fed4]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
call fcn.1001a820
push 0x1129119c
mov dword [ebp - 4], 0xffffffff
mov al, byte [eax]
and al, 1
mov byte [0x11291198], al
call fcn.1011833a
add esp, 4
jmp 0x100153de
Function at 0x10016ea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x11290d5c], 0
push esi
mov esi, dword [ebp + 8]
je 0x10016ec6
push dword [0x11290010]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x10016ec6
or dword [esi + 0x30], 4
mov eax, dword [0x1128fed4]
push 0x111014ac
mov ecx, dword [eax]
call fcn.100b5de0
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001a820
mov eax, dword [eax]
mov dword [0x11290d54], eax
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001ab40
mov ecx, dword [0x11290b54]
push 0x110649c4
movss xmm0, dword [eax + 8]
movss dword [0x11290c8c], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x30]
call eax
fmul dword [0x10122b74]
mov eax, dword [0x11290b50]
fstp dword [ebp + 8]
movss xmm0, dword [ebp + 8]
mulss xmm0, dword [eax + 0x20]
mov eax, dword [0x1128fed4]
movss dword [0x11290c90], xmm0
mov ecx, dword [eax]
call fcn.1001a9a0
movss xmm0, dword [eax]
movss dword [0x111014e8], xmm0
movss xmm0, dword [eax + 4]
movss dword [0x111014ec], xmm0
movss xmm0, dword [eax + 8]
mov eax, dword [0x1128fed4]
movss dword [0x111014f0], xmm0
mov ecx, dword [eax]
call fcn.1001ab40
movss xmm0, dword [eax]
movss dword [0x111014a0], xmm0
movss xmm0, dword [eax + 4]
movss dword [0x111014a4], xmm0
movss xmm0, dword [eax + 8]
mov eax, dword [0x1128fed4]
movss dword [0x111014a8], xmm0
mov ecx, dword [eax]
call fcn.100b5ff0
push dword [0x11290010]
mov dword [0x11290cb0], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10016fd5
cmp byte [0x11290d5e], 0
je 0x10016fd5
mov eax, dword [0x11290c98]
mov dword [esi + 0x30], eax
test byte [0x11290d54], 1
mov ecx, 0
movzx eax, byte [0x11290d5c]
cmovne eax, ecx
mov ecx, dword [0x11297ea4]
mov byte [0x11290d5c], al
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x112911a4]
cmp eax, dword [ecx + 4]
jg 0x100170aa
movss xmm0, dword [0x11290c90]
xorps xmm0, xmmword [0x10122c10]
comiss xmm0, dword [0x112911a0]
jbe 0x10017086
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001ab40
push ecx
fld dword [eax + 8]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
fstp dword [ebp - 4]
fld dword [0x11290c90]
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_roundf
movss xmm0, dword [ebp - 4]
add esp, 4
fstp dword [ebp + 8]
movss xmm1, dword [ebp + 8]
xorps xmm1, xmmword [0x10122c10]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x10017086
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.100b5ff0
cmp eax, 9
je 0x10017086
mov al, 1
jmp 0x10017088
xor al, al
movss xmm0, dword [0x11290c8c]
mov byte [0x11290d5e], al
mov eax, dword [esi + 0x30]
mov dword [0x11290cac], eax
movss dword [0x112911a0], xmm0
pop esi
mov esp, ebp
pop ebp
ret
push 0x112911a4
call fcn.10118384
add esp, 4
cmp dword [0x112911a4], 0xffffffff
jne 0x10017010
movss xmm0, dword [0x11290c8c]
push 0x112911a4
movss dword [0x112911a0], xmm0
call fcn.1011833a
add esp, 4
jmp 0x10017010
Function at 0x10017220
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 8], ecx
push edi
nop dword [eax]
mov edi, dword [ecx]
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x10017286
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x10017246
mov eax, dword [edi]
jmp 0x10017368
cmp eax, 0x4e0
jb 0x10017368
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x100172a2
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x100172f0
mov edi, dword [ebp - 4]
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
mov ecx, dword [ebp - 8]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [ecx + 8]
ja 0x10017230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019a80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x11290b50]
xor edx, edx
movzx eax, byte [0x11290d5b]
movss xmm0, dword [ecx + 0x10]
comiss xmm0, dword [0x11291224]
cmova eax, edx
mov byte [0x11290d5b], al
mov eax, dword [0x1128fed4]
cmp dword [eax], edx
je 0x10019b2b
cmp byte [0x11290088], dl
je 0x10019b2b
test byte [0x11290d54], 1
jne 0x10019ace
mov eax, dword [ecx + 0x1c]
add eax, dword [0x1129008c]
mov dword [0x11290cbc], eax
push dword [0x11290054]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10019b2b
test byte [0x11290d54], 1
je 0x10019b2b
mov ecx, dword [0x11290b50]
mov eax, dword [0x11290cbc]
push esi
mov esi, dword [ebp + 8]
movss xmm0, dword [ecx + 0x10]
addss xmm0, dword [0x10122b70]
mov byte [0x11290d5b], 1
mov edx, dword [esi + 0x30]
movss dword [0x11291224], xmm0
cmp eax, dword [ecx + 0x1c]
jl 0x10019b24
and edx, 0xfffffffd
mov dword [esi + 0x30], edx
pop esi
pop ebp
ret
or edx, 2
mov dword [esi + 0x30], edx
pop esi
pop ebp
ret
Function at 0x1001a560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x11290d60], 0
jne 0x1001a58e
cmp byte [0x1129002f], 0
je 0x1001a769
push dword [0x11290050]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1001a769
mov ecx, dword [0x11290b48]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x1001a769
mov ecx, dword [0x11290b48]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
call eax
test al, al
je 0x1001a769
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1001a769
call fcn.100b55c0
test al, al
je 0x1001a769
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.100b5ff0
cmp eax, 8
je 0x1001a769
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.100b5ff0
cmp eax, 9
je 0x1001a769
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.100b5ff0
cmp eax, 0xa
je 0x1001a769
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
and edi, 1
jne 0x1001a6ae
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001a820
test byte [eax], 1
je 0x1001a641
mov eax, dword [esi + 0x30]
and eax, 0xfffffffd
or eax, 4
mov dword [esi + 0x30], eax
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001a820
test byte [eax], 1
jne 0x1001a6ae
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001ab40
movd xmm1, dword [ebp + 0x10]
cvtdq2ps xmm1, xmm1
movss xmm0, dword [eax + 8]
comiss xmm0, xmm1
jbe 0x1001a6ae
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.100b5ff0
cmp eax, 8
jne 0x1001a6a3
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.100b5ff0
cmp eax, 9
jne 0x1001a6a3
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.100b5ff0
cmp eax, 0xa
je 0x1001a6ae
pop edi
mov byte [0x11290d58], 1
pop esi
pop ebp
ret
cmp byte [0x11291221], 0
jne 0x1001a72d
test edi, edi
jne 0x1001a75e
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001a820
test byte [eax], 1
je 0x1001a75e
mov ecx, dword [esi + 0x30]
test cl, 4
je 0x1001a715
mov eax, dword [0x1128fed4]
mov ecx, dword [eax]
call fcn.1001a820
mov ecx, dword [esi + 0x30]
test byte [eax], 2
je 0x1001a712
and ecx, 0xfffffffb
mov byte [0x11291222], 1
and ecx, 0xfffffffd
mov byte [0x11291221], 1
mov dword [esi + 0x30], ecx
pop edi
mov byte [0x11290d58], 0
pop esi
pop ebp
ret
or ecx, 4
and ecx, 0xfffffffd
mov byte [0x11291221], 1
mov dword [esi + 0x30], ecx
pop edi
mov byte [0x11290d58], 0
pop esi
pop ebp
ret
cmp byte [0x11291222], 0
mov eax, dword [esi + 0x30]
je 0x1001a751
and eax, 0xfffffffb
mov byte [0x11291222], 0
mov dword [esi + 0x30], eax
pop edi
mov byte [0x11290d58], 0
pop esi
pop ebp
ret
or eax, 4
mov byte [0x11291221], 0
mov dword [esi + 0x30], eax
pop edi
mov byte [0x11290d58], 0
pop esi
pop ebp
ret
mov byte [0x11291221], 0
mov byte [0x11291222], 0
pop ebp
ret