joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dadb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140231100]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400dae07
cmp word [rdx], r13w
jne 0x1400dae07
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400dae0c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400daf31
mov r11d, recvfrom
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400daf52
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400dae45
mov rdx, r9
mov word [rbx], cx
jmp 0x1400dae6c
cmp r9, r8
jae 0x1400dae7c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400dae26
jmp 0x1400daf31
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400daf26
cmp dword [rsp + 0x80], esi
je 0x1400daf26
lea r8, [0x140231100]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400daefe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400daece
mov word [rbx], r13w
jmp 0x1400daf2e
mov ecx, recvfrom
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400daedb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400daf2e
cmp word [rsp + 0x70], r13w
jne 0x1400daf0b
cmp rbx, r14
je 0x1400daec8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400dbc38
cmp word [rsp + 0x70], r13w
je 0x1400daf31
mov ecx, recvfrom
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140231100]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400daf2b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400daf31
Function at 0x1400e06a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400e0727
mov rsi, rbx
cmp word [rax], bp
je 0x1400e06e6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e06d0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e06cc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400dbcdc
mov rdi, rax
test rax, rax
je 0x1400e0714
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c3f50
mov rbp, rdi
xor ecx, ecx
call fcn.1400d9960
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e33b4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400d85a4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400e3455
cmp ebx, dword [rsp + 0x30]
je 0x1400e344e
test esi, esi
je 0x1400e344e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e3429
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e3436
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e3413
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e343a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e3457
mov eax, 1
jmp 0x1400e3457
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e6b94
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400dbc38
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400dbc38
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e6ce4
cmp rax, 0xffffffffffffffff
je 0x1400e6ce4
xor edi, edi
test rbp, rbp
jle 0x1400e6c8f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d9f4c
mov rbx, rax
test rax, rax
jne 0x1400e6c1c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e6c85
mov edx, 0x8000
mov ecx, r14d
call fcn.1400d5330
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400d9658
cmp eax, 0xffffffff
je 0x1400e6c65
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e6c2c
mov edx, r15d
mov ecx, r14d
call fcn.1400d5330
jmp 0x1400e6c85
cmp byte [rsi + 0x38], dil
je 0x1400e6c7c
cmp dword [rsi + 0x34], 5
jne 0x1400e6c7c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
cmp byte [rsi + 0x30], dil
je 0x1400e6c85
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d9960
jmp 0x1400e6cf8
jns 0x1400e6cf8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400dbc38
cmp rax, 0xffffffffffffffff
jne 0x1400e6cb0
cmp byte [rsi + 0x30], dil
je 0x1400e6cf8
mov edi, dword [rsi + 0x2c]
jmp 0x1400e6cf8
mov ecx, r14d
call fcn.1400e0e60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e6cf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recvfrom
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
jmp 0x1400e6cf8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e6cf1
mov eax, dword [rsi + 0x2c]
jmp 0x1400e6cf6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400dbc38
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400e7e40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400e7e68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400e7e68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002a20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140003b50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003b50
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002bc0
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002adb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002b65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ac0
mov rcx, rbx
call fcn.1400034e0
mov rdi, rax
test rax, rax
je 0x140002be2
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003620
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002bc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002b5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002b70
add dword [0x1400080a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002b5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002a20
nop dword [rax]
xor esi, esi
jmp 0x140002ae8
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002a20
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002a20
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003150
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x1400031ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400031a3
test rsi, rsi
je 0x1400031a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003188
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400034e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005a20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003500
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003508
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003500
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000355d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003554
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003500
add rax, 0x28
cmp rax, r9
jne 0x140003540
xor eax, eax
ret

Function at 0x140003560
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005a20]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000357f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003588
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000357f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003620
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005a20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000363f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003648
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140001a20
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
or ebx, 0xffffffff
lock xadd dword [0x140004018], ebx
dec ebx
jne 0x140001a76
lea ecx, [rbx + 4]
call fcn.140001468
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], ebx
lea r8, [0x1400019f0]
mov r9, rax
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x493e0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140001a71
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a76
call fcn.1400015e0
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140002a0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002a58
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002a50
cmp dword [rcx + 0x3c], edx
jl 0x140002a50
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002a50
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002a58
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400030b0
Capabilities:
Delete file
Encode data using xor

Disassembly:
sub rsp, 0x68
cmp byte [0x1400ace3b], 0
movups xmm0, xmmword [0x1400ace20]
mov eax, dword [0x1400ace38]
mov dword [rsp + 0x48], eax
movups xmmword [rsp + 0x30], xmm0
movsd xmm0, qword [0x1400ace30]
movsd qword [rsp + 0x40], xmm0
je 0x14000327f
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140003241
movdqa xmm0, xmmword [0x1400ae2d0]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1400ae230]
movdqa xmm4, xmmword [0x1400ae330]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [0x1400ae250]
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400ae290]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400ae290]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x140003130
movaps xmm6, xmmword [rsp + 0x50]
cmp ecx, 0x1c
jge 0x14000327f
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 0x1c
jl 0x140003250
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add rsp, 0x68
ret
Function at 0x140015eb0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400bc0c0]
xor rax, rsp
mov qword [rbp - 8], rax
cmp byte [0x1400ac9a1], 0
movsd xmm0, qword [str._BSTU]
movzx eax, word [0x1400ac9a0]
movsd qword [rbp - 0x30], xmm0
mov word [rbp - 0x28], ax
je 0x140015f10
xor byte [rbp - 0x2f], 0x36
xor byte [rbp - 0x2e], 0x37
xor byte [rbp - 0x2d], 0x38
xor byte [rbp - 0x2c], 0x39
xor byte [rbp - 0x2b], 0x3a
xor byte [rbp - 0x2a], 0x3b
xor byte [rbp - 0x29], 0x3c
xor byte [rbp - 0x28], 0x3d
xor byte [rbp - 0x27], 0x3e
mov byte [rbp - 0x30], WSAGetLastError
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9, rax
test rax, rax
je 0x1400160e6
cmp byte [0x1400acc85], 0
mov ecx, dword [0x1400acc80]
movsd xmm0, qword [str.qTPzK_ZWmQV.5B]
mov dword [rbp - 0x18], ecx
movzx ecx, word [0x1400acc84]
mov word [rbp - 0x14], cx
mov qword [rsp + 0x60], rbx
movsd qword [rbp - 0x20], xmm0
je 0x1400160af
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140016068
movdqa xmm2, xmmword [0x1400ae230]
mov ecx, 8
movdqa xmm3, xmmword [0x1400ae240]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1400ae330]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400ae250]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.qTPzK_ZWmQV.5B]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400ae290]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400ae2d0]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp - 0x20], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400ae250]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp - 0x1c]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400ae290]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400ae2d0]
xorps xmm2, xmm0
movd dword [rbp - 0x1c], xmm2
movsxd rax, ecx
lea r8, [rbp - 0x20]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 0xe
jl 0x140016080
lea rdx, [rbp - 0x20]
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400160e1
mov edx, 1
lea r9, [rbp - 0x10]
mov rcx, rax
lea r8d, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400160e1
mov byte [rbx], 0xc3
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140098570
add rsp, 0x50
pop rbp
ret
Function at 0x140016780
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400bc0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, qword [rsp + 0x98]
cmp byte [rbx], 0xcc
jne 0x1400169f2
mov edx, 1
lea r9, [rsp + 0x70]
mov rcx, rbx
lea r8d, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400169f2
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x70]
mov edx, 1
mov byte [rbx], 0x90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movups xmm0, xmmword [str.fBRH]
mov eax, dword [0x1400acbf8]
xor r9d, r9d
cmp byte [0x1400acbfb], r9b
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], eax
je 0x1400169af
cmp dword [reloc.WS2_32.dll_accept], 2
mov ecx, r9d
jl 0x140016974
movdqa xmm0, xmmword [0x1400ae2d0]
lea rdx, [rsp + 0x24]
movdqa xmm5, xmmword [0x1400ae230]
movdqa xmm4, xmmword [0x1400ae330]
movdqa xmmword [rsp + 0x40], xmm0
mov r8d, dword [rsp + 0x40]
movaps xmmword [rsp + 0x80], xmm6
movdqa xmm6, xmmword [0x1400ae250]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400ae290]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400ae290]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x140016860
movaps xmm6, xmmword [rsp + 0x80]
cmp ecx, 0x14
jge 0x1400169af
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 0x14
jl 0x140016980
xorps xmm0, xmm0
mov qword [rsp + 0x60], r9
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x68], r9
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], r9b
jne 0x1400169d0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.140022cf0
lea rcx, [rsp + 0x50]
call fcn.14000e770
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140098570
add rsp, 0x90
pop rbx
ret
Function at 0x140016dc0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x78
call fcn.140036200
test eax, eax
je 0x140016fdc
movups xmm0, xmmword [0x1400adc68]
xor r9d, r9d
movups xmmword [rsp + 0x20], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x140016f8f
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140016f4e
movdqa xmm0, xmmword [0x1400ae2d0]
lea rcx, [rsp + 0x24]
movdqa xmm5, xmmword [0x1400ae230]
mov edx, r9d
movdqa xmm4, xmmword [0x1400ae330]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x1400ae250]
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400ae290]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400ae290]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x10
jl 0x140016e40
movaps xmm6, xmmword [rsp + 0x60]
jmp 0x140016f8f
lea r8, [rsp + 0x20]
mov ecx, r9d
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
inc ecx
sub al, dl
add al, 0x35
xor byte [r8 - 1], al
cmp ecx, 0x10
jl 0x140016f60
xorps xmm0, xmm0
mov qword [rsp + 0x50], r9
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], r9b
jne 0x140016fb0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140022cf0
lea rcx, [rsp + 0x40]
call fcn.14000e770
mov eax, 0x1000
add rsp, 0x78
ret
xor eax, eax
add rsp, 0x78
ret