joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d37b0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x100d37c7
mov ebx, ecx
jmp 0x100d37cb
mov ebx, ebp
mov ebp, ecx
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x100d37db
mov eax, edi
jmp 0x100d37e5
push eax
push edi
call fcn.1008efb0
add esp, 8
test eax, eax
jne 0x100d37ed
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x100d380b
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x100d37f5
cmp esi, dword [ebx + 4]
jge 0x100d3820
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebx + 4]
jl 0x100d3810
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
pop esi
test ecx, ecx
jle 0x100d3844
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x100d3841
dec ecx
test ecx, ecx
jg 0x100d3833
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x100d3851
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x100d47e0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
xor edi, edi
call fcn.100afaa0
push ebp
call fcn.100af9c0
mov esi, eax
add esp, 8
test esi, esi
je 0x100d49e9
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x100d4815
mov eax, esi
jmp 0x100d481f
push eax
push esi
call fcn.1008efb0
add esp, 8
test eax, eax
je 0x100d49e8
mov ebp, dword [ebx + 4]
dec ebp
js 0x100d4998
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
dec ebp
jns 0x100d4831
mov eax, dword [ebx + 4]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x100d49c1
mov ecx, dword [esi]
lea edx, [eax - 1]
lea edx, [ecx + edx*4]
lea esp, [esp]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x100d49be
dec eax
test eax, eax
jg 0x100d49b0
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x100d49c9
mov dword [esi + 0xc], edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.100d38f0
mov ebp, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov ecx, 1
cmovne edi, ecx
pop ebx
push ebp
call fcn.100af950
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x100d71c0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x100d72ac
push edi
mov edi, dword [esp + 0x14]
inc edi
lea ebx, [ebx]
movzx edx, byte [edi - 1]
cmp esi, 3
jl 0x100d723e
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10104fd8]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10104fd8]
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + 0x10104fd8]
mov byte [eax + 2], cl
movzx ecx, byte [edx + 0x10104fd8]
mov byte [eax + 3], cl
jmp 0x100d728f
shl edx, 0x10
cmp esi, 2
jne 0x100d724e
movzx ecx, byte [edi]
shl ecx, 8
or edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10104fd8]
mov byte [eax], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x10104fd8]
mov byte [eax + 1], cl
cmp esi, 1
jne 0x100d727b
lea ecx, [esi + 0x3c]
jmp 0x100d7288
shr edx, 6
and edx, 0x3f
movzx ecx, byte [edx + 0x10104fd8]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
sub esi, 3
add eax, 4
add ebx, 4
add edi, 3
test esi, esi
jg 0x100d71e0
pop edi
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
ret
mov byte [eax], bl
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x100090d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1000911c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100090ff
cmp edi, 2
jb 0x100090ff
cmp byte [esi], cl
jne 0x100090ff
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101497c0]
test edi, edi
jne 0x100090e5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1000914b
cmp cl, 0x23
jne 0x10009132
cmp byte [esi], cl
jne 0x10009132
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 + 0x101497c0]
test cl, cl
jne 0x10009123
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x100092f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10009304
mov dword [edi], 0
mov edx, 0x10149638
call fcn.10009160
mov esi, eax
test esi, esi
je 0x10009400
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 - 4], eax
cmp eax, 0xffffffff
je 0x100093f6
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 0x100093f6
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x100093f6
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x100093f6
mov eax, dword [0x101cc100]
test eax, eax
je 0x10009380
inc dword [eax + 0x374]
push dword [0x101cc0f8]
push ebx
call fcn.10008850
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100093f6
push esi
push dword [ebp + 8]
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 + 8]
je 0x100093db
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x101cc100]
add esp, 4
test eax, eax
je 0x100093c3
dec dword [eax + 0x374]
push dword [0x101cc0f8]
push ebx
call fcn.10008870
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x100093ed
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b8e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0xcc]
mov eax, dword [ecx + 0xd4]
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 + 0x101497c0]
sub edi, 1
jne 0x1000b900
mov ecx, dword [0x101cc100]
not eax
pop edi
pop esi
cmp dword [ecx + 0x19ec], eax
jne 0x1000b932
mov dword [ecx + 0x19f0], eax
cmp dword [ecx + 0x1a20], eax
jne 0x1000b941
mov byte [ecx + 0x1a24], 1
pop ebp
ret 4

Function at 0x1000b950
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10155368]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movss xmm0, dword [edx]
mov edi, 0x10
subss xmm0, dword [esi + 0xc]
mov ecx, dword [esi + 0xcc]
cvttss2si eax, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xd4]
lea esi, [ebp - 0x14]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x101497c0]
sub edi, 1
jne 0x1000b9c4
mov eax, dword [0x101cc100]
not edx
pop edi
pop esi
cmp dword [eax + 0x19ec], edx
jne 0x1000b9f5
mov dword [eax + 0x19f0], edx
cmp dword [eax + 0x1a20], edx
jne 0x1000ba04
mov byte [eax + 0x1a24], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.100d21f8
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c3d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x101cc100]
sub esp, 0x1c
push ebx
push esi
push edi
test eax, eax
je 0x1000c3e8
inc dword [eax + 0x374]
push dword [0x101cc0f8]
push 0x3b90
call fcn.10008850
add esp, 8
test eax, eax
je 0x1000c40b
push ecx
mov ecx, eax
call fcn.10007740
mov edi, eax
jmp 0x1000c40d
xor edi, edi
mov ebx, dword [0x101cc100]
mov esi, 0x10149571
test ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], str.Window
mov al, 0x57
cmove ebx, edi
or edx, 0xffffffff
mov dword [0x101cc100], ebx
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x1000c44e
cmp byte [esi], al
jne 0x1000c44e
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x101497c0]
test al, al
jne 0x1000c440
mov esi, dword [edi + 0x2d48]
not edx
mov ecx, dword [edi + 0x2d4c]
mov ebx, dword [0x101cc100]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x10018d30
mov dword [ebp - 0xc], 0x10018d90
mov dword [ebp - 8], 0x10018e40
cmp esi, ecx
jne 0x1000c52f
inc esi
test ecx, ecx
je 0x1000c4ab
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000c4b0
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1000c52f
test ebx, ebx
je 0x1000c4c3
inc dword [ebx + 0x374]
push dword [0x101cc0f8]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.10008850
mov ebx, eax
add esp, 8
mov eax, dword [edi + 0x2d50]
test eax, eax
je 0x1000c523
mov ecx, dword [edi + 0x2d48]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x2d50]
add esp, 0xc
test ecx, ecx
je 0x1000c514
mov eax, dword [0x101cc100]
test eax, eax
je 0x1000c514
dec dword [eax + 0x374]
push dword [0x101cc0f8]
push ecx
call fcn.10008870
add esp, 8
mov dword [edi + 0x2d50], ebx
mov dword [edi + 0x2d4c], esi
mov eax, dword [edi + 0x2d48]
movups xmm0, xmmword [ebp - 0x18]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2d50]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 8]
movq qword [eax + ecx*8 + 0x10], xmm0
mov eax, edi
inc dword [edi + 0x2d48]
mov byte [edi], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ec90
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x1000eccf
cmp bl, 0x23
jne 0x1000ecb1
cmp byte [esi], bl
jne 0x1000ecb1
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x101497c0]
test bl, bl
jne 0x1000eca2
mov ebx, dword [0x101cc100]
not eax
mov esi, dword [ebx + 0x19a0]
mov edi, dword [ebx + 0x19a8]
mov ecx, edi
test esi, esi
je 0x1000ed14
nop dword [eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1000ed08
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1000ed0a
mov esi, edx
test esi, esi
jne 0x1000ecf0
mov ecx, dword [ebx + 0x19a8]
mov edx, dword [ebx + 0x19a0]
lea ecx, [ecx + edx*8]
cmp edi, ecx
je 0x1000ed2c
cmp dword [edi], eax
jne 0x1000ed2c
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10014100
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101cc100]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov eax, dword [eax + 0x19b0]
mov esi, 4
mov ebx, dword [eax + 0xd4]
lea edi, [eax + 0xcc]
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
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 + 0x101497c0]
sub esi, 1
jne 0x10014140
mov eax, dword [ebp - 4]
not ebx
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + 0xd0]
cmp ecx, esi
jne 0x10014193
inc ecx
test esi, esi
je 0x1001417c
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x10014181
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.100196e0
mov ecx, dword [edi]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd4]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100186e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x101cc100]
push edi
cmp byte [esi + 0x2d60], 0
je 0x1001877f
cmp dword [esi + 0x2d68], 0
lea edi, [esi + 0x2d6c]
je 0x10018771
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10018729
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.100199d0
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.100098d0
mov edx, dword [edi]
mov ecx, 0x101cc0fc
push dword [esi + 0x2d68]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2d74]
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
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.100098d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10018a20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, edx
mov edx, dword [0x101cc100]
mov dword [ebp - 0xc], edx
push edi
mov edi, ecx
test esi, esi
jne 0x10018a49
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10018a40
sub esi, ecx
test edx, edx
je 0x10018a53
inc dword [edx + 0x374]
push ebx
push dword [0x101cc0f8]
lea eax, [esi + 1]
push eax
call fcn.10008850
push esi
push edi
push eax
lea ebx, [eax + esi]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [ebp - 0x10]
xor edx, edx
add esp, 0x14
mov byte [ebx], 0
xor edi, edi
mov dword [ebp - 4], edx
mov ecx, esi
cmp esi, ebx
jae 0x10018bec
nop
mov al, byte [ecx]
cmp al, 0xa
je 0x10018c1f
cmp al, 0xd
je 0x10018c1f
mov esi, ecx
cmp ecx, ebx
jae 0x10018ab7
mov al, byte [esi]
cmp al, 0xa
je 0x10018ab7
cmp al, 0xd
je 0x10018ab7
inc esi
cmp esi, ebx
jb 0x10018aa8
mov byte [esi], 0
mov al, byte [ecx]
cmp al, 0x3b
je 0x10018bde
cmp al, 0x5b
jne 0x10018bbd
cmp esi, ecx
jbe 0x10018bbd
cmp byte [esi - 1], 0x5d
lea ebx, [esi - 1]
jne 0x10018bba
inc ecx
mov byte [ebx], 0
mov eax, ebx
mov dword [ebp - 0x18], ecx
sub eax, ecx
push eax
push 0x5d
push ecx
call sub.VCRUNTIME140.dll_memchr
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10018bd8
lea ecx, [eax + 1]
sub ebx, ecx
push ebx
push 0x5b
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10018bd8
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [0x101cc100]
mov byte [eax], 0
lea eax, [ecx + 1]
mov cl, byte [edi]
inc edi
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
test cl, cl
je 0x10018b6e
or ebx, 0xffffffff
cmp cl, 0x23
jne 0x10018b4f
cmp byte [edi], cl
jne 0x10018b4f
cmp byte [edi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [edi]
inc edi
xor eax, dword [edx*4 + 0x101497c0]
test cl, cl
jne 0x10018b40
mov ebx, dword [0x101cc100]
mov edi, dword [ebx + 0x2d48]
xor ecx, ecx
not eax
test edi, edi
jle 0x10018b91
mov ebx, dword [ebx + 0x2d50]
lea edx, [ebx + 4]
cmp dword [edx], eax
je 0x10018b9a
inc ecx
add edx, 0x18
cmp ecx, edi
jl 0x10018b85
xor edi, edi
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x10018bdb
lea eax, [ecx + ecx*2]
lea edi, [ebx + eax*8]
test edi, edi
je 0x10018b93
push dword [ebp - 0x14]
mov eax, dword [edi + 8]
push edi
push dword [ebp - 0xc]
call eax
mov edx, eax
add esp, 0xc
mov dword [ebp - 4], edx
jmp 0x10018bdb
mov ebx, dword [ebp - 8]
test edi, edi
je 0x10018bde
test edx, edx
je 0x10018bde
mov eax, dword [edi + 0xc]
push ecx
push edx
push edi
push dword [ebp - 0xc]
call eax
mov edx, dword [ebp - 4]
add esp, 0x10
jmp 0x10018bde
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
lea ecx, [esi + 1]
cmp ecx, ebx
jb 0x10018a90
mov esi, dword [ebp - 0x10]
pop ebx
test esi, esi
je 0x10018c00
mov eax, dword [0x101cc100]
test eax, eax
je 0x10018c00
dec dword [eax + 0x374]
push dword [0x101cc0f8]
push esi
call fcn.10008870
mov eax, dword [ebp - 0xc]
add esp, 8
pop edi
mov byte [eax + 0x2d34], 1
pop esi
mov esp, ebp
pop ebp
ret
inc ecx
jmp 0x10018a90
Function at 0x10018c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [0x101cc100]
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov dword [esi + 0x2d38], 0
test eax, eax
je 0x10018d28
lea edi, [esi + 0x2d3c]
mov dword [esi + 0x2d38], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x10018c85
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.100199d0
xor ecx, ecx
mov dword [edi], 0
cmp dword [edi + 4], ecx
jne 0x10018c9d
push 8
mov ecx, edi
call fcn.100199d0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [ebp - 4], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2d48], 0
mov ebx, dword [edi]
jle 0x10018ce7
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esi + 0x2d50]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x2d48]
jl 0x10018cc0
mov ebx, dword [edi]
mov ecx, dword [ebp - 8]
lea eax, [ebx - 1]
neg ebx
mov edi, 0x101cc0fc
mov edx, 0x1014963c
sbb ebx, ebx
and ebx, eax
mov eax, dword [esi + 0x2d44]
test eax, eax
cmovne edi, eax
call fcn.10009160
mov esi, eax
test esi, esi
je 0x10018d28
push esi
push ebx
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 ebx
mov esp, ebp
pop ebp
ret
Function at 0x10029ab0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10155368]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x101cc100]
lea eax, [ebp - 0x14]
push esi
push edi
push eax
push dword [0x101d3834]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
movd xmm1, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x30]
cvtdq2ps xmm0, xmm0
push eax
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x30]
mov ecx, edi
sub ecx, dword [0x101d3838]
mov esi, dword [ebp - 0x2c]
mov edx, esi
sbb edx, dword [0x101d383c]
call fcn.1012ab40
mov edx, dword [0x101d3844]
mov ecx, dword [0x101d3840]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
call fcn.1012ab40
movss xmm1, dword [ebp - 0x18]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x101d383c], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x101d3838], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0x100], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0x101], al
call esi
mov esi, dword [0x101cc100]
shr eax, 0xf
and al, 1
mov byte [ebx + 0x103], 0
mov byte [ebx + 0x102], al
cmp byte [esi + 0x35b], 0
je 0x10029bd5
cvttss2si eax, dword [esi + 0xe8]
mov dword [ebp - 0x1c], eax
cvttss2si eax, dword [esi + 0xec]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x101d3834]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [esi + 0xe8], 0xff7fffff
mov dword [esi + 0xec], 0xff7fffff
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x10029c4b
mov ecx, dword [0x101d3834]
cmp eax, ecx
je 0x10029c09
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x10029c4b
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x10029c4b
lea eax, [ebp - 0x24]
push eax
push dword [0x101d3834]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x10029c4b
movd xmm0, dword [ebp - 0x24]
movd xmm1, dword [ebp - 0x20]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [esi + 0xe8], xmm0
movss dword [esi + 0xec], xmm1
cmp byte [ebx + 0xb0], 0
mov eax, dword [0x101cc100]
je 0x10029c5e
or ecx, 0xffffffff
jmp 0x10029c64
mov ecx, dword [eax + 0x1d38]
cmp dword [0x101be284], ecx
je 0x10029ca2
test byte [eax + 8], 0x20
mov dword [0x101be284], ecx
jne 0x10029ca2
cmp dword [eax + 0x1d38], 0xffffffff
je 0x10029c9a
cmp byte [eax + 0xb0], 0
jne 0x10029c9a
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
jmp 0x10029c9c
push 0
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d21f8
mov esp, ebp
pop ebp
ret