joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003f3e0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x230
mov rax, qword [0x1800460c8]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x20]
mov rbx, r9
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
je 0x18003f5cc
mov edi, dword [rsp + 0x270]
lea eax, [rdi - 1]
cmp eax, 0xff
ja 0x18003f5cc
xor edx, edx
lea rcx, [rsp + 0x120]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor r10d, r10d
cmp edi, 0x100
jne 0x18003f4c5
lea rax, [rsp + 0x120]
lea ecx, [r10 + 2]
nop
lea rax, [rax + 0x80]
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
lea rbx, [rbx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x18003f470
jmp 0x18003f4fa
mov r8d, r10d
mov r9, r10
nop dword [rax + rax]
mov eax, r8d
mov byte [rsp + r9 + 0x20], r8b
cdq
lea r9, [r9 + 1]
idiv edi
inc r8d
movsxd rax, edx
movzx ecx, byte [rax + rbx]
mov byte [rsp + r9 + 0x11f], cl
cmp r8d, 0x100
jl 0x18003f4d0
mov edx, r10d
mov r8, r10
movzx eax, byte [rsp + r8 + 0x120]
movzx r9d, byte [rsp + r8 + 0x20]
add edx, eax
add edx, r9d
and edx, 0x800000ff
jge 0x18003f526
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + r8 + 0x20], al
inc r8
mov byte [rcx], r9b
cmp r8, 0x100
jl 0x18003f500
mov eax, r10d
test rbp, rbp
je 0x18003f5c8
test rsi, rsi
je 0x18003f5c8
test r14, r14
jle 0x18003f5c8
sub rbp, rsi
nop dword [rax]
inc eax
and eax, 0x800000ff
jge 0x18003f572
dec eax
or eax, 0xffffff00
inc eax
movsxd rcx, eax
lea r8, [rsp + 0x20]
add r8, rcx
movzx r9d, byte [r8]
lea ecx, [r10 + r9]
and ecx, 0x800000ff
jge 0x18003f597
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r10, ecx
lea rdx, [rsp + 0x20]
movzx ecx, byte [rdx + r10]
mov byte [r8], cl
mov byte [rdx + r10], r9b
movzx edx, byte [r8]
add rdx, r9
movzx ecx, dl
movzx edx, byte [rsp + rcx + 0x20]
xor dl, byte [rsi + rbp]
mov byte [rsi], dl
inc rsi
sub r14, 1
jne 0x18003f560
mov al, 1
jmp 0x18003f5ce
xor al, al
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1800412a0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18003fe40
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
mov ebp, r9d
mov rbx, rdx
mov r14, rcx
test r9d, r9d
je 0x18003ff3b
test bpl, 0xf
jne 0x18003ff3b
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
mov r15, rdx
mov edx, ebp
test r9d, r9d
je 0x18003fe91
mov rcx, rbx
sub r8, rbx
nop
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18003fe80
lea ecx, [rbp - 0x10]
mov edi, ebp
add rbx, rcx
shr edi, 4
test edi, edi
je 0x18003ff15
mov qword [rsp + 0x40], rsi
mov esi, reloc.WS2_32.dll_recv
nop word [rax + rax]
mov rdx, rbx
mov rcx, r14
call fcn.180040450
cmp dword [r14 + 8], 1
jne 0x18003fee0
cmp edi, 1
je 0x18003feea
mov rax, rbx
mov rdx, rsi
nop dword [rax]
movzx ecx, byte [rax - 0x10]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x18003fed0
sub rbx, rsi
add edi, 0xffffffff
jne 0x18003feb0
jmp 0x18003ff10
mov rcx, qword [r14 + 0x18]
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rbx]
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne 0x18003ff00
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
lea eax, [rbp - 1]
movzx edx, byte [rax + r15]
mov ecx, ebp
mov r15, qword [rsp + 0x50]
sub ecx, edx
xor eax, eax
cmp edx, ebp
cmovbe eax, ecx
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x18003ff50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov r14d, r9d
mov rbx, rdx
mov rbp, rcx
test r9d, r9d
jne 0x18003ff81
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x38], rdi
mov rdx, r14
test r9d, r9d
je 0x18003ffb1
mov rcx, rbx
sub r8, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18003ffa0
lea ecx, [r14 - 0x10]
mov edi, r14d
add rbx, rcx
shr edi, 4
test edi, edi
je 0x180040035
mov qword [rsp + 0x30], rsi
mov esi, reloc.WS2_32.dll_recv
nop dword [rax]
mov rdx, rbx
mov rcx, rbp
call fcn.180040450
cmp dword [rbp + 8], 1
jne 0x180040000
cmp edi, 1
je 0x18004000a
mov rax, rbx
mov rdx, rsi
nop dword [rax]
movzx ecx, byte [rax - 0x10]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x18003fff0
sub rbx, rsi
add edi, 0xffffffff
jne 0x18003ffd0
jmp 0x180040030
mov rcx, qword [rbp + 0x18]
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rbx]
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne 0x180040020
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov eax, r14d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180040050
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbx
push r13
push r14
sub rsp, 0x30
mov r11d, r9d
mov rbx, r8
mov r14, rcx
test r9d, r9d
je 0x180040082
mov r10, rbx
sub rdx, rbx
nop
movzx eax, byte [rdx + r10]
mov byte [r10], al
lea r10, [r10 + 1]
sub r11, 1
jne 0x180040070
mov edx, r9d
mov rcx, rbx
call fcn.18003fde0
mov r13d, eax
test eax, eax
jne 0x18004009e
add rsp, 0x30
pop r14
pop r13
pop rbx
ret
mov r8, qword [r14 + 0x18]
mov qword [rsp + 0x28], r12
mov r12d, r13d
shr r12d, 4
test r12d, r12d
je 0x180040248
mov qword [rsp + 0x50], rbp
lea r9, [0x180042db0]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r15
mov r15, r14
sub r15, rbx
add r15, 0x20
nop dword [rax]
cmp dword [r14 + 8], 1
jne 0x180040111
mov rcx, rbx
sub r8, rbx
mov edx, reloc.WS2_32.dll_recv
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x180040100
mov rsi, rbx
mov ecx, reloc.WS2_32.dll_recv
nop dword [rax]
movzx eax, byte [rsi + r15]
xor byte [rsi], al
inc rsi
sub rcx, 1
jne 0x180040120
cmp dword [r14], 1
mov bpl, 1
jl 0x180040220
lea edi, [rcx + 1]
mov rcx, rbx
mov edx, reloc.WS2_32.dll_recv
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
movzx eax, byte [rax + r9]
mov byte [rcx - 1], al
sub rdx, 1
jne 0x180040150
mov r10b, 1
lea r11, [rbx + 1]
nop dword [rax]
lea rdx, [rsp + 0x68]
mov rax, r11
mov r8d, 4
nop
movzx ecx, byte [rax]
lea rax, [rax + 4]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x180040180
movzx r9d, r10b
nop word [rax + rax]
movzx eax, r8b
inc r8b
lea edx, [r9 + rax]
and edx, 3
lea ecx, [r9 + rax*4]
movzx eax, byte [rsp + rdx + 0x68]
mov byte [rcx + rbx], al
cmp r8b, 4
jb 0x1800401a0
inc r10b
inc r11
cmp r10b, 4
jb 0x180040170
cmp edi, dword [r14]
je 0x1800401db
xor edx, edx
mov rcx, rbx
call fcn.1800405d0
shl edi, 4
mov rcx, rbx
mov r8d, edi
mov edx, reloc.WS2_32.dll_recv
sub r8, rbx
add r8, r14
nop
movzx eax, byte [r8 + rcx + 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1800401f0
inc bpl
lea r9, [0x180042db0]
movzx edi, bpl
cmp edi, dword [r14]
jle 0x180040140
lea r9, [0x180042db0]
sub r15, 0x10
mov r8, rbx
mov rbx, rsi
add r12d, 0xffffffff
jne 0x1800400e0
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x28]
mov eax, r13d
add rsp, 0x30
pop r14
pop r13
pop rbx
ret
Function at 0x180040260
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1800460c8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, dword [rcx + 4]
mov rsi, rcx
mov dword [rsp + 0x20], 1
mov bpl, 1
sub edx, 0x80
je 0x1800402c4
sub edx, 0x40
je 0x1800402b3
cmp edx, 0x40
jne 0x1800402c4
mov dword [rcx], recv
lea edi, [rdx - 0x20]
lea r14d, [rdx - 0x38]
jmp 0x1800402d3
mov edi, 0x18
mov dword [rcx], recv
lea r14d, [rdi - 0x12]
jmp 0x1800402d3
mov edi, reloc.WS2_32.dll_recv
mov dword [rcx], 0xa
lea r14d, [rdi - 0xc]
mov rdx, qword [rsi + 0x10]
movzx eax, dil
add rcx, 0x20
movzx ebx, al
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsi]
lea rcx, [rsi + 0x20]
add rcx, rdi
lea eax, [rax*4 + 4]
cmp ebx, eax
jge 0x18004042c
mov eax, r14d
lea r9, [rsp + 0x20]
neg rax
lea rdi, [0x180042db0]
sub r9, rcx
movzx r11d, bl
lea r10, [rax*4]
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rcx - 4]
xor edx, edx
mov eax, ebx
mov dword [rcx], r8d
div r14d
test edx, edx
jne 0x1800403c5
mov eax, r8d
mov rdx, rcx
shr eax, 8
mov byte [rcx], al
movzx eax, byte [rcx + 2]
mov byte [rcx + 1], al
movzx eax, byte [rcx + 3]
mov byte [rcx + 3], r8b
mov r8d, 4
mov byte [rcx + 2], al
nop dword [rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
movzx eax, byte [rax + rdi]
mov byte [rdx - 1], al
sub r8, 1
jne 0x180040370
mov rdx, rcx
mov r8d, 4
nop dword [rax]
movzx eax, byte [r9 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x180040390
movzx eax, bpl
movzx r8d, bpl
add al, al
movzx edx, al
movzx eax, dl
mov ebp, edx
xor al, 0x1b
test r8b, r8b
movzx eax, al
cmovs ebp, eax
mov byte [rsp + 0x20], bpl
jmp 0x1800403f4
cmp r14d, 6
jbe 0x1800403f4
cmp edx, 4
jne 0x1800403f4
mov rdx, rcx
mov r8d, 4
nop dword [rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
movzx eax, byte [rax + rdi]
mov byte [rdx - 1], al
sub r8, 1
jne 0x1800403e0
mov edx, 4
nop dword [rax]
movzx eax, byte [r10 + rcx]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x180040400
mov eax, dword [rsi]
inc r11b
sub r9, 4
movzx ebx, r11b
lea eax, [rax*4 + 4]
cmp ebx, eax
jl 0x180040330
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800412a0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x180040450
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
push rdi
sub rsp, 0x28
mov eax, dword [rcx]
mov rdi, rdx
shl eax, 4
lea rdx, [rcx + 0x20]
cdqe
mov r8, rdi
add rdx, rax
mov r9d, reloc.WS2_32.dll_recv
sub rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + r8]
xor byte [r8], al
lea r8, [r8 + 1]
sub r9, 1
jne 0x180040480
movzx ebp, byte [rcx]
test bpl, bpl
je 0x1800405c2
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rbp + 1]
shl rsi, 4
sub rsi, rdi
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
add rsi, rcx
lea r15, [0x180042cb0]
nop word [rax + rax]
mov r9b, 1
lea rbx, [rdi + 1]
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov rax, rbx
mov r8d, 4
nop
movzx ecx, byte [rax]
lea rax, [rax + 4]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x1800404f0
mov eax, 4
movzx r11d, r9b
sub al, r9b
movzx r10d, al
nop dword [rax]
nop word [rax + rax]
movzx eax, r8b
inc r8b
lea edx, [r10 + rax]
and edx, 3
lea ecx, [r11 + rax*4]
movzx eax, byte [rsp + rdx + 0x40]
mov byte [rcx + rdi], al
cmp r8b, 4
jb 0x180040520
inc r9b
inc rbx
cmp r9b, 4
jb 0x1800404e0
mov rcx, rdi
mov edx, reloc.WS2_32.dll_recv
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
movzx eax, byte [rax + r15]
mov byte [rcx - 1], al
sub rdx, 1
jne 0x180040560
mov rcx, rdi
mov edx, reloc.WS2_32.dll_recv
nop dword [rax]
movzx eax, byte [rcx + rsi]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x180040580
cmp bpl, 1
je 0x1800405a0
mov dl, 1
mov rcx, rdi
call fcn.1800405d0
sub rsi, 0x10
add bpl, 0xff
jne 0x1800404d0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rbp
ret
Function at 0x140007140
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x1400fcbe0]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x10], 0
je 0x1400071ce
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp]
and ecx, 0xff
mov rdx, qword [rsp + 8]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x140007172
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret

Function at 0x1400071e0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x1400fcbe0]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x38], 0
je 0x1400072e4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x18], 0
je 0x1400072df
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 2], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 2]
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 0x23
jne 0x1400072b4
cmp qword [rsp + 0x38], 2
jb 0x1400072b4
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400072b4
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400072b4
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp + 1]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x140007227
jmp 0x140007376
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 3], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 3]
mov byte [rsp], al
movzx eax, byte [rsp]
test eax, eax
je 0x140007376
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x14000734c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14000734c
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14000734c
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x1400072e4
mov eax, dword [rsp + 4]
not eax
add rsp, 0x28
ret
Function at 0x1400218c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movss dword [rsp + 0x20], xmm3
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
xorps xmm2, xmm2
xorps xmm1, xmm1
mov rcx, qword [rsp + 0x80]
call fcn.1400019e0
mov eax, dword [rsp + 0x88]
and eax, 1
test eax, eax
je 0x140021999
mov edx, dword [rsp + 0x90]
mov ecx, reloc.WS2_32.dll_sendto
call fcn.140021690
movss dword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, reloc.WS2_32.dll_send
call fcn.140021690
movss xmm1, dword [rsp + 0x20]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x28], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, reloc.WS2_32.dll_select
call fcn.140021690
movss dword [rsp + 0x24], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, reloc.WS2_32.dll_recvfrom
call fcn.140021690
movss xmm1, dword [rsp + 0x24]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x2c], xmm0
movss xmm2, dword [rsp + 0x28]
movss xmm1, dword [rsp + 0x2c]
lea rcx, [rsp + 0x50]
call fcn.1400019e0
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.1400028e0
mov eax, dword [rsp + 0x88]
and eax, 2
test eax, eax
je 0x140021a47
mov edx, dword [rsp + 0x90]
mov ecx, 7
call fcn.140021690
movss dword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 6
call fcn.140021690
movss xmm1, dword [rsp + 0x30]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x38], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 5
call fcn.140021690
movss dword [rsp + 0x34], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 4
call fcn.140021690
movss xmm1, dword [rsp + 0x34]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x3c], xmm0
movss xmm2, dword [rsp + 0x38]
movss xmm1, dword [rsp + 0x3c]
lea rcx, [rsp + 0x58]
call fcn.1400019e0
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.1400028e0
mov eax, dword [rsp + 0x88]
and eax, 4
test eax, eax
je 0x140021af5
mov edx, dword [rsp + 0x90]
mov ecx, ntohs
call fcn.140021690
movss dword [rsp + 0x40], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 0xa
call fcn.140021690
movss xmm1, dword [rsp + 0x40]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x48], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 9
call fcn.140021690
movss dword [rsp + 0x44], xmm0
mov edx, dword [rsp + 0x90]
mov ecx, 8
call fcn.140021690
movss xmm1, dword [rsp + 0x44]
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [rsp + 0x4c], xmm0
movss xmm2, dword [rsp + 0x48]
movss xmm1, dword [rsp + 0x4c]
lea rcx, [rsp + 0x60]
call fcn.1400019e0
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.1400028e0
movss xmm0, dword [rsp + 0x98]
ucomiss xmm0, dword [0x140142b70]
jp 0x140021b09
je 0x140021b30
mov ecx, reloc.WS2_32.dll_ntohl
call fcn.140005fc0
movzx eax, al
test eax, eax
je 0x140021b30
movss xmm1, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
call fcn.140002890
movss xmm0, dword [rsp + 0xa0]
ucomiss xmm0, dword [0x140142b70]
jp 0x140021b44
je 0x140021b6b
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.140005fc0
movzx eax, al
test eax, eax
je 0x140021b6b
movss xmm1, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call fcn.140002890
mov rax, qword [rsp + 0x80]
add rsp, 0x78
ret
Function at 0x140034e50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov rax, qword [0x1408bd1c8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x140034f69
mov rax, qword [rsp + 0x40]
add rax, 0x2fe0
mov rcx, rax
call fcn.140037760
mov qword [rsp + 0x28], rax
jmp 0x140034ec0
mov rax, qword [rsp + 0x40]
add rax, 0x2fe0
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.140037700
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140034f69
cmp dword [rsp + 0x80], 0
je 0x140034ef1
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x80]
cmp dword [rax + 0x14], ecx
je 0x140034ef1
mov dword [rsp + 0x38], 0
jmp 0x140034ef9
mov dword [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140034f4f
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x14], 0
je 0x140034f4f
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 0x14]
mov rcx, qword [rsp + 0x48]
call fcn.14002ac10
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140034f4f
mov rcx, qword [rsp + 0x50]
call fcn.140006050
mov ecx, dword [rsp + 0x80]
cmp dword [rax], ecx
jne 0x140034f4f
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140034f64
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x14], 0
jmp 0x140034e9c
mov dword [rsp + 0x24], 0
jmp 0x140034f7d
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1b38]
cmp dword [rsp + 0x24], eax
jge 0x14003506b
mov rax, qword [rsp + 0x40]
add rax, 0x1b38
mov qword [rsp + 0x68], rax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
call fcn.1400371c0
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x80], 0
je 0x14003501d
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x448], 0
je 0x140034fed
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x448]
call fcn.140006050
mov ecx, dword [rsp + 0x80]
cmp dword [rax], ecx
je 0x14003501d
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x450], 0
je 0x140035013
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x450]
mov ecx, dword [rsp + 0x80]
cmp dword [rax], ecx
je 0x14003501d
mov dword [rsp + 0x3c], 0
jmp 0x140035025
mov dword [rsp + 0x3c], 1
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140035066
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x458]
mov dword [rsp + 0x58], eax
movzx r8d, byte [rsp + 0x88]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.14002c030
movzx eax, byte [rsp + 0x88]
jmp 0x140034f73
add rsp, 0x78
ret
Function at 0x140056940
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140151080]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.14000c410
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1408bd890]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x54]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm0, eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
cvtsi2ss xmm1, eax
movaps xmm2, xmm0
lea rcx, [rsp + 0x3c]
call fcn.1400019e0
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 8], rax
movzx eax, byte [reloc.WS2_32.dll_accept]
test eax, eax
je 0x1400569b8
call fcn.140056900
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [0x1408bd898]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
cvtsi2ss xmm0, rax
cvtsi2ss xmm1, qword [0x1408bd8a0]
divss xmm0, xmm1
mov rax, qword [rsp + 0x20]
movss dword [rax + 0x10], xmm0
mov rax, qword [rsp + 0x58]
mov qword [0x1408bd898], rax
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140056a1c
mov dword [rsp + 0x28], 1
jmp 0x140056a24
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x28]
mov byte [rax + 0x134], cl
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140056a53
mov dword [rsp + 0x2c], 1
jmp 0x140056a5b
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0x135], cl
mov ecx, reloc.WS2_32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140056a8a
mov dword [rsp + 0x30], 1
jmp 0x140056a92
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x30]
mov byte [rax + 0x136], cl
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x137], 0
call fcn.140055ec0
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0xc8]
test eax, eax
je 0x140056acd
mov dword [rsp + 0x34], 0xffffffff
jmp 0x140056ad6
call fcn.140011f10
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
cmp dword [reloc.WS2_32.dll_htons], eax
je 0x140056af9
mov eax, dword [rsp + 0x38]
mov dword [reloc.WS2_32.dll_htons], eax
call fcn.140055d90
call fcn.1400560d0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400e6550
add rsp, 0x78
ret