Function at 0x140031850
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rbx, qword [rcx]
lea rdx, [rbp - 9]
mov r12, qword [rcx + 0x10]
xor eax, eax
mov qword [rcx + 0x20], rax
mov r15, rcx
xor sil, sil
mov word [rbp - 0x29], 0x15ff
mov rcx, rbx
mov dword [rbp - 0x27], 2
mov word [rbp - 0x23], 0x8eb
mov r14d, eax
mov qword [rbp - 0x21], rax
mov r13d, eax
mov word [rbp - 0x49], 0x25ff
mov edi, eax
mov dword [rbp - 0x47], eax
mov qword [rbp - 0x43], rax
mov qword [rbp - 0x39], 0x25ff0e70
mov qword [rbp - 0x31], rax
mov byte [rbp + 0x67], sil
mov byte [rbp + 0x6f], al
mov qword [rbp + 0x77], rax
call fcn.140030b00
mov r9d, dword [rbp + 0x18]
mov r8d, eax
bt r9d, 0xc
jb 0x140031b1a
mov r10, rbx
cmp sil, 5
jb 0x140031900
mov r8d, ntohs
mov qword [rbp - 0x43], rbx
lea r10, [rbp - 0x49]
lea r13d, [r8 - 0xd]
jmp 0x140031a84
movzx eax, byte [rbp + 4]
and al, 0xc7
cmp al, 5
jne 0x140031956
movzx eax, byte [rbp - 9]
lea rdi, [rbp - 0x19]
mov ecx, r8d
lea r10, [rbp - 0x19]
mov rsi, rbx
mov edx, ebx
rep movsb byte [rdi], byte [rsi]
sub edx, r12d
mov ecx, r9d
add edx, dword [rbp + 0x14]
shr rcx, 2
and ecx, 0xf
sub rax, rcx
mov dword [rbp + rax - 0x1d], edx
cmp byte [rbp + 2], 0xff
jne 0x140031a80
cmp byte [rbp + 6], 4
jne 0x140031a80
mov r13d, 1
jmp 0x140031a80
movzx edx, byte [rbp + 2]
cmp dl, 0xe8
jne 0x140031980
movsxd rax, dword [rbp + 0xc]
lea r10, [rbp - 0x29]
movzx ecx, byte [rbp - 9]
add rax, rbx
add rcx, rax
mov r8d, reloc.WSOCK32.dll_recv
mov qword [rbp - 0x21], rcx
jmp 0x140031a84
movzx eax, dl
and al, 0xfd
cmp al, 0xe9
jne 0x1400319de
movzx ecx, byte [rbp - 9]
movsx rax, byte [rbp + 0xc]
add rcx, rbx
cmp dl, 0xeb
je 0x14003199e
movsxd rax, dword [rbp + 0xc]
add rcx, rax
mov rax, qword [r15]
cmp rax, rcx
ja 0x1400319c1
add rax, 5
cmp rcx, rax
jae 0x1400319c1
cmp rdi, rcx
mov r14, rcx
cmovae r14, rdi
jmp 0x140031a84
xor r13d, r13d
mov qword [rbp - 0x43], rcx
cmp rbx, r14
lea r10, [rbp - 0x49]
mov r8d, ntohs
setae r13b
jmp 0x140031a84
movzx esi, byte [rbp + 3]
movzx ecx, dl
and cl, 0xf0
cmp cl, 0x70
je 0x140031a14
movzx eax, dl
and al, 0xfc
cmp al, 0xe0
je 0x140031a14
movzx eax, sil
and al, 0xf0
cmp al, 0x80
je 0x140031a14
and dl, 0xfe
cmp dl, 0xc2
jne 0x140031a80
xor r13d, r13d
cmp rbx, r14
setae r13b
jmp 0x140031a80
movzx edi, byte [rbp - 9]
add rdi, rbx
cmp cl, 0x70
je 0x140031a2d
movzx eax, dl
and al, 0xfc
cmp al, 0xe0
movsxd rax, dword [rbp + 0xc]
jne 0x140031a32
movsx rax, byte [rbp + 0xc]
add rdi, rax
mov rax, qword [r15]
cmp rax, rdi
ja 0x140031a54
add rax, 5
cmp rdi, rax
jae 0x140031a54
cmp qword [rbp + 0x77], rdi
mov r14, rdi
cmovae r14, qword [rbp + 0x77]
jmp 0x140031a80
movzx eax, dl
and al, 0xfc
cmp al, 0xe0
je 0x140031b1a
cmp dl, 0xf
mov qword [rbp - 0x31], rdi
mov ecx, esi
lea r10, [rbp - 0x39]
cmovne ecx, edx
mov r8d, reloc.WSOCK32.dll_recv
and cl, 0xf
xor cl, 0x71
mov byte [rbp - 0x39], cl
movzx esi, byte [rbp + 0x67]
cmp rbx, r14
jae 0x140031a96
movzx eax, byte [rbp - 9]
cmp r8d, eax
jne 0x140031b1a
movzx r12d, byte [rbp + 0x6f]
lea eax, [r8 + r12]
cmp eax, 0x32
ja 0x140031b1a
mov eax, dword [r15 + 0x24]
cmp eax, 8
jae 0x140031b1a
mov byte [rax + r15 + 0x28], sil
mov rsi, r10
mov eax, dword [r15 + 0x24]
mov ecx, r8d
mov byte [rax + r15 + 0x30], r12b
mov rax, qword [r15 + 0x10]
inc dword [r15 + 0x24]
lea rdi, [rax + r12]
add r12b, r8b
rep movsb byte [rdi], byte [rsi]
movzx esi, byte [rbp + 0x67]
add sil, byte [rbp - 9]
mov byte [rbp + 0x6f], r12b
mov byte [rbp + 0x67], sil
test r13d, r13d
jne 0x140031b37
movzx ebx, sil
lea rdx, [rbp - 9]
add rbx, qword [r15]
mov rdi, r14
movzx r12d, r12b
mov rcx, rbx
mov qword [rbp + 0x77], r14
add r12, rax
call fcn.140030b00
mov r9d, dword [rbp + 0x18]
mov r8d, eax
bt r9d, 0xc
jae 0x1400318e0
xor eax, eax
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp sil, 5
jae 0x140031c3a
mov r8, qword [r15]
movzx edi, sil
add rdi, r8
movzx edx, byte [rdi]
test dl, dl
je 0x140031b5c
cmp dl, 0x90
je 0x140031b5c
cmp dl, 0xcc
jne 0x140031b8a
movzx eax, sil
mov ecx, 1
mov esi, 5
sub esi, eax
cmp esi, ecx
jbe 0x140031c3a
mov eax, ecx
cmp byte [rax + rdi], dl
jne 0x140031b86
inc ecx
cmp ecx, esi
jb 0x140031b74
jmp 0x140031c3a
movzx esi, byte [rbp + 0x67]
cmp sil, 2
jae 0x140031bd1
test dl, dl
je 0x140031ba2
cmp dl, 0x90
je 0x140031ba2
cmp dl, 0xcc
jne 0x140031b1a
movzx eax, sil
mov ecx, 1
mov esi, 2
sub esi, eax
cmp esi, ecx
jbe 0x140031bd1
nop word [rax + rax]
mov eax, ecx
cmp byte [rax + rdi], dl
jne 0x140031b1a
inc ecx
cmp ecx, esi
jb 0x140031bc0
lea rcx, [r8 - 5]
mov r8d, gethostbyname
lea rdx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [rbp + 0x17], 0x1000
jne 0x140031b1a
test byte [rbp + 0x1b], 0xf0
je 0x140031b1a
mov rax, qword [r15]
movzx edx, byte [rax - 5]
test dl, dl
je 0x140031c15
cmp dl, 0x90
je 0x140031c15
cmp dl, 0xcc
jne 0x140031b1a
mov ecx, 1
add rax, 0xfffffffffffffffc
nop
cmp byte [rax], dl
jne 0x140031b1a
inc ecx
inc rax
cmp ecx, 5
jb 0x140031c20
mov dword [r15 + 0x20], 1
mov rcx, qword [r15 + 8]
mov eax, 1
mov qword [rbp - 0x43], rcx
mov ecx, dword [rbp - 0x41]
movsd xmm0, qword [rbp - 0x49]
movzx edx, r12b
add rdx, qword [r15 + 0x10]
mov qword [r15 + 0x18], rdx
movsd qword [rdx], xmm0
mov dword [rdx + 8], ecx
movzx ecx, word [rbp - 0x3d]
mov word [rdx + 0xc], cx
jmp 0x140031b1c