joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140369db0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x200
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
xor edi, edi
mov dword [rsp + 0x68], 0x18
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x68]
mov dword [rsp + 0x28], 0x80
lea rcx, str.windows_bios.data
mov edx, 0x40000000
mov qword [rsp + 0x70], rdi
lea r8d, [rdi + 3]
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140369e4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateFile_failed___d_.
mov dword [rsp + 0x20], eax
lea edx, [rdi + 0x48]
lea r8d, [rdi + 2]
lea rcx, str.D:p4grpc1.22.1_src_srccorelib_securitycredentials_altscheck_gcp_environment_windows.cc
call fcn.1403206e0
xor al, al
jmp 0x140369f6c
xor eax, eax
lea rcx, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x68]
call sub.VCRUNTIME140.dll_memset
or dword [rsp + 0xbc], 0x100
lea rax, str._Get_WmiObject__Class_Win32_BIOS_.Manufacturer
lea r9, str.powershell.exe
mov qword [rsp + 0x20], rax
lea r8, str._s__s
mov dword [rsp + 0x80], WSASetLastError
mov edx, 0x100
mov qword [rsp + 0xd0], rdi
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xd8], rbx
call fcn.1400c21d0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xf0]
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140369f3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x5b
lea r9, str.CreateProcess_failed___d_._n
lea rcx, str.D:p4grpc1.22.1_src_srccorelib_securitycredentials_altscheck_gcp_environment_windows.cc
mov dword [rsp + 0x20], eax
lea r8d, [rdx - 0x59]
call fcn.1403206e0
xor al, al
jmp 0x140369f6c
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1402f2210
mov rbx, qword [rsp + 0x210]
add rsp, 0x200
pop rdi
ret
Function at 0x14036d370
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x18]
mov rdi, rcx
mov edx, dword [0x140696aa8]
mov qword [rsp + 0x20], rax
mov rax, qword gs:[0x58]
mov ecx, 0x68
mov rax, qword [rax + rdx*8]
mov rcx, qword [rcx + rax]
call fcn.1403438b0
mov rbx, rax
lea rcx, [rdi + 0xd0]
add rbx, qword [rdi + 0x108]
call fcn.14038f0a0
cmp rax, rbx
mov qword [rdi + 0x100], rax
mov rcx, rax
mov edx, 1
mov rax, qword [rdi + 0x10]
cmovl rcx, rbx
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x30], rax
call fcn.14036f750
mov rcx, qword [rdi + 0x58]
lea r9, [rdi + 0x78]
lea r8, [rdi + 0x60]
lea rdx, [rsp + 0x20]
call fcn.14036bd80
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14038ebe0
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, [0x14056e100]
mov r11, r8
mov rsi, rdx
cmovne r10, rax
mov rdi, rcx
test ebp, ebp
je 0x14038ec36
movabs rax, 0x8fb823ee08fb823f
mul r11
mov r8, rdx
shr r8, 5
jmp 0x14038ec39
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 0x14038ed0a
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 0x14038ed00
inc r8
cmp r8, 0x13
jne 0x14038ed00
mov word [rcx], 0xa0d
add rcx, 2
xor r8d, r8d
sub r9, 1
jne 0x14038ec81
cmp r11, 2
jne 0x14038ed54
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 0x14038ed81
cmp r11, 1
jne 0x14038ed85
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 0x14038edb9
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.1403206e0
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 0x14038edf3
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.1403206e0
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 0x1403991e0
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x140
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rdx, [0x14057051c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x140399245
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.1403206e0
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1402f2210
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 0x140399296
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x158], rbx
mov byte [rsp + rax + 0x20], 0
call fcn.1403992a0
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 0x14039922c
call fcn.1402f25c4
int3

Function at 0x1403a11d0
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 0x1403a0c8d
cmp rax, 5
jne 0x1403a0c60
mov rcx, qword [rcx + 0x10]
cmp byte [rcx], 0x2f
jne 0x1403a0c81
inc rcx
mov r8b, 1
add rsp, 0x38
jmp fcn.1403a0cc0
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.1403206e0
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 0x1403a0e6d
cmp rax, 5
jne 0x1403a0e40
mov rcx, qword [rcx + 0x10]
cmp byte [rcx], 0x2f
jne 0x1403a0e61
inc rcx
mov r8b, 1
add rsp, 0x38
jmp fcn.1403a0ea0
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.1403206e0
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 0x1403a120c
cmp r9, 5
jne 0x1403a11f0
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 0x1403a1241
cmp rcx, 5
jne 0x1403a1220
mov rcx, r11
add rsp, 0x38
jmp 0x1403a0c50
lea rcx, str.ipv6
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
inc r8
cmp al, byte [r10 + r8 - 1]
jne 0x1403a1271
cmp r8, 5
jne 0x1403a1250
mov rcx, r11
add rsp, 0x38
jmp 0x1403a0e30
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.1403206e0
xor al, al
add rsp, 0x38
ret
Function at 0x1403a1320
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 [0x14065ef68]
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 0x1403a135a
mov rbx, qword [rdx + 0x10]
jmp 0x1403a135e
lea rbx, [rdx + 9]
test r9, r9
je 0x1403a1369
mov rcx, qword [rdx + 0x10]
jmp 0x1403a136d
lea rcx, [rdx + 9]
test r9, r9
je 0x1403a1378
mov rax, qword [rdx + 8]
jmp 0x1403a137c
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 0x1403a1506
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 0x1403a13b0
test r15b, r15b
je 0x1403a1506
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.1403455e0
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 0x1403a149b
lea r10, [0x140572360]
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 0x1403a1455
mov byte [rax], r9b
jmp 0x1403a1478
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 0x1403a1430
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 0x1403a14b0
movq r8, xmm0
jmp 0x1403a14b9
movq rcx, xmm0
movzx r8d, cl
test rdx, rdx
lea rcx, [rsp + 0x59]
cmovne rcx, r9
add rcx, r8
cmp rax, rcx
je 0x1403a14fc
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.1403206e0
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 0x1403a1527
test r9, r9
je 0x1403a1518
mov rax, qword [r9]
test rax, rax
je 0x1403a1518
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.1402f2210
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1403ad440
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14065ef68]
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 0x1403ad49c
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.1403206e0
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.1402f2210
add rsp, 0x1e8
ret

Function at 0x1403bc690
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.1403bc380
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 [0x140479ff0]
mov rcx, qword [rbx + 0x20]
mov rcx, qword [rcx + 0x10]
call fcn.14035b220
mov rcx, rax
call fcn.1403488c0
mov rcx, rax
movaps xmm1, xmm6
call fcn.1403bc950
movaps xmm1, xmmword [0x1405783f0]
movups xmmword [rsp + 0x28], xmm1
xorps xmm1, xmm1
movsd qword [rsp + 0x38], xmm1
movsd qword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x140578400]
movups xmmword [rsp + 0x48], xmm0
movsd xmm0, qword [0x14047a000]
movsd qword [rsp + 0x58], xmm0
lea rcx, [rbx + 0x80]
lea rdx, [rsp + 0x28]
call fcn.1403d0030
mov ecx, dword [0x140696aa8]
mov rax, qword gs:[0x58]
mov edx, 0x68
mov rax, qword [rax + rcx*8]
mov rcx, qword [rdx + rax]
call fcn.1403438b0
mov qword [rbx + 0xd8], rax
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
ret
Function at 0x1403cc580
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 [0x14065ef68]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rsi, r8
mov qword [rsp + 0x30], 0
mov rbx, rdx
mov rdi, rcx
call fcn.1403d7340
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1403cc6ae
mov r8d, dword [rbx + 0x80]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1403cc5f3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.bind
mov edx, 0xc9
jmp 0x1403cc64b
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1403cc61a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.listen
mov edx, 0xce
jmp 0x1403cc64b
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 0x1403cc695
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.14034e860
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1403cc6ae
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.1403206e0
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.140398b80
mov dword [rsi], eax
xor eax, eax
jmp 0x1403cc76d
mov rcx, rbx
call fcn.140399010
mov rdx, rax
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.140345400
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.140345460
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.14034e1d0
mov rcx, rax
lea r8, [rbp - 0x60]
mov edx, 4
call fcn.14034e570
mov rcx, rax
mov r8, rdi
mov edx, reloc.WS2_32.dll_inet_addr
call fcn.14034e4c0
mov rcx, rbx
call fcn.140320810
mov rax, qword [rsp + 0x30]
cmp rax, 4
jbe 0x1403cc759
mov rcx, rax
call fcn.14034e3c0
mov rax, qword [rsp + 0x30]
cmp rdi, 0xffffffffffffffff
je 0x1403cc76d
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.1402f2210
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403cf820
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.140320830
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 [0x140696aa8]
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.14033c520
lea rax, [rsp + 0x40]
mov qword [rsi], rax
cmp byte [0x14069ccd8], 0
je 0x1403cf8f5
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.1403206e0
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, [0x140663e60]
mov qword [rbx], rax
lea rcx, [rbx + 8]
mov edx, 1
call fcn.14033c2b0
mov rcx, rbp
call fcn.140321860
mov qword [rbx + 0xb8], rax
mov byte [rbx + 0xb0], 0
mov rdx, rbp
mov rcx, r14
call fcn.1403483a0
mov qword [rbx + 0x38], rax
lea rcx, [rbx + 0x40]
mov r9, rbx
lea r8, [0x1403cfb20]
mov rdx, rax
call fcn.140348ab0
nop
mov qword [rsp + 0x40], r15
or qword [rsp + 0x68], 1
lea rcx, [rsp + 0x40]
call fcn.1403437c0
mov rax, qword [rsp + 0x80]
mov qword [rsi], rax
test byte [rsp + 0x68], 4
jne 0x1403cf991
call fcn.14033c3b0
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 0x1403d7340
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.1403d7400
test rax, rax
jne 0x1403d73fa
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 0x1403d73a2
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.14034e860
test rax, rax
jne 0x1403d73fa
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 0x1403d73d4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1403d73f8
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.14034e860
test rax, rax
jne 0x1403d73fa
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1403d9610
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 0x1403d9642
mov eax, dword [rbx + 0x110]
jmp 0x1403d9649
movzx eax, byte [rbx + 0x110]
mov dword [rsp + 0x50], eax
test rcx, rcx
je 0x1403d965b
mov rax, qword [rbx + 0x118]
jmp 0x1403d9662
lea rax, [rbx + 0x111]
mov rcx, qword [rbx + 0x188]
mov qword [rsp + 0x58], rax
call fcn.1403488c0
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 [0x14069cea0], 0
mov edi, eax
je 0x1403d96e6
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.1403206e0
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 0x1404168f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x14069d030]
mov ebx, ecx
test eax, eax
je 0x140416912
inc eax
mov dword [0x14069d030], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [0x14069d030], 1
test bl, 1
je 0x1404169f2
lea rcx, str.iphlpapi.dll
mov qword [0x14069d038], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14069d038], rax
test rax, rax
jne 0x140416954
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 [0x14069d038]
mov qword [0x14069d010], rax
test rax, rax
jne 0x140416988
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, reloc.WS2_32.dll_socket
add rsp, 0x20
pop rbx
ret
lea rdx, [0x14058af10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14069d038]
lea rdx, str.GetBestRoute2
mov qword [0x14069d020], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.advapi32.dll
mov qword [0x14069d040], 0
mov qword [0x14069d028], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14069d040], rax
test rax, rax
je 0x1404169f2
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14069d018], rax
mov dword [0x14069d034], ebx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140416a20
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 0x140416a50
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