joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14043b030
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, socket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140814ac0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14085183c]
call fcn.1401de5f1
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1404490b0
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.14043e650
nop
lea rax, [0x14043a4b0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140450550
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14043b10c
lea rcx, [rbp + 8]
call fcn.140452fa0
nop
jmp 0x14043b125
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1401d7021
nop
lea rcx, [rbp + 8]
call fcn.1404408e0
nop
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dcb34
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1401d9736
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x14043b1b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, socket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140814ac0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14085183c]
call fcn.1401de5f1
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1404490f0
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.14043e720
nop
lea rax, [0x14043a5c0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.1404505a0
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14043b28c
lea rcx, [rbp + 8]
call fcn.140453000
nop
jmp 0x14043b2a5
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1401d7021
nop
lea rcx, [rbp + 8]
call fcn.140440970
nop
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dcb34
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1401d9736
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x14043b330
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, socket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140814ac0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14085183c]
call fcn.1401de5f1
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140449130
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.14043e7f0
nop
lea rax, [0x14043a6d0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.1404505f0
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14043b40c
lea rcx, [rbp + 8]
call fcn.140453060
nop
jmp 0x14043b425
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1401d7021
nop
lea rcx, [rbp + 8]
call fcn.140440a00
nop
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dcb34
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1401d9736
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x14045dfe0
Capabilities:
Query environment variable

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
mov eax, dword [0x14081f9b0]
mov dword [rsp + 0x20], eax
mov eax, dword [0x14081f9b0]
inc eax
mov dword [0x14081f9b0], eax
cmp dword [rsp + 0x20], 0
je 0x14045e013
xor eax, eax
jmp 0x14045e1cc
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x14045e070
lea rax, [fcn.1401da870]
mov qword [fcn.1401da870], rax
lea rax, [fcn.1401d83e5]
mov qword [fcn.1401d83e5], rax
lea rax, [0x1401d6fe5]
mov qword [0x1407c1d30], rax
lea rax, [0x1401de1c3]
mov qword [0x1407c1d38], rax
lea rax, [0x1401da537]
mov qword [0x1407c1d40], rax
lea rax, [0x1401d849e]
mov qword [0x1407c1d48], rax
call fcn.1401d7765
test eax, eax
je 0x14045e098
mov ecx, 2
call fcn.1401df181
lea rdx, str.Error:_Curl_trc_init_failed_n
mov rcx, rax
call fcn.1401d6455
nop
jmp 0x14045e1b9
call fcn.1401ddb9c
test eax, eax
jne 0x14045e0c0
mov ecx, 2
call fcn.1401df181
lea rdx, str.Error:_Curl_ssl_init_failed_n
mov rcx, rax
call fcn.1401d6455
nop
jmp 0x14045e1b9
mov ecx, dword [rsp + 0x40]
call fcn.1401dab2c
test eax, eax
je 0x14045e0ec
mov ecx, 2
call fcn.1401df181
lea rdx, str.Error:_win32_init_failed_n
mov rcx, rax
call fcn.1401d6455
nop
jmp 0x14045e1b9
xor eax, eax
test eax, eax
je 0x14045e111
mov ecx, 2
call fcn.1401df181
lea rdx, str.Error:_Curl_amiga_init_failed_n
mov rcx, rax
call fcn.1401d6455
nop
jmp 0x14045e1b9
xor eax, eax
test eax, eax
je 0x14045e136
mov ecx, 2
call fcn.1401df181
lea rdx, str.Error:_Curl_macos_init_failed_n
mov rcx, rax
call fcn.1401d6455
nop
jmp 0x14045e1b9
call fcn.1401d7710
test eax, eax
je 0x14045e15b
mov ecx, 2
call fcn.1401df181
lea rdx, str.Error:_resolver_global_init_failed_n
mov rcx, rax
call fcn.1401d6455
nop
jmp 0x14045e1b9
xor eax, eax
test eax, eax
je 0x14045e17d
mov ecx, 2
call fcn.1401df181
lea rdx, str.Error:_Curl_ssh_init_failed_n
mov rcx, rax
call fcn.1401d6455
nop
jmp 0x14045e1b9
mov eax, dword [rsp + 0x40]
mov dword [0x14081f9b4], eax
lea rcx, str.CURL_GLOBAL_INIT
call fcn.1401d8066
test rax, rax
je 0x14045e1b5
lea r8, [0x1407c1e50]
mov edx, 0xc9
mov ecx, 1
call fcn.1401dd4da
mov qword [0x14081f9c0], rax
xor eax, eax
jmp 0x14045e1cc
mov eax, dword [0x14081f9b0]
dec eax
mov dword [0x14081f9b0], eax
mov eax, 2
add rsp, 0x30
pop rdi
ret
Function at 0x140475640
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xd0]
mov rax, qword [0x140814ac0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x20], 0
lea rcx, str.CURL_ENTROPY
call fcn.1401d8066
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140475759
movzx eax, byte [0x14081f9d8]
test eax, eax
jne 0x140475734
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x28]
call fcn.1401d91f0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 4
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1404756ed
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa0], rax
jmp 0x1404756fa
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x34]
call fcn.1401d9777
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [0x14081f9d4], eax
mov byte [0x14081f9d8], 1
jmp 0x140475742
mov eax, dword [0x14081f9d4]
inc eax
mov dword [0x14081f9d4], eax
mov rax, qword [rsp + 0xd8]
mov ecx, dword [0x14081f9d4]
mov dword [rax], ecx
xor eax, eax
jmp 0x1404758a7
mov r8d, 4
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call fcn.1401d8e5d
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
je 0x140475788
mov eax, dword [rsp + 0x20]
jmp 0x1404758a7
movzx eax, byte [0x14081f9d8]
test eax, eax
jne 0x1404757b9
mov edx, 4
mov rcx, qword [rsp + 0xd8]
call fcn.1401de902
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
je 0x1404757b9
mov eax, dword [rsp + 0x20]
jmp 0x1404758a7
movzx eax, byte [0x14081f9d8]
test eax, eax
jne 0x14047585d
lea rcx, [rsp + 0x90]
call fcn.1401dd6f1
lea rcx, [rsp + 0x68]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, str.WARNING:_using_weak_random_seed
mov rcx, qword [rsp + 0xd0]
call fcn.1401dd854
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
mov ecx, dword [0x14081f9d4]
add ecx, eax
mov eax, ecx
mov dword [0x14081f9d4], eax
imul eax, dword [0x14081f9d4], 0x41c64e6d
add eax, 0x3039
mov dword [0x14081f9d4], eax
imul eax, dword [0x14081f9d4], 0x41c64e6d
add eax, 0x3039
mov dword [0x14081f9d4], eax
imul eax, dword [0x14081f9d4], 0x41c64e6d
add eax, 0x3039
mov dword [0x14081f9d4], eax
mov byte [0x14081f9d8], 1
imul eax, dword [0x14081f9d4], 0x41c64e6d
add eax, 0x3039
mov dword [0x14081f9d4], eax
mov eax, dword [0x14081f9d4]
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x84]
shl eax, 0x10
mov ecx, dword [rsp + 0x84]
shr ecx, 0x10
and ecx, 0xffff
or eax, ecx
mov rcx, qword [rsp + 0xd8]
mov dword [rcx], eax
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401dcb34
mov rax, rdi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0xb8
pop rdi
pop rsi
ret
Function at 0x140484b50
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 0x140484be5
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.1401dee70
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 0x140484b7d
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x3f
div rcx
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140489c10
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 fcn.1401d8066
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140489c90
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1401d6da1
mov eax, eax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140489c90
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x30], rax
jae 0x140489c90
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x328], 0
je 0x140489ce3
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 0x140489ce3
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.1401d590b
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140489df5
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
je 0x140489df5
cmp qword [rsp + 0x78], 0
je 0x140489d70
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
cmp qword [rsp + 0x78], rax
jae 0x140489d46
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
jmp 0x140489d56
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.1401dd430
nop
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
cmp qword [rax], rcx
jbe 0x140489df5
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.1401dd430
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.1401d7d5a
nop
mov eax, dword [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x14048d300
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 0x14048d346
jmp 0x14048d465
xor eax, eax
test eax, eax
jne 0x14048d346
mov rcx, qword [rsp + 0x70]
call fcn.14048d150
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14048d3d7
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.14048d0b0
nop
xor eax, eax
test eax, eax
jne 0x14048d373
lea r8, str.kill_all
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1401d9763
mov r8b, 1
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x80]
call fcn.1401dd6b5
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.14048be60
mov rcx, qword [rsp + 0x70]
call fcn.14048d150
mov qword [rsp + 0x38], rax
jmp 0x14048d35b
lea rcx, str.CURL_GRACEFUL_SHUTDOWN
call fcn.1401d8066
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14048d41f
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.1401dab27
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jle 0x14048d41f
cmp dword [rsp + 0x50], 0x7fffffff
jge 0x14048d41f
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.14048c9b0
mov rcx, qword [rsp + 0x70]
call fcn.14048d200
nop
xor eax, eax
test eax, eax
jne 0x14048d438
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 0xc8]
mov rcx, qword [rsp + 0x28]
call fcn.1401da52d
lea rcx, [rsp + 0x28]
call fcn.1401deea7
nop
xor eax, eax
test eax, eax
jne 0x14048d45f
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dcb34
add rsp, 0x60
pop rdi
ret

Function at 0x140492ce0
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 [0x140814ac0]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x70], 0
je 0x140492d6f
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x70]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x140492d6f
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 0x140492d4f
mov eax, 1
jmp 0x140492d71
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 0x140492d6f
mov eax, 2
jmp 0x140492d71
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dcb34
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0x60
pop rdi
ret
Function at 0x1404a3ff0
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 0x1404a403a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x1404a407c
cmp qword [rsp + 0x90], 0
je 0x1404a4052
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jne 0x1404a407c
cmp qword [rsp + 0x98], 0
je 0x1404a406a
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
jne 0x1404a407c
mov rcx, qword [rsp + 0xa0]
call fcn.1401da519
jmp 0x1404a414d
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.1401dc55d
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x98], 0
je 0x1404a40ba
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
je 0x1404a40ba
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
jmp 0x1404a40c3
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x90], 0
je 0x1404a40ea
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
je 0x1404a40ea
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
jmp 0x1404a40f3
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x88], 0
je 0x1404a411a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x1404a411a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
jmp 0x1404a4123
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.1401dcb34
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1404af3a0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
lea rdi, [rsp + 0xa0]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x170]
mov rax, qword [0x140814ac0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [0x14081fb51]
mov qword [rsp + 0xd8], rax
lea rax, [0x14081fb52]
mov qword [rsp + 0xe0], rax
lea rax, [0x14081fb53]
mov qword [rsp + 0xe8], rax
lea rax, [0x14081fb54]
mov qword [rsp + 0xf0], rax
lea rdx, [rsp + 0xa8]
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax + 0x20]
call fcn.1401d63b5
mov dword [rsp + 0xf8], eax
cmp dword [rsp + 0xf8], 0
je 0x1404af457
mov eax, dword [rsp + 0xf8]
jmp 0x1404af656
lea r8, [rsp + 0x108]
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax + 0x10]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1404af499
lea rax, str.____
mov qword [rsp + 0xd8], rax
lea rax, [0x1407e4b4c]
mov qword [rsp + 0xe0], rax
lea r8, [rsp + 0x108]
mov rax, qword [rsp + 0x170]
mov rdx, qword [rax]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1404af4da
lea rax, [0x1407e4b50]
mov qword [rsp + 0xe8], rax
lea rax, [0x1407e4b54]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x28]
mov dword [rsp + 0x130], eax
mov ecx, dword [rsp + 0xb8]
inc ecx
mov dword [rsp + 0x134], ecx
mov edx, dword [rsp + 0xbc]
add edx, 0x76c
mov dword [rsp + 0x138], edx
mov r8, qword [rsp + 0x170]
movzx r8d, word [r8 + 0x18]
mov dword [rsp + 0x13c], r8d
mov r9, qword [rsp + 0x170]
mov ecx, dword [r9 + 0x1c]
call fcn.1401def24
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x170]
movzx ecx, word [rcx + 8]
mov dword [rsp + 0x148], ecx
mov rdx, qword [rsp + 0x170]
mov ecx, dword [rdx + 0xc]
call fcn.1401def24
mov rcx, qword [rsp + 0x170]
mov ecx, dword [rcx + 0x2c]
mov dword [rsp + 0x98], ecx
mov ecx, dword [rsp + 0x130]
mov dword [rsp + 0x90], ecx
mov ecx, dword [rsp + 0xa8]
mov dword [rsp + 0x88], ecx
mov ecx, dword [rsp + 0xac]
mov dword [rsp + 0x80], ecx
mov ecx, dword [rsp + 0xb0]
mov dword [rsp + 0x78], ecx
mov ecx, dword [rsp + 0xb4]
mov dword [rsp + 0x70], ecx
mov ecx, dword [rsp + 0x134]
mov dword [rsp + 0x68], ecx
mov ecx, dword [rsp + 0x138]
mov dword [rsp + 0x60], ecx
mov ecx, dword [rsp + 0x13c]
mov dword [rsp + 0x58], ecx
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x140]
mov qword [rsp + 0x38], rcx
mov ecx, dword [rsp + 0x148]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0xe8]
mov r8, rax
lea rdx, [0x1407e4b58]
mov rcx, qword [rsp + 0x178]
call fcn.1401d6455
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401dcb34
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0x160
pop rdi
ret
Function at 0x1404af940
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1407e4ee8]
call fcn.1401d8066
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404af980
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401dab27
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
jmp 0x1404af987
xor ecx, ecx
call fcn.1404adcd0
add rsp, 0x30
pop rdi
ret

Function at 0x1404b0cd0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, ntohl
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
lea rcx, str.CURL_TIME
call fcn.1401d8066
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1404b0d3e
lea r9, [rsp + 0x38]
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1401d9a8d
mov rax, qword [0x140820538]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
jmp 0x1404b0d45
xor ecx, ecx
call fcn.1404b00c0
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dcb34
mov rax, rdi
add rsp, 0x50
pop rdi
ret

Function at 0x1404b2f20
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
add rsp, 0x30
pop rdi
ret

Function at 0x1404b2f60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x140814ac0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1404b3006
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1401dc477
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x190]
call fcn.1401dd854
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401dcb34
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0x180
pop rdi
ret