Function at 0x1400495e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov r15d, r9d
mov r14d, r8d
mov r13, rdx
mov rbx, rcx
xor r12d, r12d
mov dword [rsp + 0x24], r12d
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r12b
mov dword [rsp + 0x24], 1
mov ebp, r12d
mov esi, r12d
test r8d, r8d
je 0x140049903
mov ecx, r12d
mov rdi, qword [rsp + 0x90]
nop word [rax + rax]
dec r14d
movzx eax, byte [r13]
mov byte [rsp + rcx + 0x80], al
inc esi
inc rcx
lea r13, [r13 + 1]
movzx r9d, byte [rsp + 0x82]
movzx edx, byte [rsp + 0x81]
movzx r8d, byte [rsp + 0x80]
cmp rcx, 3
jne 0x140049786
movzx eax, r8b
shr al, 2
mov byte [rsp + 0x20], al
movzx ecx, r8b
and cl, 3
shl cl, 4
movzx eax, dl
shr al, 4
add cl, al
mov byte [rsp + 0x21], cl
movzx ecx, dl
and cl, 0xf
shl cl, 2
movzx eax, r9b
shr al, 6
add cl, al
mov byte [rsp + 0x22], cl
movzx eax, r9b
and al, 0x3f
mov byte [rsp + 0x23], al
mov rsi, r12
lea rcx, [0x140104030]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x140104030]
movzx eax, byte [rsp + rsi + 0x20]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14004971d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140049712
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14004972c
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.1400492a0
inc ebp
test r15d, r15d
jle 0x140049759
mov eax, ebp
cdq
idiv r15d
test edx, edx
jne 0x140049759
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x140049744
mov rdx, rdi
mov rcx, rbx
call fcn.140049400
inc rsi
cmp rsi, 4
jl 0x1400496d0
mov esi, r12d
mov rcx, r12
movzx edx, byte [rsp + 0x81]
movzx r8d, byte [rsp + 0x80]
movzx r9d, byte [rsp + 0x82]
test r14d, r14d
jne 0x140049650
test esi, esi
je 0x140049903
movsxd rax, esi
cmp rax, 3
jge 0x1400497d1
jae 0x14004991b
mov byte [rsp + rax + 0x80], 0
inc rax
cmp rax, 3
jl 0x1400497a0
movzx r9d, byte [rsp + 0x82]
movzx edx, byte [rsp + 0x81]
movzx r8d, byte [rsp + 0x80]
movzx eax, r8b
shr al, 2
mov byte [rsp + 0x20], al
and r8b, 3
shl r8b, 4
movzx eax, dl
shr al, 4
add r8b, al
mov byte [rsp + 0x21], r8b
and dl, 0xf
shl dl, 2
movzx eax, r9b
shr al, 6
add dl, al
mov byte [rsp + 0x22], dl
and r9b, 0x3f
mov byte [rsp + 0x23], r9b
lea eax, [rsi + 1]
movsxd r14, eax
test eax, eax
jle 0x1400498b6
nop dword [rax]
lea rcx, [0x140104030]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x140104030]
movzx eax, byte [rsp + r12 + 0x20]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14004986e
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140049863
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14004987d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.1400492a0
inc ebp
test r15d, r15d
jle 0x1400498aa
mov eax, ebp
cdq
idiv r15d
test edx, edx
jne 0x1400498aa
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x140049895
mov rdx, rdi
mov rcx, rbx
call fcn.140049400
inc r12
cmp r12, r14
jl 0x140049820
cmp esi, 3
jge 0x140049903
mov edi, 3
sub edi, esi
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400498eb
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x1400498e3
mov rax, qword [rbx]
mov word [rax + rcx], VarI4FromDisp
jmp 0x1400498fd
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.1400492a0
sub rdi, 1
jne 0x1400498c2
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400bfc54
int3