Function at 0x40f400
Capabilities:
Get local ipv4 addresses
Get routing table

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
mov r13, rcx
lea r15, [rsp + 0x80]
mov dword [r15], 0x3c
mov eax, 0x3c
lea r14, [rsp + 0x30]
mov edi, eax
mov edx, 4
mov rcx, rdi
call fcn.00408ae0
test rax, rax
cmovne rbx, rax
je 0x40f48e
mov rsi, rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 4
mov rcx, rbx
mov rdx, r15
xor r8d, r8d
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
jne 0x40f484
mov rcx, r14
call fcn.0040f3f1
mov eax, dword [rsp + 0x80]
mov rbx, rsi
jmp 0x40f42f
mov ebp, eax
test eax, eax
jne 0x40f495
mov eax, ebp
jmp 0x40f4a4
mov ebp, 8
jmp 0x40f4c1
lea rcx, [rsp + 0x30]
call fcn.0040f3f1
mov eax, 1
cmp eax, 1
jne 0x40f4e6
xor r14d, r14d
cmp ebp, 0x32
je 0x40f77a
cmp ebp, 0xe8
je 0x40f77a
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.0040f1af
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov r14d, 1
mov rsi, qword [rsi + 0x10]
jmp 0x40f77a
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xf8], 4
mov eax, dword [rbx]
imul rax, rax, 0x38
add rax, rbx
add rax, 4
add rbx, 4
lea rcx, [rsp + 0xb8]
mov qword [rcx], rbx
mov qword [rcx + 8], rax
call fcn.0040ef96
test eax, eax
je 0x40f67b
mov esi, edx
mov ecx, 1
call fcn.0040efbd
test rdx, rdx
je 0x40fa57
mov rbx, rax
mov rbp, rdx
mov qword [rsp + 0x68], r13
mov rcx, rax
call fcn.0040ef71
test rax, rax
je 0x40fa5e
mov rdi, rax
mov r14, rdx
shr r14, 2
mov dword [rax], esi
movups xmm0, xmmword [rsp + 0xb8]
lea r15, [rsp + 0x80]
movups xmmword [r15], xmm0
mov r13d, 1
mov rcx, r15
call fcn.0040ef96
cmp eax, 1
jne 0x40f65c
mov ebp, edx
cmp r13, r14
jne 0x40f650
mov rbx, r14
mov esi, 1
inc rbx
jne 0x40f5b7
xor r12d, r12d
jmp 0x40f63d
lea rax, [r14 + r14]
cmp rax, rbx
cmova rbx, rax
cmp rbx, 5
mov eax, 4
cmovb rbx, rax
mov rcx, rbx
call fcn.0040efbd
mov r8, rdx
lea rcx, [r14*4]
test r14, r14
mov r9, rdi
cmove r9, r14
mov rdx, qword [rsp + 0x70]
cmovne rdx, rcx
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], 4
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.0040eefa
cmp dword [rsp + 0x30], 1
jne 0x40f628
mov rbx, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
jmp 0x40f63d
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
shr r14, 2
mov rbx, qword [rsp + 0x78]
xor esi, esi
mov rcx, rsi
mov rdx, rbx
mov r8, r12
call fcn.0040ee79
mov qword [rsp + 0x78], rbx
mov dword [rdi + r13*4], ebp
inc r13
jmp 0x40f586
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], r13
mov r13, qword [rsp + 0x68]
jmp 0x40f695
mov rax, qword [0x0043f048]
mov qword [rsp + 0x98], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
lea r15, [rsp + 0xe8]
mov rcx, r15
call fcn.0040f3f1
mov dword [r15], 0x3a98
mov eax, 0x3a98
lea r14, [rsp + 0x30]
mov ebx, eax
mov edx, 8
mov rcx, rbx
call fcn.00408ae0
test rax, rax
cmovne rdi, rax
je 0x40f71e
mov rsi, rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], 8
mov qword [rsp + 0x20], r15
mov ecx, 2
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.iphlpapi.dll_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x40f714
mov rcx, r14
call fcn.0040f1a0
mov eax, dword [rsp + 0xe8]
mov rdi, rsi
jmp 0x40f6b6
mov ebp, eax
test eax, eax
jne 0x40f725
mov eax, ebp
jmp 0x40f734
mov ebp, 8
jmp 0x40f74c
lea rcx, [rsp + 0x30]
call fcn.0040f1a0
mov eax, 1
cmp eax, 1
jne 0x40f7a6
xor r14d, r14d
cmp ebp, 0xe8
je 0x40f75e
cmp ebp, 0x4cc
je 0x40f75e
lea rcx, [rsp + 0x38]
mov edx, ebp
call fcn.0040f1af
mov r14d, 1
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
lea rcx, [rsp + 0x98]
call fcn.0040f184
mov qword [r13 + 8], r14
mov qword [r13 + 0x10], rdi
mov qword [r13 + 0x18], rbx
mov qword [r13 + 0x20], rsi
mov dword [r13], 1
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xc8], 8
lea rdx, [rsp + 0xe8]
mov qword [rdx], rdi
lea rax, [rsp + 0x98]
mov qword [rdx + 8], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x10], xmm0
and qword [rdx + 0x20], 0
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.0040eff3
cmp byte [rsi], 2
jne 0x40f809
mov rdi, qword [0x0043f048]
xor r12d, r12d
xor r15d, r15d
jmp 0x40f9b8
mov ecx, 1
call fcn.0040f0c5
test rdx, rdx
je 0x40fa57
mov rsi, rax
mov rbx, rdx
mov qword [rsp + 0x68], r13
mov rcx, rax
call fcn.0040ef71
test rax, rax
je 0x40fa66
mov rdi, rax
mov ecx, 0x14
mov rax, rdx
xor edx, edx
div rcx
mov r12, rax
lea r13, [rsp + 0x30]
movups xmm0, xmmword [r13]
mov eax, dword [r13 + 0x10]
mov dword [rdi + 0x10], eax
movups xmmword [rdi], xmm0
movups xmm0, xmmword [rsp + 0xe8]
movups xmm1, xmmword [rsp + 0xf8]
movups xmm2, xmmword [rsp + 0x108]
movaps xmmword [r13 + 0x20], xmm2
movaps xmmword [r13 + 0x10], xmm1
movaps xmmword [r13], xmm0
mov r15d, 1
lea rsi, [rsp + 0xd0]
mov r14d, 0x14
mov rcx, rsi
mov rdx, r13
call fcn.0040eff3
cmp byte [rsp + 0xd0], 2
je 0x40f9b3
cmp r15, r12
jne 0x40f98e
mov rbx, r12
mov ebp, 1
inc rbx
jne 0x40f8d1
xor r8d, r8d
jmp 0x40f979
lea rax, [r12 + r12]
cmp rax, rbx
cmova rbx, rax
cmp rbx, 5
mov eax, 4
cmovb rbx, rax
mov rcx, rbx
call fcn.0040f0c5
mov r8, rdx
imul rcx, r12, 0x14
test r12, r12
mov r9, rdi
cmove r9, r12
mov rdx, qword [rsp + 0xb0]
cmovne rdx, rcx
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], 4
lea rcx, [rsp + 0x80]
mov rdx, rax
call fcn.0040eefa
cmp dword [rsp + 0x80], 1
jne 0x40f950
mov rbx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x90]
jmp 0x40f979
mov rdi, qword [rsp + 0x88]
mov rax, qword [rsp + 0x90]
xor edx, edx
mov ecx, 0x14
div rcx
mov r12, rax
mov rbx, qword [rsp + 0x70]
xor ebp, ebp
mov r8, qword [rsp + 0x78]
mov rcx, rbp
mov rdx, rbx
mov qword [rsp + 0x78], r8
call fcn.0040ee79
mov qword [rsp + 0x70], rbx
mov eax, dword [rsp + 0xe0]
mov dword [rdi + r14 + 0x10], eax
movups xmm0, xmmword [rsp + 0xd0]
movups xmmword [rdi + r14], xmm0
inc r15
add r14, 0x14
jmp 0x40f89a
mov r13, qword [rsp + 0x68]
lea rcx, [rsp + 0xb8]
call fcn.0040f1a0
lea rcx, [rsp + 0x98]
call fcn.0040f184
imul rbp, r15, 0x14
xor ecx, ecx
mov al, 1
cmp rbp, rcx
je 0x40fa07
mov dl, byte [rdi + rcx]
cmp dl, 2
je 0x40fa09
add rcx, 0x14
test dl, dl
jne 0x40f9d8
mov eax, dword [rdi + rcx - 4]
mov dword [rsp + 0x3f], eax
movups xmm0, xmmword [rdi + rcx - 0x13]
movaps xmmword [rsp + 0x30], xmm0
xor eax, eax
xor edx, edx
jmp 0x40fa09
mov dl, 2
test al, al
je 0x40fa1c
and qword [r13 + 8], 0
mov dword [r13], 1
jmp 0x40fa37
mov byte [r13 + 4], dl
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [r13 + 5], xmm0
mov eax, dword [rsp + 0x3f]
mov dword [r13 + 0x14], eax
and dword [r13], 0
test r12, r12
je 0x40f792
imul rdx, r12, 0x14
mov r8d, 4
mov rcx, rdi
call fcn.0040efe5
jmp 0x40f792
call fcn.00408fd0
ud2
mov rcx, rbx
mov rdx, rbp
jmp 0x40fa6c
mov rcx, rsi
mov rdx, rbx
call fcn.00408ec0
ud2