Function at 0x140032a10
Capabilities:
Encode data using base64
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov qword [rsp + 0x28], rdx
mov rbx, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rbp, [rcx + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400331b4
mov r15, qword [rbx + 0x40]
mov eax, dword [0x1402a0e38]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400331c1
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140033223
mov rcx, qword [0x1402a0e28]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a0e30]
jne 0x140033223
mov rax, qword [rax + rcx]
test rax, rax
je 0x140033223
mov rdi, qword [rax]
test rdi, rdi
je 0x140032ad0
lock inc dword [rdi + 8]
mov rsi, qword [rbx + 0x20]
inc rsi
mov qword [rbx + 0x20], rsi
lock inc dword [rdi + 8]
jmp 0x140032adb
mov rsi, qword [rbx + 0x20]
inc rsi
mov qword [rbx + 0x20], rsi
mov rcx, qword [rsp + 0x28]
mov rax, rcx
shr rax, 0x20
mov ecx, ecx
lea rcx, [rcx*8 + 8]
xor rcx, rax
movabs rdx, 0x9ddfea08eb382d69
imul rcx, rdx
xor rax, rcx
shr rcx, 0x2f
xor rcx, rax
imul rcx, rdx
mov r12, rcx
shr r12, 0x2f
xor r12, rcx
imul r12, rdx
mov r14, qword [rbx + 0x30]
movabs rdx, 0x5555555555555555
movabs rcx, 0x3333333333333333
movabs r9, 0xf0f0f0f0f0f0f0f
movabs r8, 0x101010101010101
test r14, r14
mov qword [rsp + 0x38], r15
je 0x140032fa0
mov rax, r14
shr rax, 1
and rax, rdx
mov rdx, r14
sub rdx, rax
mov rax, rdx
and rax, rcx
shr rdx, 2
and rdx, rcx
add rdx, rax
mov rcx, rdx
shr rcx, 4
add rcx, rdx
and rcx, r9
imul rcx, r8
shr rcx, 0x38
cmp rcx, 1
jbe 0x140032f94
mov r13, r12
cmp r12, r14
jb 0x140032ba9
mov rax, r12
xor edx, edx
div r14
mov r13, rdx
mov rax, qword [rbx + 0x28]
mov r15, qword [rax + r13*8]
test r15, r15
jne 0x140032c9e
mov ecx, 0x28
call fcn.14017b1d8
mov r15, rax
mov rax, qword [rsp + 0x28]
mov qword [r15 + 0x10], rax
xorps xmm0, xmm0
movups xmmword [r15 + 0x18], xmm0
mov qword [r15 + 8], r12
mov qword [r15], 0
mov rax, qword [rbx + 0x40]
inc rax
js 0x140032bf6
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x140032c0e
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, r14
shr rcx, 1
mov eax, r14d
and eax, 1
or rax, rcx
test r14, r14
js 0x140032c29
cvtsi2ss xmm1, r14
jmp 0x140032c32
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rbx + 0x48]
je 0x140032f21
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x140032f21
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx + r13*8]
test rax, rax
jne 0x140032ce4
lea rax, [rbx + 0x38]
mov rdx, qword [rbx + 0x38]
mov qword [r15], rdx
mov qword [rbx + 0x38], r15
mov qword [rcx + r13*8], rax
mov rax, qword [r15]
test rax, rax
je 0x140032ced
mov rax, qword [rax + 8]
lea rcx, [r14 - 1]
test r14, rcx
je 0x140033165
cmp rax, r14
jb 0x140032c94
xor edx, edx
div r14
mov rax, rdx
shl rax, 3
add rax, qword [rbx + 0x28]
jmp 0x140032cea
lea r8, [r14 - 1]
mov r15, qword [r15]
test r15, r15
je 0x140032bba
mov rax, qword [r15 + 8]
cmp rax, r12
je 0x140032cd2
cmp ecx, 1
jbe 0x140032cdf
cmp rax, r14
jb 0x140032cc9
xor edx, edx
div r14
mov rax, rdx
cmp rax, r13
jne 0x140032bba
mov rax, qword [rsp + 0x28]
cmp qword [r15 + 0x10], rax
jne 0x140032ca2
jmp 0x140032cf1
and rax, r8
jmp 0x140032cc9
mov rcx, qword [rax]
mov qword [r15], rcx
mov qword [rax], r15
inc qword [rbx + 0x40]
mov r12, qword [r15 + 0x18]
mov qword [r15 + 0x18], rdi
test r12, r12
je 0x140032d5f
lock dec dword [r12 + 8]
jne 0x140032d5f
mov rcx, qword [r12]
mov rax, qword [rcx + 8]
lea rdx, [0x1401e6bb0]
cmp qword [rcx + 0x10], rdx
jne 0x14003313f
lea rcx, [0x140203760]
cmp rax, rcx
jne 0x14003313f
mov rcx, qword [r12 + 0x18]
test rcx, rcx
je 0x140032d42
lock dec dword [rcx]
je 0x14003320f
mov r13, qword [r12 + 0x10]
test r13, r13
je 0x140032d57
lock dec dword [r13]
je 0x140033113
mov rcx, r12
call fcn.14017b254
mov qword [r15 + 0x20], rsi
cmp dword [rbx + 0x10], 0
je 0x140032e03
test rdi, rdi
mov rsi, qword [rsp + 0x38]
je 0x140032dd1
lock dec dword [rdi + 8]
jne 0x140032dd1
mov rcx, qword [rdi]
mov rax, qword [rcx + 8]
lea rdx, [0x1401e6bb0]
cmp qword [rcx + 0x10], rdx
jne 0x140033152
lea rcx, [0x140203760]
cmp rax, rcx
jne 0x140033152
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140032db7
lock dec dword [rcx]
je 0x140033219
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x140032dc9
lock dec dword [rbx]
je 0x140033129
mov rcx, rdi
call fcn.14017b254
xor edi, edi
test rsi, rsi
setne dil
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14017e7b0
mov eax, edi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [0x1402a44c0]
cmp r15, 1
jbe 0x14003316d
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140032d6d
mov rcx, qword [r15]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [r15 + 8]
jne 0x140032d6d
mov r15, qword [rax + rcx]
test r15, r15
je 0x140032d6d
cmp qword [r15], rbx
jne 0x140032d6d
movups xmm0, xmmword [r15 + 8]
movups xmm1, xmmword [r15 + 0x18]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov r14, qword [r15 + 0x28]
test r14, r14
je 0x140032e84
mov eax, 1
lock xadd dword [r14], eax
test eax, eax
jle 0x140033250
add r15, 8
mov ecx, pe_nt_image_headers64
call fcn.14017b1d8
mov dword [rax], 1
lea rcx, [0x1402072b0]
mov qword [rax + 8], rcx
lea rcx, [0x1400d6e00]
mov qword [rax + 0x10], rcx
lea rcx, [0x1401df3a0]
mov qword [rax + 0x18], rcx
lea rcx, [0x140207130]
mov qword [rax + 0x20], rcx
mov dword [rax + 0x28], 0
mov qword [rax + 0x30], rbx
test rbx, rbx
je 0x140032ed8
lock inc dword [rbx + 8]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rbx
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + 0x48], xmm0
movups xmmword [rax + 0x58], xmm1
mov qword [rax + 0x68], r14
mov qword [rax + 0x70], rsi
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov rax, qword [rdi]
mov rax, qword [rax]
mov rcx, rdi
mov rdx, r15
xor r9d, r9d
call qword [case.0x1401e7f70.0]
jmp 0x140032d6d
mov qword [rsp + 0x30], rbp
divss xmm0, xmm2
call fcn.14019b6a8
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14025dc48]
sar rdx, 0x3f
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [r14 + r14]
mov ebp, 1
cmp r14, 3
jb 0x140032f6a
lea rdx, [r14 - 1]
xor ebp, ebp
test r14, rdx
setne bpl
or rbp, rcx
cmp rbp, rax
cmovbe rbp, rax
cmp rbp, 1
je 0x140032faf
lea rax, [rbp - 1]
test rbp, rax
je 0x140032fb4
mov rcx, rbp
call fcn.14011dd70
mov rbp, rax
mov r14, qword [rbx + 0x30]
jmp 0x140032fb4
lea r13, [r14 - 1]
and r13, r12
jmp 0x140032ba9
movabs r13, 0xaaaaaaaaaaaaaaaa
jmp 0x140032bba
mov ebp, 2
cmp rbp, r14
jbe 0x140033226
mov r13, rbp
mov rax, r13
shr rax, 0x3d
jne 0x14003323f
lea rcx, [r13*8]
call fcn.14017b1d8
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0x28], rax
test rcx, rcx
je 0x140032fec
call fcn.14017b254
mov qword [rbx + 0x30], r13
xor eax, eax
mov rcx, qword [rbx + 0x28]
mov qword [rcx + rax*8], 0
inc rax
cmp r13, rax
jne 0x140032ff2
mov r8, qword [rbx + 0x38]
test r8, r8
je 0x14003335d
lea r10, [rbx + 0x38]
mov rcx, qword [r8 + 8]
mov rax, r13
shr rax, 1
movabs rdx, 0x5555555555555555
and rax, rdx
mov rdx, r13
sub rdx, rax
mov rax, rdx
movabs r9, 0x3333333333333333
and rax, r9
shr rdx, 2
and rdx, r9
add rdx, rax
mov r9, rdx
shr r9, 4
add r9, rdx
movabs rax, 0xf0f0f0f0f0f0f0f
and r9, rax
movabs rax, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x140033244
cmp rcx, r13
jb 0x140033091
mov rax, rcx
xor edx, edx
div r13
mov rcx, rdx
mov rax, qword [rbx + 0x28]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x14003335d
lea r11, [r13 - 1]
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x14003310e
cmp rax, r13
jb 0x1400330c0
xor edx, edx
div r13
mov rax, rdx
cmp rax, rcx
je 0x1400330f8
mov rdx, qword [rbx + 0x28]
cmp qword [rdx + rax*8], 0
jne 0x1400330d6
mov qword [rdx + rax*8], r8
jmp 0x1400330fb
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rbx + 0x28]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rbx + 0x28]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
jne 0x1400330a9
jmp 0x14003335d
and rax, r11
jmp 0x1400330c0
lea rcx, [r13 + 8]
call fcn.1400091b0
mov rcx, r13
call fcn.14017b254
jmp 0x140032d57
lea rcx, [rbx + 8]
call fcn.1400091b0
mov rcx, rbx
call fcn.14017b254
jmp 0x140032dc9
mov rcx, r12
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x140032d5f
mov rcx, rdi
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x140032dd1
and rax, rcx
jmp 0x140032c94
lea rcx, [0x1402a44c0]
call fcn.140008ab0
test al, al
je 0x140033399
mov qword [0x1402a44d0], 0
lea r15, [0x1402a44c8]
mov qword [0x1402a44c8], 0xffffffffffffffff
mov rcx, r15
xor edx, edx
call fcn.140002850
mov qword [0x1402a44c0], r15
jmp 0x140032e14
mov rcx, rbp
call fcn.1400fdfc0
jmp 0x140032a4c
lea rcx, [0x1402a0e38]
call fcn.14017b2bc
cmp dword [0x1402a0e38], 0xffffffff
jne 0x140032a75
mov qword [0x1402a0e30], 0
lea rcx, [0x1402a0e28]
mov qword [0x1402a0e28], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a0e38]
call fcn.14017b25c
jmp 0x140032a75
call fcn.14017b254
jmp 0x140032d42
call fcn.14017b254
jmp 0x140032db7
int3
jae 0x14003335d
mov rax, qword [rbx + 0x40]
test rax, rax
js 0x140033253
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x14003326b
call fcn.1401be9c0
lea rax, [r13 - 1]
and rcx, rax
jmp 0x140033091
int3
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rbx + 0x48]
call fcn.14019b6a8
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14025dc48]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp r14, 3
jb 0x14003331f
mov rcx, r14
shr rcx, 1
movabs rdx, 0x5555555555555555
and rcx, rdx
mov rdx, r14
sub rdx, rcx
mov rcx, rdx
shr rcx, 2
movabs r8, 0x3333333333333333
and rdx, r8
and rcx, r8
add rcx, rdx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x14003331f
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov r13d, 1
shl r13, cl
cmp rax, 2
cmovb r13, rax
jmp 0x14003332a
mov rcx, rax
call fcn.14011dd70
mov r13, rax
cmp rbp, r13
cmova r13, rbp
cmp r13, r14
jae 0x14003335d
test r13, r13
jne 0x140032fc0
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0x28], 0
test rcx, rcx
je 0x140033355
call fcn.14017b254
mov qword [rbx + 0x30], 0
mov r14, qword [rbx + 0x30]
lea r13, [r14 - 1]
test r14, r13
je 0x140033384
cmp r12, r14
mov rbp, qword [rsp + 0x30]
jb 0x140033391
mov rax, r12
xor edx, edx
div r14
mov r13, rdx
jmp 0x140032c4a
and r13, r12
mov rbp, qword [rsp + 0x30]
jmp 0x140032c4a
mov r13, r12
jmp 0x140032c4a
mov r15, qword [0x1402a44c0]
jmp 0x140032e14