joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402d7870
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov ebp, dword [rsp + 0x60]
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
test r9d, r9d
lea r10, [0x140453eb0]
mov r11, r8
mov rsi, rdx
cmovne r10, rax
mov rdi, rcx
test ebp, ebp
je 0x1402d78c6
movabs rax, 0x8fb823ee08fb823f
mul r11
mov r8, rdx
shr r8, 5
jmp 0x1402d78c9
xor r8d, r8d
lea rcx, [r11 + 3]
movabs r9, 0xaaaaaaaaaaaaaaab
mov rax, r9
xor ebx, ebx
mul rcx
shr rdx, 1
lea rcx, [r8 + rdx*2]
xor r8d, r8d
lea r14, [rcx*2 + 1]
mov rcx, rdi
cmp r11, 3
jb 0x1402d799a
mov rax, r9
mul r11
mov r9, rdx
shr r9, 1
imul rax, r9, 0xfffffffffffffffd
add r11, rax
movzx eax, byte [rsi + rbx]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rsi + rbx]
movzx eax, byte [rsi + rbx + 1]
and edx, 3
shr rax, 4
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
movzx edx, byte [rsi + rbx + 1]
movzx eax, byte [rsi + rbx + 2]
and edx, 0xf
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 2], al
movzx eax, byte [rsi + rbx + 2]
add rbx, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx + 3], al
add rcx, 4
test ebp, ebp
je 0x1402d7990
inc r8
cmp r8, 0x13
jne 0x1402d7990
mov word [rcx], 0xa0d
add rcx, 2
xor r8d, r8d
sub r9, 1
jne 0x1402d7911
cmp r11, 2
jne 0x1402d79e4
movzx eax, byte [rbx + rsi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rbx + rsi]
movzx eax, byte [rbx + rsi + 1]
and edx, 3
shr rax, 4
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
movzx eax, byte [rbx + rsi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
jmp 0x1402d7a11
cmp r11, 1
jne 0x1402d7a15
movzx eax, byte [rbx + rsi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx eax, byte [rbx + rsi]
and eax, 3
add rax, rax
movzx eax, byte [r10 + rax*8]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
add rcx, 4
cmp rcx, rdi
jae 0x1402d7a49
mov edx, 0x7a
lea rax, str.current___result
lea r9, str.assertion_failed:__s
mov qword [rsp + 0x20], rax
lea rcx, str.D:p4grpc1.22.1_src_srccorelib_slice_b64.cc
lea r8d, [rdx - 0x78]
call fcn.14027b590
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rax, rcx
sub rax, rdi
cmp rax, r14
jb 0x1402d7a83
mov edx, 0x7b
lea rax, str._uintptr_t__current___result____result_projected_size
lea r9, str.assertion_failed:__s
mov qword [rsp + 0x20], rax
lea rcx, str.D:p4grpc1.22.1_src_srccorelib_slice_b64.cc
lea r8d, [rdx - 0x79]
call fcn.14027b590
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov byte [rcx], 0
add rsp, 0x30
pop r14
ret
Function at 0x1402e1e70
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x140
mov rax, qword [0x1404f4fb8]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rdx, [0x1404562cc]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x1402e1ed5
lea r9, str.BIOS_data_file_cannot_be_opened.
lea edx, [rax + 0x3c]
lea r8d, [rax + 2]
lea rcx, str.D:p4grpc1.22.1_src_srccorelib_securitycredentials_altscheck_gcp_environment.cc
call fcn.14027b590
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140233ef0
add rsp, 0x140
pop rdi
ret
mov r9, rdi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x100
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 0x101
jae 0x1402e1f26
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x158], rbx
mov byte [rsp + rax + 0x20], 0
call fcn.1402e1f30
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, rbx
mov rbx, qword [rsp + 0x158]
jmp 0x1402e1ebc
call fcn.140234650
int3

Function at 0x1402e9e60
Capabilities:
Convert ip address from string

Disassembly:
sub rsp, 0x38
mov r9, qword [rcx]
lea r10, str.ipv4
xor eax, eax
movzx r8d, byte [r10 + rax]
inc rax
cmp r8b, byte [r9 + rax - 1]
jne 0x1402e991d
cmp rax, 5
jne 0x1402e98f0
mov rcx, qword [rcx + 0x10]
cmp byte [rcx], 0x2f
jne 0x1402e9911
inc rcx
mov r8b, 1
add rsp, 0x38
jmp fcn.1402e9950
mov edx, WSACleanup
mov qword [rsp + 0x20], r9
lea r9, str.Expected_ipv4_scheme__got__s
lea rcx, str.D:p4grpc1.22.1_src_srccoreext_filtersclient_channelparse_address.cc
lea r8d, [rdx - 0x70]
call fcn.14027b590
xor al, al
add rsp, 0x38
ret
sub rsp, 0x38
mov r9, qword [rcx]
lea r10, str.ipv6
xor eax, eax
movzx r8d, byte [r10 + rax]
inc rax
cmp r8b, byte [r9 + rax - 1]
jne 0x1402e9afd
cmp rax, 5
jne 0x1402e9ad0
mov rcx, qword [rcx + 0x10]
cmp byte [rcx], 0x2f
jne 0x1402e9af1
inc rcx
mov r8b, 1
add rsp, 0x38
jmp fcn.1402e9b30
mov qword [rsp + 0x20], r9
lea rcx, str.D:p4grpc1.22.1_src_srccoreext_filtersclient_channelparse_address.cc
lea r9, str.Expected_ipv6_scheme__got__s
mov edx, 0xce
mov r8d, 2
call fcn.14027b590
xor al, al
add rsp, 0x38
ret
sub rsp, 0x38
mov r10, qword [rcx]
xor r8d, r8d
mov r11, rcx
mov r9d, r8d
lea rcx, str.unix
nop word [rax + rax]
movzx eax, byte [rcx + r9]
inc r9
cmp al, byte [r10 + r9 - 1]
jne 0x1402e9e9c
cmp r9, 5
jne 0x1402e9e80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rcx, r8
lea r9, str.ipv4
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
cmp al, byte [r10 + rcx - 1]
jne 0x1402e9ed1
cmp rcx, 5
jne 0x1402e9eb0
mov rcx, r11
add rsp, 0x38
jmp 0x1402e98e0
lea rcx, str.ipv6
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
inc r8
cmp al, byte [r10 + r8 - 1]
jne 0x1402e9f01
cmp r8, 5
jne 0x1402e9ee0
mov rcx, r11
add rsp, 0x38
jmp 0x1402e9ac0
lea r9, str.Cant_parse_scheme__s
mov qword [rsp + 0x20], r10
mov edx, 0xdf
lea rcx, str.D:p4grpc1.22.1_src_srccoreext_filtersclient_channelparse_address.cc
mov r8d, 2
call fcn.14027b590
xor al, al
add rsp, 0x38
ret
Function at 0x1402e9fb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1404f4fb8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r9, qword [rdx]
xor r12d, r12d
mov r14, r8
mov rbp, rcx
test r9, r9
je 0x1402e9fea
mov rbx, qword [rdx + 0x10]
jmp 0x1402e9fee
lea rbx, [rdx + 9]
test r9, r9
je 0x1402e9ff9
mov rcx, qword [rdx + 0x10]
jmp 0x1402e9ffd
lea rcx, [rdx + 9]
test r9, r9
je 0x1402ea008
mov rax, qword [rdx + 8]
jmp 0x1402ea00c
movzx eax, byte [rdx + 8]
add rax, rcx
mov qword [rsp + 0xb0], rsi
xor r15b, r15b
mov rdi, rax
sub rdi, rbx
mov r10, rbx
cmp rbx, rax
mov r11d, 1
cmova rdi, r12
test rdi, rdi
je 0x1402ea196
mov rsi, rbx
neg rsi
nop
movzx ecx, byte [r10]
lea r10, [r10 + 1]
mov eax, ecx
and cl, 7
shr rax, 3
movzx r8d, byte [rax + r14]
mov eax, 3
shr r8b, cl
and r8b, r11b
cmovne rax, r11
xor r8b, r11b
add r12, rax
or r15b, r8b
lea rax, [rsi + r10]
cmp rax, rdi
jb 0x1402ea040
test r15b, r15b
je 0x1402ea196
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.14028e270
movups xmm2, xmmword [rax]
movups xmm3, xmmword [rax + 0x10]
lea rax, [rsp + 0x59]
movq rdx, xmm2
test rdx, rdx
movq r9, xmm3
movups xmmword [rsp + 0x50], xmm2
cmovne rax, r9
movups xmmword [rsp + 0x60], xmm3
test rdi, rdi
je 0x1402ea12b
lea r10, [0x140458110]
movzx r9d, byte [rbx]
mov edx, r9d
movzx ecx, r9b
shr rdx, 3
and cl, 7
movzx r8d, byte [rdx + r14]
shr r8b, cl
test r8b, 1
je 0x1402ea0e5
mov byte [rax], r9b
jmp 0x1402ea108
mov byte [rax], 0x25
movzx ecx, byte [rbx]
shr rcx, 4
movzx ecx, byte [rcx + r10]
mov byte [rax + 1], cl
add rax, 2
movzx ecx, byte [rbx]
and ecx, 0xf
movzx ecx, byte [rcx + r10]
mov byte [rax], cl
inc rbx
inc rax
lea rcx, [rsi + rbx]
cmp rcx, rdi
jb 0x1402ea0c0
mov r9, qword [rsp + 0x60]
movups xmm3, xmmword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
movups xmm2, xmmword [rsp + 0x50]
movdqa xmm0, xmm2
psrldq xmm0, 8
test rdx, rdx
je 0x1402ea140
movq r8, xmm0
jmp 0x1402ea149
movq rcx, xmm0
movzx r8d, cl
test rdx, rdx
lea rcx, [rsp + 0x59]
cmovne rcx, r9
add rcx, r8
cmp rax, rcx
je 0x1402ea18c
mov edx, 0x48
lea rax, str.q__GRPC_SLICE_END_PTR_out_
lea r9, str.assertion_failed:__s
mov qword [rsp + 0x20], rax
lea rcx, str.D:p4grpc1.22.1_src_srccorelib_slicepercent_encoding.cc
lea r8d, [rdx - 0x46]
call fcn.14027b590
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
movups xmmword [rbp], xmm2
movups xmmword [rbp + 0x10], xmm3
jmp 0x1402ea1b7
test r9, r9
je 0x1402ea1a8
mov rax, qword [r9]
test rax, rax
je 0x1402ea1a8
lock xadd qword [rax], r11
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm1
mov rax, rbp
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140233ef0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1402f60d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1404f4fb8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ecx, 2
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1402f612c
mov edx, 0x34
lea rax, str.status__0
lea r9, str.assertion_failed:__s
mov qword [rsp + 0x20], rax
lea rcx, str.D:p4grpc1.22.1_src_srccorelibiomgriomgr_windows.cc
lea r8d, [rdx - 0x32]
call fcn.14027b590
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140233ef0
add rsp, 0x1e8
ret

Function at 0x140305320
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rcx
mov qword [rcx + 8], 0xffff
mov qword [rcx + 0x10], 0xffff
mov qword [rcx + 0x18], 0xffff
lea rax, vtable.grpc_core::chttp2::TransportFlowControl.0
mov qword [rcx], rax
mov qword [rcx + 0x20], rdx
xor eax, eax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov byte [rcx + 0x38], r8b
add rcx, 0x40
mov rdx, qword [rdx + 0x18]
call fcn.140305010
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbx + 0x50]
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2]
movaps xmm6, xmm0
addsd xmm6, qword [0x14039d3e0]
mov rcx, qword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
call fcn.1402a3eb0
mov rcx, rax
call fcn.140291550
mov rcx, rax
movaps xmm1, xmm6
call fcn.1403055e0
movaps xmm1, xmmword [0x14045e1b0]
movups xmmword [rsp + 0x28], xmm1
xorps xmm1, xmm1
movsd qword [rsp + 0x38], xmm1
movsd qword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x14045e1c0]
movups xmmword [rsp + 0x48], xmm0
movsd xmm0, qword [0x140439818]
movsd qword [rsp + 0x58], xmm0
lea rcx, [rbx + 0x80]
lea rdx, [rsp + 0x28]
call fcn.140318cc0
mov ecx, dword [0x14051cf40]
mov rax, qword gs:[0x58]
mov edx, 0x68
mov rax, qword [rax + rcx*8]
mov rcx, qword [rdx + rax]
call fcn.14028c540
mov qword [rbx + 0xd8], rax
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
ret
Function at 0x140315210
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1404f4fb8]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rsi, r8
mov qword [rsp + 0x30], 0
mov rbx, rdx
mov rdi, rcx
call fcn.14031ffd0
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14031533e
mov r8d, dword [rbx + 0x80]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140315283
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.bind
mov edx, 0xc9
jmp 0x1403152db
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1403152aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.listen
mov edx, 0xce
jmp 0x1403152db
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 0x80
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x140315325
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.getsockname
mov edx, 0xd5
mov r8d, eax
lea rcx, str.D:p4grpc1.22.1_src_srccorelibiomgr_tcp_server_windows.cc
call fcn.1402974f0
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14031533e
lea rax, str.error___GRPC_ERROR_NONE
mov edx, 0xde
lea r9, str.assertion_failed:__s
mov qword [rsp + 0x20], rax
mov r8d, 2
lea rcx, str.D:p4grpc1.22.1_src_srccorelibiomgr_tcp_server_windows.cc
call fcn.14027b590
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov eax, dword [rsp + 0x38]
lea rcx, [rbp - 0x40]
mov dword [rbp + 0x40], eax
call fcn.1402e1810
mov dword [rsi], eax
xor eax, eax
jmp 0x1403153fd
mov rcx, rbx
call fcn.1402e1ca0
mov rdx, rax
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.14028e090
lea rdx, str.Failed_to_prepare_server_socket
lea rcx, [rsp + 0x60]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
call fcn.14028e0f0
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 1
lea r8, [rbp - 0x80]
mov edx, 0xe2
lea rcx, str.D:p4grpc1.22.1_src_srccorelibiomgr_tcp_server_windows.cc
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
call fcn.140296e60
mov rcx, rax
lea r8, [rbp - 0x60]
mov edx, 4
call fcn.140297200
mov rcx, rax
mov r8, rdi
mov edx, reloc.WS2_32.dll_inet_addr
call fcn.140297150
mov rcx, rbx
call fcn.14027b6c0
mov rax, qword [rsp + 0x30]
cmp rax, 4
jbe 0x1403153e9
mov rcx, rax
call fcn.140297050
mov rax, qword [rsp + 0x30]
cmp rdi, 0xffffffffffffffff
je 0x1403153fd
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140233ef0
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403184b0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x90
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov ecx, 0xc0
call fcn.14027b6e0
mov rbx, rax
lea r15, vtable.grpc_core::ExecCtx.0
mov qword [rsp + 0x40], r15
xor esi, esi
mov qword [rsp + 0x48], rsi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 1
call sub.KERNEL32.dll_GetCurrentProcessorNumber
mov dword [rsp + 0x70], eax
mov byte [rsp + 0x74], sil
mov qword [rsp + 0x78], rsi
mov ecx, dword [0x14051cf40]
mov rax, qword gs:[0x58]
mov edx, 0x68
mov rsi, qword [rax + rcx*8]
add rsi, rdx
mov rax, qword [rsi]
mov qword [rsp + 0x80], rax
call fcn.1402851b0
lea rax, [rsp + 0x40]
mov qword [rsi], rax
cmp byte [0x140523518], 0
je 0x140318585
mov qword [rsp + 0x20], rdi
lea r9, str.Creating_TCP_endpoint__p
mov edx, 0x15d
mov r8d, 1
lea rcx, str.D:p4grpc1.22.1_src_srccorelibiomgr_tcp_custom.cc
call fcn.14027b590
xor edx, edx
mov r8d, 0xc0
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
inc dword [rdi + 0x20]
mov qword [rdi + 8], rbx
mov qword [rbx + 0x10], rdi
lea rax, [0x1404fe2f0]
mov qword [rbx], rax
lea rcx, [rbx + 8]
mov edx, 1
call fcn.140284f40
mov rcx, rbp
call fcn.14027c710
mov qword [rbx + 0xb8], rax
mov byte [rbx + 0xb0], 0
mov rdx, rbp
mov rcx, r14
call fcn.140291030
mov qword [rbx + 0x38], rax
lea rcx, [rbx + 0x40]
mov r9, rbx
lea r8, [0x1403187b0]
mov rdx, rax
call fcn.140291740
nop
mov qword [rsp + 0x40], r15
or qword [rsp + 0x68], 1
lea rcx, [rsp + 0x40]
call fcn.14028c450
mov rax, qword [rsp + 0x80]
mov qword [rsi], rax
test byte [rsp + 0x68], 4
jne 0x140318621
call fcn.140285040
nop
mov rax, rbx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14031ffd0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.140320090
test rax, rax
jne 0x14032008a
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], eax
lea edx, [rax + 0x29]
mov dword [rsp + 0x20], 4
lea r8d, [rax + 0x1b]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140320032
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.setsockopt_IPV6_V6ONLY_
mov edx, 0x4a
mov r8d, eax
lea rcx, str.D:p4grpc1.22.1_src_srccorelibiomgr_tcp_windows.cc
call fcn.1402974f0
test rax, rax
jne 0x14032008a
mov edx, 6
mov dword [rsp + 0x48], 1
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov rcx, rbx
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140320064
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140320088
lea r9, str.setsockopt_TCP_NODELAY_
mov r8d, eax
mov edx, 0x56
lea rcx, str.D:p4grpc1.22.1_src_srccorelibiomgr_tcp_windows.cc
call fcn.1402974f0
test rax, rax
jne 0x14032008a
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1403222a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x60
mov rbx, rcx
mov rsi, r8
mov rcx, qword [rcx + 0x108]
mov r14, rdx
test rcx, rcx
je 0x1403222d2
mov eax, dword [rbx + 0x110]
jmp 0x1403222d9
movzx eax, byte [rbx + 0x110]
mov dword [rsp + 0x50], eax
test rcx, rcx
je 0x1403222eb
mov rax, qword [rbx + 0x118]
jmp 0x1403222f2
lea rax, [rbx + 0x111]
mov rcx, qword [rbx + 0x188]
mov qword [rsp + 0x58], rax
call fcn.140291550
mov rcx, rax
lea rdx, [rsp + 0x50]
xor eax, eax
mov r9, r14
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
lea r8d, [rax + 1]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp byte [0x1405236e0], 0
mov edi, eax
je 0x140322376
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x30]
mov ecx, dword [r14]
lea r9, str._c_ares_resolver__WSASend:_name:_s._buf_len:_d._bytes_sent:__d._overlapped__p._return_val:__d
mov dword [rsp + 0x40], edi
xor r8d, r8d
mov qword [rsp + 0x38], rsi
mov edx, 0xe4
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x28], ecx
lea rcx, str.D:p4grpc1.22.1_src_srccoreext_filtersclient_channel_resolverdnsc_aresgrpc_ares_ev_driver_windows.cc
mov qword [rsp + 0x20], rax
call fcn.14027b590
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop r14
ret
Function at 0x14032cb60
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x140523870]
mov ebx, ecx
test eax, eax
je 0x14032cb82
inc eax
mov dword [0x140523870], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [0x140523870], 1
test bl, 1
je 0x14032cc62
lea rcx, str.iphlpapi.dll
mov qword [0x140523878], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140523878], rax
test rax, rax
jne 0x14032cbc4
mov eax, socket
add rsp, 0x20
pop rbx
ret
lea rdx, str.GetNetworkParams
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140523878]
mov qword [0x140523850], rax
test rax, rax
jne 0x14032cbf8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, reloc.WS2_32.dll_socket
add rsp, 0x20
pop rbx
ret
lea rdx, [0x140469708]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140523878]
lea rdx, str.GetBestRoute2
mov qword [0x140523860], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.advapi32.dll
mov qword [0x140523880], 0
mov qword [0x140523868], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140523880], rax
test rax, rax
je 0x14032cc62
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140523858], rax
mov dword [0x140523874], ebx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14032cc90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
movzx r10d, byte [rcx + 0x100]
lea rbx, [rsp + 8]
movzx r11d, byte [rcx + 0x101]
xor eax, eax
mov word [rsp + 8], ax
lea edi, [rax + 2]
nop dword [rax]
inc r10b
lea rbx, [rbx + 1]
movzx r8d, r10b
movzx r9d, byte [r8 + rcx]
add r11b, r9b
movzx edx, r11b
movzx eax, byte [rdx + rcx]
mov byte [r8 + rcx], al
mov byte [rdx + rcx], r9b
add r9b, byte [r8 + rcx]
movzx eax, r9b
movzx edx, byte [rax + rcx]
xor byte [rbx - 1], dl
sub rdi, 1
jne 0x14032ccc0
movzx eax, word [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov byte [rcx + 0x100], r10b
mov byte [rcx + 0x101], r11b
ret
Function at 0x14032cd20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov r10d, dword [rcx]
xor ebp, ebp
shr r10d, 3
mov r11d, r9d
not r10d
mov ebx, r8d
and r10d, 1
mov rdi, rdx
test dword [rcx], 0x100
mov rsi, rcx
je 0x14032cd5d
mov eax, dword [rcx + 0x50]
jmp 0x14032cd5f
mov eax, ebp
movzx r9d, word [rcx + 0x9c]
mov r8d, r11d
mov dword [rsp + 0x38], eax
mov edx, ebx
lea rax, [rsp + 0x44]
mov rcx, rdi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r10d
call fcn.140333310
mov ebx, eax
test eax, eax
je 0x14032cdd0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14032cda7
call qword [0x1404fe868]
mov rcx, qword [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov edx, ebx
call qword [rsp + 0x80]
jmp 0x14032cf2a
movzx r10d, byte [rsi + 0x19e]
lea r9, [rsp + 0x60]
movzx r11d, byte [rsi + 0x19f]
mov ebx, 2
mov word [rsp + 0x60], bp
nop
inc r10b
movzx edx, r10b
movzx r8d, byte [rdx + rsi + 0x9e]
add r11b, r8b
movzx ecx, r11b
movzx eax, byte [rcx + rsi + 0x9e]
mov byte [rdx + rsi + 0x9e], al
mov byte [rcx + rsi + 0x9e], r8b
add r8b, byte [rdx + rsi + 0x9e]
movzx eax, r8b
movzx ecx, byte [rax + rsi + 0x9e]
xor byte [r9], cl
inc r9
sub rbx, 1
jne 0x14032cdf0
movzx r9d, word [rsp + 0x60]
movzx eax, r9w
mov byte [rsp + 0x41], r9b
shr ax, 8
mov byte [rsp + 0x40], al
movzx r8d, word [rsp + 0x40]
mov eax, r8d
mov byte [rsi + 0x19e], r10b
and eax, 0x7ff
mov byte [rsi + 0x19f], r11b
lea rax, [rax + rax*2]
lea rax, [rax + 0x3a]
lea rdx, [rsi + rax*8]
mov rax, qword [rsi + rax*8 + 8]
cmp rax, rdx
je 0x14032cea7
nop word [rax + rax]
mov rcx, qword [rax + 0x10]
cmp word [rcx], r8w
je 0x14032cdd0
mov rax, qword [rax + 8]
cmp rax, rdx
jne 0x14032ce90
mov ecx, reloc.WS2_32.dll_recv
mov word [rsi + 0x9c], r9w
call qword [0x1404fe858]
mov rcx, rax
test rax, rax
jne 0x14032ceeb
mov rcx, qword [rsp + 0x48]
call fcn.140333560
mov rcx, qword [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebp
lea edx, [r9 + 0xf]
call qword [rsp + 0x80]
jmp 0x14032cf2a
mov rax, qword [rsp + 0x80]
lea r9, [0x14032cf40]
mov qword [rcx], rax
mov rax, qword [rsp + 0x88]
mov qword [rcx + 8], rax
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call fcn.140333060
mov rcx, qword [rsp + 0x48]
call fcn.140333560
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret