Function at 0x140034160
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov rbx, rcx
cmp byte [rdx + 0x4d], 0
jne 0x140034202
mov r12, qword [rdx + 0x10]
test r12, r12
je 0x140034202
mov qword [rsp + 0x98], rdx
movabs rax, 0x555555555555555
cmp r12, rax
ja 0x1400356cb
mov rax, qword [rsp + 0x98]
mov r13, qword [rax]
lea rax, [r12*8]
lea rdi, [rax + rax*2]
test rdi, rdi
je 0x14003420e
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1400341eb
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400356cb
mov rcx, rax
mov qword [0x1402d9150], rax
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapAlloc
mov rsi, rax
test rax, rax
jne 0x140034213
jmp 0x1400356cb
mov qword [rbx], 0
jmp 0x1400357e3
mov esi, 8
mov qword [rsp + 0x50], rbx
xor ebp, ebp
mov qword [rsp + 0x28], r12
jmp 0x14003427c
mov qword [0x1402d9150], rax
mov rcx, rax
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapAlloc
mov r15, rax
test rax, rax
je 0x1400356cb
dec r12
add r13, 0x18
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov qword [rsi + rbp], r15
mov qword [rsi + rbp + 8], rbx
mov qword [rsi + rbp + 0x10], rbx
add rbp, 0x18
test r12, r12
je 0x1400342c8
cmp rdi, rbp
je 0x1400342c8
mov r14, qword [r13]
mov rbx, qword [r13 + 0x10]
test rbx, rbx
je 0x1400342c0
js 0x1400356cb
movzx eax, byte [0x1402d9160]
mov rax, qword [0x1402d9150]
test rax, rax
jne 0x140034237
call sub.kernel32.dll_GetProcessHeap
test rax, rax
jne 0x140034230
jmp 0x1400356cb
mov r15d, 1
jmp 0x140034250
mov rax, qword [rsp + 0x98]
mov rdi, qword [rax + 0x18]
mov rcx, qword [rax + 0x28]
test rcx, rcx
mov qword [rsp + 0x38], rcx
je 0x140034340
mov rax, rcx
shr rax, 0x3d
jne 0x1400356cb
lea r15, [rcx*4]
test r15, r15
mov rbx, qword [rsp + 0x28]
je 0x140034354
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x14003432c
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400356cb
mov rcx, rax
mov qword [0x1402d9150], rax
xor edx, edx
mov r8, r15
call sub.kernel32.dll_HeapAlloc
test rax, rax
jne 0x140034359
jmp 0x1400356cb
lea r15, [rcx*4]
mov eax, 4
mov rbx, qword [rsp + 0x28]
jmp 0x140034359
mov eax, 4
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
mov r8, r15
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x120], rcx
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], rdx
mov qword [rsp + 0x108], rsi
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x118], rbx
mov rax, qword [rsp + 0x98]
movdqu xmm0, xmmword [rax + 0x30]
movdqu xmmword [rsp + 0x138], xmm0
movzx eax, byte [rax + 0x48]
mov byte [rsp + 0x148], al
test al, al
je 0x140034405
lea rax, [rsp + 0x108]
mov qword [rsp + 0xa0], rax
cmp rdx, 0x15
jae 0x140034429
cmp rdx, 1
jbe 0x1400352e4
lea r9, [rsp + 0xa0]
mov r8d, 1
call fcn.14002eb00
jmp 0x1400352e4
cmp rdx, 0x15
jae 0x140034be1
cmp rdx, 1
jbe 0x1400352e4
mov r8d, 1
call fcn.14002ebd0
jmp 0x1400352e4
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x140034459
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400356cb
mov rcx, rax
mov qword [0x1402d9150], rax
mov rdx, qword [rsp + 0x38]
movabs rax, 0x7ffffffffffffff8
lea r8, [rdx + rdx]
add rax, 4
and r8, rax
xor edx, edx
call sub.kernel32.dll_HeapAlloc
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400356cb
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1400344ae
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400356cb
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x100
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400356cb
mov rdi, rax
mov rax, qword [rsp + 0x48]
lea rcx, [rax - 0x10]
mov qword [rsp + 0xf8], rcx
lea rcx, [rax + 0x10]
mov qword [rsp + 0xf0], rcx
lea rcx, [rax - 4]
mov qword [rsp + 0x80], rcx
mov ecx, 0x10
mov qword [rsp + 0x70], rcx
xor r14d, r14d
xor r15d, r15d
mov r10, qword [rsp + 0x38]
jmp 0x140034529
mov r15d, 1
mov r14, qword [rsp + 0x78]
cmp r14, r10
mov rax, qword [rsp + 0x48]
jae 0x1400352c0
mov r8, r10
sub r8, r14
lea rcx, [rax + r14*4]
cmp r8, 2
mov rbx, rdi
jae 0x1400345b0
mov rax, r10
mov rsi, rax
sub rsi, r14
jb 0x1400356cb
cmp rax, r10
ja 0x1400356cb
jae 0x140034650
cmp r8, 0xa
jae 0x140034650
lea rsi, [r14 + 0xa]
cmp rsi, r10
cmovae rsi, r10
mov qword [rsp + 0x78], rsi
sub rsi, r14
jb 0x1400356cb
cmp r8, 1
adc r8, 0
mov rdx, rsi
lea r9, [rsp + 0xa0]
call fcn.14002eb00
mov r10, qword [rsp + 0x38]
cmp r15, qword [rsp + 0x70]
je 0x14003465c
jmp 0x1400346d2
mov eax, dword [rcx + 4]
mov rdx, qword [rsp + 0xa0]
mov r9, qword [rdx + 0x10]
cmp r9, rax
jbe 0x1400356cb
mov r11d, dword [rcx]
cmp r9, r11
jbe 0x1400356cb
mov r10, qword [rdx]
lea rax, [rax + rax*2]
mov rax, qword [r10 + rax*8 + 0x10]
lea rdx, [r11 + r11*2]
mov rdx, qword [r10 + rdx*8 + 0x10]
cmp rax, rdx
jbe 0x140034a30
cmp r8, 3
jb 0x140034a7f
mov r11d, 2
nop word cs:[rax + rax]
mov esi, dword [rcx + r11*4]
cmp r9, rsi
jbe 0x1400356cb
mov edi, dword [rcx + r11*4 - 4]
cmp r9, rdi
jbe 0x1400356cb
lea rsi, [rsi + rsi*2]
mov rsi, qword [r10 + rsi*8 + 0x10]
lea rdi, [rdi + rdi*2]
cmp rsi, qword [r10 + rdi*8 + 0x10]
jbe 0x140034aa4
inc r11
cmp r8, r11
jne 0x140034610
jmp 0x140034a77
mov qword [rsp + 0x78], rax
cmp r15, qword [rsp + 0x70]
jne 0x1400346d2
movzx eax, byte [0x1402d9160]
mov rax, qword [0x1402d9150]
test rax, rax
jne 0x140034684
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400356cb
mov qword [0x1402d9150], rax
mov r8, r15
shl r8, 5
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400356cb
mov rdi, rax
lea rax, [r15 + r15]
mov qword [rsp + 0x70], rax
mov r8, r15
shl r8, 4
mov rcx, rdi
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov r10, qword [rsp + 0x38]
mov rax, r15
shl rax, 4
mov qword [rdi + rax], rsi
mov qword [rdi + rax + 8], r14
inc r15
mov rax, r15
cmp r15, 2
mov qword [rsp + 0x58], rdi
jae 0x14003477c
jmp 0x140034516
mov rdi, rsi
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x58]
add r13, rax
lea rsi, [rax + r12]
lea rbx, [rax + r12]
add rbx, 8
sub r8, rdx
mov rcx, rdi
mov rdi, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x60]
add rax, qword [rsp + 0x30]
mov qword [rsi], rax
mov rax, qword [rsp + 0x68]
mov qword [rbx], rax
lea rdx, [r13 + 0x10]
mov rax, qword [rsp + 0x88]
not rax
mov r8, qword [rsp + 0x90]
add r8, rax
shl r8, 4
mov rcx, r13
call sub.msvcrt.dll_memmove
mov rax, qword [rsp + 0x100]
cmp rax, 1
mov r10, qword [rsp + 0x38]
jbe 0x140034510
mov r15, rax
lea r11, [rax - 1]
mov rcx, r11
shl rcx, 4
mov rax, qword [rdi + rcx]
mov rcx, qword [rdi + rcx + 8]
add rcx, rax
cmp rcx, r10
je 0x1400347f0
mov rdx, r15
shl rdx, 4
mov r8, qword [rdx + rdi - 0x20]
cmp r8, rax
jbe 0x1400347f0
cmp r15, 2
jbe 0x140034af1
lea rsi, [r15 - 3]
mov rcx, rsi
shl rcx, 4
mov rcx, qword [rdi + rcx]
lea r9, [r8 + rax]
cmp rcx, r9
jbe 0x140034805
cmp r15, 3
jbe 0x140034bd6
add r8, rcx
cmp qword [rdx + rdi - 0x40], r8
jbe 0x140034805
jmp 0x140034516
cmp r15, 3
jb 0x14003480a
lea rsi, [r15 - 3]
mov rcx, rsi
shl rcx, 4
mov rcx, qword [rdi + rcx]
cmp rcx, rax
jb 0x14003480e
lea rsi, [r15 - 2]
cmp r15, rsi
jbe 0x1400356cb
lea r12, [rsi + 1]
mov qword [rsp + 0x90], r15
cmp r15, r12
mov rax, qword [rsp + 0x48]
jbe 0x1400356cb
mov r13, rsi
shl r13, 4
mov rcx, qword [rdi + r13 + 8]
shl r12, 4
mov rdx, qword [rdi + r12]
mov rbx, qword [rdi + r12 + 8]
add rbx, rdx
mov r14, rbx
sub r14, rcx
jb 0x1400356cb
mov qword [rsp + 0x88], rsi
cmp rbx, r10
ja 0x1400356cb
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x100], r11
mov rdx, qword [rdi + r13]
mov qword [rsp + 0x68], rcx
lea rdi, [rax + rcx*4]
lea rsi, [rdi + rdx*4]
mov r15, r14
sub r15, rdx
cmp r15, rdx
mov qword [rsp + 0x30], rdx
jae 0x140034970
lea r8, [r15*4]
mov r14, qword [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call sub.msvcrt.dll_memcpy
lea r8, [r14 + r15*4]
cmp qword [rsp + 0x30], 0
jle 0x140034700
test r15, r15
jle 0x140034700
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
lea rcx, [rcx + rbx*4]
nop word cs:[rax + rax]
mov edx, dword [r8 - 4]
mov r10, qword [rax + 0x10]
cmp r10, rdx
jbe 0x1400356cb
mov r9d, dword [rsi - 4]
cmp r10, r9
jbe 0x1400356cb
mov r10, qword [rax]
lea rdx, [rdx + rdx*2]
mov rdx, qword [r10 + rdx*8 + 0x10]
lea r9, [r9 + r9*2]
mov r9, qword [r10 + r9*8 + 0x10]
xor r10d, r10d
xor r11d, r11d
cmp rdx, r9
setbe r10b
seta r11b
shl r11, 2
sub rsi, r11
shl r10, 2
sub r8, r10
cmp rdx, r9
mov rdx, r8
cmova rdx, rsi
mov edx, dword [rdx]
mov dword [rcx], edx
cmp rsi, rdi
jbe 0x140034700
add rcx, 0xfffffffffffffffc
cmp r8, qword [rsp + 0x28]
ja 0x1400348f0
jmp 0x140034700
lea r8, [rdx*4]
mov r15, qword [rsp + 0x28]
mov rcx, r15
mov rdx, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x30]
lea r8, [r15 + rax*4]
test rax, rax
jle 0x140034703
cmp r14, rax
jle 0x140034703
mov rax, qword [rsp + 0x48]
lea rax, [rax + rbx*4]
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x28]
nop dword [rax]
mov r9d, dword [rsi]
mov r10, qword [rcx + 0x10]
cmp r10, r9
jbe 0x1400356cb
mov r11d, dword [rdx]
cmp r10, r11
jbe 0x1400356cb
mov rbx, qword [rcx]
lea r10, [r9 + r9*2]
mov r14, qword [rbx + r10*8 + 0x10]
lea r15, [r11 + r11*2]
xor ebp, ebp
xor r10d, r10d
cmp r14, qword [rbx + r15*8 + 0x10]
setbe bpl
seta bl
cmovbe r9d, r11d
mov dword [rdi], r9d
add rdi, 4
lea rdx, [rdx + rbp*4]
cmp rdx, r8
jae 0x140034708
mov r10b, bl
lea rsi, [rsi + r10*4]
cmp rsi, rax
jb 0x1400349c0
jmp 0x140034708
cmp r8, 3
jb 0x140034a90
mov r11d, 2
nop dword [rax]
mov esi, dword [rcx + r11*4]
cmp r9, rsi
jbe 0x1400356cb
mov edi, dword [rcx + r11*4 - 4]
cmp r9, rdi
jbe 0x1400356cb
lea rsi, [rsi + rsi*2]
mov rsi, qword [r10 + rsi*8 + 0x10]
lea rdi, [rdi + rdi*2]
cmp rsi, qword [r10 + rdi*8 + 0x10]
ja 0x140034aa4
inc r11
cmp r8, r11
jne 0x140034a40
mov rdi, rbx
mov r11, r8
jmp 0x140034aa7
lea rax, [r14 + 2]
mov r8d, 2
mov r10, qword [rsp + 0x38]
jmp 0x140034abf
lea rax, [r14 + 2]
mov r8d, 2
mov r10, qword [rsp + 0x38]
jmp 0x14003453f
mov rdi, rbx
lea r9, [r11 + r14]
mov r8, r11
cmp rax, rdx
mov rax, r9
mov r10, qword [rsp + 0x38]
jbe 0x14003453f
cmp r14, rax
ja 0x1400356cb
cmp rax, r10
ja 0x1400356cb
cmp r8, 2
jb 0x14003453f
mov r12, rax
mov rax, r8
shr rax, 1
cmp r8, 0x10
jae 0x140034afc
xor edx, edx
jmp 0x140034b86
mov r15d, 2
jmp 0x140034516
mov rdx, rax
movabs r9, 0x7ffffffffffffff8
and rdx, r9
lea r9, [r14 + r8]
mov r10, qword [rsp + 0xf8]
lea r9, [r10 + r9*4]
mov r10, qword [rsp + 0xf0]
lea r10, [r10 + r14*4]
xor r11d, r11d
nop dword [rax + rax]
movdqu xmm0, xmmword [r10 + r11*4 - 0x10]
movdqu xmm1, xmmword [r10 + r11*4]
movdqu xmm2, xmmword [r9 - 0x10]
movdqu xmm3, xmmword [r9]
pshufd xmm3, xmm3, 0x1b
pshufd xmm2, xmm2, 0x1b
movdqu xmmword [r10 + r11*4 - 0x10], xmm3
movdqu xmmword [r10 + r11*4], xmm2
pshufd xmm0, xmm0, 0x1b
movdqu xmmword [r9], xmm0
pshufd xmm0, xmm1, 0x1b
movdqu xmmword [r9 - 0x10], xmm0
add r11, 8
add r9, 0xffffffffffffffe0
cmp rdx, r11
jne 0x140034b30
cmp rax, rdx
je 0x140034bc9
neg rax
mov r9, rdx
neg r9
shl rdx, 2
lea rdx, [rdx + r14*4]
add rdx, qword [rsp + 0x48]
lea r10, [r14 + r8]
mov r11, qword [rsp + 0x80]
lea r10, [r11 + r10*4]
nop dword [rax]
mov r11d, dword [rdx]
mov esi, dword [r10 + r9*4]
mov dword [rdx], esi
mov dword [r10 + r9*4], r11d
dec r9
add rdx, 4
cmp rax, r9
jne 0x140034bb0
mov r10, qword [rsp + 0x38]
mov rax, r12
jmp 0x14003453f
mov r15d, 3
jmp 0x140034516
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x140034c11
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400356cb
mov rcx, rax
mov qword [0x1402d9150], rax
mov rdx, qword [rsp + 0x38]
movabs rax, 0x7ffffffffffffff8
lea r8, [rdx + rdx]
add rax, 4
and r8, rax
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400356cb
mov r12, rax
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x140034c64
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400356cb
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x100
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400356cb
mov rbx, rax
mov rax, qword [rsp + 0x48]
lea rcx, [rax - 0x10]
mov qword [rsp + 0xf8], rcx
lea rcx, [rax + 0x10]
mov qword [rsp + 0xf0], rcx
lea rcx, [rax - 4]
mov qword [rsp + 0x80], rcx
mov ecx, 0x10
mov qword [rsp + 0x70], rcx
xor ebp, ebp
xor r15d, r15d
mov r10, qword [rsp + 0x38]
jmp 0x140034cd9
mov r15d, 1
mov rbp, qword [rsp + 0x78]
cmp rbp, r10
mov rax, qword [rsp + 0x48]
jae 0x1400352a1
mov r8, r10
sub r8, rbp
lea rcx, [rax + rbp*4]
cmp r8, 2
jae 0x140034d50
mov rax, r10
mov rsi, rax
sub rsi, rbp
jb 0x1400356cb
cmp rax, r10
ja 0x1400356cb
jae 0x140034d80
cmp r8, 0xa
jae 0x140034d80
lea rsi, [rbp + 0xa]
cmp rsi, r10
cmovae rsi, r10
mov qword [rsp + 0x78], rsi
sub rsi, rbp
jb 0x1400356cb
cmp r8, 1
adc r8, 0
mov rdx, rsi
call fcn.14002ebd0
mov r10, qword [rsp + 0x38]
cmp r15, qword [rsp + 0x70]
je 0x140034d8c
jmp 0x140034e05
mov eax, dword [rcx]
mov edx, dword [rcx + 4]
cmp edx, eax
jae 0x140035110
cmp r8, 2
jne 0x140035125
lea rax, [rbp + 2]
mov r8d, 2
jmp 0x14003517e
mov qword [rsp + 0x78], rax
cmp r15, qword [rsp + 0x70]
jne 0x140034e05
movzx eax, byte [0x1402d9160]
mov rax, qword [0x1402d9150]
test rax, rax
jne 0x140034db4
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400356cb
mov qword [0x1402d9150], rax
mov r8, r15
shl r8, 5
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400356cb
mov rdi, rax
lea rax, [r15 + r15]
mov qword [rsp + 0x70], rax
mov r8, r15
shl r8, 4
mov rcx, rdi
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov rbx, rdi
mov r10, qword [rsp + 0x38]
mov rax, r15
shl rax, 4
mov qword [rbx + rax], rsi
mov qword [rbx + rax + 8], rbp
inc r15
mov rax, r15
cmp r15, 2
mov qword [rsp + 0x58], rbx
jae 0x140034ea1
jmp 0x140034cc6
mov r12, r14
mov rdx, r14
mov rbx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
sub r8, rdx
mov rcx, rdi
call sub.msvcrt.dll_memcpy
add rsi, r15
mov qword [r13], rsi
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x100]
mov qword [rcx], rax
lea rdx, [r14 + 0x10]
mov rax, qword [rsp + 0x30]
not rax
mov r8, qword [rsp + 0x28]
add r8, rax
shl r8, 4
mov rcx, r14
call sub.msvcrt.dll_memmove
mov rax, qword [rsp + 0x90]
cmp rax, 1
mov r10, qword [rsp + 0x38]
jbe 0x140034cc0
mov r15, rax
lea r11, [rax - 1]
mov rcx, r11
shl rcx, 4
mov rax, qword [rbx + rcx]
mov rcx, qword [rbx + rcx + 8]
add rcx, rax
cmp rcx, r10
je 0x140034f10
mov rdx, r15
shl rdx, 4
mov r8, qword [rdx + rbx - 0x20]
cmp r8, rax
jbe 0x140034f10
cmp r15, 2
jbe 0x1400351b0
lea rdi, [r15 - 3]
mov rcx, rdi
shl rcx, 4
mov rcx, qword [rbx + rcx]
lea r9, [r8 + rax]
cmp rcx, r9
jbe 0x140034f25
cmp r15, 3
jbe 0x140035296
add r8, rcx
cmp qword [rdx + rbx - 0x40], r8
jbe 0x140034f25
jmp 0x140034cc6
cmp r15, 3
jb 0x140034f2a
lea rdi, [r15 - 3]
mov rcx, rdi
shl rcx, 4
mov rcx, qword [rbx + rcx]
cmp rcx, rax
jb 0x140034f2e
lea rdi, [r15 - 2]
cmp r15, rdi
jbe 0x1400356cb
lea rax, [rdi + 1]
cmp r15, rax
jbe 0x1400356cb
mov r14, r12
mov rcx, rdi
shl rcx, 4
mov rdx, qword [rbx + rcx + 8]
shl rax, 4
mov rsi, qword [rbx + rax]
mov r13, qword [rbx + rax + 8]
add r13, rsi
mov r12, r13
sub r12, rdx
jb 0x1400356cb
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r15
cmp r13, r10
ja 0x1400356cb
mov qword [rsp + 0x90], r11
lea r8, [rbx + rcx]
mov qword [rsp + 0x68], r8
mov r15, qword [rbx + rcx]
lea rcx, [rbx + rax]
mov qword [rsp + 0x60], rcx
lea rax, [rbx + rax + 8]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x88], rdx
lea rdi, [rax + rdx*4]
lea rbp, [rdi + r15*4]
mov rbx, r12
sub rbx, r15
cmp rbx, r15
jae 0x140035070
lea r8, [rbx*4]
mov r12, r14
mov rcx, r14
mov rdx, rbp
call sub.msvcrt.dll_memcpy
lea r8, [r14 + rbx*4]
test r15, r15
jle 0x140035100
test rbx, rbx
jle 0x140035100
mov rax, qword [rsp + 0x80]
lea rax, [rax + r13*4]
mov rbx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
nop dword [rax + rax]
mov ecx, dword [r8 - 4]
mov edx, dword [rbp - 4]
cmp ecx, edx
mov r9d, 0
sbb r9, r9
cmp ecx, edx
mov r10d, 0
adc r10, 0xffffffffffffffff
cmp ecx, edx
lea rbp, [rbp + r9*4]
lea r8, [r8 + r10*4]
mov rcx, r8
cmovb rcx, rbp
mov ecx, dword [rcx]
mov dword [rax], ecx
cmp rbp, rdi
jbe 0x140035062
add rax, 0xfffffffffffffffc
cmp r8, r12
ja 0x140035020
mov rdi, rbp
mov rdx, r12
jmp 0x140034e45
lea r8, [r15*4]
mov rbx, r14
mov rcx, r14
mov rdx, rdi
call sub.msvcrt.dll_memcpy
lea r8, [r14 + r15*4]
test r15, r15
jle 0x140034e30
cmp r12, r15
jle 0x140034e30
mov rax, qword [rsp + 0x48]
lea rax, [rax + r13*4]
mov r12, r14
mov rdx, r14
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
nop word cs:[rax + rax]
mov r10d, dword [rbp]
mov r11d, dword [rdx]
xor ebx, ebx
xor ecx, ecx
cmp r10d, r11d
setae bl
setb r9b
cmovb r11d, r10d
mov dword [rdi], r11d
add rdi, 4
lea rdx, [rdx + rbx*4]
cmp rdx, r8
jae 0x1400350f6
mov cl, r9b
lea rbp, [rbp + rcx*4]
cmp rbp, rax
jb 0x1400350c0
mov rbx, qword [rsp + 0x58]
jmp 0x140034e45
mov rdi, rbp
mov rdx, r12
jmp 0x140034e36
cmp r8, 2
jne 0x140035146
lea rax, [rbp + 2]
mov r8d, 2
jmp 0x140034cec
mov r9d, 2
mov r10d, edx
nop
mov r11d, r10d
mov r10d, dword [rcx + r9*4]
cmp r10d, r11d
jae 0x140035167
inc r9
cmp r8, r9
jne 0x140035130
jmp 0x140035164
mov r9d, 2
mov r10d, edx
nop
mov r11d, r10d
mov r10d, dword [rcx + r9*4]
cmp r10d, r11d
jb 0x140035167
inc r9
cmp r8, r9
jne 0x140035150
mov r9, r8
lea r10, [r9 + rbp]
mov r8, r9
cmp edx, eax
mov rax, r10
mov r10, qword [rsp + 0x38]
jae 0x140034cec
cmp rbp, rax
ja 0x1400356cb
cmp rax, r10
ja 0x1400356cb
cmp r8, 2
jb 0x140034cec
mov rdi, rax
mov rax, r8
shr rax, 1
cmp r8, 0x10
jae 0x1400351bb
xor edx, edx
jmp 0x140035246
mov r15d, 2
jmp 0x140034cc6
mov rdx, rax
movabs r9, 0x7ffffffffffffff8
and rdx, r9
lea r9, [r8 + rbp]
mov r10, qword [rsp + 0xf8]
lea r9, [r10 + r9*4]
mov r10, qword [rsp + 0xf0]
lea r10, [r10 + rbp*4]
xor r11d, r11d
nop word [rax + rax]
movdqu xmm0, xmmword [r10 + r11*4 - 0x10]
movdqu xmm1, xmmword [r10 + r11*4]
movdqu xmm2, xmmword [r9 - 0x10]
movdqu xmm3, xmmword [r9]
pshufd xmm3, xmm3, 0x1b
pshufd xmm2, xmm2, 0x1b
movdqu xmmword [r10 + r11*4 - 0x10], xmm3
movdqu xmmword [r10 + r11*4], xmm2
pshufd xmm0, xmm0, 0x1b
movdqu xmmword [r9], xmm0
pshufd xmm0, xmm1, 0x1b
movdqu xmmword [r9 - 0x10], xmm0
add r11, 8
add r9, 0xffffffffffffffe0
cmp rdx, r11
jne 0x1400351f0
cmp rax, rdx
je 0x140035289
neg rax
mov r9, rdx
neg r9
shl rdx, 2
lea rdx, [rdx + rbp*4]
add rdx, qword [rsp + 0x48]
lea r10, [r8 + rbp]
mov r11, qword [rsp + 0x80]
lea r10, [r11 + r10*4]
nop dword [rax]
mov r11d, dword [rdx]
mov esi, dword [r10 + r9*4]
mov dword [rdx], esi
mov dword [r10 + r9*4], r11d
dec r9
add rdx, 4
cmp rax, r9
jne 0x140035270
mov r10, qword [rsp + 0x38]
mov rax, rdi
jmp 0x140034cec
mov r15d, 3
jmp 0x140034cc6
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, r12
jmp 0x1400352df
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, qword [rsp + 0x28]
call sub.kernel32.dll_HeapFree
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0xe0], rax
movdqu xmm0, xmmword [rsp + 0x108]
movdqu xmm1, xmmword [rsp + 0x118]
movdqu xmm2, xmmword [rsp + 0x128]
movdqu xmm3, xmmword [rsp + 0x138]
movdqa xmmword [rsp + 0xd0], xmm3
movdqa xmmword [rsp + 0xc0], xmm2
movdqa xmmword [rsp + 0xb0], xmm1
movdqa xmmword [rsp + 0xa0], xmm0
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x140035367
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400356cb
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x58
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400356cb
mov qword [rax], 1
mov qword [rax + 8], 1
movdqa xmm0, xmmword [rsp + 0xa0]
movdqa xmm1, xmmword [rsp + 0xb0]
movdqa xmm2, xmmword [rsp + 0xc0]
movdqa xmm3, xmmword [rsp + 0xd0]
movdqu xmmword [rax + 0x10], xmm0
movdqu xmmword [rax + 0x20], xmm1
movdqu xmmword [rax + 0x30], xmm2
movdqu xmmword [rax + 0x40], xmm3
mov rcx, qword [rsp + 0xe0]
mov qword [rax + 0x50], rcx
cmp qword [rax + 0x20], 0
je 0x1400356cb
mov r9, qword [rax + 0x40]
mov rsi, r9
cmp r9, 1
je 0x140035438
test r9, r9
je 0x1400356cb
lea rcx, [r9 - 1]
lea rdx, [r9 - 2]
mov r8d, ecx
and r8d, 7
cmp rdx, 7
jae 0x14003540d
mov esi, 1
jmp 0x14003542a
and rcx, 0xfffffffffffffff8
mov esi, 1
nop word cs:[rax + rax]
shl rsi, 8
add rcx, 0xfffffffffffffff8
jne 0x140035420
test r8, r8
je 0x140035438
nop
add rsi, rsi
dec r8
jne 0x140035430
lock inc qword [rax]
jle 0x1400356cb
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], rax
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x140035477
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400356cb
mov rcx, rax
mov qword [0x1402d9150], rax
mov r8d, 0x600
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400356cb
mov r14, rax
mov qword [rsp + 0x88], rsi
mov rcx, qword [rsp + 0x28]
mov r12, rcx
add r12, 0x10
add rax, 0xffffffffffffffe8
xor r8d, r8d
pxor xmm0, xmm0
nop
mov rdx, r8
mov qword [r14 + r8], 8
movdqu xmmword [r14 + r8 + 8], xmm0
add r8, 0x18
cmp r8, 0x5e8
jne 0x1400354b0
add rax, rdx
add rax, 0x18
mov qword [r14 + r8], 8
pxor xmm0, xmm0
movdqu xmmword [rax + 0x20], xmm0
mov r11, qword [rsp + 0x30]
lea r13, [r11 - 1]
mov ebp, r11d
and ebp, 7
mov rax, r11
and rax, 0xfffffffffffffff8
mov qword [rsp + 0x90], rax
xor edi, edi
jmp 0x140035526
inc rdi
mov rax, qword [rsi]
shl rdx, 4
mov qword [rax + rdx], r15
mov dword [rax + rdx + 8], ebx
inc qword [rsi + 0x10]
mov rsi, qword [rcx + 0x20]
cmp rdi, rsi
mov rax, qword [rsp + 0x98]
jae 0x14003563a
cmp rdi, qword [rcx + 0x38]
jae 0x1400356cb
mov rax, qword [rcx + 0x28]
mov ebx, dword [rax + rdi*4]
cmp rsi, rbx
jbe 0x1400356cb
mov rax, qword [r12]
lea rdx, [rbx + rbx*2]
cmp r11, qword [rax + rdx*8 + 0x10]
ja 0x1400356cb
mov rax, qword [rax + rdx*8]
cmp r13, 7
jae 0x140035580
xor r15d, r15d
jmp 0x1400355e8
mov r10, qword [rsp + 0x90]
xor r15d, r15d
nop dword [rax + rax]
movzx edx, byte [rax]
movzx r8d, byte [rax + 1]
add rdx, rdx
lea rdx, [rdx + r15*4]
add rdx, r8
movzx r8d, byte [rax + 2]
movzx r9d, byte [rax + 3]
add r8, r8
lea rdx, [r8 + rdx*4]
add rdx, r9
movzx r8d, byte [rax + 4]
movzx r9d, byte [rax + 5]
add r8, r8
lea rdx, [r8 + rdx*4]
add rdx, r9
movzx r8d, byte [rax + 6]
movzx r9d, byte [rax + 7]
add rax, 8
add r8, r8
lea r15, [r8 + rdx*4]
add r15, r9
add r10, 0xfffffffffffffff8
jne 0x140035590
test rbp, rbp
je 0x140035601
xor r8d, r8d
movzx edx, byte [rax + r8]
lea r15, [rdx + r15*2]
inc r8
cmp rbp, r8
jne 0x1400355f0
mov eax, r15d
and eax, 0x3f
lea rax, [rax + rax*2]
lea rsi, [r14 + rax*8]
mov rdx, qword [r14 + rax*8 + 0x10]
cmp rdx, qword [r14 + rax*8 + 8]
jne 0x140035510
mov rcx, rsi
call fcn.14008a0c0
mov r11, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsi + 0x10]
jmp 0x140035510
test byte [rax + 0x4a], 1
jne 0x1400356bd
lock inc qword [rcx]
jle 0x1400356cb
movzx ebx, byte [rax + 0x49]
movzx r15d, byte [rax + 0x4c]
movzx ebp, byte [rax + 0x4b]
mov qword [rsp + 0x40], rcx
test bl, bl
je 0x14003566a
cmp rsi, 0x40
ja 0x14003574e
mov rax, qword [rcx + 0x40]
cmp rax, 4
mov r12d, 4
cmovb r12, rax
mov rdi, qword [0x1402d9158]
test rdi, rdi
je 0x1400356d8
and rdi, 0x8000
jne 0x1400356f3
mov rax, qword [0x1402d9158]
test rax, rax
je 0x14003599c
test r15b, 1
jne 0x14003574e
cmp r15b, 2
jne 0x1400356cf
test eax, 0x200
jne 0x140035701
jmp 0x14003574e
xor eax, eax
xor edx, edx
mov rsi, qword [rsp + 0x50]
jmp 0x1400357a0
ud2
test eax, 0x200
je 0x14003574e
jmp 0x140035708
call fcn.1401cb500
mov r11, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rdi, rax
and rdi, 0x8000
je 0x140035691
mov al, 1
test r15b, 1
jne 0x14003570a
cmp r15b, 2
jne 0x140035708
shr edi, 0xf
mov eax, edi
jmp 0x14003570a
xor eax, eax
test ebp, ebp
je 0x140035725
cmp ebp, 2
jne 0x14003572a
cmp rsi, 0x21
setae dl
test al, al
setne r9b
and r9b, dl
jmp 0x140035731
xor r9d, r9d
jmp 0x140035731
mov r9b, 1
test al, al
je 0x14003574e
test bl, bl
je 0x14003585f
cmp r12, 1
jne 0x14003585f
cmp qword [rcx + 0x20], 0x10
jbe case.0x14003587a.1
mov qword [rsp + 0xa0], 0
lock dec qword [rcx]
mov rsi, qword [rsp + 0x50]
jne 0x140035779
mov rcx, qword [rsp + 0x40]
call fcn.140032f20
mov r11, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x1400357f7
movdqu xmm0, xmmword [rsp + 0xa8]
movdqa xmmword [rsp + 0x150], xmm0
mov rdx, qword [rsp + 0xb8]
movaps xmm0, xmmword [rsp + 0x150]
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0x40
mov qword [rsi + 0x20], 0x40
mov qword [rsi + 0x28], r11
mov r8, qword [rsp + 0x88]
mov qword [rsi + 0x30], r8
mov qword [rsi], rcx
mov qword [rsi + 0x38], rax
mov qword [rsi + 0x50], rdx
mov qword [rsi + 0x58], rdx
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsi], 0
lock dec qword [rcx]
jne 0x140035809
call fcn.140032f20
mov esi, 8
jmp 0x14003581d
add rsi, 0x18
cmp rsi, 0x608
je 0x140035839
cmp qword [r14 + rsi], 0
je 0x140035810
mov r8, qword [r14 + rsi - 8]
mov rcx, qword [0x1402d9150]
xor edx, edx
call sub.kernel32.dll_HeapFree
jmp 0x140035810
mov rcx, qword [0x1402d9150]
xor edx, edx
mov r8, r14
call sub.kernel32.dll_HeapFree
mov rcx, qword [rsp + 0x28]
lock dec qword [rcx]
jne 0x1400357e3
call fcn.140032f20
jmp 0x1400357e3
dec r12
cmp r12, 3
ja case.default.0x14003587a
lea rdx, [0x1401f72e0]
movsxd r8, dword [rdx + r12*4]
add r8, rdx
jmp r8
test al, al
je 0x1400358b7
test r9b, r9b
je 0x1400358ea
mov rax, qword [0x1402d9158]
test rax, rax
je 0x140035a1b
test ax, ax
mov rsi, qword [rsp + 0x50]
jns 0x140035908
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.14001c840
jmp 0x140035a6c
mov rax, qword [0x1402d9158]
test rax, rax
je 0x1400359f7
test eax, 0x200
mov rsi, qword [rsp + 0x50]
je 0x140035908
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.14000e1f0
jmp 0x140035a6c
mov rax, qword [0x1402d9158]
test rax, rax
je 0x140035a3d
test ax, ax
mov rsi, qword [rsp + 0x50]
js 0x140035a5a
mov qword [rsp + 0xa0], 0
jmp 0x140035a76
mov qword [rsp + 0xa0], 0
mov rsi, qword [rsp + 0x50]
jmp 0x140035a76
test al, al
mov rsi, qword [rsp + 0x50]
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
je 0x1400359ba
test r9b, r9b
je 0x1400359d8
call fcn.14001da00
jmp 0x1400359eb
test al, al
mov rsi, qword [rsp + 0x50]
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
je 0x1400359c4
test r9b, r9b
je 0x1400359df
call fcn.14001eb60
jmp 0x1400359eb
test al, al
mov rsi, qword [rsp + 0x50]
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
je 0x1400359ce
test r9b, r9b
je 0x1400359e6
call fcn.14001fe30
jmp 0x1400359eb
call fcn.1401cb500
mov r11, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test r15b, 1
je 0x1400356ab
jmp 0x14003574e
call fcn.14000f0a0
jmp 0x140035a6c
call fcn.140010240
jmp 0x140035a6c
call fcn.1400114b0
jmp 0x140035a6c
call fcn.140014980
jmp 0x1400359eb
call fcn.140017220
jmp 0x1400359eb
call fcn.140019c30
mov rcx, qword [rsp + 0x28]
mov r11, qword [rsp + 0x30]
jmp 0x140035a76
call fcn.1401cb500
mov r11, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test eax, 0x200
mov rsi, qword [rsp + 0x50]
je 0x140035908
jmp 0x1400358d3
call fcn.1401cb500
mov r11, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test ax, ax
mov rsi, qword [rsp + 0x50]
jns 0x140035908
jmp 0x1400358a0
call fcn.1401cb500
mov r11, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
test ax, ax
mov rsi, qword [rsp + 0x50]
jns 0x140035908
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.140012870
mov r11, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
lock dec qword [rcx]
je 0x140035765
jmp 0x140035779