joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14039cfb0
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, [0x140543dd0]
mov r11, r8
mov rsi, rdx
cmovne r10, rax
mov rdi, rcx
test ebp, ebp
je 0x14039d006
movabs rax, 0x8fb823ee08fb823f
mul r11
mov r8, rdx
shr r8, 5
jmp 0x14039d009
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 0x14039d0da
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 0x14039d0d0
inc r8
cmp r8, 0x13
jne 0x14039d0d0
mov word [rcx], 0xa0d
add rcx, 2
xor r8d, r8d
sub r9, 1
jne 0x14039d051
cmp r11, 2
jne 0x14039d124
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 0x14039d151
cmp r11, 1
jne 0x14039d155
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 0x14039d189
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.140309600
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 0x14039d1c3
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.140309600
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 0x1403a75b0
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x140
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rdx, [0x1405461ec]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x1403a7615
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.140309600
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140284180
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 0x1403a7666
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x158], rbx
mov byte [rsp + rax + 0x20], 0
call fcn.1403a7670
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 0x1403a75fc
call fcn.140284c90
int3

Function at 0x1403af5a0
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 0x1403af05d
cmp rax, 5
jne 0x1403af030
mov rcx, qword [rcx + 0x10]
cmp byte [rcx], 0x2f
jne 0x1403af051
inc rcx
mov r8b, 1
add rsp, 0x38
jmp fcn.1403af090
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.140309600
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 0x1403af23d
cmp rax, 5
jne 0x1403af210
mov rcx, qword [rcx + 0x10]
cmp byte [rcx], 0x2f
jne 0x1403af231
inc rcx
mov r8b, 1
add rsp, 0x38
jmp fcn.1403af270
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.140309600
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 0x1403af5dc
cmp r9, 5
jne 0x1403af5c0
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 0x1403af611
cmp rcx, 5
jne 0x1403af5f0
mov rcx, r11
add rsp, 0x38
jmp 0x1403af020
lea rcx, str.ipv6
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
inc r8
cmp al, byte [r10 + r8 - 1]
jne 0x1403af641
cmp r8, 5
jne 0x1403af620
mov rcx, r11
add rsp, 0x38
jmp 0x1403af200
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.140309600
xor al, al
add rsp, 0x38
ret
Function at 0x1403af6f0
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 [0x140601e40]
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 0x1403af72a
mov rbx, qword [rdx + 0x10]
jmp 0x1403af72e
lea rbx, [rdx + 9]
test r9, r9
je 0x1403af739
mov rcx, qword [rdx + 0x10]
jmp 0x1403af73d
lea rcx, [rdx + 9]
test r9, r9
je 0x1403af748
mov rax, qword [rdx + 8]
jmp 0x1403af74c
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 0x1403af8d6
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 0x1403af780
test r15b, r15b
je 0x1403af8d6
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.1403539b0
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 0x1403af86b
lea r10, [0x140548030]
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 0x1403af825
mov byte [rax], r9b
jmp 0x1403af848
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 0x1403af800
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 0x1403af880
movq r8, xmm0
jmp 0x1403af889
movq rcx, xmm0
movzx r8d, cl
test rdx, rdx
lea rcx, [rsp + 0x59]
cmovne rcx, r9
add rcx, r8
cmp rax, rcx
je 0x1403af8cc
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.140309600
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 0x1403af8f7
test r9, r9
je 0x1403af8e8
mov rax, qword [r9]
test rax, rax
je 0x1403af8e8
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.140284180
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1403bb810
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140601e40]
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 0x1403bb86c
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.140309600
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.140284180
add rsp, 0x1e8
ret

Function at 0x1403caa60
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.1403ca750
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 [0x14046d8a8]
mov rcx, qword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
call fcn.1403695f0
mov rcx, rax
call fcn.140356c90
mov rcx, rax
movaps xmm1, xmm6
call fcn.1403cad20
movaps xmm1, xmmword [0x14054e0d0]
movups xmmword [rsp + 0x28], xmm1
xorps xmm1, xmm1
movsd qword [rsp + 0x38], xmm1
movsd qword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x14054e0e0]
movups xmmword [rsp + 0x48], xmm0
movsd xmm0, qword [0x140521e68]
movsd qword [rsp + 0x58], xmm0
lea rcx, [rbx + 0x80]
lea rdx, [rsp + 0x28]
call fcn.1403de400
mov ecx, dword [0x14062d9a0]
mov rax, qword gs:[0x58]
mov edx, 0x68
mov rax, qword [rax + rcx*8]
mov rcx, qword [rdx + rax]
call fcn.140351c80
mov qword [rbx + 0xd8], rax
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
ret
Function at 0x1403da950
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 [0x140601e40]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rsi, r8
mov qword [rsp + 0x30], 0
mov rbx, rdx
mov rdi, rcx
call fcn.1403e5710
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1403daa7e
mov r8d, dword [rbx + 0x80]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1403da9c3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.bind
mov edx, 0xc9
jmp 0x1403daa1b
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1403da9ea
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.listen
mov edx, 0xce
jmp 0x1403daa1b
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 0x1403daa65
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.14035cc30
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1403daa7e
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.140309600
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.1403a6f50
mov dword [rsi], eax
xor eax, eax
jmp 0x1403dab3d
mov rcx, rbx
call fcn.1403a73e0
mov rdx, rax
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.1403537d0
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.140353830
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.14035c5a0
mov rcx, rax
lea r8, [rbp - 0x60]
mov edx, 4
call fcn.14035c940
mov rcx, rax
mov r8, rdi
mov edx, reloc.WS2_32.dll_inet_addr
call fcn.14035c890
mov rcx, rbx
call fcn.140309730
mov rax, qword [rsp + 0x30]
cmp rax, 4
jbe 0x1403dab29
mov rcx, rax
call fcn.14035c790
mov rax, qword [rsp + 0x30]
cmp rdi, 0xffffffffffffffff
je 0x1403dab3d
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.140284180
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403ddbf0
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.140309750
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 [0x14062d9a0]
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.14034a8f0
lea rax, [rsp + 0x40]
mov qword [rsi], rax
cmp byte [0x140634ed8], 0
je 0x1403ddcc5
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.140309600
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, [0x14060c180]
mov qword [rbx], rax
lea rcx, [rbx + 8]
mov edx, 1
call fcn.14034a680
mov rcx, rbp
call fcn.14030a780
mov qword [rbx + 0xb8], rax
mov byte [rbx + 0xb0], 0
mov rdx, rbp
mov rcx, r14
call fcn.140356770
mov qword [rbx + 0x38], rax
lea rcx, [rbx + 0x40]
mov r9, rbx
lea r8, [0x1403ddef0]
mov rdx, rax
call fcn.140356e80
nop
mov qword [rsp + 0x40], r15
or qword [rsp + 0x68], 1
lea rcx, [rsp + 0x40]
call fcn.140351b90
mov rax, qword [rsp + 0x80]
mov qword [rsi], rax
test byte [rsp + 0x68], 4
jne 0x1403ddd61
call fcn.14034a780
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 0x1403e5710
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.1403e57d0
test rax, rax
jne 0x1403e57ca
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 0x1403e5772
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.14035cc30
test rax, rax
jne 0x1403e57ca
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 0x1403e57a4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1403e57c8
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.14035cc30
test rax, rax
jne 0x1403e57ca
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1403e79e0
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 0x1403e7a12
mov eax, dword [rbx + 0x110]
jmp 0x1403e7a19
movzx eax, byte [rbx + 0x110]
mov dword [rsp + 0x50], eax
test rcx, rcx
je 0x1403e7a2b
mov rax, qword [rbx + 0x118]
jmp 0x1403e7a32
lea rax, [rbx + 0x111]
mov rcx, qword [rbx + 0x188]
mov qword [rsp + 0x58], rax
call fcn.140356c90
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 [0x1406350a0], 0
mov edi, eax
je 0x1403e7ab6
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.140309600
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 0x1403efa30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x140635230]
mov ebx, ecx
test eax, eax
je 0x1403efa52
inc eax
mov dword [0x140635230], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [0x140635230], 1
test bl, 1
je 0x1403efb32
lea rcx, str.iphlpapi.dll
mov qword [0x140635238], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140635238], rax
test rax, rax
jne 0x1403efa94
mov eax, reloc.WS2_32.dll_shutdown
add rsp, 0x20
pop rbx
ret
lea rdx, str.GetNetworkParams
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140635238]
mov qword [0x140635210], rax
test rax, rax
jne 0x1403efac8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, reloc.WS2_32.dll_socket
add rsp, 0x20
pop rbx
ret
lea rdx, [0x140558950]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140635238]
lea rdx, str.GetBestRoute2
mov qword [0x140635220], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.advapi32.dll
mov qword [0x140635240], 0
mov qword [0x140635228], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140635240], rax
test rax, rax
je 0x1403efb32
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140635218], rax
mov dword [0x140635234], ebx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1403efb60
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 0x1403efb90
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 0x1403efbf0
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 0x1403efc2d
mov eax, dword [rcx + 0x50]
jmp 0x1403efc2f
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.1403f61e0
mov ebx, eax
test eax, eax
je 0x1403efca0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1403efc77
call qword [0x14060c6f8]
mov rcx, qword [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov edx, ebx
call qword [rsp + 0x80]
jmp 0x1403efdfa
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 0x1403efcc0
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 0x1403efd77
nop word [rax + rax]
mov rcx, qword [rax + 0x10]
cmp word [rcx], r8w
je 0x1403efca0
mov rax, qword [rax + 8]
cmp rax, rdx
jne 0x1403efd60
mov ecx, reloc.WS2_32.dll_recv
mov word [rsi + 0x9c], r9w
call qword [0x14060c6e8]
mov rcx, rax
test rax, rax
jne 0x1403efdbb
mov rcx, qword [rsp + 0x48]
call fcn.1403f6430
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 0x1403efdfa
mov rax, qword [rsp + 0x80]
lea r9, [0x1403efe10]
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.1403f5f30
mov rcx, qword [rsp + 0x48]
call fcn.1403f6430
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret