Function at 0x18005c4d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x40]
mov eax, 0x140
call fcn.180012ac0
sub rsp, rax
mov rax, qword [0x180135070]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x90]
mov rdi, qword [rbp + 0xa0]
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x68], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp - 0x70], rax
mov eax, 0x200
mov qword [rbp - 0x80], rdi
cmp edx, eax
mov esi, ecx
mov dword [rsp + 0x30], ecx
cmovl edx, eax
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x60], 2
lea eax, [rdx + 0x3f]
cdq
and edx, 0x3f
lea ebx, [rdx + rax]
mov eax, reloc.WSOCK32.dll_sendto
sar ebx, 6
shl ebx, 6
cmp r9d, 0x14
cmovl r8, rcx
cmp r9d, eax
cmovg r9d, eax
mov qword [rbp - 0x78], r8
mov dword [rsp + 0x48], r9d
test r8, r8
je 0x18005c588
cmp r9d, eax
jne 0x18005c588
mov rax, qword [r8]
mov qword [rbp - 0x38], rax
mov rax, qword [r8 + 8]
mov qword [rbp - 0x30], rax
mov eax, dword [r8 + 0x10]
mov dword [rbp - 0x28], eax
call fcn.18005aab0
mov r12, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18005cb4a
call fcn.180062160
mov qword [rsp + 0x58], rax
test rax, rax
je 0x18005cb28
mov qword [rsp + 0x138], r13
mov rcx, r12
mov qword [rsp + 0x130], r14
mov qword [rsp + 0x128], r15
call fcn.18005ab70
mov rcx, r12
call fcn.18005ac60
mov rcx, r12
mov rsi, rax
call fcn.18005ac60
mov rcx, r12
mov qword [rsp + 0x50], rax
call fcn.18005ac60
mov rcx, r12
mov r14, rax
call fcn.18005ac60
mov rcx, r12
mov qword [rsp + 0x68], rax
call fcn.18005ac60
mov rcx, r12
mov r15, rax
call fcn.18005ac60
mov rcx, r12
mov qword [rbp - 0x60], rax
call fcn.18005ac60
mov rcx, r12
mov qword [rsp + 0x70], rax
call fcn.18005ac60
dec ebx
mov r13, rax
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x44], ebx
call fcn.1800528f0
mov r8d, ebx
mov rcx, r13
mov rdx, rax
call fcn.180065840
test eax, eax
je 0x18005cb0c
nop word [rax + rax]
mov r12, qword [rsp + 0x68]
xor r13d, r13d
nop dword [rax + rax]
mov ebx, dword [rsp + 0x40]
xor edx, edx
mov rcx, rdi
mov r8d, ebx
call fcn.180065b30
inc ebx
mov dword [rsp + 0x40], ebx
test eax, eax
je 0x18005cc41
cmp dword [rsp + 0x48], r13d
jne 0x18005c6ab
lea rcx, [rbp - 0x38]
mov edx, reloc.WSOCK32.dll_sendto
call fcn.1800440b0
mov ebx, 1
jmp 0x18005c6b3
mov ebx, r13d
mov dword [rsp + 0x48], r13d
mov eax, dword [rbp - 0x28]
mov rdx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x30]
mov dword [rbp + 8], eax
mov dword [rbp - 0x10], eax
mov qword [rbp - 8], rdx
mov eax, reloc.WSOCK32.dll_send
mov qword [rbp], rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rcx
nop dword [rax]
inc byte [rbp + rax - 8]
jne 0x18005c6eb
dec rax
jns 0x18005c6e0
call fcn.18005f8f0
xor r9d, r9d
lea r8, [rbp - 0x50]
lea rcx, [rbp - 0x38]
lea edx, [r9 + 0x14]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.18005f780
call fcn.18005f8f0
xor r9d, r9d
lea r8, [rbp - 0x20]
lea rcx, [rbp - 8]
lea edx, [r9 + 0x14]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.18005f780
mov r11, r13
nop word [rax + rax]
movzx eax, byte [rbp + r11 - 0x20]
add r11, 5
xor byte [rbp + r11 - 0x55], al
movzx eax, byte [rbp + r11 - 0x24]
xor byte [rbp + r11 - 0x54], al
movzx eax, byte [rbp + r11 - 0x23]
xor byte [rbp + r11 - 0x53], al
movzx eax, byte [rbp + r11 - 0x22]
xor byte [rbp + r11 - 0x52], al
movzx eax, byte [rbp + r11 - 0x21]
xor byte [rbp + r11 - 0x51], al
cmp r11, 0x14
jl 0x18005c740
or byte [rbp - 0x50], 0x80
or byte [rbp - 0x3d], 1
lea rcx, [rbp - 0x50]
mov r8, r12
mov edx, reloc.WSOCK32.dll_sendto
call fcn.180052f10
test rax, rax
je 0x18005cc41
mov r9d, ebx
mov rbx, qword [rsp + 0x38]
mov edx, gethostbyname
mov rcx, r12
mov r8, rbx
mov qword [rsp + 0x20], rdi
call fcn.180065c90
test eax, eax
jg 0x18005c7d5
je 0x18005c670
mov r12, rbx
mov esi, r13d
jmp 0x18005cb10
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 2]
call fcn.180065b30
test eax, eax
je 0x18005c7ca
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 3]
call fcn.180065b30
test eax, eax
je 0x18005c7ca
mov eax, 0x66666667
imul dword [rsp + 0x44]
mov r12d, edx
sar r12d, 6
mov eax, r12d
shr eax, 0x1f
add r12d, eax
test r13d, r13d
je 0x18005c82e
mov r8d, r13d
xor edx, edx
mov rcx, rdi
call fcn.180065b30
test eax, eax
je 0x18005cb07
xor edx, edx
mov rcx, r14
call fcn.180052e80
xor eax, eax
mov edi, eax
test r12d, r12d
js 0x18005c8e3
mov ebx, eax
nop word [rax + rax]
mov eax, reloc.WSOCK32.dll_send
inc byte [rbp + rax - 8]
jne 0x18005c860
dec rax
jns 0x18005c855
call fcn.18005f8f0
xor r9d, r9d
lea r8, [rbp - 0x50]
lea rcx, [rbp - 8]
lea edx, [r9 + 0x14]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.18005f780
lea rcx, [rbp - 0x50]
mov r8, rsi
mov edx, reloc.WSOCK32.dll_sendto
call fcn.180052f10
test rax, rax
je 0x18005cb07
mov r8d, ebx
mov rdx, rsi
mov rcx, rsi
call fcn.180065840
test eax, eax
je 0x18005cb07
mov r8, rsi
mov rdx, r14
mov rcx, r14
call fcn.180060f60
test eax, eax
je 0x18005cb07
inc edi
add ebx, 0xa0
cmp edi, r12d
jle 0x18005c850
mov rbx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x44]
mov rcx, r14
call fcn.1800532e0
test eax, eax
je 0x18005cb07
mov rdx, r14
mov rcx, r15
call fcn.180052d60
test rax, rax
je 0x18005cb07
mov r8, qword [rsp + 0x78]
mov rdx, r15
mov rcx, r15
call fcn.180060f60
test eax, eax
je 0x18005cb07
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call fcn.180065660
test eax, eax
je 0x18005cb07
mov rdi, qword [rbp - 0x60]
mov r9, rsi
mov r8, r15
xor ecx, ecx
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call fcn.180061770
test eax, eax
je 0x18005cb07
call fcn.1800528f0
mov rdx, rdi
mov rcx, rsi
mov r8, rax
call fcn.180060e90
test eax, eax
je 0x18005cb07
mov rdi, qword [rsp + 0x70]
mov r8, rsi
mov rdx, r15
mov rcx, rdi
call fcn.180060e90
test eax, eax
je 0x18005cb07
mov rdx, qword [rsp + 0x78]
mov rcx, rdi
call fcn.180053130
mov rdi, qword [rbp - 0x80]
test eax, eax
js 0x18005c9ca
mov rcx, qword [rsp + 0x70]
mov r9d, 1
mov r8, rbx
lea edx, [r9 + 0x31]
mov qword [rsp + 0x20], rdi
call fcn.180065c90
test eax, eax
jg 0x18005c9df
jne 0x18005cb07
inc r13d
cmp r13d, 0x1000
jl 0x18005c814
jmp 0x18005c660
mov edx, 2
mov rcx, rdi
lea r8d, [rdx - 1]
call fcn.180065b30
test eax, eax
je 0x18005cb07
call fcn.1800528f0
mov r12, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov rdx, r12
mov rcx, r14
mov r8, rax
call fcn.180060e90
test eax, eax
je 0x18005cb07
mov r15, qword [rsp + 0x68]
mov r8, r14
xor edx, edx
mov rcx, rsi
mov r9, r15
mov qword [rsp + 0x20], rbx
call fcn.180061770
test eax, eax
je 0x18005cb07
mov edx, 2
mov rcx, r14
call fcn.180052e80
test eax, eax
je 0x18005cb07
mov rcx, qword [rsp + 0x58]
mov r8, rbx
mov rdx, r12
call fcn.180061ed0
test eax, eax
je 0x18005cb07
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov qword [rsp + 0x28], rax
mov r8, rsi
mov rdx, r14
mov qword [rsp + 0x20], rbx
call fcn.18005bae0
test eax, eax
je 0x18005cb07
nop word [rax + rax]
mov rcx, qword [rsp + 0x50]
cmp dword [rcx + 8], 1
jne 0x18005cb66
mov rax, qword [rcx]
cmp qword [rax], 1
jne 0x18005cb66
cmp dword [rcx + 0x10], 0
jne 0x18005cb66
call fcn.1800528f0
mov rdx, r14
mov rcx, r14
mov r8, rax
call fcn.180060f60
test eax, eax
je 0x18005cb07
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
inc dword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9, r12
mov r8, rsi
mov rdx, r14
mov qword [rsp + 0x20], rbx
call fcn.18005bae0
test eax, eax
jne 0x18005caa0
mov r12, qword [rsp + 0x38]
mov esi, dword [rsp + 0x30]
mov r14, qword [rsp + 0x130]
mov r13, qword [rsp + 0x138]
mov r15, qword [rsp + 0x128]
mov rcx, r12
call fcn.18005abe0
mov rcx, r12
call fcn.18005ab30
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x18005cb4a
mov rcx, rax
call fcn.180061e80
mov eax, esi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.180005860
add rsp, 0x140
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edx, 3
mov rcx, rdi
lea r8d, [rdx - 2]
call fcn.180065b30
test eax, eax
je 0x18005cb07
mov rbx, qword [rbp - 0x58]
mov esi, 1
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18005cb92
call fcn.180052ac0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18005cba0
call fcn.180052ac0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18005cbae
call fcn.180052ac0
mov rcx, r12
call fcn.1800534e0
mov rcx, r15
mov qword [rbx + 0x10], rax
call fcn.1800534e0
mov rcx, qword [rsp + 0x50]
mov qword [rbx + 0x18], rax
call fcn.1800534e0
cmp qword [rbx + 0x10], 0
mov qword [rbx + 0x20], rax
je 0x18005cc35
cmp qword [rbx + 0x18], 0
je 0x18005cc35
test rax, rax
je 0x18005cc35
cmp dword [rsp + 0x40], esi
jle 0x18005cc0b
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x18005cc0b
mov rax, qword [rbp - 0x38]
mov qword [rcx], rax
mov rax, qword [rbp - 0x30]
mov qword [rcx + 8], rax
mov eax, dword [rbp - 0x28]
mov dword [rcx + 0x10], eax
mov rax, qword [rbp - 0x68]
test rax, rax
je 0x18005cc17
mov dword [rax], r13d
mov rcx, qword [rbp - 0x70]
mov r12, qword [rsp + 0x38]
test rcx, rcx
je 0x18005cb10
mov rax, qword [rsp + 0x60]
mov dword [rcx], eax
jmp 0x18005cb10
mov r12, qword [rsp + 0x38]
xor esi, esi
jmp 0x18005cb10
mov r12, qword [rsp + 0x38]
mov esi, r13d
jmp 0x18005cb10