joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016940b
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp dword [rdx + 0x10], 1
jne 0x1401694ca
lea rcx, [0x14040be3a]
call sub.oleaut32.dll_SysAllocString
mov r14, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, r14
mov r8, rbx
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x1401694ca
mov rbx, qword [rsp + 0x38]
lea rcx, [rsi + 0x20]
call fcn.1401673b2
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x1401694d9
mov qword [rdi], 2
mov rcx, rsi
call fcn.14016732c
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14016e353
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x20]
mov rcx, qword [rdx + 0x30]
mov rdx, qword [rdx + 0x38]
lea r9, str.C:Users_root.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.22_src_tls_stream.rs
call fcn.14016e60f
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0xc0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.Secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14016e42b
test eax, eax
je 0x14016e447
cmp eax, 0x90317
je 0x14016e4b2
cmp eax, 0x90321
jne 0x14016e4ba
mov dword [rdi + 0x138], 0x10000
xor ebx, ebx
mov byte [rdi + 0x13c], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x20]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14016e64d
and qword [rdi + 0x108], 0
mov byte [rsi + 1], bl
jmp 0x14016e4c8
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x108], rax
mov byte [rsi + 1], 0
jmp 0x14016e4b6
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x38]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 8]
and qword [rdi + 0x18], 0
call fcn.14016e620
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.14007ca38
and qword [rdi], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x20]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14016e64d
xor eax, eax
cmp qword [rdi + 0x20], rbx
sete al
mov qword [rdi + 0x108], rax
mov byte [rsi + 1], 0
jmp 0x14016e4c8
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x14016e4c8
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x140170027
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x20]
mov rcx, qword [rdx + 0x30]
mov rdx, qword [rdx + 0x38]
lea r9, str.C:Users_root.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.22_src_tls_stream.rs
call fcn.14016e60f
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0x1c0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.Secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x1401700ff
test eax, eax
je 0x14017011b
cmp eax, 0x90317
je 0x140170186
cmp eax, 0x90321
jne 0x14017018e
mov dword [rdi + 0x238], 0x10000
xor ebx, ebx
mov byte [rdi + 0x23c], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x20]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14016e64d
and qword [rdi + 0x208], 0
mov byte [rsi + 1], bl
jmp 0x14017019c
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x208], rax
mov byte [rsi + 1], 0
jmp 0x14017018a
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x38]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 8]
and qword [rdi + 0x18], 0
call fcn.14016e620
mov r8, rdx
mov rcx, rbx
mov rdx, rax
call fcn.14007ca38
and qword [rdi], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x20]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14016e64d
xor eax, eax
cmp qword [rdi + 0x20], rbx
sete al
mov qword [rdi + 0x208], rax
mov byte [rsi + 1], 0
jmp 0x14017019c
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x14017019c
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret

Function at 0x140170260
Capabilities:
Encrypt data via sspi

Disassembly:
sub rsp, 0x28
cmp dword [rdx + 0x88], 2
jne 0x140170282
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1401ae355
nop
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14016e8cc
Function at 0x14019cb53
Capabilities:
Encrypt data via sspi

Disassembly:
sub rsp, 0x28
cmp dword [rdx + 0x1e0], 2
jne 0x14019cb75
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.140170260
nop
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140196e1c

Function at 0x1401aa782
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword [0x1404829c8]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
cmp qword [rax + 0x150], 0
je 0x1401aa782
mov eax, dword [0x1404829c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x158]
ret
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov eax, dword [0x1404829c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x180]
test rax, rax
je 0x1401aa7b6
cmp eax, 1
je 0x1401aa7e3
xor esi, esi
jmp 0x1401aa897
mov eax, dword [0x1404829c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rdi, [rax + 0x150]
lea rdx, [0x1401aa8b1]
mov rcx, rdi
call fcn.14014c030
mov byte [rdi + 0x30], 1
test rsi, rsi
je 0x1401aa837
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movaps xmmword [rsp + 0x40], xmm2
and qword [rsi], 0
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
cmp dword [rsp + 0x20], 1
jne 0x1401aa82d
mov rdx, qword [rsp + 0x28]
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
jmp 0x1401aa83b
lea rcx, [rsp + 0x20]
call fcn.1401aa8a1
xor eax, eax
xor edx, edx
mov ecx, dword [0x1404829c8]
mov rdi, qword gs:[0x58]
mov rcx, qword [rdi + rcx*8]
lea rsi, [rcx + 0x158]
movups xmm0, xmmword [rsi + 0x18]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rsi + 8]
movaps xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rsi - 8]
movaps xmmword [rcx], xmm0
mov qword [rsi - 8], 1
mov qword [rsi], rdx
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi + 8], xmm0
mov rdx, qword [rsp + 0x60]
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rax
call fcn.1401aa8a1
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x1401ace05
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1401ace0c
test al, 1
je 0x1401ace2b
test al, 2
jne 0x1401ace40
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140413530]
mov edx, 0x23
jmp 0x1401ace53
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140413570]
mov edx, 0x25
call fcn.140332d10
ud2
Function at 0x1401bba08
Capabilities:
Get session user name

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, rcx
lea rdx, [rsp + 0x2c]
and dword [rdx], 0
xor esi, esi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1401bbad3
lea r15, [rsp + 0x2c]
mov ecx, dword [r15]
call fcn.1401bb8bf
mov rbx, rax
mov rdi, rdx
shr rax, 0x20
neg rax
sbb esi, esi
or esi, ebx
mov dword [r15], esi
mov rcx, rdx
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1401bba7f
mov eax, dword [rsp + 0x2c]
lea r8, [rax - 1]
test rax, rax
cmove r8, rax
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.14014f340
jmp 0x1401bbaae
mov ecx, 7
call fcn.140121197
mov dword [rdx], 0x6e6b6e75
mov dword [rdx + 3], 0x6e776f6e
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], 7
mov byte [rsp + 0x48], 1
mov rcx, rbx
mov rdx, rdi
call fcn.140141b5c
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1401bb91d
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_successC:Users_root.cargo_registry_srcgithub.com_1ecc6299db9ec823whoami_1.4.1_srcwindows.rs
lea r8, [0x1404388f8]
mov edx, 0x19
call fcn.140332d10
ud2

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

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 4
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401c4e19
cmp dword [rsp + 0x50], 1
jne 0x1401c4e19
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
add rsp, 0x30
pop rbx
ret
Function at 0x1401e3a00
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa47], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1401e3ac3
cmp qword [rcx + 0x260], 0
je 0x1401e3a76
call fcn.1401c1f38
mov dl, 1
mov rcx, rdi
mov bl, al
call fcn.1401c2298
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
mov dl, bl
mov rcx, rdi
call fcn.1401c2298
jmp 0x1401e3ac3
mov ecx, esi
test edx, edx
je 0x1401e3a86
sub ecx, 1
je 0x1401e3a86
cmp ecx, 1
jne 0x1401e3ac3
mov r9, qword [rdi + 0x1d0]
lea rax, [0x140441730]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1401e420c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret

Function at 0x1401e5c88
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1401e5d1e
call fcn.1401d2908
test al, al
jne 0x1401e5d1e
mov rcx, rbx
xor edi, edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
lea edx, [rdi + 0x2e]
mov rcx, rbx
mov rsi, rax
call fcn.1401ffab4
test rax, rax
je 0x1401e5ced
sub rax, rbx
lea edx, [rdi + 0x2e]
mov r8, rax
mov rcx, rbx
call fcn.1401ffab4
mov rdi, rax
test rax, rax
je 0x1401e5ced
inc rdi
mov rcx, rbx
sub rcx, rdi
add rsi, rcx
test rdi, rdi
cmovne rbx, rdi
mov edi, 0x1505
add rsi, rbx
jmp 0x1401e5d13
mov cl, byte [rbx]
call fcn.1401e8de0
imul rdi, rdi, 0x21
movsx rcx, al
xor rdi, rcx
inc rbx
cmp rbx, rsi
jb 0x1401e5cfe
movzx eax, dil
jmp 0x1401e5d20
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401e70d8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, rcx
xor ebx, ebx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x1401e720f
lea rdx, str.LoadLibraryExA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140441bf8]
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x1401e714f
mov rcx, rbp
test rsi, rsi
je 0x1401e7147
mov r8d, 8
jmp 0x1401e7172
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1401e7176
test rsi, rsi
je 0x1401e717e
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401e717e
mov r8d, 0x800
mov rcx, rbp
xor edx, edx
call rsi
mov rbx, rax
jmp 0x1401e720c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x1401e720c
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea ecx, [r14 + 1]
add rcx, rax
call qword [0x14047b580]
mov rdi, rax
test rax, rax
je 0x1401e7203
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1401e7203
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdx, [0x140441c10]
lea rcx, [rdi + rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdx, rbp
lea rcx, [rdi + rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rdi
test rsi, rsi
je 0x1401e71fa
xor edx, edx
lea r8d, [rdx + 8]
call rsi
jmp 0x1401e7200
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rdi
call qword [0x14047b588]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1401e722c
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140481f48]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1401e7281
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1401e7268
mov eax, 2
jmp 0x1401e72fa
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1401e7279
shr ax, 8
cmp al, 2
je 0x1401e7281
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1401e725e
call fcn.1402000ec
test eax, eax
jne 0x1401e72fa
lea rcx, [0x140441bb8]
call fcn.1401e70d8
mov qword [0x140482498], rax
test rax, rax
je 0x1401e72c7
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140482490]
test rax, rax
cmovne rcx, rax
mov qword [0x140482490], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1401ffcf8
test al, al
lea rcx, [0x140482fb8]
setne byte [0x140482fb0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140330e30
add rsp, 0x1e8
ret
Function at 0x1401ec928
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x1401ec97a
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x1401ec9b4
cmp edi, esi
je 0x1401ec9b4
cmp edi, 0x8000
ja 0x1401ec9b4
cmp edi, esi
jb 0x1401ec996
mov rcx, rbx
mov rdx, rdi
call qword [case.0x1401dde7e.0]
mov rbx, rax
test rax, rax
jne 0x1401ec94d
mov rcx, rbp
call qword [0x14047b588]
xor ebx, ebx
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rcx, rbx
jmp 0x1401ec98e
Function at 0x1401f0f0c
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, r9
xor edi, edi
and qword [r9], rdi
xor r13d, r13d
lea r9, [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x1401f107f
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x1401f106c
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401f0f69
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea r14, [rax + 1]
jmp 0x1401f0f6c
xor r14d, r14d
cmp dword [rbx + 4], 2
jne 0x1401f0f7a
mov r15d, reloc.WS2_32.dll_recv
jmp 0x1401f0f8a
cmp dword [rbx + 4], 0x17
jne 0x1401f1022
mov r15d, 0x1c
cmp qword [rbx + 0x20], 0
je 0x1401f1022
cmp qword [rbx + 0x10], 0
jbe 0x1401f1022
cmp qword [rbx + 0x10], r15
jb 0x1401f1022
lea rcx, [r14 + 0x30]
add rcx, r15
call qword [0x14047b580]
mov rsi, rax
test rax, rax
je 0x1401f1030
mov ecx, dword [rbx]
mov r8, r15
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + 0x10], r15d
mov rdx, qword [rbx + 0x20]
call fcn.1403318a0
test r14, r14
je 0x1401f100f
mov rcx, qword [rsi + 0x20]
mov r8, r14
add rcx, r15
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbx + 0x18]
call fcn.1403318a0
test rdi, rdi
cmove rdi, rsi
test r13, r13
je 0x1401f101f
mov qword [r13 + 0x28], rsi
mov r13, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x1401f1035
jmp 0x1401f0f55
mov ebp, 8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401f1045
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x1401f1067
test rdi, rdi
je 0x1401f1063
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [0x14047b588]
mov rdi, rbx
test rbx, rbx
jne 0x1401f104e
xor edi, edi
jmp 0x1401f1079
test rdi, rdi
jne 0x1401f1079
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r12], rdi
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1401f14e4
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x1401f1515
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x1401f174c
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov r8, rdx
xor edx, edx
mov rdi, rcx
call sub.VCRUNTIME140.dll_memset
mov r9d, 2
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
mov rbx, qword [rsp + 0x30]
neg eax
sbb eax, eax
and eax, 2
add rsp, 0x20
pop rdi
ret
Function at 0x1401f8d7c
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x1404824a8]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1401f8dd8
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1401ffcf8
test al, al
je 0x1401f8dcd
mov dword [0x1404824a8], 2
jmp 0x1401f8e2f
mov eax, 1
mov dword [0x1404824a8], eax
cmp eax, 2
je 0x1401f8e2f
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401f8e0e
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1401f8e2f
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x1401f9680
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rbp, rcx
mov r8d, dword [rbx + 0x14]
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x98]
lea rsi, [rbx + 0xe0]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1401f96d5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, rsi
mov rcx, rdi
mov r8d, eax
call fcn.1401f9bc8
jmp 0x1401f974b
mov rdx, rdi
mov rcx, rbp
call fcn.1401f9964
cmp dword [rbx], 5
lea rax, str.QUIC
lea rcx, [rbx + 0x114]
mov rdx, rbp
lea r9, [0x140444fc8]
cmove r9, rax
lea r8, str._s_socket__qd_connected:___s:_d_______s:_d_
mov eax, dword [rbx + 0x110]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x144]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
mov rax, qword [rbx + 0x98]
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1401e3c4c
mov rcx, qword [rbx + 0x98]
mov edx, 1
call fcn.140202790
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1401f9888
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x140481f48]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
and dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1401f9923
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1401f98ea
mov dword [rsi], 0x51
jmp 0x1401f991f
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.1401c0de8
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.1401e3ae0
mov rax, qword [rdi + 8]
mov dword [rax + 0xd0c], ebx
mov dword [rsi], 0x38
or rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.1401e3c4c
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140330e30
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret