Function at 0x180032bc0
Capabilities:
Encode data using xor

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov r12d, edx
mov rdx, rcx
mov r13d, r8d
lea eax, [r12 + r13]
test r9b, r9b
je 0x180032bfd
cmp eax, 0x800
ja 0x180032c04
lea rcx, [0x18003c031]
jmp 0x180032c1d
cmp eax, 0x3e8
jbe 0x180032c16
mov eax, 0xffffffff
add rsp, 0x140
pop r13
pop r12
pop rbp
ret
lea rcx, [0x18003bc49]
mov r8, r12
add rcx, r13
call fcn.180008d80
mov qword [rsp + 0x168], rbx
lea rdx, [0x18003a3e0]
mov qword [rsp + 0x138], rsi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x130], rdi
xor edi, edi
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x128], r14
mov dword [rsp + 0x60], 7
call fcn.18001bf10
mov edx, dword [rsp + 0x50]
and edx, 0x1fffffff
je 0x180032dfc
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
cmp eax, 0x4e534942
jne 0x180032ca4
mov byte [rsp + 0x40], 1
jmp 0x180032cb3
and eax, 0x80808080
cmp eax, 0x80808080
sete byte [rsp + 0x40]
cmp edx, 3
jb 0x180032e07
mov eax, dword [rsp + 0x60]
cmp eax, 6
jne 0x180032ce6
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180032d36
sub rax, 4
lea rcx, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x78], rax
call fcn.18000af70
jmp 0x180032d31
add eax, 0xfffffff9
cmp eax, 1
ja 0x180032d36
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x180032d36
mov ebx, edi
cmp dword [rsp + 0x70], ebx
jbe 0x180032d20
mov eax, ebx
lea rcx, [rax + rax*4]
lea rcx, [rdx + rcx*8]
xor edx, edx
call fcn.180012b70
inc ebx
cmp ebx, dword [rsp + 0x70]
jae 0x180032d20
mov rdx, qword [rsp + 0x78]
jmp 0x180032d00
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.18000af70
mov qword [rsp + 0x78], rdi
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x70], edi
mov eax, dword [rcx]
cmp eax, 0x4e534942
je 0x180032dce
and eax, 0x80808080
cmp eax, 0x80808080
jne 0x180032de5
mov r10d, dword [rsp + 0x50]
lea r11, [rcx + 4]
and r10d, 0x1fffffff
mov r9d, edi
sub r10d, 4
mov eax, r10d
movzx ecx, r10b
shr eax, 8
movzx ebx, al
imul ebx, ecx
test r10d, r10d
je 0x180032dce
movzx eax, r9b
movzx ecx, bl
and al, 0x7e
lea r11, [r11 + 1]
movzx r8d, al
imul r8d, ecx
movzx ecx, byte [r11 - 1]
movzx eax, cl
add r8b, r9b
sub al, r8b
add cl, r8b
test r9b, 1
movzx r8d, cl
movzx eax, al
cmove r8d, eax
inc r9d
xor r8b, bl
not r8b
sub r8b, 0x61
mov byte [r11 - 1], r8b
cmp r9d, r10d
jb 0x180032d83
mov r8d, 4
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.18001a360
jmp 0x180032e07
xor r9d, r9d
lea rdx, [rsp + 0x48]
xor r8d, r8d
lea rcx, [rsp + 0x58]
call fcn.18001a660
jmp 0x180032e07
movzx eax, byte [reloc.WS2_32.dll_accept]
mov byte [rsp + 0x40], al
movabs rax, 0x6f53dec91563e65
movabs r14, 0xf427de46c6d3be37
mov qword [rbp - 0x48], rax
mov r10, rdi
movabs rax, 0x39017b0437272588
mov r11, r14
mov qword [rbp - 0x40], rax
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbp + r10*8 - 0x48]
mov r9d, r10d
neg r9d
mov r8, r11
and r9d, 0xf
rol r8, 3
not r8
rol r11, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rbp + r10*8 - 0x48], rdx
inc r10
cmp r10, 2
jb 0x180032e40
mov r9d, r12d
mov qword [rsp + 0x120], r15
mov r8d, r13d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x20]
call qword [0x180042260]
mov eax, dword [rsp + 0x50]
lea esi, [r12 + r12]
and eax, 0x1fffffff
cmp esi, eax
jbe 0x180032ec7
sub esi, eax
lea rcx, [rsp + 0x48]
mov r8d, esi
xor edx, edx
call fcn.1800107c0
jmp 0x180032fc3
je 0x180032fc3
cmp esi, 0x1fffffff
mov r15d, edi
cmovbe r15d, esi
test r15d, r15d
je 0x180032f3b
cmp qword [rsp + 0x48], rdi
je 0x180032f45
lea rcx, [rsp + 0x48]
call fcn.18001c570
mov edx, r15d
lea rcx, [rsp + 0x48]
mov ebx, eax
call fcn.18002d6c0
lea rcx, [rsp + 0x48]
call fcn.18001c570
mov r15d, eax
cmp ebx, eax
je 0x180032f96
mov rbx, qword [rsp + 0x48]
call qword [0x180042070]
lea r9d, [r15 + 8]
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [0x1800421c8]
mov qword [rsp + 0x48], rax
jmp 0x180032f96
mov rbx, qword [rsp + 0x48]
test rbx, rbx
jne 0x180032f7d
mov edx, r15d
lea rcx, [rsp + 0x48]
call fcn.18002d6c0
lea rcx, [rsp + 0x48]
call fcn.18001c570
lea ebx, [rax + 8]
call qword [0x180042070]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [0x1800421e8]
mov qword [rsp + 0x48], rax
jmp 0x180032f96
call qword [0x180042070]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x180042108]
mov qword [rsp + 0x48], rdi
mov ecx, dword [rsp + 0x50]
mov edx, esi
mov eax, ecx
xor eax, esi
and eax, 0x1fffffff
xor ecx, eax
mov dword [rsp + 0x50], ecx
lea rcx, [rsp + 0x48]
call fcn.18002d6c0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180032fc3
mov byte [rsi + rcx], dil
cmp dword [rsp + 0x50], edi
lea rbx, [rsp + 0x50]
mov rcx, qword [rbp + 0x60]
mov r9b, 1
cmovne rbx, qword [rsp + 0x48]
mov r8d, r12d
mov rdx, rbx
call fcn.1800074a0
movsxd rcx, eax
lea r8, [rsp + 0x58]
movabs rax, 0x5ec168a5ae0c6104
lea rdx, [rbp - 0x58]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov byte [rcx + rbx], dil
movabs rbx, 0x5ec10dc9c9620e40
xor rax, rbx
mov ecx, 0x3e9
mov qword [rbp - 0x58], rax
call fcn.18000a270
mov r11, rax
cmp byte [rbp + 0x78], dil
je 0x18003309a
movabs rax, 0x3b8f7ea2aa0d6202
mov r10, rdi
mov qword [rbp - 0x38], rax
movabs rax, 0x39017b04372725ff
mov qword [rbp - 0x30], rax
nop dword [rax]
mov rax, qword [rbp + r10*8 - 0x38]
mov r9d, r10d
neg r9d
mov r8, r14
and r9d, 0xf
rol r8, 3
not r8
rol r14, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rbp + r10*8 - 0x38], rdx
inc r10
cmp r10, 2
jb 0x180033050
lea rdx, [rbp - 0x38]
jmp 0x1800330b7
movabs rax, 0x5ec17ea2aa0d6202
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x50]
xor rax, rbx
mov qword [rbp - 0x50], rax
mov r8, r11
mov ecx, 0x3e8
call fcn.18000a200
mov r8, rax
lea rdx, [rbp - 0x20]
mov ecx, 0x3e9
call fcn.18000a270
mov rbx, rax
mov eax, dword [rax + 0x18]
test eax, eax
jne 0x18003320c
lea ecx, [rax + 1]
mov dword [rbp - 0x68], edi
lea edx, [rcx + rcx*4]
mov dword [rbx + 0x18], ecx
shl edx, 3
lea rcx, [rbx + 0x20]
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x80], rdi
mov dword [rbp - 0x78], 4
mov qword [rbp - 0x60], r13
call fcn.18000af70
mov eax, dword [rbx + 0x18]
movups xmm0, xmmword [rbp - 0x80]
dec eax
mov qword [rbp - 0x80], rdi
movups xmm1, xmmword [rbp - 0x70]
mov dword [rbp - 0x68], edi
mov qword [rbp - 0x70], rdi
lea rcx, [rax + rax*4]
mov dword [rbp - 0x78], 6
mov rax, qword [rbx + 0x20]
movups xmmword [rax + rcx*8], xmm0
movsd xmm0, qword [rbp - 0x60]
movups xmmword [rax + rcx*8 + 0x10], xmm1
mov qword [rbp - 0x60], rdi
movsd qword [rax + rcx*8 + 0x20], xmm0
cmp dword [rsp + 0x50], edi
je 0x18003316a
mov rsi, qword [rsp + 0x48]
test rsi, rsi
jne 0x18003316f
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.18000af70
jmp 0x1800331c7
lea rsi, [rsp + 0x50]
mov rcx, rsi
call qword [0x1800420f8]
mov rcx, qword [rbp - 0x60]
mov r14d, eax
test rcx, rcx
je 0x18003318c
sub rcx, 4
mov qword [rbp - 0x60], rcx
lea edx, [r14 + 5]
lea rcx, [rbp - 0x60]
call fcn.18000af70
mov rcx, qword [rbp - 0x60]
mov dword [rcx], r14d
mov rax, qword [rbp - 0x60]
add rax, 4
mov qword [rbp - 0x60], rax
test r14d, r14d
je 0x1800331c3
mov r8, r14
mov rdx, rsi
mov rcx, rax
call fcn.180008d80
mov rax, qword [rbp - 0x60]
mov byte [rax + r14], dil
mov eax, dword [rbx + 0x18]
lea rcx, [rbx + 0x20]
inc eax
mov dword [rbx + 0x18], eax
lea edx, [rax + rax*4]
shl edx, 3
call fcn.18000af70
mov eax, dword [rbx + 0x18]
movups xmm0, xmmword [rbp - 0x80]
dec eax
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 0x20]
movups xmmword [rax + rcx*8], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movsd xmm0, qword [rbp - 0x60]
movsd qword [rax + rcx*8 + 0x20], xmm0
jmp 0x18003328f
cmp eax, 1
ja 0x180033218
mov ebx, 0x20
jmp 0x180033220
mov rbx, qword [rbx + 0x20]
add rbx, 0x48
cmp dword [rsp + 0x50], edi
je 0x18003323c
mov rsi, qword [rsp + 0x48]
test rsi, rsi
jne 0x180033241
xor edx, edx
mov rcx, rbx
call fcn.18000af70
jmp 0x18003328f
lea rsi, [rsp + 0x50]
mov rcx, rsi
call qword [0x1800420f8]
mov rcx, qword [rbx]
mov r14d, eax
test rcx, rcx
je 0x18003325c
add rcx, 0xfffffffffffffffc
mov qword [rbx], rcx
lea edx, [r14 + 5]
mov rcx, rbx
call fcn.18000af70
mov rcx, qword [rbx]
mov dword [rcx], r14d
mov rcx, qword [rbx]
add rcx, 4
mov qword [rbx], rcx
test r14d, r14d
je 0x180033288
mov r8, r14
mov rdx, rsi
call fcn.180008d80
mov rax, qword [rbx]
mov byte [r14 + rax], dil
mov rbx, qword [rsp + 0x48]
mov r15, qword [rsp + 0x120]
mov r14, qword [rsp + 0x128]
mov rsi, qword [rsp + 0x138]
test rbx, rbx
jne 0x1800332e3
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.18002d6c0
lea rcx, [rsp + 0x48]
call fcn.18001c570
lea ebx, [rax + 8]
call qword [0x180042070]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [0x1800421e8]
jmp 0x1800332f7
call qword [0x180042070]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x180042108]
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
cmp byte [rsp + 0x40], dil
jne 0x180033328
cmp byte [reloc.WS2_32.dll_accept], dil
jne 0x180033328
xor r9d, r9d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
lea r8d, [r9 + 1]
call fcn.18000a3c0
jmp 0x18003333a
mov r8b, 0x61
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.180032050
xor r9d, r9d
mov qword [rsp + 0x30], rdi
cmp byte [0x18003a3e1], dil
lea rcx, [0x18003a3e0]
mov dword [rsp + 0x28], 0x8000080
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
jne 0x180033373
call qword [0x180042228]
jmp 0x180033379
call qword [0x180042230]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800333b1
mov r8d, dword [rsp + 0x50]
lea r9, [rbp + 0x78]
mov rdx, qword [rsp + 0x48]
and r8d, 0x1fffffff
mov rcx, rax
mov dword [rbp + 0x78], edi
mov qword [rsp + 0x20], rdi
call qword [0x1800421e0]
mov rcx, rbx
call qword [0x1800421d8]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
jne 0x1800333f2
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.18002d6c0
lea rcx, [rsp + 0x48]
call fcn.18001c570
lea ebx, [rax + 8]
call qword [0x180042070]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [0x1800421e8]
mov qword [rsp + 0x48], rax
jmp 0x18003340b
call qword [0x180042070]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x180042108]
mov qword [rsp + 0x48], rdi
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x168]
test rax, rax
je 0x180033437
sub rax, 4
lea rcx, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x68], rax
call fcn.18000af70
mov qword [rsp + 0x68], rdi
mov eax, dword [rsp + 0x60]
cmp eax, 6
jne 0x180033461
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1800334ac
sub rax, 4
lea rcx, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x78], rax
call fcn.18000af70
jmp 0x1800334ac
add eax, 0xfffffff9
cmp eax, 1
ja 0x1800334ac
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1800334ac
cmp dword [rsp + 0x70], edi
jbe 0x1800334a0
nop dword [rax]
mov eax, edi
lea rcx, [rax + rax*4]
lea rcx, [rdx + rcx*8]
xor edx, edx
call fcn.180012b70
inc edi
cmp edi, dword [rsp + 0x70]
jae 0x1800334a0
mov rdx, qword [rsp + 0x78]
jmp 0x180033480
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.18000af70
mov rdi, qword [rsp + 0x130]
xor eax, eax
add rsp, 0x140
pop r13
pop r12
pop rbp
ret