joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100464c0
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 0x100464e0
cmp eax, esi
jae 0x10046658
mov cl, byte [eax]
mov byte [ebp - 3], cl
test cl, cl
je 0x10046658
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x10217a30]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x10046512
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 0x1004652a
mov bl, byte [esi]
mov byte [ebp - 1], bl
jmp 0x1004652e
mov byte [ebp - 1], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x10046539
mov ch, byte [esi]
jmp 0x1004653b
xor ch, ch
lea ebx, [eax + 3]
mov byte [ebp - 3], ch
cmp ebx, edx
jae 0x10046549
mov bl, byte [ebx]
jmp 0x1004654b
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 + 0x10217a50]
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 + 0x10217a78]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x10217a64]
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 + 0x10217a8c]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x1004663f
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 0x100464ce
add eax, ebx
test esi, esi
je 0x1004664e
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x100464ce
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 0x100466d0
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 0x1004688e
push esi
mov esi, dword [ebp + 0x14]
push edi
nop dword [eax]
test esi, esi
je 0x1004670c
cmp eax, esi
jae 0x10046889
mov bl, byte [eax]
mov byte [ebp + 0xf], bl
test bl, bl
je 0x10046889
movzx ecx, bl
mov edx, esi
shr ecx, 3
xor ebx, ebx
movsx ecx, byte [ecx + 0x10217a30]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x1004673e
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 0x10046753
mov bh, byte [esi]
jmp 0x10046755
xor bh, bh
lea esi, [eax + 2]
mov byte [ebp - 2], bh
cmp esi, edx
jae 0x10046763
mov ch, byte [esi]
jmp 0x10046765
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 1], ch
cmp esi, edx
jae 0x10046773
mov bl, byte [esi]
jmp 0x10046775
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 + 0x10217a50]
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 + 0x10217a78]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x10217a64]
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 + 0x10217a8c]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x10046866
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 0x1004686c
add eax, ebx
test esi, esi
je 0x10046886
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 0x10046700
jmp 0x10046889
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 0x1004689c
mov dword [edx], eax
sub ecx, ebx
sar ecx, 1
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10048190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x2ef8], 0
lea esi, [edi + 0x2efc]
je 0x1004820b
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x100481c6
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, esi
call fcn.10052600
push dword [ebp + 0x10]
mov ecx, esi
mov dword [esi], 0
push dword [ebp + 0xc]
call fcn.100521b0
mov edx, dword [esi]
mov ecx, 0x1023ebd8
push dword [edi + 0x2ef8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2f04]
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
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.100521b0
pop edi
pop esi
pop ebp
ret
Function at 0x1004c9d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1023b4c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1023ebe8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1bac]
mov esi, 4
mov eax, dword [ebp + 8]
add edi, 0xcc
mov dword [ebp - 8], eax
mov eax, dword [edi]
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x102174f0]
sub esi, 1
jne 0x1004ca10
mov esi, dword [edi + 4]
not ebx
mov ecx, dword [edi]
cmp ecx, esi
jne 0x1004ca57
inc ecx
test esi, esi
je 0x1004ca45
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x1004ca4a
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10052700
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100efabc
mov esp, ebp
pop ebp
ret

Function at 0x1004f480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1023ebe8]
push esi
mov esi, dword [ebp + 8]
mov dword [eax + 0x2eac], 0
test esi, esi
je 0x1004f4d9
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push edi
push eax
call fcn.1004f4e0
push 0x10217bf8
push esi
mov edi, eax
call fcn.10046020
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1004f4d8
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 0x10051140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [0x1023ebe8]
cmp byte [edi + 0x2ea9], 0
lea eax, [edi + 0x20]
jne 0x10051265
mov ecx, dword [eax]
push ebx
test ecx, ecx
je 0x1005125d
push esi
push 0x10217bf4
push ecx
call fcn.10046020
mov esi, eax
add esp, 8
test esi, esi
je 0x10051259
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 0x1005124f
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 0x1005124f
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
je 0x1005124f
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 0x1005124f
mov eax, dword [0x1023ebe8]
test eax, eax
je 0x100511e5
inc dword [eax + 0x370]
push dword [0x1023ece8]
push ebx
call dword [0x10239458]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1005124f
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 0x1005123b
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [0x1023ebe8]
test eax, eax
je 0x10051229
dec dword [eax + 0x370]
push dword [0x1023ece8]
push ebx
call dword [0x1023945c]
add esp, 8
jmp 0x10051259
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push dword [ebp - 4]
push ebx
call fcn.10047d30
add esp, 0xc
jmp 0x1005121a
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 + 0x2ea9], 1
pop ebx
movss xmm0, dword [edi + 0x2eac]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x100512b6
subss xmm0, dword [edi + 0x18]
comiss xmm1, xmm0
movss dword [edi + 0x2eac], xmm0
jb 0x100512b6
mov eax, dword [eax]
test eax, eax
je 0x100512a5
push eax
call fcn.1004f480
add esp, 4
mov dword [edi + 0x2eac], 0
pop edi
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x358], 1
mov dword [edi + 0x2eac], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1005a270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x1005a297
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.100482c0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1005a2bc
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.100482c0
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1005a2e1
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.100482c0
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 0x1005a322
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.100482c0
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x1005a347
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.100482c0
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1005a36c
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.100482c0
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100559c0
Function at 0x100632b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1023b4c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.10045680
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
push eax
push dword [0x1023ed40]
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
movd xmm0, eax
lea eax, [ebp - 0x14]
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 - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [0x1023ed48]
mov edx, dword [ebp - 0x10]
sbb edx, dword [0x1023ed4c]
call fcn.100f03e0
mov edx, dword [0x1023ed54]
mov ecx, dword [0x1023ed50]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 8], xmm0
call fcn.100f03e0
movss xmm1, dword [ebp - 8]
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 - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [0x1023ed48], eax
mov dword [0x1023ed4c], 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.10045680
mov esi, eax
cmp byte [esi + 0x34f], 0
je 0x100633ea
cvttss2si ecx, dword [esi + 0xdc]
lea eax, [ebp - 0xc]
push eax
push dword [0x1023ed40]
mov dword [ebp - 0xc], ecx
cvttss2si ecx, dword [esi + 0xe0]
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x100633ea
push dword [ebp - 8]
push dword [ebp - 0xc]
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 0x10063460
mov ecx, dword [0x1023ed40]
cmp eax, ecx
je 0x1006341e
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x10063460
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x10063460
lea eax, [ebp - 0x1c]
push eax
push dword [0x1023ed40]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x10063460
movd xmm0, dword [ebp - 0x1c]
movd xmm1, dword [ebp - 0x18]
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 0x10063470
or eax, 0xffffffff
jmp 0x10063475
call fcn.10045760
cmp dword [0x10239618], eax
je 0x10063487
mov dword [0x10239618], eax
call fcn.10063760
call fcn.100634a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100efabc
mov esp, ebp
pop ebp
ret
Function at 0x10074340
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f479d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1023b4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
push ecx
push eax
mov dword [ebp - 0x34], 0x42a00000
mov dword [ebp - 0x30], 0x41b00000
call fcn.1006e720
add esp, 0xc
test al, al
je 0x100743bf
mov eax, dword [edi]
mov dword [eax], 1
mov eax, dword [edi]
cmp dword [eax], 0
je 0x10074402
mov esi, 0x1021c248
nop dword [eax + eax]
push dword [esi]
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x100743f4
mov ecx, dword [ebp - 0x2c]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [edi]
mov dword [eax + 4], 1
mov eax, dword [edi]
mov dword [eax], 0
add esi, 4
cmp esi, 0x1021c4e0
jne 0x100743d0
mov esi, dword [ebp - 0x2c]
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1007441e
cmp dword [eax], 0
je 0x1007441e
push 0x1021c8ec
lea ecx, [ebp - 0x28]
call fcn.1006d1e0
jmp 0x10074438
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push dword [eax*4 + 0x10239620]
call fcn.1006d1e0
mov eax, dword [edi]
mov dword [eax + 4], 0
sub esp, 8
mov dword [esp + 4], 0xbf800000
mov dword [esp], 0
call fcn.1004f3c0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.1007c3f0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
cmp ecx, 0xf
jbe 0x10074499
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007448f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007448f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100ef794
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100efabc
mov esp, ebp
pop ebp
ret
Function at 0x100744c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f479d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1023b4c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
push ecx
push eax
mov dword [ebp - 0x34], 0x431b0000
mov dword [ebp - 0x30], 0x41b00000
call fcn.1006e720
add esp, 0xc
test al, al
je 0x1007453f
mov eax, dword [edi]
mov dword [eax], 1
mov eax, dword [edi]
cmp dword [eax], 0
je 0x10074582
mov esi, 0x1021c248
nop dword [eax + eax]
push dword [esi]
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x10074574
mov ecx, dword [ebp - 0x2c]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [edi]
mov dword [eax + 4], 1
mov eax, dword [edi]
mov dword [eax], 0
add esi, 4
cmp esi, 0x1021c4e0
jne 0x10074550
mov esi, dword [ebp - 0x2c]
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1007459e
cmp dword [eax], 0
je 0x1007459e
push 0x1021c8ec
lea ecx, [ebp - 0x28]
call fcn.1006d1e0
jmp 0x100745b8
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push dword [eax*4 + 0x10239620]
call fcn.1006d1e0
mov eax, dword [edi]
mov dword [eax + 4], 0
sub esp, 8
mov dword [esp + 4], 0xbf800000
mov dword [esp], 0
call fcn.1004f3c0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.1007c3f0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
cmp ecx, 0xf
jbe 0x10074619
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007460f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007460f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100ef794
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100efabc
mov esp, ebp
pop ebp
ret
Function at 0x1007fc00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1023b4c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x130], eax
push esi
push 2
xor ebx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x1007fc45
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100efabc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1007fc9d
push dword [ebp - 0x130]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1007fc8c
mov eax, dword [ebp - 0x118]
cmp eax, esi
jbe 0x1007fc8c
mov ebx, dword [ebp - 0x124]
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1007fc60
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.100efabc
mov esp, ebp
pop ebp
ret

Function at 0x10087880
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x10240498], 0
jne 0x1008788e
call fcn.10099b30
cmp byte [0x102404a1], 0
je 0x100878ac
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.10099ec0
add esp, 0x10
ret
jmp fcn.10085c30
Function at 0x100a6340
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x100a63cc
push esi
call fcn.100b9640
add esp, 4
test al, al
jne 0x100a63cc
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100a6363
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.100c2a50
add esp, 0xc
test eax, eax
je 0x100a6397
sub eax, esi
push eax
push 0x2e
push esi
call fcn.100c2a50
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100a6399
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x100a63c5
mov al, byte [esi]
push eax
call fcn.100b4960
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x100a63a7
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100b0240
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x6f9], 0
je 0x100b02d7
cmp dword [edi + 0x1a8], 0
je 0x100b0291
push esi
push 1
push edi
call fcn.100a14a0
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1a8]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.100a14a0
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov edx, dword [esp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x100b02a6
sub ecx, 1
je 0x100b02a6
sub ecx, 1
jne 0x100b02d7
push dword [edi + 0x148]
lea eax, [edx*2 + 0x102218e4]
push 1
add eax, edx
push 2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
push dword [edi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x100b0880
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1023b4c0]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 4], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push ebp
push esi
mov esi, 0x178
mov edx, dword [ecx + 0x154]
cmp dword [esp + 0x120], edx
push edi
sete al
lea eax, [eax*4 + 0x150]
mov ebp, dword [eax + ecx]
mov eax, 0x188
cmove esi, eax
mov eax, dword [ecx + 0x2a8]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x100b0983
xor eax, eax
cmp dword [esp + 0x124], edx
sete al
lea eax, [eax*4 + 0x168]
cmp dword [eax + ecx], 0x100b0540
jne 0x100b0983
cmp dword [esi], 0
je 0x100b091e
test edi, edi
je 0x100b0983
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.100c12d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x100b0983
test al, 1
je 0x100b0983
mov ecx, dword [esi]
test ecx, ecx
jne 0x100b096c
mov eax, dword [ebx + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x1023b0f8]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x100b09b7
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100b0983
add dword [esi + 8], eax
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x100b09f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x100b09c8
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x100b09f2
mov ecx, dword [esp + 0x10]
mov eax, 0x1b
mov dword [ecx], 0xffffffff
jmp 0x100b09f8
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.1009b8a0
push eax
push str.Send_failure:__s
push ebx
call fcn.100b02e0
add esp, 0x18
mov dword [ebx + 0x948], esi
mov eax, 0x37
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100efabc
add esp, 0x10c
ret