joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003170
Capabilities:
Query environment variable

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
mov eax, dword [0x14013beb0]
mov dword [rsp + 0x20], eax
mov eax, dword [0x14013beb0]
inc eax
mov dword [0x14013beb0], eax
cmp dword [rsp + 0x20], 0
je 0x1400031a3
xor eax, eax
jmp 0x14000335c
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x140003200
lea rax, [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [section..data], rax
lea rax, [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free], rax
lea rax, [0x1400d1c57]
mov qword [0x1400f6010], rax
lea rax, [0x1400d1dd7]
mov qword [0x1400f6018], rax
lea rax, [0x1400d1c51]
mov qword [0x1400f6020], rax
lea rax, [0x1400d1c5d]
mov qword [0x1400f6028], rax
call fcn.14003cae0
test eax, eax
je 0x140003228
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Error:_Curl_trc_init_failed_n
mov rcx, rax
call fcn.1400159c0
nop
jmp 0x140003349
call fcn.1400289c0
test eax, eax
jne 0x140003250
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Error:_Curl_ssl_init_failed_n
mov rcx, rax
call fcn.1400159c0
nop
jmp 0x140003349
mov ecx, dword [rsp + 0x40]
call fcn.1400452e0
test eax, eax
je 0x14000327c
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Error:_win32_init_failed_n
mov rcx, rax
call fcn.1400159c0
nop
jmp 0x140003349
xor eax, eax
test eax, eax
je 0x1400032a1
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Error:_Curl_amiga_init_failed_n
mov rcx, rax
call fcn.1400159c0
nop
jmp 0x140003349
xor eax, eax
test eax, eax
je 0x1400032c6
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Error:_Curl_macos_init_failed_n
mov rcx, rax
call fcn.1400159c0
nop
jmp 0x140003349
call fcn.14001d4b0
test eax, eax
je 0x1400032eb
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Error:_resolver_global_init_failed_n
mov rcx, rax
call fcn.1400159c0
nop
jmp 0x140003349
xor eax, eax
test eax, eax
je 0x14000330d
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Error:_Curl_ssh_init_failed_n
mov rcx, rax
call fcn.1400159c0
nop
jmp 0x140003349
mov eax, dword [rsp + 0x40]
mov dword [0x14013beb4], eax
lea rcx, str.CURL_GLOBAL_INIT
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x140003345
lea r8, [0x1400f6130]
mov edx, 0xc9
mov ecx, 1
call fcn.140048e60
mov qword [0x14013bec0], rax
xor eax, eax
jmp 0x14000335c
mov eax, dword [0x14013beb0]
dec eax
mov dword [0x14013beb0], eax
mov eax, 2
add rsp, 0x30
pop rdi
ret
Function at 0x14001b470
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jae 0x14001b505
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movzx ecx, byte [rsp + 0x38]
call fcn.140049cc0
movsx rax, al
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x14001b49d
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x3f
div rcx
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14001fa60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x80]
mov qword [rax], 0
lea rcx, str.CURL_SMALLREQSEND
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14001fae0
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov eax, eax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14001fae0
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x30], rax
jae 0x14001fae0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x328], 0
je 0x14001fb33
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x328]
cmp qword [rsp + 0x38], rax
jle 0x14001fb33
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x328]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140053200
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14001fc45
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
je 0x14001fc45
cmp qword [rsp + 0x78], 0
je 0x14001fbc0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
cmp qword [rsp + 0x78], rax
jae 0x14001fb96
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
jmp 0x14001fba6
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x68]
mov edx, 2
mov rcx, qword [rsp + 0x60]
call fcn.14003cd70
nop
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
cmp qword [rax], rcx
jbe 0x14001fc45
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rax]
sub rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov r9, qword [rsp + 0x40]
mov r8, rax
mov edx, 4
mov rcx, qword [rsp + 0x60]
call fcn.14003cd70
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x108]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x108], rax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x108]
mov rcx, qword [rsp + 0x60]
call fcn.140066150
nop
mov eax, dword [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x140024c30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
call fcn.140002630
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x80], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
jne 0x140024c6e
mov eax, 1
jmp 0x140024d0f
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x80]
mov byte [rax + 0x12bf], 1
lea rcx, [0x140100648]
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x140024ca5
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x80]
mov byte [rax + 0xa5e], 1
mov rax, qword [rsp + 0x40]
lea rcx, [0x140027350]
mov qword [rsp + 0x20], rcx
lea r9, [0x140054f70]
lea r8, [0x140054ec0]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.1400546f0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x80]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0xc20], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x88], rcx
mov rax, qword [rsp + 0x40]
add rax, 0x58
xor edx, edx
mov rcx, rax
call fcn.140054360
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140027800
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x28], 0
jne 0x140027846
jmp 0x140027965
xor eax, eax
test eax, eax
jne 0x140027846
mov rcx, qword [rsp + 0x70]
call fcn.140027650
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400278d7
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.1400275b0
nop
xor eax, eax
test eax, eax
jne 0x140027873
lea r8, str.kill_all
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1400416c0
mov r8b, 1
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x80]
call fcn.140025370
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.140026360
mov rcx, qword [rsp + 0x70]
call fcn.140027650
mov qword [rsp + 0x38], rax
jmp 0x14002785b
lea rcx, str.CURL_GRACEFUL_SHUTDOWN
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14002791f
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jle 0x14002791f
cmp dword [rsp + 0x50], 0x7fffffff
jge 0x14002791f
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.140026eb0
mov rcx, qword [rsp + 0x70]
call fcn.140027700
nop
xor eax, eax
test eax, eax
jne 0x140027938
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0xc8]
mov rcx, qword [rsp + 0x28]
call fcn.140056260
lea rcx, [rsp + 0x28]
call fcn.14002ea20
nop
xor eax, eax
test eax, eax
jne 0x14002795f
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400d050c
add rsp, 0x60
pop rdi
ret
Function at 0x14002c570
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x14013be00]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x70], 0
je 0x14002c5ff
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x70]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x14002c5ff
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x70]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14002c5df
mov eax, 1
jmp 0x14002c601
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x70]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14002c5ff
mov eax, 2
jmp 0x14002c601
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400d050c
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400d0280
add rsp, 0x60
pop rdi
ret
Function at 0x140039660
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x88], 0
je 0x1400396aa
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x1400396ec
cmp qword [rsp + 0x90], 0
je 0x1400396c2
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jne 0x1400396ec
cmp qword [rsp + 0x98], 0
je 0x1400396da
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
jne 0x1400396ec
mov rcx, qword [rsp + 0xa0]
call fcn.140039190
jmp 0x1400397bd
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.1400a6a70
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x98], 0
je 0x14003972a
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
je 0x14003972a
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
jmp 0x140039733
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x90], 0
je 0x14003975a
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
je 0x14003975a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
jmp 0x140039763
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x88], 0
je 0x14003978a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x14003978a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
jmp 0x140039793
mov qword [rsp + 0x60], 0
mov eax, dword [rsp + 0x80]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400d050c
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x14003bf50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x98], 0
jl 0x14003bfa0
cmp dword [rsp + 0x98], 2
jl 0x14003bfbb
mov r8d, 0x335
lea rdx, [0x14010e3f0]
lea rcx, str.sockindex___0__sockindex___2
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
xor eax, eax
cmp qword [rsp + 0xb0], 0
jne 0x14003bfe1
mov r8d, 0x336
lea rdx, [0x14010e4c0]
lea rcx, str.pnwritten
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
xor eax, eax
cmp qword [rsp + 0x90], 0
jne 0x14003c007
mov r8d, 0x337
lea rdx, [0x14010e570]
lea rcx, [0x14010e600]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
xor eax, eax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x20], 0
jne 0x14003c031
mov r8d, 0x338
lea rdx, [0x14010e610]
lea rcx, [0x14010e6a0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
xor eax, eax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x58], rax
lea rcx, str.CURL_SMALLSENDS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14003c0b1
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x60]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov eax, eax
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14003c0b1
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0xa8], rax
jae 0x14003c09a
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x70], rax
jmp 0x14003c0a4
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xa8], rax
movsxd rax, dword [rsp + 0x98]
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
mov r10, qword [rsp + 0x58]
call qword [r10 + rax*8 + 0x240]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jge 0x14003c11e
cmp dword [rsp + 0x44], 0
jne 0x14003c11e
mov r8d, 0x347
lea rdx, [0x14010e6d0]
lea rcx, str._nwritten___0___result
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
xor eax, eax
cmp qword [rsp + 0x30], 0
jge 0x14003c131
mov qword [rsp + 0x78], 0
jmp 0x14003c13b
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
mov eax, dword [rsp + 0x44]
mov edi, eax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400d050c
mov eax, edi
add rsp, 0x80
pop rdi
ret

Function at 0x14003cae0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x30
lea rcx, str.CURL_DEBUG
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14003cb0b
mov rcx, qword [rsp + 0x20]
call fcn.14003cb20
jmp 0x14003cb0d
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14003cd70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xa5e]
test eax, eax
je 0x14003ce7c
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x270], 0
je 0x14003ce06
mov rcx, qword [rsp + 0x50]
call fcn.14000f040
mov byte [rsp + 0x30], al
mov dl, 1
mov rcx, qword [rsp + 0x50]
call fcn.14000f000
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x1e8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x270]
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.14000f000
nop
jmp 0x14003ce7c
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14003ce25
cmp dword [rsp + 0x34], 1
je 0x14003ce25
cmp dword [rsp + 0x34], 2
je 0x14003ce25
jmp 0x14003ce7c
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x1400d7870]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x1e0]
mov r8d, 1
mov edx, 2
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x1e0]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
nop
add rsp, 0x40
pop rdi
ret

Function at 0x140044d40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rcx, qword [rsp + 0x40]
call fcn.140044a20
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x1400452e0
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x30]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x230]
mov rax, qword [0x14013be00]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x230]
and eax, 2
test eax, eax
je 0x1400453b7
mov eax, 0x202
mov word [rsp + 0x38], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x1f4], eax
cmp dword [rsp + 0x1f4], 0
je 0x14004535d
mov eax, 2
jmp 0x14004550b
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x38]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x1400453a7
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x38]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x1400453b7
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x14004550b
call fcn.1400b1530
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
je 0x1400453d9
mov eax, dword [rsp + 0x1f8]
jmp 0x14004550b
lea rcx, str.iphlpapi.dll
call fcn.140045640
mov qword [0x14013bff0], rax
cmp qword [0x14013bff0], 0
je 0x14004542c
lea rdx, str.if_nametoindex
mov rcx, qword [0x14013bff0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x14004542c
mov rax, qword [rsp + 0x200]
mov qword [0x14013bfd0], rax
lea rcx, str.ws2_32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140045491
lea rdx, str.FreeAddrInfoExW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013bfd8], rax
lea rdx, str.GetAddrInfoExCancel
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013bfe0], rax
lea rdx, str.GetAddrInfoExW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013bfe8], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400b1080
movzx eax, al
test eax, eax
je 0x1400454be
mov byte [0x14013c6e1], 1
jmp 0x1400454c5
mov byte [0x14013c6e1], 0
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
mov edx, 2
mov ecx, 6
call fcn.1400b1080
movzx eax, al
test eax, eax
je 0x1400454f5
mov byte [0x14013c6e0], 1
jmp 0x1400454fc
mov byte [0x14013c6e0], 0
lea rcx, [0x14013c6e8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400d050c
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400d0280
add rsp, 0x220
pop rdi
ret
Function at 0x140045640
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14004567d
xor eax, eax
jmp 0x14004582b
lea rdx, str.LoadLibraryExW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
lea rdx, [0x1401130a8]
mov rcx, qword [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcspbrk
test rax, rax
je 0x1400456e9
cmp qword [rsp + 0x28], 0
je 0x1400456ca
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
jmp 0x1400456da
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
jmp 0x140045826
cmp qword [rsp + 0x28], 0
je 0x140045723
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140045723
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
jmp 0x140045826
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140045826
mov rcx, qword [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x38]
inc eax
mov eax, eax
add rax, qword [rsp + 0x40]
shl rax, 1
lea r8, [0x1401130c0]
mov edx, 0xfa
mov rcx, rax
call fcn.140048e60
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14004580f
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14004580f
mov rcx, qword [rsp + 0x48]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2]
lea rdx, [0x14011310c]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy
mov rcx, qword [rsp + 0x48]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2]
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy
cmp qword [rsp + 0x28], 0
je 0x1400457f5
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
jmp 0x140045805
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r8, str.C:_vcpkg_buildtreescurl_srccurl_8_9_1_bb74e44024.cleanlib_system_win32.c
mov edx, 0x107
mov rcx, qword [rsp + 0x48]
call fcn.140049210
nop
mov rax, qword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret