joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180072db0
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 0x180072f11
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x180072efe
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180072e0d
call fcn.1800bb450
lea r14, [rax + 1]
jmp 0x180072e10
xor r14d, r14d
cmp dword [rbx + 4], 2
jne 0x180072e1e
mov r15d, reloc.WS2_32.dll_recv
jmp 0x180072e2e
cmp dword [rbx + 4], 0x17
jne 0x180072ec6
mov r15d, 0x1c
cmp qword [rbx + 0x20], 0
je 0x180072ec6
cmp qword [rbx + 0x10], 0
jbe 0x180072ec6
cmp qword [rbx + 0x10], r15
jb 0x180072ec6
lea rcx, [r14 + 0x30]
add rcx, r15
call qword [fcn.1800b5f74]
mov rsi, rax
test rax, rax
je 0x180072ed4
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.1800ad7c0
test r14, r14
je 0x180072eb3
mov rcx, qword [rsi + 0x20]
mov r8, r14
add rcx, r15
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbx + 0x18]
call fcn.1800ad7c0
test rdi, rdi
cmove rdi, rsi
test r13, r13
je 0x180072ec3
mov qword [r13 + 0x28], rsi
mov r13, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x180072ed9
jmp 0x180072df9
mov ebp, 8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180072ee9
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x180072ef9
mov rcx, rdi
call fcn.180072d8c
xor edi, edi
jmp 0x180072f0b
test rdi, rdi
jne 0x180072f0b
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 0x18007336c
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 fcn.1800c8aac
test rax, rax
je 0x18007339c
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x180073510
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 fcn.1800ade70
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 0x180075148
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
mov rdi, r8
and qword [rbp - 0x18], 0
mov rbx, r9
and dword [rbp + 0x38], 0
mov rsi, rdx
mov r14, rcx
mov dword [rbp - 0x20], 4
mov rcx, rdi
mov dword [rbp - 0x1c], ebx
mov r8, r9
xor edx, edx
call fcn.1800ade70
mov r9d, dword [rbp + 0x40]
lea rcx, [rbp - 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x18007524b
mov edx, dword [rbp + 0x48]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x18007522b
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x18007522b
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x20]
and dword [rsp + 0x20], 0
lea r8, [rbp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x18007522b
mov eax, dword [rbp + 0x38]
cmp rbx, rax
jb 0x18007522b
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x1c]
mov rcx, qword [rbp - 0x18]
mov r8, rdi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18007523a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18007524b
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
Function at 0x180076334
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 0x180076386
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 0x1800763c2
cmp edi, esi
je 0x1800763c2
cmp edi, 0x8000
ja 0x1800763c2
cmp edi, esi
jb 0x1800763bd
mov rcx, rbx
mov rdx, rdi
call qword [case.0x1800602a2.0]
mov rbx, rax
test rax, rax
jne 0x180076359
mov rcx, rbp
call qword [fcn.1800b5f60]
xor eax, eax
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
mov rax, rbx
jmp 0x1800763a2
mov rcx, rbx
jmp 0x18007639a
jmp 0x180076334

Function at 0x1800763c8
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 0x180076386
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 0x1800763c2
cmp edi, esi
je 0x1800763c2
cmp edi, 0x8000
ja 0x1800763c2
cmp edi, esi
jb 0x1800763bd
mov rcx, rbx
mov rdx, rdi
call qword [case.0x1800602a2.0]
mov rbx, rax
test rax, rax
jne 0x180076359
mov rcx, rbp
call qword [fcn.1800b5f60]
xor eax, eax
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
mov rax, rbx
jmp 0x1800763a2
mov rcx, rbx
jmp 0x18007639a
jmp 0x180076334
Function at 0x180077d4c
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov al, byte [rdx]
mov rbx, r8
mov rdi, rdx
mov r13, rcx
test al, al
jne 0x180077d83
mov eax, recv
jmp 0x180077efa
cmp al, 0x5b
jne 0x180077ee0
cmp rbx, 4
jb 0x180077ed9
inc rdi
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rdi
sub rbx, 2
call fcn.1800c90f0
mov rbp, rax
cmp rbx, rax
je 0x180077e6b
cmp byte [rdi + rax], 0x25
mov rbx, rax
jne 0x180077ed9
lea r15, [rdi + rax]
xor r14d, r14d
lea rdx, [0x18034028c]
lea rcx, [r15 + 1]
lea rsi, [r15 + 1]
lea r8d, [r14 + 2]
call fcn.1800c3730
test eax, eax
jne 0x180077df7
lea rcx, [r15 + 3]
mov al, byte [rcx]
test al, al
je 0x180077df7
cmp al, 0x5d
cmovne rsi, rcx
mov al, byte [rsi]
test al, al
je 0x180077ed9
xor ecx, ecx
cmp al, 0x5d
je 0x180077e20
cmp rcx, 0xf
jge 0x180077e20
inc rsi
mov byte [rsp + rcx + 0x20], al
inc r14d
inc rcx
mov al, byte [rsi]
test al, al
jne 0x180077e03
test r14d, r14d
je 0x180077ed9
cmp byte [rsi], 0x5d
jne 0x180077ed9
movsxd rax, r14d
cmp rax, 0x10
jae 0x180077f16
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x1800602a2.1]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x180077e62
mov eax, 7
jmp 0x180077efa
mov byte [rdi + rbp], 0x5d
mov byte [r15 + 1], 0
mov esi, reloc.WS2_32.dll_socket
mov byte [rbx + rdi], 0
mov ecx, esi
lea r8, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x180077ed9
lea r9d, [rsi + 0x17]
mov ecx, esi
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x180077ed1
lea rcx, [rsp + 0x30]
call fcn.1800bb450
cmp rax, rbx
jae 0x180077ed1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1800c0220
lea rcx, [rsp + 0x30]
call fcn.1800bb450
mov rbx, rax
mov byte [rax + rdi + 1], 0
mov byte [rbx + rdi], 0x5d
xor eax, eax
jmp 0x180077efa
mov eax, socket
jmp 0x180077efa
lea rdx, str.__r_n_t_:_______________
mov rcx, rdi
call fcn.1800c5c60
sub rbx, rax
neg rbx
sbb eax, eax
and eax, 0x15
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800ac760
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1800ac8b4
int3
Function at 0x1800797c8
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov byte [r8], 0
mov r13, r8
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x180079a2d
cmp byte [rcx], 0
je 0x180079a2d
test rdx, rdx
je 0x180079a2d
cmp byte [rdx], 0
je 0x180079a2d
lea rcx, [0x1800e7a18]
xor r12d, r12d
call fcn.1800bb3d0
test eax, eax
je 0x180079a5a
cmp byte [rdi], 0x5b
mov rcx, rdi
jne 0x180079895
lea edx, [r12 + 0x5d]
call fcn.1800af584
mov rsi, rax
test rax, rax
je 0x180079a2d
inc rdi
sub rsi, rdi
cmp rsi, 0x80
jae 0x180079a2d
mov r8, rsi
lea rcx, [rsp + 0xb0]
mov rdx, rdi
call fcn.1800ad7c0
mov byte [rsp + rsi + 0xb0], r12b
lea rdi, [rsp + 0xb0]
mov r12d, 2
jmp 0x1800798c4
call fcn.1800bb450
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, 2
mov rsi, rax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1800798ba
mov r12d, eax
jmp 0x1800798c4
cmp byte [rdi + rsi - 1], 0x2e
jne 0x1800798c4
dec rsi
mov al, byte [rbx]
jmp 0x180079a25
xor ebp, ebp
cmp al, 0x20
je 0x1800798d7
mov cl, al
cmp al, 9
jne 0x1800798e2
inc rbx
mov al, byte [rbx]
mov cl, al
test al, al
jne 0x1800798cd
mov r9, rbx
test cl, cl
je 0x1800799fb
cmp cl, 0x2c
ja 0x180079902
movabs rax, 0x100100000200
bt rax, rcx
jb 0x18007990e
inc rbx
inc rbp
mov cl, byte [rbx]
test cl, cl
jne 0x1800798ed
test rbp, rbp
je 0x1800799fb
mov ecx, r12d
test r12d, r12d
je 0x180079997
sub ecx, 1
je 0x18007992d
cmp ecx, 1
jne 0x1800799fb
xor r14d, r14d
cmp rbp, 0x80
jae 0x1800799fb
mov r8, rbp
lea rcx, [rsp + 0x30]
mov rdx, r9
call fcn.1800ad7c0
lea edx, [r14 + 0x2f]
mov byte [rsp + rbp + 0x30], r14b
lea rcx, [rsp + 0x30]
call fcn.1800af584
mov r15, rax
test rax, rax
je 0x180079978
lea rcx, [rax + 1]
call fcn.1800c6f04
mov r14d, eax
mov byte [r15], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
mov rcx, rdi
cmp r12d, 2
jne 0x180079990
call fcn.180079b00
jmp 0x1800799f7
call fcn.180079a60
jmp 0x1800799f7
cmp byte [r9 + rbp - 1], 0x2e
lea rax, [rbp - 1]
cmovne rax, rbp
mov r8, rax
test rax, rax
je 0x1800799ba
cmp byte [r9], 0x2e
jne 0x1800799ba
inc r9
lea r8, [rax - 1]
cmp r8, rsi
jne 0x1800799d4
mov r8, rsi
mov rdx, rdi
mov rcx, r9
call fcn.180067db8
test eax, eax
setne al
jmp 0x1800799f7
jae 0x1800799fb
mov rdx, rdi
sub rdx, r8
add rdx, rsi
cmp byte [rdx - 1], 0x2e
jne 0x1800799f5
mov rcx, r9
call fcn.180067db8
test eax, eax
je 0x1800799f5
mov al, 1
jmp 0x1800799f7
xor al, al
test al, al
jne 0x180079a5a
mov al, byte [rbx]
cmp al, 0x20
je 0x180079a05
cmp al, 9
jne 0x180079a0a
inc rbx
jmp 0x1800799fb
test al, al
je 0x180079a21
cmp al, 0x2c
je 0x180079a1c
mov byte [r13], 1
jmp 0x1800798c4
inc rbx
mov al, byte [rbx]
cmp al, 0x2c
je 0x180079a1c
test al, al
jne 0x1800798cb
xor al, al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800ac760
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov al, 1
jmp 0x180079a2f
Function at 0x180079a60
Capabilities:
Convert ip address from string

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x20], 0
mov esi, 0x20
and dword [rax + 0x18], 0
mov edi, r8d
mov rbx, rdx
cmp r8d, esi
ja 0x180079aee
mov rdx, rcx
lea r8, [rax + 0x20]
lea ecx, [rsi - 0x1e]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x180079aee
lea r8, [rsp + 0x40]
mov rdx, rbx
lea ecx, [rsi - 0x1e]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x180079aee
test edi, 0xffffffdf
je 0x180079ae4
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_htonl]
sub esi, edi
or edx, 0xffffffff
mov cl, sil
xor eax, ebx
shl edx, cl
test edx, eax
sete al
jmp 0x180079af0
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x48], eax
jmp 0x180079adf
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180079b00
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rsp + 0x40], rax
test r8d, r8d
mov rsi, rdx
mov rdx, rcx
mov edi, 0x80
cmovne edi, r8d
mov ecx, reloc.WS2_32.dll_socket
mov ebx, edi
lea r8, [rsp + 0x30]
shr ebx, 3
and edi, 7
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x180079bac
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rax + 0x16]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x180079bac
cmp ebx, 0x10
ja 0x180079bac
jne 0x180079b67
test edi, edi
jne 0x180079bac
mov esi, ebx
test ebx, ebx
je 0x180079b83
mov r8d, esi
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1800af0b0
test eax, eax
jne 0x180079bac
test edi, edi
je 0x180079ba8
movzx ecx, byte [rsp + rbx + 0x30]
mov edx, 0xff
movzx r8d, byte [rsp + rbx + 0x20]
xor r8d, ecx
mov ecx, 8
sub ecx, edi
shl edx, cl
test edx, r8d
je 0x180079bac
mov al, 1
jmp 0x180079bae
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800ac760
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x18007adb8
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x180367e78]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x18007ae14
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.18007fb80
test al, al
je 0x18007ae09
mov dword [0x180367e78], 2
jmp 0x18007ae6b
mov eax, 1
mov dword [0x180367e78], eax
cmp eax, 2
je 0x18007ae6b
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 0x18007ae4a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x18007ae6b
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 0x18007b714
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rsi, rcx
mov r8d, dword [rbx + 0x14]
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18007b761
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbx + 0xa0]
mov rcx, rdi
mov r8d, eax
call fcn.18007aed4
jmp 0x18007b77f
mov rdx, rdi
mov rcx, rsi
call fcn.18007b8c8
mov rcx, qword [rbx + 0x98]
mov edx, 1
call fcn.1800837e4
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18007b89c
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
or eax, 0xffffffff
test r8b, r8b
jne 0x18007b8c1
mov r8d, dword [rcx + 0x14]
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
add rsp, 0x28
ret

Function at 0x18007b8c8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov r8d, 0x80
lea rcx, [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x20], r8d
call fcn.1800ade70
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18007b95e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.18004f5c4
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1800640d0
mov eax, 2
jmp 0x18007b9b0
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x104]
lea r8, [rbx + 0xd4]
lea rcx, [rsp + 0x30]
call fcn.180064cb0
test al, al
jne 0x18007b9ae
call fcn.1800b6050
mov ebx, dword [rax]
call fcn.1800b6050
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.18004f5c4
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x18007b94c
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800ac760
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18007bba0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0xa35], al
lea r9, [rsp + 0x50]
mov rdi, rdx
mov rbx, rcx
setne al
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18007bc0a
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.18006419c
jmp 0x18007bc9d
mov ecx, dword [rbx + 0x9b4]
mov dword [rsp + 0x58], 1
call fcn.180065dc4
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x9b8]
call fcn.180065dc4
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, recv
imul ecx, eax, 0x3e8
mov edx, 0x98000004
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x18007bc9d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov r9d, eax
mov rcx, rbx
call fcn.18006419c
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800ac760
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x18007bcb8
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180364978]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r8d, 1
mov dword [rsp + 0x20], 4
mov rax, rdx
mov dword [rsp + 0x30], r8d
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, rax
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18007bd2c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.18004f5c4
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.18006419c
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800ac760
add rsp, 0x150
pop rbx
ret
Function at 0x18007d168
Capabilities:
Check http status code

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
mov r14, r8
lea rbx, [rdx + 0x148]
mov rsi, rdx
mov r8d, send
lea rdx, str.WWW_Authenticate:
mov rcx, r9
mov rdi, r9
call fcn.180067db8
test eax, eax
je 0x18007d1b4
mov ebp, dword [rbx]
cmp ebp, 0x191
je 0x18007d1d7
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rdi
call fcn.180067db8
test eax, eax
je 0x18007d21d
mov ebp, dword [rbx]
cmp ebp, 0x197
jne 0x18007d21d
mov rcx, rdi
call fcn.18006ce2c
mov rbx, rax
test rax, rax
jne 0x18007d1ef
lea eax, [rbx + 0x1b]
jmp 0x18007d3d6
cmp ebp, 0x197
mov r8, rbx
mov rcx, rsi
sete dl
call fcn.18006e9b0
mov rcx, rbx
mov edi, eax
call qword [fcn.1800b5f60]
test edi, edi
je 0x18007d3d4
mov eax, edi
jmp 0x18007d3d6
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rdi
call fcn.180067db8
test eax, eax
je 0x18007d280
mov r8d, dword [rbx]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x18007d259
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rsi
call fcn.18006419c
jmp 0x18007d3d4
lea rcx, str.Content_Length:
call fcn.1800bb450
xor edx, edx
lea r9, [r14 + 0x298]
lea rcx, [rdi + rax]
lea r8d, [rdx + 0xa]
call fcn.180071f94
jmp 0x18007d3d4
mov ebp, 5
lea r9, str.close
lea rdx, str.Connection:
mov qword [rsp + 0x20], rbp
mov rcx, rdi
lea r8d, [rbp + 6]
call fcn.18006cd7c
test al, al
jne 0x18007d3cc
lea r8d, [rbp + 0xd]
mov rcx, rdi
lea rdx, str.Transfer_Encoding:
call fcn.180067db8
test eax, eax
je 0x18007d32f
mov r8d, dword [rbx]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x18007d2de
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x18007d24c
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.18006cd7c
test al, al
je 0x18007d3d4
lea rdx, str.CONNECT_responded_chunked
mov rcx, rsi
call fcn.18006419c
mov rcx, rsi
mov byte [r14 + 0x2a4], 1
call fcn.180080058
jmp 0x18007d3d4
lea r9, str.close
mov qword [rsp + 0x20], rbp
mov r8d, send
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.18006cd7c
test al, al
jne 0x18007d3cc
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rdi
call fcn.1800c3730
test eax, eax
jne 0x18007d3d4
mov al, byte [rdi + 7]
mov cl, 0x30
sub al, cl
cmp al, 1
ja 0x18007d3d4
cmp byte [rdi + 8], 0x20
jne 0x18007d3d4
mov al, byte [rdi + 9]
mov dl, 9
sub al, cl
cmp al, dl
ja 0x18007d3d4
mov al, byte [rdi + 0xa]
sub al, cl
cmp al, dl
ja 0x18007d3d4
mov al, byte [rdi + 0xb]
sub al, cl
cmp al, dl
ja 0x18007d3d4
mov al, byte [rdi + 0xc]
sub al, cl
cmp al, dl
jbe 0x18007d3d4
movsx eax, byte [rdi + 9]
lea ecx, [rax + rax*4]
movsx eax, byte [rdi + 0xa]
lea ecx, [rax + rcx*2]
movsx eax, byte [rdi + 0xb]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [rax + rcx*2]
mov dword [rbx], ecx
mov dword [rsi + 0x12bc], ecx
jmp 0x18007d3d4
mov byte [r14 + 0x2a5], 1
xor eax, eax
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