joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140166a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1402acc74]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140166bd0
mov rax, qword [0x1402acc78]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140166a6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140166af7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140166a50
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140166c2d
mov rax, qword [0x1402acc78]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402acc78]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140166c12
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140166af0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140166b80
add dword [0x1402acc74], 1
cmp ebx, 8
jae 0x140166b28
test bl, 4
jne 0x140166be0
test ebx, ebx
je 0x140166b19
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140166c00
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140166b19
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140166b5a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1402acc78]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140166af0
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor edi, edi
jmp 0x140166a77
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140166b19
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140166b19
mov rax, qword [0x1402acc78]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call sym.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop dword [rax]
Function at 0x140167140
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1402acce0]
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x1402accc0]
test rbx, rbx
je 0x140167194
mov rdi, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rsi, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14016718b
test r12, r12
je 0x14016718b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140167170
lea rcx, [0x1402acce0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]

Function at 0x1401673c0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x1401673d0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1401673e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140167425
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14016741c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140167427
add rax, 0x28
cmp rax, r9
jne 0x140167408
xor eax, eax
ret

Function at 0x1401674d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14027ad30]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140167549
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140167549
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140167546
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14016753d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140167549
add r8, 0x28
cmp r8, r9
jne 0x140167528
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140167630
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14027ad30]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14016769f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14016769f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14016769d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140167694
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401676a8
add rax, 0x28
cmp rax, r9
jne 0x140167680
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1401676c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14027ad30]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140167738
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140167738
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140167738
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140167738
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14016772c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140167740
add rdx, 0x28
cmp rdx, r10
jne 0x140167718
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140167750
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14016775e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140167735
test r8d, r8d
jg 0x140167748
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x1401682b0
Capabilities:
Authenticate hmac

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x18]
add eax, eax
mov r13, rdx
mov edx, dword [rcx + 0x20]
mov rbx, rcx
mov esi, r8d
lea rcx, [rax + rdx + 0x18]
mov rax, qword [0x14027abe0]
call qword [rax]
mov r12, rax
test rax, rax
je 0x1401683c3
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [r12 + 0x10], rax
cmp dword [rbx + 0x1c], esi
jae 0x14016832b
call qword [rbx]
mov r8d, esi
mov rdx, r13
mov rcx, qword [r12 + 8]
call qword [rbx + 8]
mov r13d, dword [rbx + 0x18]
add r13, qword [r12 + 0x10]
mov rdx, qword [r12 + 8]
mov rcx, r13
call qword [rbx + 0x10]
mov esi, dword [rbx + 0x20]
mov rcx, qword [r12 + 8]
xor edi, edi
lea r14, [rsp + 0x2f]
call qword [rbx]
mov rcx, qword [r12 + 0x10]
call qword [rbx]
mov ebp, esi
cmp rbp, rdi
jbe 0x140168386
mov al, byte [r13 + rdi]
mov rcx, qword [r12 + 8]
mov r8d, 1
mov rdx, r14
xor eax, 0x36
mov byte [rsp + 0x2f], al
call qword [rbx + 8]
mov al, byte [r13 + rdi]
mov rcx, qword [r12 + 0x10]
mov rdx, r14
mov r8d, 1
inc rdi
xor eax, 0x5c
mov byte [rsp + 0x2f], al
call qword [rbx + 8]
jmp 0x140168340
lea rsi, [0x14027f820]
lea rdi, [0x14027f830]
mov eax, dword [rbx + 0x1c]
cmp rax, rbp
jbe 0x1401683c3
mov rcx, qword [r12 + 8]
mov r8d, 1
mov rdx, rsi
inc rbp
call qword [rbx + 8]
mov rcx, qword [r12 + 0x10]
mov r8d, 1
mov rdx, rdi
call qword [rbx + 8]
jmp 0x140168394
mov rax, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1401746b0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x30
mov r12, rcx
mov r13d, edx
mov r14, r8
mov r15, r9
test byte [rcx + 0x986], 0x20
je 0x140174780
cmp qword [rcx + 0x268], 0
je 0x14017472d
call sym.Curl_is_in_callback
mov rcx, r12
mov edx, 1
mov ebx, eax
call sym.Curl_set_in_callback
mov edx, r13d
mov rcx, r12
mov r9, r15
mov rax, qword [r12 + 0x1e0]
mov r8, r14
mov qword [rsp + 0x20], rax
call qword [r12 + 0x268]
movzx edx, bl
mov rcx, r12
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp sym.Curl_set_in_callback
cmp edx, 2
ja 0x140174780
mov ecx, edx
mov r9, qword [r12 + 0x1d8]
mov edx, 2
lea r13, [0x1402851c0]
lea rcx, [rcx + rcx*2]
mov r8d, 1
add rcx, r13
call sub.msvcrt.dll_fwrite
mov r9, qword [r12 + 0x1d8]
mov rdx, r15
mov rcx, r14
mov r8d, 1
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_fwrite
add rsp, 0x30
pop rbx
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140177b50
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x98], r9
mov qword [r9], 0
lea r9, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x140177cac
mov rbx, qword [rsp + 0x28]
xor r13d, r13d
xor r15d, r15d
test rbx, rbx
je 0x140177c69
mov rcx, qword [rbx + 0x18]
xor ebp, ebp
test rcx, rcx
je 0x140177bad
call sym.strlen
lea rbp, [rax + 1]
mov eax, dword [rbx + 4]
cmp eax, 2
je 0x140177bc5
mov r14d, 0x1c
cmp eax, 0x17
je 0x140177bcb
jmp 0x140177c5a
mov r14d, 0x10
cmp qword [rbx + 0x20], 0
je 0x140177c5a
mov rax, qword [rbx + 0x10]
cmp rax, r14
jb 0x140177c5a
test rax, rax
je 0x140177c5a
mov rax, qword [0x14027abe0]
lea rcx, [r14 + rbp + 0x30]
call qword [rax]
test rax, rax
je 0x140177c63
mov edx, dword [rbx]
mov rsi, qword [rbx + 0x20]
mov rcx, r14
mov dword [rax], edx
mov edx, dword [rbx + 4]
mov dword [rax + 4], edx
mov edx, dword [rbx + 8]
mov dword [rax + 8], edx
mov edx, dword [rbx + 0xc]
mov dword [rax + 0x10], r14d
mov dword [rax + 0xc], edx
lea rdx, [rax + 0x30]
mov qword [rax + 0x18], 0
mov rdi, rdx
mov qword [rax + 0x28], 0
mov qword [rax + 0x20], rdx
rep movsb byte [rdi], byte [rsi]
test rbp, rbp
je 0x140177c47
mov qword [rax + 0x18], rdi
mov rsi, qword [rbx + 0x18]
mov rcx, rbp
rep movsb byte [rdi], byte [rsi]
test r15, r15
cmove r15, rax
test r13, r13
je 0x140177c57
mov qword [r13 + 0x28], rax
mov r13, rax
mov rbx, qword [rbx + 0x28]
jmp 0x140177b90
mov r12d, 8
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140177c79
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140177c8b
mov rcx, r15
xor r15d, r15d
call sym.Curl_freeaddrinfo
jmp 0x140177ca1
test r15, r15
jne 0x140177ca1
mov ecx, 0x2af9
mov r12d, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, qword [rsp + 0x98]
mov qword [rax], r15
mov eax, r12d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140178fe0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
add rdx, rcx
cmp rcx, rdx
jae 0x140178ffd
imul rax, rax, 0x21
movsx r9, byte [rcx]
inc rcx
xor rax, r9
jmp 0x140178fe8
xor edx, edx
div r8
mov rax, rdx
ret

Function at 0x14017f3a0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
mov r14, rcx
lea rcx, str.kernel32
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov r13, rax
test rax, rax
jne 0x14017f3ce
xor r12d, r12d
jmp 0x14017f4f1
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov rsi, qword [sym.imp.kernel32.dll_GetProcAddress]
call rsi
lea rdx, [0x1402728f8]
mov rcx, r14
mov rbx, rax
call sym.strpbrk
mov r12, rax
test rax, rax
je 0x14017f41e
mov r8d, 8
test rbx, rbx
jne 0x14017f43a
mov rcx, r14
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.kernel32.dll_LoadLibraryA]
test rbx, rbx
je 0x14017f453
lea rdx, str.AddDllDirectory
mov rcx, r13
call rsi
test rax, rax
je 0x14017f453
mov r8d, 0x800
xor edx, edx
mov rcx, r14
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rsi, qword [sym.imp.kernel32.dll_GetSystemDirectoryA]
xor edx, edx
xor ecx, ecx
call rsi
mov r15d, eax
test eax, eax
je 0x14017f3c6
mov rcx, r14
call sym.strlen
lea ecx, [r15 + 1]
add rcx, rax
mov rax, qword [0x14027abe0]
call qword [rax]
mov r13, rax
test rax, rax
je 0x14017f4e5
mov edx, r15d
mov rcx, rax
call rsi
test eax, eax
je 0x14017f4e5
mov rcx, r13
call sym.strlen
lea rdx, [0x14027290b]
lea rcx, [r13 + rax]
call sym.strcpy
mov rcx, r13
call sym.strlen
mov rdx, r14
lea rcx, [r13 + rax]
call sym.strcpy
test rbx, rbx
je 0x14017f4d9
mov r8d, 8
xor edx, edx
mov rcx, r13
call rbx
jmp 0x14017f4e2
mov rcx, r13
call qword [sym.imp.kernel32.dll_LoadLibraryA]
mov r12, rax
mov rax, qword [0x14027abd0]
mov rcx, r13
call qword [rax]
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140183730
Capabilities:
Get socket status

Disassembly:
xor eax, eax
test rcx, rcx
je 0x140183752
cmp edx, eax
jbe 0x140183752
inc rax
mov r9, rax
shl r9, 4
cmp qword [rcx + r9 - 0x10], 0xffffffffffffffff
je 0x140183737
jmp sym.Curl_poll.part.0
mov rcx, r8
jmp sym.Curl_wait_ms
Function at 0x140184a50
Capabilities:
Move file

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x50
movups xmmword [rsp + 0x40], xmm6
lea rbx, [rsp + 0x30]
mov r12, rcx
lea rdi, [rsp + 0x20]
mov r13, rdx
mov rcx, rbx
call sym.Curl_now
mov rcx, r12
movups xmm6, xmmword [rsp + 0x30]
call sym.strdup
mov rcx, r13
mov r12, rax
call sym.strdup
mov rsi, qword [sym.imp.kernel32.dll_MoveFileExA]
mov r13, rax
mov r8d, 1
mov rdx, r13
mov rcx, r12
call rsi
test eax, eax
je 0x140184acc
test r12, r12
je 0x140184ab9
mov rcx, r12
call sym.free
xor eax, eax
test r13, r13
je 0x140184b22
mov rcx, r13
call sym.free
xor eax, eax
jmp 0x140184b22
mov rcx, rbx
call sym.Curl_now
mov rdx, rdi
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm6
call sym.Curl_timediff
cmp rax, 0x3e8
jbe 0x140184b12
test r12, r12
je 0x140184af9
mov rcx, r12
call sym.free
mov eax, 1
test r13, r13
je 0x140184b22
mov rcx, r13
call sym.free
mov eax, 1
jmp 0x140184b22
mov ecx, 1
call qword [sym.imp.kernel32.dll_Sleep]
jmp 0x140184a9a
movups xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret

Function at 0x140186320
Capabilities:
Set socket configuration

Disassembly:
push r12
sub rsp, 0x40
mov eax, dword [0x1401cb0d0]
mov dword [rsp + 0x34], 0x4020
mov r12, rcx
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 4
test eax, eax
jne 0x140186384
xor r8d, r8d
xor edx, edx
mov r9d, 2
mov ecx, 6
mov dword [rsp + 0x20], 3
call sym.curlx_verify_windows_version
test al, al
je 0x140186378
mov dword [0x1401cb0d0], 2
jmp 0x1401863dc
mov dword [0x1401cb0d0], 1
jmp 0x140186389
cmp eax, 2
je 0x1401863dc
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov rcx, r12
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401863ba
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jg 0x1401863dc
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov rcx, r12
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
add rsp, 0x40
pop r12
ret
Function at 0x140188990
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov r8, rcx
mov r9, rdx
xor ecx, ecx
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffe
mov edx, 0
cmovae rax, rdx
add rsp, 0x38
ret
Function at 0x14018c600
Capabilities:
Initialize winsock library

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x1d0
and cl, 2
je 0x14018c648
lea rdx, [rsp + 0x38]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14018c63d
mov eax, dword [rsp + 0x38]
cmp al, 2
jne 0x14018c637
shr ax, 8
cmp ax, 2
je 0x14018c648
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov r13d, 2
jmp 0x14018c737
call sym.Curl_sspi_global_init
mov r13d, eax
test eax, eax
jne 0x14018c737
lea rcx, str.iphlpapi.dll
call sym.Curl_load_library
mov qword [0x1401cb360], rax
mov rcx, rax
test rax, rax
je 0x14018c68c
lea rdx, str.if_nametoindex
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14018c68c
mov qword [0x1401caf60], rax
lea rcx, str.ws2_32
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov r12, rax
test rax, rax
je 0x14018c6e1
mov rbx, qword [sym.imp.kernel32.dll_GetProcAddress]
lea rdx, str.FreeAddrInfoExW
mov rcx, rax
call rbx
lea rdx, str.GetAddrInfoExCancel
mov rcx, r12
mov qword [0x1401ca6f0], rax
call rbx
lea rdx, str.GetAddrInfoExW
mov rcx, r12
mov qword [0x1401ca700], rax
call rbx
mov qword [0x1401ca710], rax
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
mov dword [rsp + 0x20], 3
call sym.curlx_verify_windows_version
mov dword [rsp + 0x20], 3
mov ecx, 6
xor r8d, r8d
mov r9d, 2
mov edx, 2
mov byte [0x1401caf70], al
call sym.curlx_verify_windows_version
lea rcx, [0x1401caf50]
mov byte [0x1401caf80], al
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
mov eax, r13d
add rsp, 0x1d0
pop rbx
pop r12
pop r13
ret

Function at 0x14018c750
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x40
xor eax, eax
xor r8d, r8d
mov r9d, 1
mov rdi, rcx
mov rbp, rcx
mov rcx, rdx
mov rbx, rdx
rep stosb byte [rdi], al
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14018c7be
mov rcx, qword [rsp + 0x38]
mov edx, ebx
mov r8, rbp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor edx, edx
mov rcx, qword [rsp + 0x38]
test eax, eax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jne 0x14018c7b8
call rax
jmp 0x14018c7be
call rax
xor eax, eax
jmp 0x14018c7c3
mov eax, 2
add rsp, 0x40
pop rbx
pop rdi
pop rbp
ret
Function at 0x140195fe0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov r13, qword [rsp + 0x1a0]
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov r12, rdx
mov rdx, r8
mov dword [r13], 0
movsxd rax, dword [rbx + 0x20]
mov rbp, r9
xor r9d, r9d
mov r8, qword [rbx + 0x18]
mov rcx, qword [rcx + 0x98]
add rax, 0x44
mov r15, qword [r8 + rax*8]
mov qword [r8 + rax*8], rcx
mov r8d, ebp
call qword [sym.imp.WS2_32.dll_send]
movsxd r14, eax
mov rsi, r14
cmp r14d, 0xffffffff
jne 0x140196095
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x14019605f
mov dword [r13], 0x51
jmp 0x140196095
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
lea rdx, str.Send_failure:__s
mov rcx, r12
mov r8, rax
call sym.Curl_failf
mov dword [r12 + 0xbb4], edi
mov dword [r13], 0x37
jmp 0x14019609a
test r12, r12
je 0x1401960e2
test byte [r12 + 0x986], 0x20
je 0x1401960e2
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x1401960b8
cmp dword [rax + 8], 0
jle 0x1401960e2
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x1401960e2
mov eax, dword [r13]
mov dword [rsp + 0x20], esi
mov r9, rbp
mov rdx, rbx
lea r8, str.send_len_zu______d__err_d
mov rcx, r12
mov dword [rsp + 0x28], eax
call sym.Curl_trc_cf_infof
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0x20]
mov qword [rax + rdx*8 + 0x220], r15
mov rax, r14
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140196560
Capabilities:
Connect socket

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r13, rcx
mov r12, rdx
mov rdi, r9
test byte [rcx + 0x24], 1
je 0x140196588
mov byte [r9], 1
xor r14d, r14d
jmp 0x1401967c5
mov rsi, qword [rcx + 0x10]
mov r14d, 7
mov byte [r9], 0
cmp qword [rsi + 0x98], 0xffffffffffffffff
jne 0x1401967c5
call sym.cf_socket_open
mov r14d, eax
test eax, eax
je 0x140196607
test r12, r12
je 0x1401967c5
test byte [r12 + 0x986], 0x20
je 0x1401967c5
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x1401965df
cmp dword [rax + 8], 0
jle 0x1401967c5
mov rax, qword [r13]
cmp dword [rax + 0xc], 0
jle 0x1401967c5
mov r9d, r14d
lea r8, str.cf_udp_connect____open_failed_____d
mov rdx, r13
mov rcx, r12
call sym.Curl_trc_cf_infof
jmp 0x1401967c5
cmp dword [rsi], 5
jne 0x140196772
mov rbx, qword [r13 + 0x10]
mov rcx, qword [rbx + 0x98]
mov r8d, dword [rbx + 0x14]
lea rdx, [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_connect]
inc eax
jne 0x140196652
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbx + 0xe0]
mov rcx, r12
mov r8d, eax
call sym.socket_connect_result
test eax, eax
jne 0x1401967c2
jmp 0x140196708
or byte [rbx + 0x17c], 4
mov rcx, qword [r13 + 0x10]
mov rdx, r12
call sym.set_local_ip.isra.0
test r12, r12
je 0x1401966f7
test byte [r12 + 0x986], 0x20
je 0x1401966f7
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x14019668c
cmp dword [rax + 8], 0
jle 0x1401966f7
mov rax, qword [r13]
cmp dword [rax + 0xc], 0
jle 0x1401966f7
mov edx, dword [rbx + 0x140]
mov r8d, dword [rbx + 0x13c]
lea rcx, [rbx + 0xe0]
lea rax, [rbx + 0x10e]
cmp dword [rbx], 5
mov qword [rsp + 0x38], rcx
mov rcx, r12
lea r9, str.QUIC
mov dword [rsp + 0x40], r8d
lea r8, str._s_socket__zd_connected:___s:_d_______s:_d_
mov dword [rsp + 0x30], edx
mov rdx, r13
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x98]
mov qword [rsp + 0x20], rax
lea rax, [0x14027755b]
cmovne r9, rax
call sym.Curl_trc_cf_infof
mov rcx, qword [rbx + 0x98]
mov edx, 1
call sym.curlx_nonblock
test r12, r12
je 0x1401967b8
test byte [r12 + 0x986], 0x20
je 0x1401967b8
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x140196737
cmp dword [rax + 8], 0
jle 0x1401967b8
mov rax, qword [r13]
cmp dword [rax + 0xc], 0
jle 0x1401967b8
mov eax, dword [rsi + 0x140]
mov rdx, r13
mov rcx, r12
mov r9, qword [rsi + 0x98]
add rsi, 0x10e
lea r8, str.cf_udp_connect____opened_socket_zd___s:_d_
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call sym.Curl_trc_cf_infof
jmp 0x1401967b8
test r12, r12
je 0x1401967b8
test byte [r12 + 0x986], 0x20
je 0x1401967b8
mov rax, qword [r12 + 0x1120]
test rax, rax
je 0x140196795
cmp dword [rax + 8], 0
jle 0x1401967b8
mov rax, qword [r13]
cmp dword [rax + 0xc], 0
jle 0x1401967b8
mov r9, qword [rsi + 0x98]
lea r8, str.cf_udp_connect____opened_socket_zd__unconnected_
mov rdx, r13
mov rcx, r12
call sym.Curl_trc_cf_infof
mov byte [rdi], 1
or byte [r13 + 0x24], 1
jmp 0x1401967c5
mov r14d, eax
mov eax, r14d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
Function at 0x140197320
Capabilities:
Hash data using djb2

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140197333
xor edx, edx
jmp 0x1401973b2
call sym.Curl_host_is_ipnum
test al, al
jne 0x14019732f
mov rcx, rbx
call sym.strlen
mov edx, 0x2e
mov rcx, rbx
mov r8, rax
mov rsi, rax
call sym.Curl_memrchr
mov r8, rax
test rax, rax
je 0x140197383
sub r8, rbx
mov edx, 0x2e
mov rcx, rbx
call sym.Curl_memrchr
test rax, rax
je 0x140197383
inc rax
mov rdx, rax
sub rdx, rbx
mov rbx, rax
sub rsi, rdx
add rsi, rbx
mov eax, 0x1505
cmp rsi, rbx
jbe 0x1401973a8
movsx ecx, byte [rbx]
imul rdi, rax, 0x21
inc rbx
call sym.Curl_raw_toupper
movsx rax, al
xor rax, rdi
jmp 0x14019738b
mov ecx, 0x3f
xor edx, edx
div rcx
mov rax, rdx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret