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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xe8
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rbp - 9], rax
mov r13, qword [rbp + 0x77]
xor eax, eax
mov r15, qword [rbp + 0x7f]
mov rsi, r9
mov qword [rsp + 0x40], r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
je 0x14001006d
mov r12, qword [r8 + 8]
jmp 0x140010070
mov r12, rax
lea rcx, str.SERVER_NAME
mov qword [r15 + 0x2208], rax
mov qword [r15], rbx
call fcn.140060940
test rax, rax
je 0x140010093
mov r8, rax
jmp 0x14001015f
mov rcx, qword [rbx + 0x20]
lea r8, [rsp + 0x58]
xorps xmm0, xmm0
mov dword [rsp + 0x58], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x48]
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [rsp + 0x4c]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x79], xmm0
mov dword [rbp - 0x19], eax
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
call qword [sym.imp.WS2_32.dll_inet_ntoa]
test rax, rax
je 0x14001015b
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8d, 0x63
lea rcx, [rbp - 0x79]
mov rdx, rax
call fcn.1400623b0
movzx ecx, word [rsp + 0x4a]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
mov r8, 0xffffffffffffffff
lea rax, [rbp - 0x79]
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140010120
lea eax, [r8 + 1]
mov dword [rsp + 0x20], r9d
movsxd rcx, eax
lea r9, [0x14008804e]
movsxd rax, r8d
mov edx, 0x64
sub rdx, rcx
lea r8, str._s:_d
lea rcx, [rbp - 0x79]
add rcx, rax
call fcn.140003a00
lea r8, [rbp - 0x79]
lea rdx, str.SERVER_NAME_s
mov rcx, r15
call fcn.1400071b0
mov r8, qword [r13]
lea rdx, str.SERVER_ROOT_s
mov rcx, r15
call fcn.1400071b0
mov r8, qword [r13]
lea rdx, str.DOCUMENT_ROOT_s
mov rcx, r15
call fcn.1400071b0
lea r9, str.6.17
mov rcx, r15
lea r8, str.Mongoose
lea rdx, str.SERVER_SOFTWARE_s__s
call fcn.1400071b0
lea r8, str.GATEWAY_INTERFACECGI_1.1
mov rcx, r15
lea rdx, [0x1400882e8]
call fcn.1400071b0
lea r8, str.SERVER_PROTOCOLHTTP_1.1
mov rcx, r15
lea rdx, [0x1400882e8]
call fcn.1400071b0
lea r8, str.REDIRECT_STATUS200
mov rcx, r15
lea rdx, [0x1400882e8]
call fcn.1400071b0
mov r9, qword [rsi + 0x20]
lea rdx, str.REQUEST_METHOD_.s
mov r8d, dword [rsi + 0x28]
mov rcx, r15
call fcn.1400071b0
cmp qword [rsi + 0x70], 0
lea rax, [0x14008804e]
mov r9, qword [rsi + 0x30]
lea rcx, [0x14008805c]
mov r8d, dword [rsi + 0x38]
lea rdx, str.REQUEST_URI_.s_s_.s
cmove rcx, rax
mov rax, qword [rsi + 0x68]
mov qword [rsp + 0x30], rax
mov eax, dword [rsi + 0x70]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, r15
call fcn.1400071b0
mov rax, qword [rbx + 0xc8]
lea r8, [rsp + 0x48]
xorps xmm0, xmm0
mov edx, 4
movups xmmword [rsp + 0x48], xmm0
mov rcx, rbx
mov r9, qword [rax + 0x10]
call qword [r9 + 0x80]
mov ecx, dword [rsp + 0x4c]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x79], xmm0
mov dword [rbp - 0x19], eax
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
call qword [sym.imp.WS2_32.dll_inet_ntoa]
test rax, rax
je 0x1400102c1
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8d, 0x63
lea rcx, [rbp - 0x79]
mov rdx, rax
call fcn.1400623b0
jmp 0x1400102c5
mov byte [rbp - 0x79], 0
lea r8, [rbp - 0x79]
mov rcx, r15
lea rdx, str.REMOTE_ADDR_s
call fcn.1400071b0
mov rax, qword [rbx + 0xc8]
lea r8, [rsp + 0x48]
xorps xmm0, xmm0
xor edx, edx
movups xmmword [rsp + 0x48], xmm0
mov rcx, rbx
mov r9, qword [rax + 0x10]
call qword [r9 + 0x80]
movzx ecx, word [rsp + 0x4a]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x79], xmm0
mov dword [rbp - 0x19], eax
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
lea r8, [0x1400885a4]
mov edx, 0x64
lea rcx, [rbp - 0x79]
call fcn.140003a00
lea r8, [rbp - 0x79]
mov rcx, r15
lea rdx, str.SERVER_PORT_s
call fcn.1400071b0
mov r9, qword [rsi + 0x30]
mov rax, qword [rsi + 0x38]
sub rax, r12
lea rbx, [r9 - 1]
add rbx, rax
cmp byte [rbx], 0x2f
jne 0x1400103a4
mov edx, 0x5c
mov rcx, r14
call fcn.14004ce68
test rax, rax
je 0x140010381
inc rax
jmp 0x140010384
mov rax, r14
mov r9, qword [rsi + 0x30]
lea rdx, str.SCRIPT_NAME_.s__s
sub ebx, r9d
mov qword [rsp + 0x20], rax
mov r8d, ebx
mov rcx, r15
call fcn.1400071b0
jmp 0x1400103ba
sub ebx, r9d
lea rdx, str.SCRIPT_NAME_.s
mov rcx, r15
lea r8d, [rbx + 1]
call fcn.1400071b0
mov r8, r14
lea rdx, str.SCRIPT_FILENAME_s
mov rcx, r15
call fcn.1400071b0
test rdi, rdi
je 0x140010405
mov rax, qword [rdi + 8]
test rax, rax
je 0x140010405
mov r9, qword [rdi]
lea rdx, str.PATH_INFO_.s
mov r8d, eax
mov rcx, r15
call fcn.1400071b0
mov r9, qword [rdi]
lea rdx, str.PATH_TRANSLATED_.s
mov r8d, dword [rdi + 8]
mov rcx, r15
call fcn.1400071b0
lea rdx, str.HTTPSoff
mov rcx, r15
call fcn.1400071b0
cmp qword [rsi + 0x80], 0
lea r13, [rsi + 0x78]
jbe 0x1400104b1
mov rax, r13
mov qword [rsp + 0x58], rax
nop
mov rdi, qword [rax]
lea rcx, [rax + 0x280]
mov qword [rsp + 0x48], rcx
test rdi, rdi
je 0x14001083d
cmp qword [rax + 8], 0xc
jne 0x14001083d
mov r14d, reloc.WS2_32.dll_inet_ntoa
lea rsi, [0x140088668]
movzx ecx, byte [rsi]
mov r12, rdi
call fcn.140062134
movzx ecx, byte [rdi]
mov ebx, eax
call fcn.140062134
inc rdi
lea rsi, [rsi + 1]
cmp eax, ebx
jne 0x140010838
cmp byte [r12], 0
je 0x140010491
sub r14, 1
jne 0x140010460
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400104b1
mov r9, qword [rax]
lea rdx, str.CONTENT_TYPE_.s
mov r8d, dword [rax + 8]
mov rcx, r15
call fcn.1400071b0
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx + 0x70]
test rax, rax
je 0x1400104d5
mov r9, qword [rbx + 0x68]
lea rdx, str.QUERY_STRING_.s
mov r8d, eax
mov rcx, r15
call fcn.1400071b0
cmp qword [rbx + 0x80], 0
jbe 0x140010577
nop dword [rax]
nop word [rax + rax]
mov rdi, qword [r13]
lea rax, [r13 + 0x280]
mov qword [rsp + 0x48], rax
test rdi, rdi
je 0x140010856
cmp qword [r13 + 8], 0xe
jne 0x140010856
mov r14d, reloc.WS2_32.dll_ntohl
lea rsi, str.Content_Length
movzx ecx, byte [rsi]
mov r12, rdi
call fcn.140062134
movzx ecx, byte [rdi]
mov ebx, eax
call fcn.140062134
inc rdi
lea rsi, [rsi + 1]
cmp eax, ebx
jne 0x140010856
cmp byte [r12], 0
je 0x140010552
sub r14, 1
jne 0x140010521
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140010572
mov r9, qword [rax]
lea rdx, str.CONTENT_LENGTH_.s
mov r8d, dword [rax + 8]
mov rcx, r15
call fcn.1400071b0
mov rbx, qword [rsp + 0x40]
lea rcx, str.PATH
call fcn.140060940
test rax, rax
je 0x1400105a1
mov r9, rax
lea r8, str.PATH
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
lea rcx, [0x140088ee4]
call fcn.140060940
test rax, rax
je 0x1400105cb
mov r9, rax
lea r8, [0x140088ee4]
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
lea rcx, str.TEMP
call fcn.140060940
test rax, rax
je 0x1400105f5
mov r9, rax
lea r8, str.TEMP
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
lea rcx, str.TMPDIR
call fcn.140060940
test rax, rax
je 0x14001061f
mov r9, rax
lea r8, str.TMPDIR
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
lea rcx, str.PERLLIB
call fcn.140060940
test rax, rax
je 0x140010649
mov r9, rax
lea r8, str.PERLLIB
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
lea rcx, str.MONGOOSE_CGI
call fcn.140060940
test rax, rax
je 0x140010673
mov r9, rax
lea r8, str.MONGOOSE_CGI
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
lea rcx, str.COMSPEC
call fcn.140060940
test rax, rax
je 0x14001069d
mov r9, rax
lea r8, str.COMSPEC
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
lea rcx, str.SYSTEMROOT
call fcn.140060940
test rax, rax
je 0x1400106c7
mov r9, rax
lea r8, str.SYSTEMROOT
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
lea rcx, str.SystemDrive
call fcn.140060940
test rax, rax
je 0x1400106f1
mov r9, rax
lea r8, str.SystemDrive
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
lea rcx, str.ProgramFiles
call fcn.140060940
test rax, rax
je 0x14001071b
mov r9, rax
lea r8, str.ProgramFiles
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
lea rcx, str.ProgramFiles_x86_
call fcn.140060940
test rax, rax
je 0x140010745
mov r9, rax
lea r8, str.ProgramFiles_x86_
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
lea rcx, str.CommonProgramFiles_x86_
call fcn.140060940
test rax, rax
je 0x14001076f
mov r9, rax
lea r8, str.CommonProgramFiles_x86_
lea rdx, [0x140088cec]
mov rcx, r15
call fcn.1400071b0
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400107ea
lea rdi, [rbx + 0x300]
mov rax, qword [rdi - 8]
lea rdx, str.HTTP__.s_.s
mov r9, qword [rdi - 0x288]
mov r8d, ecx
mov qword [rsp + 0x28], rax
mov rcx, r15
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
call fcn.1400071b0
mov rbx, rax
movzx ecx, byte [rax]
cmp cl, 0x3d
je 0x1400107d8
test cl, cl
je 0x1400107d8
cmp cl, 0x2d
jne 0x1400107c3
mov byte [rbx], 0x5f
mov cl, 0x5f
movzx ecx, cl
call fcn.140062160
mov byte [rbx], al
inc rbx
movzx ecx, byte [rbx]
cmp cl, 0x3d
jne 0x1400107b5
mov rax, qword [rdi - 0x270]
add rdi, 0x10
mov ecx, eax
test rax, rax
jne 0x140010782
movsxd rax, dword [r15 + 0x220c]
mov qword [r15 + rax*8 + 0x2008], 0
movsxd rax, dword [r15 + 0x2208]
inc dword [r15 + 0x220c]
mov byte [rax + r15 + 8], 0
inc dword [r15 + 0x2208]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14003fb10
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rsp + 0x58]
add rax, 0x10
mov qword [rsp + 0x58], rax
cmp qword [rax + 8], 0
ja 0x140010430
jmp 0x1400104b1
add r13, 0x10
cmp qword [r13 + 8], 0
ja 0x1400104f0
jmp 0x140010572