Function at 0x1800331f0
Capabilities:
Encode data using base64
Encode data using xor
Write file on windows

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov r12d, edx
mov rdx, rcx
mov r13d, r8d
lea eax, [r12 + r13]
test r9b, r9b
je 0x18003322d
cmp eax, 0x800
ja 0x180033234
lea rcx, [0x18003c0a1]
jmp 0x18003324d
cmp eax, 0x3e8
jbe 0x180033246
mov eax, 0xffffffff
add rsp, 0x160
pop r13
pop r12
pop rbp
ret
lea rcx, [0x18003bcb9]
mov r8, r12
add rcx, r13
call fcn.180008d30
mov qword [rsp + 0x188], rbx
lea rdx, [0x18003a3e0]
mov qword [rsp + 0x158], rsi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x150], 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 + 0x148], r14
mov dword [rsp + 0x60], 7
call fcn.18001bef0
mov edx, dword [rsp + 0x50]
and edx, 0x1fffffff
je 0x18003342c
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx]
cmp eax, 0x4e534942
jne 0x1800332d4
mov byte [rsp + 0x40], 1
jmp 0x1800332e3
and eax, 0x80808080
cmp eax, 0x80808080
sete byte [rsp + 0x40]
cmp edx, 3
jb 0x180033437
mov eax, dword [rsp + 0x60]
cmp eax, 6
jne 0x180033316
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180033366
sub rax, 4
lea rcx, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x78], rax
call fcn.18000af20
jmp 0x180033361
add eax, 0xfffffff9
cmp eax, 1
ja 0x180033366
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x180033366
mov ebx, edi
cmp dword [rsp + 0x70], ebx
jbe 0x180033350
mov eax, ebx
lea rcx, [rax + rax*4]
lea rcx, [rdx + rcx*8]
xor edx, edx
call fcn.180012b50
inc ebx
cmp ebx, dword [rsp + 0x70]
jae 0x180033350
mov rdx, qword [rsp + 0x78]
jmp 0x180033330
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.18000af20
mov qword [rsp + 0x78], rdi
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x70], edi
mov eax, dword [rcx]
cmp eax, 0x4e534942
je 0x1800333fe
and eax, 0x80808080
cmp eax, 0x80808080
jne 0x180033415
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 0x1800333fe
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
add r8b, 0x3d
mov byte [r11 - 1], r8b
cmp r9d, r10d
jb 0x1800333b3
mov r8d, 4
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.18001a340
jmp 0x180033437
xor r9d, r9d
lea rdx, [rsp + 0x48]
xor r8d, r8d
lea rcx, [rsp + 0x58]
call fcn.18001a640
jmp 0x180033437
movzx eax, byte [reloc.WS2_32.dll_accept]
mov byte [rsp + 0x40], al
movabs rax, 0x31aa7223d26a408
movabs r14, 0x549a2d1f135dad7a
mov qword [rbp - 0x48], rax
mov r10, rdi
movabs rax, 0x50b56cba5c1d944a
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 0x180033470
mov r9d, r12d
mov qword [rsp + 0x140], r15
mov r8d, r13d
lea rdx, [rbp - 0x48]
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [rsp + 0x50]
lea esi, [r12 + r12]
and eax, 0x1fffffff
cmp esi, eax
jbe 0x1800334f7
sub esi, eax
lea rcx, [rsp + 0x48]
mov r8d, esi
xor edx, edx
call fcn.1800107b0
jmp 0x1800335f3
je 0x1800335f3
cmp esi, 0x1fffffff
mov r15d, edi
cmovbe r15d, esi
test r15d, r15d
je 0x18003356b
cmp qword [rsp + 0x48], rdi
je 0x180033575
lea rcx, [rsp + 0x48]
call fcn.18001c540
mov edx, r15d
lea rcx, [rsp + 0x48]
mov ebx, eax
call fcn.18002dcf0
lea rcx, [rsp + 0x48]
call fcn.18001c540
mov r15d, eax
cmp ebx, eax
je 0x1800335c6
mov rbx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r9d, [r15 + 8]
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x48], rax
jmp 0x1800335c6
mov rbx, qword [rsp + 0x48]
test rbx, rbx
jne 0x1800335ad
mov edx, r15d
lea rcx, [rsp + 0x48]
call fcn.18002dcf0
lea rcx, [rsp + 0x48]
call fcn.18001c540
lea ebx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
jmp 0x1800335c6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
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.18002dcf0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800335f3
mov byte [rsi + rcx], dil
cmp dword [rsp + 0x50], edi
lea rbx, [rsp + 0x50]
mov rcx, qword [rbp + 0x80]
mov r9b, 1
cmovne rbx, qword [rsp + 0x48]
mov r8d, r12d
mov rdx, rbx
call fcn.180007450
movsxd rcx, eax
lea r8, [rsp + 0x58]
movabs rax, 0x5b2ef26b027cfb69
lea rdx, [rbp - 0x58]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov byte [rcx + rbx], dil
movabs rbx, 0x5b2e97076512942d
xor rax, rbx
mov ecx, 0x3e9
mov qword [rbp - 0x58], rax
call fcn.18000a220
mov r11, rax
cmp byte [rbp + 0x98], dil
je 0x1800336ca
movabs rax, 0x3e60e46c067df86f
mov r10, rdi
mov qword [rbp - 0x38], rax
movabs rax, 0x50b56cba5c1d943d
mov qword [rbp - 0x30], rax
nop
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 0x180033680
lea rdx, [rbp - 0x38]
jmp 0x1800336e7
movabs rax, 0x5b2ee46c067df86f
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.18000a1b0
mov r8, rax
lea rdx, [rbp]
mov ecx, 0x3e9
call fcn.18000a220
mov rbx, rax
mov eax, dword [rax + 0x18]
test eax, eax
jne 0x18003383c
lea ecx, [rax + 1]
mov dword [rbp - 0x10], edi
lea edx, [rcx + rcx*4]
mov dword [rbx + 0x18], ecx
shl edx, 3
lea rcx, [rbx + 0x20]
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x28], rdi
mov dword [rbp - 0x20], 4
mov qword [rbp - 8], r13
call fcn.18000af20
mov eax, dword [rbx + 0x18]
movups xmm0, xmmword [rbp - 0x28]
dec eax
mov dword [rbp - 0x68], edi
movups xmm1, xmmword [rbp - 0x18]
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x70], rdi
lea rcx, [rax + rax*4]
mov qword [rbp - 0x80], rdi
mov rax, qword [rbx + 0x20]
mov dword [rbp - 0x78], 6
movups xmmword [rax + rcx*8], xmm0
movsd xmm0, qword [rbp - 8]
movups xmmword [rax + rcx*8 + 0x10], xmm1
movsd qword [rax + rcx*8 + 0x20], xmm0
cmp dword [rsp + 0x50], edi
je 0x18003379a
mov rsi, qword [rsp + 0x48]
test rsi, rsi
jne 0x18003379f
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.18000af20
jmp 0x1800337f7
lea rsi, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rbp - 0x60]
mov r14d, eax
test rcx, rcx
je 0x1800337bc
sub rcx, 4
mov qword [rbp - 0x60], rcx
lea edx, [r14 + 5]
lea rcx, [rbp - 0x60]
call fcn.18000af20
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 0x1800337f3
mov r8, r14
mov rdx, rsi
mov rcx, rax
call fcn.180008d30
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.18000af20
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 0x1800338bf
cmp eax, 1
ja 0x180033848
mov ebx, 0x20
jmp 0x180033850
mov rbx, qword [rbx + 0x20]
add rbx, 0x48
cmp dword [rsp + 0x50], edi
je 0x18003386c
mov rsi, qword [rsp + 0x48]
test rsi, rsi
jne 0x180033871
xor edx, edx
mov rcx, rbx
call fcn.18000af20
jmp 0x1800338bf
lea rsi, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rbx]
mov r14d, eax
test rcx, rcx
je 0x18003388c
add rcx, 0xfffffffffffffffc
mov qword [rbx], rcx
lea edx, [r14 + 5]
mov rcx, rbx
call fcn.18000af20
mov rcx, qword [rbx]
mov dword [rcx], r14d
mov rcx, qword [rbx]
add rcx, 4
mov qword [rbx], rcx
test r14d, r14d
je 0x1800338b8
mov r8, r14
mov rdx, rsi
call fcn.180008d30
mov rax, qword [rbx]
mov byte [r14 + rax], dil
mov rbx, qword [rsp + 0x48]
mov r15, qword [rsp + 0x140]
mov r14, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x158]
test rbx, rbx
jne 0x180033913
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.18002dcf0
lea rcx, [rsp + 0x48]
call fcn.18001c540
lea ebx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x180033927
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
cmp byte [rsp + 0x40], dil
jne 0x180033958
cmp byte [reloc.WS2_32.dll_accept], dil
jne 0x180033958
xor r9d, r9d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
lea r8d, [r9 + 1]
call fcn.18000a370
jmp 0x18003396a
mov r8b, 0xc3
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.180032680
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 0x1800339a3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1800339a9
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800339e7
mov r8d, dword [rsp + 0x50]
lea r9, [rbp + 0x98]
mov rdx, qword [rsp + 0x48]
and r8d, 0x1fffffff
mov rcx, rax
mov dword [rbp + 0x98], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
jne 0x180033a28
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.18002dcf0
lea rcx, [rsp + 0x48]
call fcn.18001c540
lea ebx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
jmp 0x180033a41
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0x48], rdi
mov rax, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x188]
test rax, rax
je 0x180033a6d
sub rax, 4
lea rcx, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x68], rax
call fcn.18000af20
mov qword [rsp + 0x68], rdi
mov eax, dword [rsp + 0x60]
cmp eax, 6
jne 0x180033a97
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180033adc
sub rax, 4
lea rcx, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x78], rax
call fcn.18000af20
jmp 0x180033adc
add eax, 0xfffffff9
cmp eax, 1
ja 0x180033adc
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x180033adc
cmp dword [rsp + 0x70], edi
jbe 0x180033ad0
nop
mov eax, edi
lea rcx, [rax + rax*4]
lea rcx, [rdx + rcx*8]
xor edx, edx
call fcn.180012b50
inc edi
cmp edi, dword [rsp + 0x70]
jae 0x180033ad0
mov rdx, qword [rsp + 0x78]
jmp 0x180033ab0
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.18000af20
mov rdi, qword [rsp + 0x150]
xor eax, eax
add rsp, 0x160
pop r13
pop r12
pop rbp
ret