Function at 0x18003f690
Capabilities:
Convert ip address from string
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x180201ac0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r14, rcx
cmp byte [rcx + 0x58], 0
jne 0x180040145
mov byte [0x18049862d], 0
mov edx, dword [0x1804a2b54]
mov rax, qword gs:[0x58]
mov ecx, 0x76c8
mov rbx, qword [rax + rdx*8]
add rbx, rcx
xor r15d, r15d
mov eax, dword [rbx]
cmp dword [0x1804a41b8], eax
jle 0x18003f744
lea rcx, [0x1804a41b8]
call fcn.1801337d8
cmp dword [0x1804a41b8], 0xffffffff
jne 0x18003f744
xorps xmm0, xmm0
movdqu xmmword [0x1804a4160], xmm0
mov qword [0x1804a4170], r15
lea rcx, [0x18016a650]
call fcn.180133c8c
lea rcx, [0x1804a41b8]
call fcn.180133778
call sym.netshield.dll_log_producer_env_init
cmp eax, dword [0x1804a0d60]
jne 0x18003f79b
call fcn.18003d8f0
test eax, eax
jne 0x18003f79b
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1804a4160]
call sym.netshield.dll_create_log_producer
mov qword [0x1804a4168], rax
test rax, rax
je 0x18003f79b
xor edx, edx
mov rcx, rax
call sym.netshield.dll_get_log_producer_client
mov qword [0x1804a4170], rax
lea rax, [0x1804a4160]
mov qword [0x1804a38a8], rax
mov eax, r15d
jmp 0x18003f7a0
mov eax, 2
mov dword [0x180490f54], eax
mov ecx, gethostbyname
call fcn.1801338e8
mov rdi, rax
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
lea rax, vtable.NetshieldLogger.0
mov qword [rdi], rax
mov r12, 0xffffffffffffffff
mov dword [rdi + 8], r12d
mov rcx, qword [0x1804a38a8]
mov qword [rdi + 0x10], rcx
lea rsi, [rdi + 0x18]
mov qword [rsi], r15
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r15
mov rdx, rdi
xor ecx, ecx
call fcn.18007b340
mov rdx, rdi
lea ecx, [r12 + 2]
call fcn.18007b340
mov rdx, rdi
lea ecx, [r12 + 3]
call fcn.18007b340
call fcn.18007d940
movdqa xmm6, xmmword [0x1801dfe40]
movdqa xmm7, xmmword [0x1801dfe10]
mov eax, dword [rbx]
cmp dword [0x1804a4220], eax
jle 0x18003f87c
lea rcx, [0x1804a4220]
call fcn.1801337d8
cmp dword [0x1804a4220], r12d
jne 0x18003f87c
mov word [0x1804a4150], 0x18d
movups xmmword [0x1804a4130], xmm6
movups xmmword [0x1804a4140], xmm7
lea rcx, [0x18016a620]
call fcn.180133c8c
lea rcx, [0x1804a4220]
call fcn.180133778
lea r8, [0x1804a4130]
cmp byte [0x1804a4151], r15b
je 0x18003f8c3
mov rdx, r15
movabs r9, 0xf53e9eb1b253f8d
nop dword [rax]
movzx ecx, dl
and cl, 7
shl cl, 3
mov rax, r9
shr rax, cl
xor byte [rdx + r8], al
inc rdx
cmp rdx, 0x21
jb 0x18003f8a0
mov byte [0x1804a4151], r15b
mov eax, dword [rbx]
cmp dword [0x1804a3ee8], eax
jle 0x18003f91a
lea rcx, [0x1804a3ee8]
call fcn.1801337d8
cmp dword [0x1804a3ee8], r12d
jne 0x18003f913
mov word [0x1804a417b], 0x11b
mov word [0x1804a4178], 0xebc
mov byte [0x1804a417a], 0x16
lea rcx, [0x18016a640]
call fcn.180133c8c
lea rcx, [0x1804a3ee8]
call fcn.180133778
lea r8, [0x1804a4130]
cmp byte [0x1804a417c], r15b
je 0x18003f946
xor byte [0x1804a4178], 0x8d
xor byte [0x1804a4179], 0x3f
xor byte [0x1804a417a], 0x25
xor byte [0x1804a417b], 0x1b
mov byte [0x1804a417c], r15b
lea r13, [r14 + 0x20]
mov r9, r13
lea rdx, [0x1804a4178]
mov rcx, qword [r14 + 0x60]
call fcn.180036b50
mov rcx, r14
call fcn.180036d50
cmp qword [r14 + 0x10], r15
je 0x180040140
mov rcx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18003f97c
mov rcx, qword [r14]
mov rdx, r14
call fcn.18004c4e8
mov r8d, 0x5a
lea rdx, str.C:UsersAdministratorDesktopDevelopementJenkinsWorkspaceworkspaceNetshield3rdGen_WindowsNetshield3rdGen_Prod_Windows_x64_Release_netshield_netshield.cpp
lea rcx, [rsp + 0x70]
call fcn.180076e00
mov r15, rax
mov ecx, dword [rbx]
cmp dword [0x1804a4154], ecx
jle 0x18003f9ee
lea rcx, [0x1804a4154]
call fcn.1801337d8
cmp dword [0x1804a4154], 0xffffffff
jne 0x18003f9ee
mov word [0x1804a4253], 0x113
mov word [0x1804a4250], 0xab06
mov byte [0x1804a4252], 0x41
lea rcx, [0x18016a610]
call fcn.180133c8c
lea rcx, [0x1804a4154]
call fcn.180133778
cmp byte [0x1804a4254], 0
je 0x18003fa1a
xor byte [0x1804a4250], 0x6f
xor byte [0x1804a4251], 0xcf
xor byte [0x1804a4252], 0x7b
xor byte [0x1804a4253], 0x13
mov byte [0x1804a4254], 0
mov rcx, r15
call fcn.18007cf90
mov rcx, rax
lea rdx, [0x1804a4250]
call fcn.18002e990
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18003fa3e
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
mov rcx, rax
call fcn.18002ff30
nop
lea rcx, [rsp + 0x70]
call fcn.180077220
mov eax, dword [rbx]
cmp dword [0x1804a40e8], eax
jle 0x18003faa5
lea rcx, [0x1804a40e8]
call fcn.1801337d8
cmp dword [0x1804a40e8], 0xffffffff
jne 0x18003faa5
mov word [0x1804a415b], 0x1b5
mov word [0x1804a4158], 0xa62c
mov byte [0x1804a415a], 0xe6
lea rcx, [0x18016a600]
call fcn.180133c8c
lea rcx, [0x1804a40e8]
call fcn.180133778
cmp byte [0x1804a415c], 0
je 0x18003fad1
xor byte [0x1804a4158], 0x7b
xor byte [0x1804a4159], 0x95
xor byte [0x1804a415a], 0xd3
xor byte [0x1804a415b], 0xb5
mov byte [0x1804a415c], 0
lea rdx, [0x1804a4158]
mov rbx, r12
nop dword [rax + rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x18003fae0
mov r8, qword [r14 + 0x10]
mov rcx, qword [r14 + 0x18]
mov rax, rcx
sub rax, r8
cmp rbx, rax
ja 0x18003fb82
lea rax, [r8 + rbx]
mov qword [r14 + 0x10], rax
mov r15, r14
cmp rcx, 0x10
jb 0x18003fb14
mov r15, qword [r14]
lea rax, [rbx + rdx]
cmp rax, r15
jbe 0x18003fb38
lea rax, [r15 + r8]
cmp rdx, rax
ja 0x18003fb38
cmp r15, rdx
ja 0x18003fb30
xor r12d, r12d
jmp 0x18003fb3b
mov r12, r15
sub r12, rdx
jmp 0x18003fb3b
mov r12, rbx
lea rcx, [r15 + rbx]
inc r8
mov rdx, r15
call fcn.180135a90
mov r8, r12
lea rdx, [0x1804a4158]
mov rcx, r15
call fcn.180135a90
lea rcx, [r15 + r12]
mov r8, rbx
sub r8, r12
lea rdx, [r12 + rbx]
lea rax, [0x1804a4158]
add rdx, rax
call fcn.180135a90
mov r12, 0xffffffffffffffff
jmp 0x18003fb9d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.1800411f0
mov rbx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x18003fbaa
mov rbx, qword [r14]
cmp qword [r13 + 0x18], 0x10
jb 0x18003fbb5
mov r13, qword [r13]
call fcn.18002bc20
lea r8, [rax + 8]
mov rdx, rbx
mov rcx, r13
call fcn.18004c588
test eax, eax
jne 0x180040140
call fcn.18002bc20
mov ecx, dword [rax + 0x84]
xor r13d, r13d
mov eax, r13d
cmp ecx, 1
sete al
mov dword [rdi + 8], eax
jne 0x18003fc2f
cmp qword [rdi + 0x10], r13
je 0x18003fc2f
mov r15, qword [rsi + 8]
mov rbx, qword [rsi]
cmp rbx, r15
je 0x18003fc2f
nop
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18003fc0d
mov r9, qword [rbx]
mov rcx, qword [rdi + 0x10]
lea r8, [0x1801dfbc4]
mov edx, 2
mov rcx, qword [rcx + 0x10]
call sym.netshield.dll_log_producer_client_add_log
add rbx, 0x20
cmp rbx, r15
jne 0x18003fc00
lea rax, [rsp + 0x70]
cmp rsi, rax
je 0x18003fc98
mov rdi, qword [rsi]
mov qword [rsi], r13
mov rdx, qword [rsi + 8]
mov qword [rsi + 8], r13
mov rbx, qword [rsi + 0x10]
mov qword [rsi + 0x10], r13
test rdi, rdi
je 0x18003fc98
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.18002c870
sub rbx, rdi
and rbx, 0xffffffffffffffe0
cmp rbx, 0x1000
jb 0x18003fc8d
add rbx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x18004017e
mov rdi, rcx
mov rdx, rbx
mov rcx, rdi
call fcn.180133ca4
call fcn.18002bc20
cmp dword [rax + 0x80], r13d
je 0x180040145
call fcn.18002bc20
mov rsi, qword [rax + 0x168]
mov r12, qword [rax + 0x170]
cmp rsi, r12
je 0x18003fde0
lea rbx, [rsi + 0x30]
nop word [rax + rax]
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x50], 0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x30], 0
mov qword [rbp - 0x10], r13
mov qword [rbp], r13
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x10], 0
lea rax, [rbp - 0x50]
cmp rax, rsi
je 0x18003fd2f
mov rdx, rsi
cmp qword [rbx - 0x18], 0x10
jb 0x18003fd22
mov rdx, qword [rsi]
mov r8, qword [rbx - 0x20]
lea rcx, [rbp - 0x50]
call fcn.18002c300
lea rdx, [rbx - 0x10]
lea rax, [rbp - 0x30]
cmp rax, rdx
je 0x18003fd52
cmp qword [rbx + 8], 0x10
jb 0x18003fd46
mov rdx, qword [rdx]
mov r8, qword [rbx]
lea rcx, [rbp - 0x30]
call fcn.18002c300
lea rdx, [rbx + 0x30]
lea rax, [rbp - 0x10]
cmp rax, rdx
je 0x18003fd76
cmp qword [rbx + 0x48], 0x10
jb 0x18003fd69
mov rdx, qword [rdx]
mov r8, qword [rbx + 0x40]
lea rcx, [rbp - 0x10]
call fcn.18002c300
mov rdi, qword [r14 + 0x48]
cmp rdi, qword [r14 + 0x50]
je 0x18003fdb5
mov qword [rsp + 0x70], rdi
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.18002e470
nop
lea rcx, [rdi + 0x20]
lea rdx, [rbp - 0x30]
call fcn.18002e470
nop
lea rcx, [rdi + 0x40]
lea rdx, [rbp - 0x10]
call fcn.18002e470
nop
add qword [r14 + 0x48], 0x60
jmp 0x18003fdc6
lea r8, [rbp - 0x50]
mov rdx, rdi
lea rcx, [r14 + 0x40]
call fcn.180040d40
nop
lea rcx, [rbp - 0x50]
call fcn.180040190
sub rsi, 0xffffffffffffff80
sub rbx, 0xffffffffffffff80
cmp rsi, r12
jne 0x18003fcd0
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x78], 0
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
call fcn.18002bc20
lea rcx, [r14 + 0x40]
mov eax, dword [rax + 0x15c]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x78]
lea rdx, [0x18003de00]
call fcn.18004633c
test eax, eax
jne 0x1800400ae
call fcn.18004b6ec
test eax, eax
jne 0x1800400ae
mov byte [r14 + 0x58], 1
call fcn.18004b5d0
mov edi, eax
call fcn.180045e64
mov esi, eax
call fcn.18002bc20
mov rbx, rax
mov dword [rax], esi
mov dword [rax + 0x1f0], edi
lea rcx, [rax + 0x1f8]
lea rax, [rbp - 0x78]
cmp rcx, rax
je 0x18003fe93
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
mov r8, qword [rbp - 0x68]
call fcn.18002c300
lea rcx, [rbx + 0x218]
lea rax, [rsp + 0x30]
cmp rcx, rax
je 0x18003febf
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
call fcn.18002c300
lea r8, [rbx + 0x2a4]
lea rdx, str.127.0.0.1
mov r14d, 2
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_inet_pton]
mov word [rbx + 0x2a0], r14w
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 0x2a2], ax
lea r8, [rbx + 0x2b4]
lea rdx, str.127.0.0.1
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_inet_pton]
mov word [rbx + 0x2b0], r14w
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 0x2b2], ax
lea r8, [rbx + 0x2e4]
lea rdx, str.::FFFF:127.0.0.1
mov esi, reloc.WS2_32.dll_socket
mov ecx, esi
call qword [sym.imp.WS2_32.dll_inet_pton]
mov word [rbx + 0x2dc], si
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 0x2de], ax
lea r8, [rbx + 0x2c8]
lea rdx, [0x1801df17c]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_inet_pton]
mov word [rbx + 0x2c0], si
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 0x2c2], ax
call fcn.180039d00
lea r8d, [r14 + 0x77]
lea rdx, str.C:UsersAdministratorDesktopDevelopementJenkinsWorkspaceworkspaceNetshield3rdGen_WindowsNetshield3rdGen_Prod_Windows_x64_Release_netshield_netshield.cpp
lea rcx, [rsp + 0x70]
call fcn.180076e00
nop
mov rcx, rax
call fcn.18007cf90
mov rcx, rax
lea rdx, str.service_has_started
call fcn.18002e990
nop
lea rcx, [rsp + 0x70]
call fcn.180077220
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
call fcn.18002bc20
mov rbx, rax
call fcn.18002bc20
mov r9d, dword [rbx + 0x164]
mov r8d, dword [rax + 0x160]
lea rdx, [rsp + 0x50]
lea rcx, str.netshield.dns
call fcn.18004c4d4
lea r8d, [r14 + 0x7b]
lea rdx, str.C:UsersAdministratorDesktopDevelopementJenkinsWorkspaceworkspaceNetshield3rdGen_WindowsNetshield3rdGen_Prod_Windows_x64_Release_netshield_netshield.cpp
lea rcx, [rsp + 0x70]
call fcn.180076e00
nop
mov rcx, rax
call fcn.18007cf90
mov rcx, rax
lea rdx, str.netshield.dns_ip:
call fcn.18002e990
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.18002ff30
nop
lea rcx, [rsp + 0x70]
call fcn.180077220
mov ebx, r13d
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x180040099
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040094
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040184
call fcn.180133ca4
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
jmp 0x1800400b5
mov rbx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1800400f2
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800400ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004018a
call fcn.180133ca4
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x18004013c
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040137
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004017e
call fcn.180133ca4
mov eax, ebx
jmp 0x180040147
mov eax, r12d
jmp 0x180040147
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.180133630
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18013a40c
nop
call fcn.18013a40c
nop
call fcn.18013a40c
int3