Function at 0x1400cefa0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
push r12
push r15
sub rsp, 0x28
cmp dword [0x1403d2fd8], 0
mov ebx, r8d
mov rdi, rdx
mov r15, rcx
mov r12d, 1
jne 0x1400cefcf
call fcn.1400cecf0
mov dword [0x1403d2fd8], r12d
mov ecx, ebx
sub ecx, 0x80
je 0x1400ceff5
sub ecx, 0x40
je 0x1400cefee
cmp ecx, 0x40
jne 0x1400cfadb
mov ecx, 0xe
jmp 0x1400ceffa
mov ecx, reloc.WS2_32.dll_inet_ntoa
jmp 0x1400ceffa
mov ecx, 0xa
mov qword [rsp + 0x60], r13
mov rax, r15
mov qword [rsp + 0x20], r14
xor r14d, r14d
sar ebx, 5
mov r10d, r14d
mov dword [r15 + 0x200], ecx
test ebx, ebx
jle 0x1400cf07c
mov r11, r15
lea r9, [rdi + 2]
sub r11, rdi
nop word [rax + rax]
lea ecx, [r10*4]
inc r10d
movsxd rdx, ecx
movzx ecx, byte [r9 - 1]
lea r9, [r9 + 4]
movzx r8d, byte [rdx + rdi]
shl r8d, 8
or r8d, ecx
movzx ecx, byte [r9 - 4]
shl r8d, 8
or r8d, ecx
movzx ecx, byte [r9 - 3]
shl r8d, 8
or r8d, ecx
mov dword [r11 + r9 - 6], r8d
cmp r10d, ebx
jl 0x1400cf030
mov ecx, dword [r15 + 0x200]
mov qword [rsp + 0x50], rbp
lea r13, [0x140000000]
mov qword [rsp + 0x58], rsi
cmp ecx, 0xa
je 0x1400cf656
cmp ecx, 0xc
je 0x1400cf1cc
cmp ecx, 0xe
jne 0x1400cf8dc
mov edi, dword [r15]
lea rbx, [0x1403d2fb0]
lea rsi, [0x1403d2fcc]
nop dword [rax]
mov r11d, dword [rax + 0x1c]
mov ecx, r11d
shr ecx, 0x10
movzx edx, cl
mov ecx, r11d
shr ecx, 8
movzx r8d, byte [rdx + r13 + 0x3d0db0]
movzx edx, cl
shl r8d, 8
movzx ecx, byte [rdx + r13 + 0x3d0db0]
mov edx, dword [rax + 8]
xor r8d, ecx
shl r8d, 8
movzx ecx, r11b
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor r8d, ecx
mov ecx, r11d
shr rcx, 0x18
shl r8d, 8
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor r8d, ecx
mov ecx, dword [rax + 4]
xor r8d, dword [rbx]
add rbx, 4
xor r8d, edi
xor ecx, r8d
mov dword [rax + 0x20], r8d
xor edx, ecx
mov dword [rax + 0x24], ecx
mov ecx, dword [rax + 0xc]
mov edi, r8d
xor ecx, edx
mov dword [rax + 0x28], edx
mov r8d, ecx
shr rcx, 0x18
mov dword [rax + 0x2c], r8d
movzx r9d, byte [rcx + r13 + 0x3d0db0]
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
shl r9d, 8
movzx ecx, byte [rdx + r13 + 0x3d0db0]
xor r9d, ecx
mov ecx, r8d
shr ecx, 8
movzx edx, cl
shl r9d, 8
movzx ecx, byte [rdx + r13 + 0x3d0db0]
mov edx, dword [rax + 0x18]
xor r9d, ecx
shl r9d, 8
movzx ecx, r8b
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor r9d, ecx
mov ecx, dword [rax + 0x14]
xor r9d, dword [rax + 0x10]
xor ecx, r9d
mov dword [rax + 0x30], r9d
xor edx, ecx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x38], edx
xor edx, r11d
mov dword [rax + 0x3c], edx
add rax, 0x20
cmp rbx, rsi
jl 0x1400cf0c0
jmp 0x1400cf8dc
mov edx, dword [r15 + 0x14]
mov r9d, dword [r15 + 4]
mov eax, edx
mov r10d, dword [r15 + 8]
mov r11d, dword [r15 + 0xc]
mov ebx, dword [r15 + 0x10]
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx edi, byte [rcx + r13 + 0x3d0db0]
movzx ecx, al
shl edi, 8
movzx eax, byte [rcx + r13 + 0x3d0db0]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor edi, eax
mov eax, edx
shr rax, 0x18
shl edi, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor edi, eax
xor edi, dword [r15]
xor edi, dword [0x1403d2fb0]
xor r9d, edi
mov dword [r15 + 0x18], edi
xor r10d, r9d
mov dword [r15 + 0x1c], r9d
xor r11d, r10d
mov dword [r15 + 0x20], r10d
xor ebx, r11d
mov dword [r15 + 0x24], r11d
xor edx, ebx
mov dword [r15 + 0x28], ebx
mov eax, edx
mov r8d, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r15 + 0x2c], r8d
movzx esi, byte [rcx + r13 + 0x3d0db0]
movzx ecx, al
shl esi, 8
movzx eax, byte [rcx + r13 + 0x3d0db0]
xor esi, eax
movzx eax, dl
shl esi, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor esi, eax
mov eax, edx
shr rax, 0x18
shl esi, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor esi, eax
xor esi, edi
xor esi, dword [0x1403d2fb4]
mov edi, esi
mov dword [r15 + 0x30], esi
xor edi, r9d
mov r9d, edi
mov dword [r15 + 0x34], edi
xor r9d, r10d
mov r10d, r9d
mov dword [r15 + 0x38], r9d
xor r10d, r11d
mov r11d, r10d
mov dword [r15 + 0x3c], r10d
xor r11d, ebx
mov eax, r11d
mov dword [r15 + 0x40], r11d
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov eax, edx
mov dword [r15 + 0x44], edx
movzx ebp, byte [rcx + r13 + 0x3d0db0]
shl ebp, 8
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x3d0db0]
xor ebp, eax
movzx eax, dl
shl ebp, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor ebp, eax
mov eax, edx
shr rax, 0x18
shl ebp, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor ebp, eax
xor ebp, esi
xor ebp, dword [0x1403d2fb8]
mov r8d, ebp
mov dword [r15 + 0x48], ebp
xor r8d, edi
mov ebx, r8d
mov dword [r15 + 0x4c], r8d
xor ebx, r9d
mov r9d, ebx
mov dword [r15 + 0x50], ebx
xor r9d, r10d
mov r10d, r9d
mov dword [r15 + 0x54], r9d
xor r10d, r11d
xor edx, r10d
mov dword [r15 + 0x58], r10d
mov eax, edx
mov dword [r15 + 0x5c], edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx edi, byte [rcx + r13 + 0x3d0db0]
movzx ecx, al
shl edi, 8
movzx eax, byte [rcx + r13 + 0x3d0db0]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor edi, eax
mov eax, edx
shr rax, 0x18
shl edi, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor edi, eax
xor edi, ebp
xor edi, dword [0x1403d2fbc]
mov r11d, edi
mov dword [r15 + 0x60], edi
xor r11d, r8d
mov r8d, r11d
mov dword [r15 + 0x64], r11d
xor r8d, ebx
mov ebx, r8d
mov dword [r15 + 0x68], r8d
xor ebx, r9d
mov r9d, ebx
mov dword [r15 + 0x6c], ebx
xor r9d, r10d
mov eax, r9d
mov dword [r15 + 0x70], r9d
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r15 + 0x74], edx
movzx esi, byte [rcx + r13 + 0x3d0db0]
movzx ecx, al
shl esi, 8
movzx eax, byte [rcx + r13 + 0x3d0db0]
xor esi, eax
movzx eax, dl
shl esi, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor esi, eax
shl esi, 8
mov eax, edx
shr rax, 0x18
movzx eax, byte [rax + r13 + 0x3d0db0]
xor esi, eax
xor esi, edi
xor esi, dword [0x1403d2fc0]
mov r10d, esi
mov dword [r15 + 0x78], esi
xor r10d, r11d
mov r11d, r10d
mov dword [r15 + 0x7c], r10d
xor r11d, r8d
mov r8d, r11d
mov dword [r15 + 0x80], r11d
xor r8d, ebx
mov ebx, r8d
mov dword [r15 + 0x84], r8d
xor ebx, r9d
mov eax, ebx
mov dword [r15 + 0x88], ebx
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r15 + 0x8c], edx
movzx edi, byte [rcx + r13 + 0x3d0db0]
movzx ecx, al
shl edi, 8
movzx eax, byte [rcx + r13 + 0x3d0db0]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor edi, eax
mov eax, edx
shr rax, 0x18
shl edi, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor edi, eax
xor edi, esi
xor edi, dword [0x1403d2fc4]
mov r9d, edi
mov dword [r15 + 0x90], edi
xor r9d, r10d
mov r10d, r9d
mov dword [r15 + 0x94], r9d
xor r10d, r11d
mov r11d, r10d
mov dword [r15 + 0x98], r10d
xor r11d, r8d
mov r8d, r11d
mov dword [r15 + 0x9c], r11d
xor r8d, ebx
mov eax, r8d
mov dword [r15 + 0xa0], r8d
xor eax, edx
mov edx, eax
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
mov dword [r15 + 0xa4], edx
movzx esi, byte [rcx + r13 + 0x3d0db0]
shl esi, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x3d0db0]
xor esi, eax
movzx eax, dl
shl esi, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor esi, eax
mov eax, edx
shl esi, 8
shr rax, 0x18
movzx eax, byte [rax + r13 + 0x3d0db0]
xor esi, eax
xor esi, edi
xor esi, dword [0x1403d2fc8]
mov ebx, esi
mov dword [r15 + 0xa8], esi
xor ebx, r9d
mov r9d, ebx
mov dword [r15 + 0xac], ebx
xor r9d, r10d
mov r10d, r9d
mov dword [r15 + 0xb0], r9d
xor r10d, r11d
mov r11d, r10d
mov dword [r15 + 0xb4], r10d
xor r11d, r8d
mov eax, r11d
mov dword [r15 + 0xb8], r11d
xor eax, edx
mov r8d, eax
shr eax, 0x10
movzx ecx, al
mov eax, r8d
shr eax, 8
mov dword [r15 + 0xbc], r8d
movzx edx, byte [rcx + r13 + 0x3d0db0]
shl edx, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x3d0db0]
xor edx, eax
movzx eax, r8b
shl edx, 8
movzx eax, byte [rax + r13 + 0x3d0db0]
xor edx, eax
mov eax, r8d
shl edx, 8
shr rax, 0x18
movzx eax, byte [rax + r13 + 0x3d0db0]
xor edx, eax
lea rax, [r15 + 0xc0]
xor edx, esi
xor edx, dword [0x1403d2fcc]
mov dword [rax], edx
xor edx, ebx
mov dword [r15 + 0xc4], edx
xor edx, r9d
mov dword [r15 + 0xc8], edx
xor edx, r10d
mov dword [r15 + 0xcc], edx
xor edx, r11d
mov dword [r15 + 0xd0], edx
xor edx, r8d
mov dword [r15 + 0xd4], edx
jmp 0x1400cf8dc
mov r9d, dword [r15]
lea rbp, [0x1403d2fb8]
lea r12, [0x1403d2fe0]
nop word [rax + rax]
mov r8d, dword [rax + 0xc]
mov esi, dword [rax + 4]
mov ecx, r8d
mov r10d, dword [rax + 8]
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr ecx, 8
movzx ebx, byte [rdx + r13 + 0x3d0db0]
movzx edx, cl
shl ebx, 8
movzx ecx, byte [rdx + r13 + 0x3d0db0]
xor ebx, ecx
movzx ecx, r8b
shl ebx, 8
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor ebx, ecx
mov ecx, r8d
shr rcx, 0x18
shl ebx, 8
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor ebx, ecx
xor ebx, dword [rbp - 8]
xor ebx, r9d
xor esi, ebx
mov dword [rax + 0x10], ebx
xor r10d, esi
mov dword [rax + 0x14], esi
xor r8d, r10d
mov dword [rax + 0x18], r10d
mov ecx, r8d
mov r9d, r8d
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr ecx, 8
mov dword [rax + 0x1c], r9d
movzx r11d, byte [rdx + r13 + 0x3d0db0]
movzx edx, cl
shl r11d, 8
movzx ecx, byte [rdx + r13 + 0x3d0db0]
xor r11d, ecx
movzx ecx, r8b
shl r11d, 8
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor r11d, ecx
mov ecx, r8d
shr rcx, 0x18
shl r11d, 8
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor r11d, ecx
xor r11d, dword [rbp - 4]
xor r11d, ebx
xor esi, r11d
mov dword [rax + 0x20], r11d
mov edi, esi
mov dword [rax + 0x24], esi
xor edi, r10d
mov ecx, edi
mov dword [rax + 0x28], edi
xor ecx, r8d
mov r8d, ecx
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr ecx, 8
mov dword [rax + 0x2c], r8d
movzx r10d, byte [rdx + r13 + 0x3d0db0]
movzx edx, cl
shl r10d, 8
movzx ecx, byte [rdx + r13 + 0x3d0db0]
xor r10d, ecx
movzx ecx, r8b
shl r10d, 8
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor r10d, ecx
mov ecx, r8d
shr rcx, 0x18
shl r10d, 8
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor r10d, ecx
xor r10d, r11d
xor r10d, dword [rbp]
xor esi, r10d
mov dword [rax + 0x30], r10d
xor edi, esi
mov dword [rax + 0x34], esi
xor r8d, edi
mov dword [rax + 0x38], edi
mov ecx, r8d
mov r9d, r8d
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr ecx, 8
mov dword [rax + 0x3c], r9d
movzx ebx, byte [rdx + r13 + 0x3d0db0]
movzx edx, cl
shl ebx, 8
movzx ecx, byte [rdx + r13 + 0x3d0db0]
xor ebx, ecx
movzx ecx, r8b
shl ebx, 8
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor ebx, ecx
mov ecx, r8d
shr rcx, 0x18
shl ebx, 8
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor ebx, ecx
xor ebx, dword [rbp + 4]
xor ebx, r10d
mov r10d, ebx
mov dword [rax + 0x40], ebx
xor r10d, esi
mov r11d, r10d
mov dword [rax + 0x44], r10d
xor r11d, edi
xor r9d, r11d
mov dword [rax + 0x48], r11d
mov r8d, r9d
mov ecx, r9d
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr ecx, 8
mov dword [rax + 0x4c], r8d
movzx r9d, byte [rdx + r13 + 0x3d0db0]
movzx edx, cl
shl r9d, 8
movzx ecx, byte [rdx + r13 + 0x3d0db0]
xor r9d, ecx
movzx ecx, r8b
shl r9d, 8
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor r9d, ecx
mov ecx, r8d
shr rcx, 0x18
shl r9d, 8
movzx ecx, byte [rcx + r13 + 0x3d0db0]
xor r9d, ecx
xor r9d, dword [rbp + 8]
add rbp, 0x14
xor r9d, ebx
mov ecx, r9d
mov dword [rax + 0x50], r9d
xor ecx, r10d
mov dword [rax + 0x54], ecx
xor ecx, r11d
mov dword [rax + 0x58], ecx
xor ecx, r8d
mov dword [rax + 0x5c], ecx
add rax, 0x50
cmp rbp, r12
jl 0x1400cf670
mov r12d, 1
cmp dword [0x1403d2fdc], r14d
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
jne 0x1400cf954
nop
movzx ecx, byte [r14 + r13 + 0x3d0db0]
lea rdx, [rcx*4]
mov ecx, dword [rdx + r13 + 0x3d1fb0]
mov dword [r13 + r14*4 + 0x3d2fe0], ecx
mov ecx, dword [rdx + r13 + 0x3d23b0]
mov dword [r13 + r14*4 + 0x3d33e0], ecx
mov ecx, dword [rdx + r13 + 0x3d27b0]
mov dword [r13 + r14*4 + 0x3d37e0], ecx
mov ecx, dword [rdx + r13 + 0x3d2bb0]
mov dword [r13 + r14*4 + 0x3d3be0], ecx
inc r14
cmp r14, 0x100
jl 0x1400cf8f0
mov dword [0x1403d2fdc], r12d
mov ecx, dword [rax]
lea r11, [r15 + 0x100]
mov r14, qword [rsp + 0x20]
mov dword [r11], ecx
mov ecx, dword [rax + 4]
mov dword [r11 + 4], ecx
mov ecx, dword [rax + 8]
mov dword [r11 + 8], ecx
mov ecx, dword [rax + 0xc]
add rax, 0x10
mov dword [r11 + 0xc], ecx
add r11, 0x10
cmp dword [r15 + 0x200], 1
jle 0x1400cfabb
mov r10d, dword [rax - 0x20]
inc r12d
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r13 + r8*4 + 0x3d2fe0]
xor r9d, dword [r13 + rdx*4 + 0x3d33e0]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r13 + rdx*4 + 0x3d37e0]
xor r9d, dword [r13 + rcx*4 + 0x3d3be0]
mov dword [r11], r9d
mov r10d, dword [rax - 0x1c]
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r13 + r8*4 + 0x3d2fe0]
xor r9d, dword [r13 + rdx*4 + 0x3d33e0]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r13 + rdx*4 + 0x3d37e0]
xor r9d, dword [r13 + rcx*4 + 0x3d3be0]
mov dword [r11 + 4], r9d
mov r10d, dword [rax - 0x18]
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r13 + r8*4 + 0x3d2fe0]
xor r9d, dword [r13 + rdx*4 + 0x3d33e0]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r13 + rdx*4 + 0x3d37e0]
xor r9d, dword [r13 + rcx*4 + 0x3d3be0]
mov dword [r11 + 8], r9d
mov r10d, dword [rax - 0x14]
add rax, 0xfffffffffffffff0
mov ecx, r10d
mov r8d, r10d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr ecx, 8
shr r8, 0x18
mov r9d, dword [r13 + r8*4 + 0x3d2fe0]
xor r9d, dword [r13 + rdx*4 + 0x3d33e0]
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [r13 + rdx*4 + 0x3d37e0]
xor r9d, dword [r13 + rcx*4 + 0x3d3be0]
mov dword [r11 + 0xc], r9d
add r11, 0x10
cmp r12d, dword [r15 + 0x200]
jl 0x1400cf990
mov ecx, dword [rax - 0x20]
mov r13, qword [rsp + 0x60]
mov dword [r11], ecx
mov ecx, dword [rax - 0x1c]
mov dword [r11 + 4], ecx
mov ecx, dword [rax - 0x18]
mov dword [r11 + 8], ecx
mov ecx, dword [rax - 0x14]
mov dword [r11 + 0xc], ecx
add rsp, 0x28
pop r15
pop r12
pop rdi
pop rbx
ret