Function at 0x140036d30
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, 0xa8
mov qword [rsp + 0x28], rdx
mov rdi, rcx
mov rax, qword [0x140287028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rsi, [rcx + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140037354
mov rbx, qword [rdi + 0x40]
mov eax, dword [0x140299c98]
mov ecx, dword [0x140296f94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037306
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140037361
mov rcx, qword [0x140299c88]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140299c90]
jne 0x140037361
mov rax, qword [rax + rcx]
test rax, rax
je 0x140037361
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov r14, qword [rax]
test r14, r14
je 0x140037364
lock inc dword [r14 + 8]
mov r15, qword [rdi + 0x20]
inc r15
mov qword [rdi + 0x20], r15
lock inc dword [r14 + 8]
mov rsi, qword [rsp + 0x28]
mov rax, rsi
shr rax, 0x20
mov ecx, esi
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 r13, rcx
shr r13, 0x2f
xor r13, rcx
imul r13, rdx
mov rbx, qword [rdi + 0x30]
movabs rdx, 0x5555555555555555
movabs rcx, 0x3333333333333333
movabs r9, 0xf0f0f0f0f0f0f0f
movabs r8, 0x101010101010101
test rbx, rbx
je 0x14003728c
mov rax, rbx
shr rax, 1
and rax, rdx
mov rdx, rbx
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 0x140037278
mov rbp, r13
cmp r13, rbx
jb 0x140036ecd
mov rax, r13
xor edx, edx
div rbx
mov rbp, rdx
mov rax, qword [rdi + 0x28]
mov r12, qword [rax + rbp*8]
test r12, r12
jne 0x14003706d
mov ecx, 0x28
call fcn.140172a4c
mov r12, rax
mov qword [rax + 0x10], rsi
xorps xmm0, xmm0
movups xmmword [rax + 0x18], xmm0
mov qword [rax + 8], r13
mov qword [rax], 0
mov rax, qword [rdi + 0x40]
inc rax
js 0x140036f14
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x140036f2c
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, rbx
shr rcx, 1
mov eax, ebx
and eax, 1
or rax, rcx
test rbx, rbx
js 0x140036f46
cvtsi2ss xmm1, rbx
jmp 0x140036f4f
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [rdi + 0x48]
je 0x1400370bf
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x1400370bf
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx + rbp*8]
test rax, rax
jne 0x1400370b3
lea rax, [rdi + 0x38]
mov rdx, qword [rdi + 0x38]
mov qword [r12], rdx
mov qword [rdi + 0x38], r12
mov qword [rcx + rbp*8], rax
mov rax, qword [r12]
test rax, rax
je 0x140036fbe
mov rax, qword [rax + 8]
lea rcx, [rbx - 1]
test rbx, rcx
je 0x1400372fe
cmp rax, rbx
jb 0x140036fb3
xor edx, edx
div rbx
mov rax, rdx
shl rax, 3
add rax, qword [rdi + 0x28]
mov qword [rax], r12
inc qword [rdi + 0x40]
mov rcx, qword [r12 + 0x18]
mov qword [r12 + 0x18], r14
test rcx, rcx
jne 0x140037374
mov qword [r12 + 0x20], r15
cmp dword [rdi + 0x10], 0
jne 0x140037020
mov rsi, qword [0x1402a1918]
cmp rsi, 1
jbe 0x1400372b7
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140037020
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140037020
mov rsi, qword [rax + rcx]
test rsi, rsi
jne 0x140037388
test r14, r14
je 0x140037030
lock dec dword [r14 + 8]
je 0x140037487
xor esi, esi
cmp qword [rsp + 0x30], 0
setne sil
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401756e0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [rbx - 1]
mov r12, qword [r12]
test r12, r12
je 0x140036ede
mov rax, qword [r12 + 8]
cmp rax, r13
je 0x1400370a7
cmp ecx, 1
jbe 0x140037284
cmp rax, rbx
jb 0x14003709e
xor edx, edx
div rbx
mov rax, rdx
cmp rax, rbp
jne 0x140036ede
cmp qword [r12 + 0x10], rsi
jne 0x140037071
jmp 0x140036fc2
mov rcx, qword [rax]
mov qword [r12], rcx
jmp 0x140036fbb
divss xmm0, xmm2
call fcn.140190fd4
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14024eb68]
sar rdx, 0x3f
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [rbx + rbx]
mov esi, 1
cmp rbx, 3
jae 0x1400372a5
or rsi, rcx
cmp rsi, rax
cmovbe rsi, rax
cmp rsi, 1
je 0x14003729b
lea rax, [rsi - 1]
test rsi, rax
je 0x140037126
mov rcx, rsi
call fcn.14010a4c0
mov rsi, rax
mov rbx, qword [rdi + 0x30]
cmp rsi, rbx
jbe 0x1400374a0
mov rbp, rsi
mov rax, rbp
shr rax, 0x3d
jne 0x1400374b9
lea rcx, [rbp*8]
call fcn.140172a4c
mov rcx, qword [rdi + 0x28]
mov qword [rdi + 0x28], rax
test rcx, rcx
je 0x14003715e
call fcn.140172a44
mov qword [rdi + 0x30], rbp
xor eax, eax
mov rcx, qword [rdi + 0x28]
mov qword [rcx + rax*8], 0
inc rax
cmp rbp, rax
jne 0x140037164
mov r8, qword [rdi + 0x38]
test r8, r8
je 0x1400375d3
lea r10, [rdi + 0x38]
mov rcx, qword [r8 + 8]
mov rax, rbp
shr rax, 1
movabs rdx, 0x5555555555555555
and rax, rdx
mov rdx, rbp
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 0x1400374be
cmp rcx, rbp
jb 0x140037203
mov rax, rcx
xor edx, edx
div rbp
mov rcx, rdx
mov rax, qword [rdi + 0x28]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x1400375d3
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x140037494
cmp rax, rbp
jb 0x140037232
xor edx, edx
div rbp
mov rax, rdx
cmp rax, rcx
je 0x140037273
mov rdx, qword [rdi + 0x28]
cmp qword [rdx + rax*8], 0
jne 0x140037251
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
jmp 0x14003720e
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rdi + 0x28]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rdi + 0x28]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
jmp 0x140037246
lea rbp, [rbx - 1]
and rbp, r13
jmp 0x140036ecd
and rax, r8
jmp 0x14003709e
movabs rbp, 0xaaaaaaaaaaaaaaaa
jmp 0x140036ede
mov esi, 2
jmp 0x140037126
lea rdx, [rbx - 1]
xor esi, esi
test rbx, rdx
setne sil
jmp 0x1400370fa
lea rcx, [0x1402a1918]
call fcn.140007880
test al, al
je 0x140037605
mov qword [0x1402a1928], 0
lea rsi, [0x1402a1920]
mov qword [0x1402a1920], 0xffffffffffffffff
mov rcx, rsi
xor edx, edx
call fcn.140002400
mov qword [0x1402a1918], rsi
jmp 0x140036ff1
and rax, rcx
jmp 0x140036fb3
lea rcx, [0x140299c98]
call fcn.140172b08
cmp dword [0x140299c98], 0xffffffff
jne 0x140036d9b
mov qword [0x140299c90], 0
lea rcx, [0x140299c88]
mov qword [0x140299c88], 0xffffffffffffffff
xor edx, edx
call fcn.140002400
lea rcx, [0x140299c98]
call fcn.140172aa8
jmp 0x140036d9b
mov rcx, rsi
call fcn.1400ec2e0
jmp 0x140036d72
int3
mov r15, qword [rdi + 0x20]
inc r15
mov qword [rdi + 0x20], r15
jmp 0x140036e04
lock dec dword [rcx + 8]
jne 0x140036fd5
call fcn.14011cbd0
jmp 0x140036fd5
cmp qword [rsi], rdi
jne 0x140037020
lea rax, [rsi + 0x28]
add rsi, 8
mov qword [rsp + 0x20], rax
lea r12, [rsp + 0x60]
mov rcx, r12
mov rdx, rdi
mov r8, r15
mov r9, rsi
call fcn.1401f6770
mov rax, qword [0x14028a5a0]
and rax, qword [rsp + 0x28]
cmp rax, qword [0x14028a588]
jne 0x1400373d3
mov rcx, qword [rsp + 0x28]
call fcn.1400eaf60
lea r15, [rsp + 0x58]
mov rax, qword [rsp + 0x28]
mov qword [r15], rax
lea rbx, [rsp + 0x50]
mov qword [rbx], rdi
lea rax, [0x1401f67e0]
lea rdi, [rsp + 0x40]
mov qword [rdi], rax
mov dword [rdi + 8], 0
mov ecx, pe_nt_image_headers64
call fcn.140172a4c
mov r13, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov rdx, rdi
mov r8, rbx
mov r9, r15
call fcn.1401f6930
lea r8, [rsp + 0x98]
mov qword [r8], r13
mov rcx, r14
mov rdx, rsi
call fcn.1401715c0
mov rcx, qword [r15]
mov rax, qword [0x14028a5a0]
and rax, rcx
cmp rax, qword [0x14028a588]
jne 0x140037452
call fcn.1400e5d90
lea rsi, [rsp + 0x88]
mov rcx, rsi
call fcn.140171160
mov rcx, qword [rsi - 0x28]
mov rax, qword [0x14028a5a0]
and rax, rcx
cmp rax, qword [0x14028a588]
jne 0x140037020
call fcn.1400ebe70
jmp 0x140037020
mov rcx, r14
call fcn.14011cbd0
jmp 0x140037030
lea rdx, [rbp - 1]
and rax, rdx
jmp 0x140037232
jae 0x1400375d3
mov rax, qword [rdi + 0x40]
test rax, rax
js 0x1400374ca
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x1400374e2
call fcn.1401b3360
lea rax, [rbp - 1]
and rcx, rax
jmp 0x140037203
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rdi + 0x48]
call fcn.140190fd4
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14024eb68]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x140037595
mov rcx, rbx
shr rcx, 1
movabs rdx, 0x5555555555555555
and rcx, rdx
mov rdx, rbx
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 0x140037595
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov ebp, 1
shl rbp, cl
cmp rax, 2
cmovb rbp, rax
jmp 0x1400375a0
mov rcx, rax
call fcn.14010a4c0
mov rbp, rax
cmp rsi, rbp
cmova rbp, rsi
cmp rbp, rbx
jae 0x1400375d3
test rbp, rbp
jne 0x140037132
mov rcx, qword [rdi + 0x28]
mov qword [rdi + 0x28], 0
test rcx, rcx
je 0x1400375cb
call fcn.140172a44
mov qword [rdi + 0x30], 0
mov rbx, qword [rdi + 0x30]
lea rbp, [rbx - 1]
test rbx, rbp
je 0x1400375f5
cmp r13, rbx
jb 0x1400375fd
mov rax, r13
xor edx, edx
div rbx
mov rbp, rdx
jmp 0x140036f67
and rbp, r13
jmp 0x140036f67
mov rbp, r13
jmp 0x140036f67
mov rsi, qword [0x1402a1918]
jmp 0x140036ff1