joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007d68c
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 [0x180375980]
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 0x18007d8f1
cmp byte [rcx], 0
je 0x18007d8f1
test rdx, rdx
je 0x18007d8f1
cmp byte [rdx], 0
je 0x18007d8f1
lea rcx, [0x1800e9a10]
xor r12d, r12d
call fcn.1800bc070
test eax, eax
je 0x18007d91e
cmp byte [rdi], 0x5b
mov rcx, rdi
jne 0x18007d759
lea edx, [r12 + 0x5d]
call fcn.1800b17f4
mov rsi, rax
test rax, rax
je 0x18007d8f1
inc rdi
sub rsi, rdi
cmp rsi, 0x80
jae 0x18007d8f1
mov r8, rsi
lea rcx, [rsp + 0xb0]
mov rdx, rdi
call fcn.1800e3e40
mov byte [rsp + rsi + 0xb0], r12b
lea rdi, [rsp + 0xb0]
mov r12d, 2
jmp 0x18007d788
call fcn.1800bc0f0
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 0x18007d77e
mov r12d, eax
jmp 0x18007d788
cmp byte [rdi + rsi - 1], 0x2e
jne 0x18007d788
dec rsi
mov al, byte [rbx]
jmp 0x18007d8e9
xor ebp, ebp
cmp al, 0x20
je 0x18007d79b
mov cl, al
cmp al, 9
jne 0x18007d7a6
inc rbx
mov al, byte [rbx]
mov cl, al
test al, al
jne 0x18007d791
mov r9, rbx
test cl, cl
je 0x18007d8bf
cmp cl, 0x2c
ja 0x18007d7c6
movabs rax, 0x100100000200
bt rax, rcx
jb 0x18007d7d2
inc rbx
inc rbp
mov cl, byte [rbx]
test cl, cl
jne 0x18007d7b1
test rbp, rbp
je 0x18007d8bf
mov ecx, r12d
test r12d, r12d
je 0x18007d85b
sub ecx, 1
je 0x18007d7f1
cmp ecx, 1
jne 0x18007d8bf
xor r14d, r14d
cmp rbp, 0x80
jae 0x18007d8bf
mov r8, rbp
lea rcx, [rsp + 0x30]
mov rdx, r9
call fcn.1800e3e40
lea edx, [r14 + 0x2f]
mov byte [rsp + rbp + 0x30], r14b
lea rcx, [rsp + 0x30]
call fcn.1800b17f4
mov r15, rax
test rax, rax
je 0x18007d83c
lea rcx, [rax + 1]
call fcn.1800c7d20
mov r14d, eax
mov byte [r15], 0
lea rdx, [rsp + 0x30]
mov r8d, r14d
mov rcx, rdi
cmp r12d, 2
jne 0x18007d854
call fcn.18007d9c4
jmp 0x18007d8bb
call fcn.18007d924
jmp 0x18007d8bb
cmp byte [r9 + rbp - 1], 0x2e
lea rax, [rbp - 1]
cmovne rax, rbp
mov r8, rax
test rax, rax
je 0x18007d87e
cmp byte [r9], 0x2e
jne 0x18007d87e
inc r9
lea r8, [rax - 1]
cmp r8, rsi
jne 0x18007d898
mov r8, rsi
mov rdx, rdi
mov rcx, r9
call fcn.18006bc7c
test eax, eax
setne al
jmp 0x18007d8bb
jae 0x18007d8bf
mov rdx, rdi
sub rdx, r8
add rdx, rsi
cmp byte [rdx - 1], 0x2e
jne 0x18007d8b9
mov rcx, r9
call fcn.18006bc7c
test eax, eax
je 0x18007d8b9
mov al, 1
jmp 0x18007d8bb
xor al, al
test al, al
jne 0x18007d91e
mov al, byte [rbx]
cmp al, 0x20
je 0x18007d8c9
cmp al, 9
jne 0x18007d8ce
inc rbx
jmp 0x18007d8bf
test al, al
je 0x18007d8e5
cmp al, 0x2c
je 0x18007d8e0
mov byte [r13], 1
jmp 0x18007d788
inc rbx
mov al, byte [rbx]
cmp al, 0x2c
je 0x18007d8e0
test al, al
jne 0x18007d78f
xor al, al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800af730
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 0x18007d8f3
Function at 0x18007d924
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 0x18007d9b2
mov rdx, rcx
lea r8, [rax + 0x20]
lea ecx, [rsi - 0x1e]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x18007d9b2
lea r8, [rsp + 0x40]
mov rdx, rbx
lea ecx, [rsi - 0x1e]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x18007d9b2
test edi, 0xffffffdf
je 0x18007d9a8
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 0x18007d9b4
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x48], eax
jmp 0x18007d9a3
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18007d9c4
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180375980]
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 0x18007da70
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rax + 0x16]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x18007da70
cmp ebx, 0x10
ja 0x18007da70
jne 0x18007da2b
test edi, edi
jne 0x18007da70
mov esi, ebx
test ebx, ebx
je 0x18007da47
mov r8d, esi
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1800e4920
test eax, eax
jne 0x18007da70
test edi, edi
je 0x18007da6c
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 0x18007da70
mov al, 1
jmp 0x18007da72
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800af730
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x18007ec7c
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x180379228]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x18007ecd8
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.180083a44
test al, al
je 0x18007eccd
mov dword [0x180379228], 2
jmp 0x18007ed2f
mov eax, 1
mov dword [0x180379228], eax
cmp eax, 2
je 0x18007ed2f
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 0x18007ed0e
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x18007ed2f
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 0x18007f5d8
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 0x18007f625
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbx + 0xa0]
mov rcx, rdi
mov r8d, eax
call fcn.18007ed98
jmp 0x18007f643
mov rdx, rdi
mov rcx, rsi
call fcn.18007f78c
mov rcx, qword [rbx + 0x98]
mov edx, 1
call fcn.1800876a8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18007f760
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
or eax, 0xffffffff
test r8b, r8b
jne 0x18007f785
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 0x18007f78c
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 [0x180375980]
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.1800e44e0
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 0x18007f822
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.180053488
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.180067f94
mov eax, 2
jmp 0x18007f874
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x104]
lea r8, [rbx + 0xd4]
lea rcx, [rsp + 0x30]
call fcn.180068b74
test al, al
jne 0x18007f872
call fcn.1800b6cac
mov ebx, dword [rax]
call fcn.1800b6cac
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.180053488
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x18007f810
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800af730
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18007fa64
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x180375980]
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 0x18007face
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.180068060
jmp 0x18007fb61
mov ecx, dword [rbx + 0x9b4]
mov dword [rsp + 0x58], 1
call fcn.180069c88
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x9b8]
call fcn.180069c88
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 0x18007fb61
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.180068060
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800af730
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x18007fb7c
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180375980]
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 0x18007fbf0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.180053488
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.180068060
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800af730
add rsp, 0x150
pop rbx
ret
Function at 0x18008102c
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.18006bc7c
test eax, eax
je 0x180081078
mov ebp, dword [rbx]
cmp ebp, 0x191
je 0x18008109b
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rdi
call fcn.18006bc7c
test eax, eax
je 0x1800810e1
mov ebp, dword [rbx]
cmp ebp, 0x197
jne 0x1800810e1
mov rcx, rdi
call fcn.180070cf0
mov rbx, rax
test rax, rax
jne 0x1800810b3
lea eax, [rbx + 0x1b]
jmp 0x18008129a
cmp ebp, 0x197
mov r8, rbx
mov rcx, rsi
sete dl
call fcn.180072874
mov rcx, rbx
mov edi, eax
call qword [fcn.1800b6bbc]
test edi, edi
je 0x180081298
mov eax, edi
jmp 0x18008129a
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rdi
call fcn.18006bc7c
test eax, eax
je 0x180081144
mov r8d, dword [rbx]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x18008111d
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rsi
call fcn.180068060
jmp 0x180081298
lea rcx, str.Content_Length:
call fcn.1800bc0f0
xor edx, edx
lea r9, [r14 + 0x298]
lea rcx, [rdi + rax]
lea r8d, [rdx + 0xa]
call fcn.180075e58
jmp 0x180081298
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.180070c40
test al, al
jne 0x180081290
lea r8d, [rbp + 0xd]
mov rcx, rdi
lea rdx, str.Transfer_Encoding:
call fcn.18006bc7c
test eax, eax
je 0x1800811f3
mov r8d, dword [rbx]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1800811a2
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
jmp 0x180081110
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.180070c40
test al, al
je 0x180081298
lea rdx, str.CONNECT_responded_chunked
mov rcx, rsi
call fcn.180068060
mov rcx, rsi
mov byte [r14 + 0x2a4], 1
call fcn.180083f1c
jmp 0x180081298
lea r9, str.close
mov qword [rsp + 0x20], rbp
mov r8d, send
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.180070c40
test al, al
jne 0x180081290
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rdi
call fcn.1800c55f0
test eax, eax
jne 0x180081298
mov al, byte [rdi + 7]
mov cl, 0x30
sub al, cl
cmp al, 1
ja 0x180081298
cmp byte [rdi + 8], 0x20
jne 0x180081298
mov al, byte [rdi + 9]
mov dl, 9
sub al, cl
cmp al, dl
ja 0x180081298
mov al, byte [rdi + 0xa]
sub al, cl
cmp al, dl
ja 0x180081298
mov al, byte [rdi + 0xb]
sub al, cl
cmp al, dl
ja 0x180081298
mov al, byte [rdi + 0xc]
sub al, cl
cmp al, dl
jbe 0x180081298
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 0x180081298
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
Function at 0x180087ca4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor esi, esi
xor edi, edi
call fcn.180075b0c
mov rbp, rax
test rax, rax
jne 0x180087d23
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800535b4
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.180067f94
mov ebx, 0x4d
jmp 0x180087e6a
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180087d77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800535b4
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x180087d0b
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x180087dc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800535b4
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.180067f94
mov ebx, 0x4d
jmp 0x180087e61
mov rbx, qword [rsp + 0x48]
mov eax, 0x100000
cmp rbx, rax
jle 0x180087de3
mov r8d, eax
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.180067f94
jmp 0x180087db6
lea rcx, [rbx + 1]
call qword [fcn.1800b6bd0]
mov rsi, rax
test rax, rax
jne 0x180087dfa
lea ebx, [rax + 0x1b]
jmp 0x180087e61
test rbx, rbx
je 0x180087e43
and dword [rsp + 0x40], 0
lea rdx, [rsi + rdi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov r13d, edi
sub r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180087ead
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x180087e3a
mov ebx, r13d
jmp 0x180087e3c
add edi, eax
mov eax, edi
cmp rax, rbx
jb 0x180087dff
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rbx
mov byte [rbx + rsi], 0
mov rdx, rsi
mov qword [rsp + 0x20], r15
call fcn.180087a68
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [fcn.1800b6bbc]
test rbp, rbp
je 0x180087e80
mov rcx, rbp
call fcn.1800b6bbc
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800af730
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800535b4
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x180087da8
Function at 0x18008ac2c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rdi, rcx
mov ecx, dword [rcx + 0x20]
mov r15, rdx
add rcx, 0x18
mov r14d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.1800b6bd0]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x18008ad41
lea rcx, [rax + 0x18]
mov qword [rax], rdi
mov qword [rax + 8], rcx
lea rbp, [rdi + 8]
mov eax, dword [rdi + 0x18]
add rax, rcx
mov qword [rbx + 0x10], rax
cmp r14d, dword [rdi + 0x1c]
jbe 0x18008acb6
call qword [rdi]
mov rcx, qword [rbx + 8]
mov r8d, r14d
mov rdx, r15
call qword [rbp]
mov r15d, dword [rdi + 0x18]
add r15, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r15
call qword [rdi + reloc.WS2_32.dll_recv]
mov r14d, dword [rdi + 0x20]
mov rcx, qword [rbx + 8]
call qword [rdi]
mov rcx, qword [rbx + 0x10]
call qword [rdi]
test r14, r14
je 0x18008ad36
mov rsi, r14
mov al, byte [r15]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp]
mov al, byte [r15]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x40], al
inc r15
mov rcx, qword [rbx + 0x10]
call qword [rbp]
sub r14, 1
jne 0x18008acca
jmp 0x18008ad36
mov rcx, qword [rbx + 8]
lea rdx, [0x180355921]
mov r8d, 1
call qword [rbp]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x180355922]
mov r8d, 1
call qword [rbp]
inc rsi
mov eax, dword [rdi + 0x1c]
cmp rsi, rax
jb 0x18008ad0b
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18008b6f4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18008b72e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18008b733
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18008b77c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x18008b77c
dec r8
sub rdx, 1
jne 0x18008b762
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800a4fec
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x180091ae6
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x180091ac9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x180091ab4

Function at 0x1800adc28
Capabilities:
Encode data using xor

Disassembly:
sub r8, rdx
mov rcx, rdx
mov rdx, r8
jmp fcn.1800029dc
Function at 0x1800c6208
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800c60bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800c60bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800c60bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800c60bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800c60bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1800c60bb
cmp dword [rcx + 0xf8], 0
je 0x1800c60bb
mov ecx, ebx
call fcn.1800c616c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800c5f48
nop
cmp dword [rbp + 0x20], 0
je 0x1800c6109
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800c6114
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800c604c

Function at 0x1800c7908
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800aff80
sub rsp, rax
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800c27dc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800c7957
mov rax, rbp
jmp 0x1800c7a5f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x37a410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800d50a8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x37a410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800c7a5b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800c7a5b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800d50a8
test rax, rax
js 0x1800c7a5b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800c7a5b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800c7a4d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800c7a4d
cmp byte [rcx], 0xd
jne 0x1800c7a33
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800c7a42
cmp byte [rcx + 1], 0xa
jne 0x1800c7a42
inc rcx
jmp 0x1800c7a42
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x375bf0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800c7a15
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800c7a5f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800af730
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret