Function at 0x140015000
Capabilities:
Resolve dns

Disassembly:
test rcx, rcx
je 0x1400153da
push rdi
mov eax, 0x1370
call fcn.14006f190
sub rsp, rax
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x1350], rax
mov rax, qword [rcx + 0x8d0]
mov rdi, rcx
test rax, rax
je 0x1400153c2
mov qword [rsp + 0x1388], rbx
mov qword [rsp + 0x1390], rbp
xor ebp, ebp
mov qword [rsp + 0x1368], rsi
mov qword [rsp + 0x1360], r12
cmp qword [rax + 0x48], rbp
je 0x1400150f0
mov r12, qword [rax + 0x48]
lea r8, [rsp + 0x90]
mov qword [rsp + 0xb0], rbp
mov rdx, r12
call fcn.140009340
lea r8, [rsp + 0x140]
mov r9d, 0x104
mov rdx, r12
mov rcx, rdi
mov ebx, eax
call fcn.1400090c0
lea rdx, [0x1400a2774]
lea rcx, [rsp + 0x140]
call fcn.14007e750
mov rsi, rax
mov qword [rsp + 0xb0], rax
test ebx, ebx
jne 0x1400150dd
lea r8, [rsp + 0x90]
mov rdx, r12
mov rcx, rdi
call fcn.140009340
mov rsi, qword [rsp + 0xb0]
test rsi, rsi
mov eax, ebp
setne al
test eax, eax
je 0x1400150f0
test rsi, rsi
jne 0x140015108
jmp 0x1400150f3
mov rsi, rbp
mov rax, qword [rdi + 0x8c8]
cmp qword [rax + 0x98], 0
je 0x1400153a2
lea rcx, [rdi + 0x920]
call fcn.140075000
mov edx, 0x40
lea rcx, [rsp + 0xc0]
test rax, rax
je 0x140015137
lea r8, str._d__b__Y:_H:_M:_S__z
mov r9, rax
call fcn.140075440
jmp 0x140015176
lea r8, str.01_Jan_1970:00:00:00_0000
lea rax, [rsp + 0xc0]
sub r8, rax
nop dword [rax]
cmp rdx, 1
jbe 0x14001516b
movzx eax, byte [r8 + rcx]
inc rcx
dec rdx
cmp byte [r8 + rcx], 0
mov byte [rcx - 1], al
jne 0x140015150
mov byte [rcx], 0
mov byte [rsp + 0xff], 0
lea rcx, [rdi + 0x908]
mov byte [rsp + 0x100], 0
test rcx, rcx
je 0x1400151b9
cmp word [rcx], 2
jne 0x1400151b9
mov r9d, gethostbyname
mov dword [rsp + 0x30], 2
lea r8, [rsp + 0x100]
lea edx, [r9 - 0x22]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov eax, dword [rdi]
lea r12, [0x1400a273c]
cmp eax, 1
jne 0x1400151d6
mov edx, dword [rdi + 0x88]
lea rcx, [rdi + 0x90]
jmp 0x1400151e8
cmp eax, 2
jne 0x1400151fc
mov edx, dword [rdi + 0x4c0]
lea rcx, [rdi + 0x4c8]
lea r8, str.Referer
call fcn.1400088c0
mov rbx, rax
test rax, rax
jne 0x1400151ff
mov rbx, r12
mov eax, dword [rdi]
cmp eax, 1
jne 0x140015215
mov edx, dword [rdi + 0x88]
lea rcx, [rdi + 0x90]
jmp 0x140015227
cmp eax, 2
jne 0x14001523b
mov edx, dword [rdi + 0x4c0]
lea rcx, [rdi + 0x4c8]
lea r8, str.User_Agent
call fcn.1400088c0
mov r11, rax
test rax, rax
jne 0x14001523e
mov r11, r12
mov rdx, qword [rdi + 0x28]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x80], r11
mov qword [rsp + 0x78], rbx
test rdx, rdx
lea r10, [0x1400a03bb]
mov r9, r10
mov r8, r12
mov rcx, r12
cmovne r9, rdx
test rax, rax
cmovne r8, rax
mov rax, qword [rdi + 8]
test rax, rax
cmovne rcx, rax
mov rax, qword [rdi + 0x30]
test rax, rax
cmovne r12, rax
test rdx, rdx
lea rax, [0x1400a4668]
cmovne r10, rax
mov rax, qword [rdi + 0x938]
xor edx, edx
mov qword [rsp + 0x70], rax
mov eax, dword [rdi + 0x98c]
mov dword [rsp + 0x68], eax
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rax, str._s____s___s____s__s_s_s_HTTP__s___d__I64d__s__s
lea r8, [rsp + 0x350]
mov r9d, 0x1000
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140011520
mov r11, qword [rdi + 0x8c8]
mov rax, qword [r11 + 0x98]
test rax, rax
je 0x14001532b
lea rdx, [rsp + 0x350]
mov rcx, rdi
call rax
test rsi, rsi
je 0x1400153a2
lea rcx, [0x140234110]
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [rsp + 0x350]
lea rdx, [0x1400a4544]
mov rcx, rsi
call fcn.14006abe0
mov rcx, rsi
cmp eax, ebx
cmovl ebx, ebp
call fcn.14007eb30
lea rcx, [0x140234110]
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rsi
call fcn.14007e7e0
test eax, eax
jne 0x140015388
test ebx, ebx
jne 0x1400153a2
mov r8, qword [rdi + 0x8d0]
lea rdx, str.Error_writing_log_file__s
mov rcx, rdi
mov r8, qword [r8 + 0x48]
call fcn.14000e440
mov rsi, qword [rsp + 0x1368]
mov rbp, qword [rsp + 0x1390]
mov rbx, qword [rsp + 0x1388]
mov r12, qword [rsp + 0x1360]
mov rcx, qword [rsp + 0x1350]
xor rcx, rsp
call fcn.14006f1f0
add rsp, 0x1370
pop rdi
repz ret