joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004a7c0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x1800d02d0]
cmp rax, 3
jne 0x18004a8b6
cmp rbx, 0x17f
ja 0x18004a8c8
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call sym.rt_dll.dll_core::ffi::c_str::CStr::from_bytes_with_nul::hc4ac219b322f95d6
cmp qword [rsp + 0x28], 0
je 0x18004a844
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x18004a8d9
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x18004a89e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x18004a8d9
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x18004a8d9
call fcn.180080a40
cmp rbx, 0x17f
jbe 0x18004a7fa
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.180080c00
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x18004a8f0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x18004a912
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x18004a9e7
mov rax, qword [0x1800d02d0]
cmp rax, 3
jne 0x18004a9f2
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call sym.rt_dll.dll_std::sys::pal::windows::net::Socket::new::hd4bf51ceb9afe722
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x18004a953
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x18004a9e7
cmp word [rbx], 0
je 0x18004a974
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x18004a989
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, reloc.WS2_32.dll_recv
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18004a9c5
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x18004a9e7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.180080a40
jmp 0x18004a923
Function at 0x18004ad80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], 0x80
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x18004ae30
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x18004ae40
cmp ecx, 0x17
jne 0x18004ae67
cmp eax, 0x1b
jbe 0x18004ae80
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xb0
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x18004ae6e
cmp eax, 0xf
jbe 0x18004ae98
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xb0
pop rsi
ret
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1800895d0]
mov edx, 0x43
call sym.rt_dll.dll_core::panicking::panic::hc78b6d0617c02f64
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x180089570]
mov edx, 0x42
call sym.rt_dll.dll_core::panicking::panic::hc78b6d0617c02f64
int3

Function at 0x18004b0a0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, r8
mov rsi, rcx
mov r10, qword [rsp + 0x90]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
cmp word [r10], 0
je 0x18004b0ea
movups xmm0, xmmword [r10 + 4]
mov ecx, dword [r10 + 0x14]
mov r11d, dword [r10 + 0x18]
movzx r10d, word [r10 + 0x1c]
mov r9d, 0x1c
mov di, 0x17
jmp 0x18004b100
mov ecx, dword [r10 + 2]
movzx r10d, word [r10 + 6]
mov r9d, reloc.WS2_32.dll_recv
mov di, 2
xorps xmm0, xmm0
rol r10w, 8
mov word [rsp + 0x3c], di
mov word [rsp + 0x3e], r10w
mov dword [rsp + 0x40], ecx
movups xmmword [rsp + 0x44], xmm0
mov dword [rsp + 0x54], r11d
mov rcx, qword [rdx]
mov dword [rsp + 0x28], r9d
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x18004b14b
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x18004b162
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x18004b170
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
mov rax, r8
test rdx, rdx
je 0x18004b181
add rsp, 0x48
ret
cmp word [rax], 0
je 0x18004b1a3
movups xmm0, xmmword [rax + 4]
mov edx, dword [rax + 0x14]
mov r9d, dword [rax + 0x18]
movzx eax, word [rax + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x18004b1b8
mov edx, dword [rax + 2]
movzx eax, word [rax + 6]
mov r8d, reloc.WS2_32.dll_recv
mov r10w, 2
xorps xmm0, xmm0
rol ax, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], ax
mov dword [rsp + 0x30], edx
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r9d
mov rcx, qword [rcx]
lea rdx, [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18004b1ef
xor eax, eax
add rsp, 0x48
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x48
ret
Function at 0x18006b580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x18006b5fa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x18006b5f0
cmp r11, r10
ja 0x18006b685
cmp r10, rdx
ja 0x18006b697
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x18006b5f2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x18006b5d0
jmp 0x18006b667
ja 0x18006b5fa
mov r11, r10
cmp rax, r8
jne 0x18006b5a2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x18006b66b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x18006b640
mov r8, r10
sub ecx, r9d
jns 0x18006b65e
jmp 0x18006b66d
cmp r10, rdx
je 0x18006b679
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x18006b66d
xor al, 1
cmp r8, rdx
jne 0x18006b620
jmp 0x18006b66d
xor eax, eax
jmp 0x18006b66d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1800902a8]
call sym.rt_dll.dll_core::option::unwrap_failed::h77fd136ca573ec78
lea r8, [0x1800902c0]
mov rcx, r11
mov rdx, r10
call sym.rt_dll.dll_core::slice::index::slice_index_order_fail::h44b82ca6180f68c1
lea r8, [0x1800902c0]
mov rcx, r10
call sym.rt_dll.dll_core::slice::index::slice_end_index_len_fail::hb4e1554cec1567f2
int3
Function at 0x180074f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, rdx
movzx r8d, byte [rcx + 0x10]
cmp r8b, 0x80
je 0x180074f39
movzx eax, byte [rcx + 0x1a]
movzx edx, byte [rcx + 0x1b]
movzx r9d, byte [rcx + 0x19]
mov byte [rsp + 0x68], r9b
mov r9, qword [rcx + 0x11]
mov qword [rsp + 0x60], r9
mov r14, qword [rcx]
mov r15, qword [rcx + 8]
movzx ebp, byte [rcx + 0x1c]
cmp bpl, 0x80
je 0x180074f67
movzx r10d, byte [rcx + 0x26]
movzx r11d, byte [rcx + 0x27]
movzx r9d, byte [rcx + 0x25]
mov byte [rsp + 0x30], r9b
mov rcx, qword [rcx + 0x1d]
mov qword [rsp + 0x28], rcx
movzx ecx, byte [rsp + 0x68]
mov byte [rsp + 0x51], cl
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x49], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x55], rcx
movzx ecx, byte [rsp + 0x30]
mov byte [rsp + 0x5d], cl
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x48], r8b
mov byte [rsp + 0x52], al
mov byte [rsp + 0x53], dl
mov byte [rsp + 0x54], bpl
mov byte [rsp + 0x27], r10b
mov byte [rsp + 0x5e], r10b
mov byte [rsp + 0x26], r11b
mov byte [rsp + 0x5f], r11b
cmp r8b, 0x80
jne 0x1800751d4
test r14, r14
je 0x18007521e
cmp r14, r15
je 0x18007521e
mov rdi, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x28]
movzx edi, al
movzx r12d, dl
mov rbx, qword [rsi + 0x20]
mov r13, qword [rsi + 0x28]
nop word cs:[rax + rax]
cmp rdi, r12
jae 0x180074fc7
lea eax, [rdi + 1]
mov byte [rsp + 0x52], al
cmp rdi, 0xa
jae 0x18007527c
movzx edx, byte [rsp + rdi + 0x48]
mov rcx, rbx
call qword [r13 + 0x20]
inc rdi
test al, al
je 0x1800751f0
Function at 0x180080c00
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call sym.rt_dll.dll___str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::hf0fa0dafab0913cf
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x180080c99
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x180080ccb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x180080ce9
jmp 0x180080cfa
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x180080cfa
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp sym.rt_dll.dll___rust_dealloc
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x180080cfa
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call sym.rt_dll.dll___rust_dealloc
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x140001904
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000194e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000194e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000194e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000194e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000194e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001950
xor al, al
add rsp, 0x28
ret
Function at 0x140013230
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
cmp byte [r8 + 7], dil
je 0x140013264
mov ecx, edi
nop dword [rax]
lea eax, [rcx + 0x4a]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 6
jb 0x140013250
mov byte [r8 + 7], dil
lea rax, [r8 + 6]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x140013291
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jmp 0x1400132b0
mov qword [rsp + 0x30], 6
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
movzx eax, word [r8 + 4]
mov word [rsp + 0x24], ax
mov byte [rsp + 0x26], dil
mov r9, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400132be
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001df40
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140013335
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013330
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013330
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007061c
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140013350
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
cmp byte [r8 + 9], dil
je 0x140013384
mov ecx, edi
nop dword [rax]
lea eax, [rcx + 0x4a]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 8
jb 0x140013370
mov byte [r8 + 9], dil
lea rax, [r8 + 8]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x1400133b1
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jmp 0x1400133c7
mov qword [rsp + 0x30], 8
mov rax, qword [r8]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x28], dil
mov r9, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400133d5
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001df40
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x14001344c
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013447
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013447
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007061c
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140013460
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rbx, rcx
mov qword [rbp - 0x10], rcx
xor r9d, r9d
cmp byte [r8 + 6], r9b
je 0x1400134a4
mov ecx, r9d
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x4a]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x140013490
mov byte [r8 + 6], r9b
lea rax, [r8 + 5]
mov qword [rbp - 0x38], r9
mov qword [rbp - 0x28], r9
mov qword [rbp - 0x20], r9
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x1400134cb
mov qword [rbp - 0x28], r9
mov byte [rbp - 0x38], r9b
jmp 0x1400134e5
mov qword [rbp - 0x28], 5
mov eax, dword [r8]
mov dword [rbp - 0x38], eax
movzx eax, byte [r8 + 4]
mov byte [rbp - 0x34], al
mov byte [rbp - 0x33], r9b
cmp byte [rdx + 0xa], 0
je 0x140013503
mov rcx, r9
nop
lea eax, [rcx + 0x4a]
xor byte [rdx + rcx], al
inc rcx
cmp rcx, 9
jb 0x1400134f0
mov byte [rdx + 0xa], 0
lea rax, [rdx + 9]
mov qword [rbp - 0x58], r9
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x40], r9
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
cmp rdx, rax
jne 0x14001352a
mov qword [rbp - 0x48], r9
mov byte [rbp - 0x58], 0
jmp 0x140013546
mov qword [rbp - 0x48], 9
movsd xmm0, qword [rdx]
movsd qword [rbp - 0x58], xmm0
movzx eax, byte [rdx + 8]
mov byte [rbp - 0x50], al
mov byte [rbp - 0x4f], 0
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x58]
movzx edx, byte [rbp - 0x60]
mov rcx, rbx
call fcn.140018c80
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x14001359a
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013594
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013594
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007061c
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x1400135d8
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400135d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400135d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007061c
mov rax, rbx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
Function at 0x1400135f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
cmp byte [r8 + 0xa], dil
je 0x140013624
mov ecx, edi
nop dword [rax]
lea eax, [rcx + 0x4a]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 9
jb 0x140013610
mov byte [r8 + 0xa], dil
lea rax, [r8 + 9]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x140013651
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jmp 0x140013673
mov qword [rsp + 0x30], 9
movsd xmm0, qword [r8]
movsd qword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 8]
mov byte [rsp + 0x28], al
mov byte [rsp + 0x29], dil
mov r9, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140013681
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001df40
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400136f8
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400136f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400136f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007061c
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x14001a770
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x136], 0
je 0x14001a798
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x4a]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x135
jb 0x14001a780
mov byte [rcx + 0x136], 0
mov rax, rcx
ret

Function at 0x14001a7a0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x44], 0
je 0x14001a7c3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x4a]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x43
jb 0x14001a7b0
mov byte [rcx + 0x44], 0
mov rax, rcx
ret

Function at 0x14001a7d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x14001a7f3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x4a]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x46
jb 0x14001a7e0
mov byte [rcx + 0x47], 0
mov rax, rcx
ret
Function at 0x1400375e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x14003763e
mov dl, 1
call fcn.140027fc0
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140027fc0
mov eax, ebx
jmp 0x140037682
cmp ebx, 2
ja 0x140037680
mov r9, qword [rdi + 0x668]
lea rdx, [0x1400770e8]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400376a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x14008d080]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x1400376e3
cmp qword [rcx + 0x678], 0
je 0x1400377c0
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.140026060
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140037711
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x140037758
cmp byte [rdi + 0x1597], 0
jne 0x140037758
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140037740
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x1400377b8
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x140037813
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x1400377d9
mov dl, 1
mov rcx, rdi
call fcn.140027fc0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.140027fc0
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400702b0
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x1400770e8]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400377b8
call fcn.140070b38
int3