Function at 0x140031850
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Encode data using base64
Encrypt data using speck
Get common file path
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x618
movdqa xmmword [rsp + 0x600], xmm6
mov qword [rsp + 0x70], r8
mov qword [rsp + 0xc0], rcx
movzx eax, byte [rdx + 0xa0]
mov qword [rsp + 0xa8], rdx
mov r10, qword [rdx + 0x98]
test r10, r10
setne cl
or cl, al
mov byte [rsp + 0x56], cl
cmp cl, 1
jne 0x140031ac4
mov qword [rsp + 0x1c8], 0
mov qword [rsp + 0x1d8], 0
test al, al
jne 0x140031ada
mov qword [rsp + 0x60], r10
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140035532
mov rsi, rax
cmp word [rax], 0
je 0x140031acc
lea rdi, [rsp + 0x220]
lea r14, [rsp + 0x120]
lea r13, [rsp + 0x1a0]
mov rbp, rsi
jmp 0x14003191f
cmp word [r12], 0
mov rbp, r12
je 0x140031acc
mov rcx, 0xfffffffffffffffe
xor edx, edx
nop dword [rax + rax]
mov rbx, rdx
mov rax, rcx
inc rdx
add rcx, 2
cmp word [rbp + rbx*2], 0
jne 0x140031930
lea rcx, [rbx + rbx]
lea r12, [rcx + rbp]
add r12, 2
cmp rbx, 1
je 0x140031910
test rbx, rbx
je 0x1400353e2
xor r15d, r15d
nop word cs:[rax + rax]
cmp word [rbp + r15*2 + 2], 0x3d
je 0x140031990
inc r15
add rax, 0xfffffffffffffffe
jne 0x140031970
jmp 0x140031910
cmp r15, rbx
jae 0x1400353e2
lea r8, [r15 + 1]
mov rcx, r14
mov rdx, rbp
call fcn.14002c7c0
add r15, 2
sub rbx, r15
jb 0x1400353e2
lea rdx, [r15*2]
add rdx, rbp
mov rcx, rdi
mov r8, rbx
call fcn.14002c7c0
movups xmm0, xmmword [rsp + 0x120]
movups xmm1, xmmword [rsp + 0x130]
movaps xmmword [rsp + 0x210], xmm1
movaps xmmword [rsp + 0x200], xmm0
mov rbx, qword [rsp + 0x200]
mov r15, qword [rsp + 0x208]
movdqa xmm6, xmmword [rsp + 0x210]
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x1a0], xmm0
movaps xmmword [rsp + 0x1b0], xmm1
movabs rax, 0x8000000000000000
cmp rbx, rax
je 0x140031acc
movq rax, xmm6
add rax, r15
mov qword [rsp + 0x120], r15
mov qword [rsp + 0x128], rax
mov word [rsp + 0x130], 0
lea rcx, [rsp + 0x220]
mov rdx, r14
call fcn.140035540
mov qword [rsp + 0x200], rbx
mov qword [rsp + 0x208], r15
movdqu xmmword [rsp + 0x210], xmm6
mov rcx, r14
lea rdx, [rsp + 0x1c8]
lea r8, [rsp + 0x200]
mov r9, r13
call fcn.140035700
mov rax, qword [rsp + 0x120]
shl rax, 1
test rax, rax
je 0x140031910
mov r8, qword [rsp + 0x128]
mov rcx, qword [0x141d0ba00]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140031910
xor r14d, r14d
jmp 0x14003258b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov r10, qword [rsp + 0x60]
test r10, r10
setne cl
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 0x88]
test rax, rax
setne dl
test dl, cl
je 0x1400323e9
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rcx + 0x90]
xor r14d, r14d
jmp 0x140031b3b
mov rcx, qword [0x141d0ba00]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0
mov r10, qword [rsp + 0x60]
dec r10
mov rdx, qword [rsp + 0x78]
je 0x1400323e9
test r14, r14
je 0x140031b60
movzx ecx, word [r14 + 0x3d2]
cmp rdx, rcx
jae 0x140031c10
mov rcx, rdx
mov rsi, r14
jmp 0x140031c37
test rdx, rdx
je 0x140031b9d
mov rcx, rdx
and rcx, 7
je 0x140031ba2
mov r14, rax
xor eax, eax
nop word cs:[rax + rax]
mov r14, qword [r14 + 0x3d8]
inc rax
cmp rcx, rax
jne 0x140031b80
mov rcx, rdx
sub rcx, rax
cmp rdx, 8
jae 0x140031bb0
jmp 0x140031bee
mov r14, rax
jmp 0x140031bee
mov rcx, rdx
mov r14, rax
cmp rdx, 8
jb 0x140031bee
nop
mov rax, qword [r14 + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov r14, qword [rax + 0x3d8]
add rcx, 0xfffffffffffffff8
jne 0x140031bb0
xor eax, eax
xor edx, edx
movzx ecx, word [r14 + 0x3d2]
cmp rdx, rcx
jb 0x140031b51
nop word cs:[rax + rax]
mov rsi, qword [r14 + 0x160]
test rsi, rsi
je 0x1400353e2
inc rax
movzx ecx, word [r14 + 0x3d0]
mov r14, rsi
cmp cx, word [rsi + 0x3d2]
jae 0x140031c10
test rax, rax
mov qword [rsp + 0x60], r10
je 0x140031ce0
mov r14, qword [rsi + rcx*8 + 0x3e0]
mov rdx, rax
dec rdx
je 0x140031cce
mov r8, rdx
and r8, 7
je 0x140031c82
xor r9d, r9d
nop word cs:[rax + rax]
mov r14, qword [r14 + 0x3d8]
inc r9
cmp r8, r9
jne 0x140031c70
sub rdx, r9
add rax, 0xfffffffffffffffe
cmp rax, 7
jb 0x140031cce
nop dword [rax]
mov rax, qword [r14 + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov r14, qword [rax + 0x3d8]
add rdx, 0xfffffffffffffff8
jne 0x140031c90
xor ebp, ebp
jmp 0x140031ce7
lea rbp, [rcx + 1]
mov r14, rsi
imul rax, rcx, 0x38
lea r15, [rsi + rax]
add r15, 0x168
shl rcx, 5
movabs rax, 0x8000000000000000
cmp qword [rsi + rcx], rax
mov qword [rsp + 0x78], rbp
jne 0x140031e10
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x198], rax
test rax, rax
je 0x140031b23
mov rbx, qword [r15 + 0x28]
mov r13, qword [r15 + 0x30]
mov rax, qword [rsp + 0x1d0]
lea ecx, [rax + 7]
mov dword [rsp + 0x58], ecx
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x68], rax
mov rbp, qword [rsp + 0x198]
lea rcx, [rbp + 0x168]
movzx esi, word [rbp + 0x3d2]
imul rdi, rsi, 0x38
mov r15, 0xffffffffffffffff
nop dword [rax]
test rdi, rdi
je 0x140031dd0
lea r12, [rcx + 0x38]
mov r8, qword [rcx + 0x28]
mov r9d, dword [rcx + 0x30]
mov dword [rsp + 0x20], 1
mov rcx, rbx
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
inc r15
add rdi, 0xffffffffffffffc8
mov rcx, r12
cmp eax, 3
je 0x140031d80
cmp eax, 1
jne 0x140031e50
mov rax, qword [rsp + 0x68]
test rax, rax
jne 0x140031de1
jmp 0x140031b23
mov r15, rsi
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140031b23
mov rbp, qword [rbp + r15*8 + 0x3d8]
dec rax
mov qword [rsp + 0x68], rax
inc qword [rsp + 0xb0]
mov eax, dword [rsp + 0x58]
add al, 7
mov dword [rsp + 0x58], eax
jmp 0x140031d64
add rsi, rcx
mov rdi, qword [r15 + 0x10]
test rdi, rdi
js 0x1400353e2
mov r12, qword [r15 + 8]
je 0x140031f63
movzx eax, byte [0x141d0ba30]
xor ecx, ecx
mov rdx, rdi
call fcn.14003b500
mov rbx, rax
test rax, rax
jne 0x140031f68
jmp 0x1400353e2
cmp eax, 2
mov r9, qword [rsp + 0x68]
jne 0x140035532
mov byte [rsp + 0x57], 0
test r9, r9
je 0x1400320e1
mov rax, qword [rbp + r15*8 + 0x3d8]
mov rcx, r9
dec rcx
je 0x140032124
test cl, 7
mov rbp, qword [rsp + 0x190]
je 0x140031ec6
movzx ecx, byte [rsp + 0x58]
and ecx, 7
neg rcx
mov edx, 1
nop dword [rax]
movzx r8d, word [rax + 0x3d2]
mov rax, qword [rax + r8*8 + 0x3d8]
lea r8, [rcx + rdx]
inc r8
inc rdx
cmp r8, 1
jne 0x140031ea0
sub r9, rdx
mov rcx, r9
mov rdx, rbp
sub rdx, qword [rsp + 0xb0]
add rdx, 0xfffffffffffffffe
cmp rdx, 7
jb 0x14003212c
nop
movzx edx, word [rax + 0x3d2]
mov rax, qword [rax + rdx*8 + 0x3d8]
movzx edx, word [rax + 0x3d2]
mov rax, qword [rax + rdx*8 + 0x3d8]
movzx edx, word [rax + 0x3d2]
mov rax, qword [rax + rdx*8 + 0x3d8]
movzx edx, word [rax + 0x3d2]
mov rax, qword [rax + rdx*8 + 0x3d8]
movzx edx, word [rax + 0x3d2]
mov rax, qword [rax + rdx*8 + 0x3d8]
movzx edx, word [rax + 0x3d2]
mov rax, qword [rax + rdx*8 + 0x3d8]
movzx edx, word [rax + 0x3d2]
mov rax, qword [rax + rdx*8 + 0x3d8]
movzx edx, word [rax + 0x3d2]
mov rax, qword [rax + rdx*8 + 0x3d8]
add rcx, 0xfffffffffffffff8
jne 0x140031ee0
jmp 0x14003212c
mov ebx, 1
mov rcx, rbx
mov rdx, r12
mov r8, rdi
call fcn.140051c00
mov r13, qword [r15 + 0x30]
test r13, r13
js 0x1400353e2
lea r12, [r13*2]
movabs rax, 0x8000000000000000
add rax, 0xfffffffffffffffe
cmp r12, rax
ja 0x1400353e2
movzx eax, byte [r15 + 0x18]
mov byte [rsp + 0x68], al
mov rdx, qword [r15 + 0x28]
test r12, r12
je 0x140031fdb
movzx eax, byte [0x141d0ba30]
xor ecx, ecx
mov r15, rdx
mov rdx, r12
call fcn.14003b500
mov rdx, r15
mov rbp, rax
mov r15, r13
test rax, rax
jne 0x140031fe3
jmp 0x1400353e2
mov ebp, 2
xor r15d, r15d
mov rcx, rbp
mov r8, r12
call fcn.140051c00
mov qword [rsp + 0x200], rdi
mov qword [rsp + 0x208], rbx
mov qword [rsp + 0x210], rdi
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x218], al
mov qword [rsp + 0x220], r15
mov qword [rsp + 0x228], rbp
mov qword [rsp + 0x230], r13
mov rdi, qword [rsi + 0x10]
test rdi, rdi
js 0x1400353e2
mov rbx, qword [rsi + 8]
je 0x14003205b
movzx eax, byte [0x141d0ba30]
xor ecx, ecx
mov rdx, rdi
call fcn.14003b500
mov r12, rax
test rax, rax
jne 0x140032061
jmp 0x1400353e2
mov r12d, 1
mov rcx, r12
mov rdx, rbx
mov r8, rdi
call fcn.140051c00
movzx eax, byte [rsi + 0x18]
mov qword [rsp + 0x120], rdi
mov qword [rsp + 0x128], r12
mov qword [rsp + 0x130], rdi
mov byte [rsp + 0x138], al
lea rcx, [rsp + 0xe0]
lea rdx, [rsp + 0x1c8]
lea r8, [rsp + 0x200]
lea r9, [rsp + 0x120]
call fcn.140035700
mov rax, qword [rsp + 0xe0]
shl rax, 1
test rax, rax
je 0x140031b23
mov r8, qword [rsp + 0xe8]
mov rcx, qword [0x141d0ba00]
xor edx, edx
jmp 0x140031b1d
mov qword [rsp + 0x120], rbp
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], r15
lea rcx, [rsp + 0x200]
lea rdx, [rsp + 0x120]
lea r8, [rsp + 0x57]
call fcn.140036b70
mov rbp, qword [rsp + 0x190]
jmp 0x140032320
mov rbp, qword [rsp + 0x190]
movzx ecx, word [rax + 0x3d2]
dec rcx
mov qword [rsp + 0x1e8], rax
mov qword [rsp + 0x1f0], 0
mov qword [rsp + 0x1f8], rcx
lea rcx, [rsp + 0x200]
lea rdx, [rsp + 0x1e8]
lea r8, [rsp + 0x57]
call fcn.140036b70
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x110], rax
movups xmm0, xmmword [rsp + 0x200]
movups xmm1, xmmword [rsp + 0x210]
movups xmm2, xmmword [rsp + 0x220]
movaps xmmword [rsp + 0x100], xmm2
movaps xmmword [rsp + 0xf0], xmm1
movaps xmmword [rsp + 0xe0], xmm0
lea rax, [rsp + 0x238]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm1
mov rax, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x268]
movzx edx, word [rax + 0x3d2]
cmp rcx, rdx
jb 0x140032207
nop word [rax + rax]
movzx ecx, word [rax + 0x3d0]
mov rax, qword [rax + 0x160]
cmp cx, word [rax + 0x3d2]
jae 0x1400321f0
imul rdx, rcx, 0x38
shl rcx, 5
mov r8, qword [rax + rdx + 0x198]
mov qword [rsp + 0x150], r8
movups xmm0, xmmword [rax + rdx + 0x168]
movups xmm1, xmmword [rax + rdx + 0x178]
movups xmm2, xmmword [rax + rdx + 0x188]
movaps xmmword [rsp + 0x140], xmm2
movaps xmmword [rsp + 0x130], xmm1
movaps xmmword [rsp + 0x120], xmm0
mov r8, qword [rsp + 0x110]
mov qword [rax + rdx + 0x198], r8
movaps xmm0, xmmword [rsp + 0xe0]
movaps xmm1, xmmword [rsp + 0xf0]
movaps xmm2, xmmword [rsp + 0x100]
movups xmmword [rax + rdx + 0x188], xmm2
movups xmmword [rax + rdx + 0x178], xmm1
movups xmmword [rax + rdx + 0x168], xmm0
movups xmm0, xmmword [rax + rcx]
movups xmm1, xmmword [rax + rcx + 0x10]
lea rdx, [rsp + 0x158]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
movups xmmword [rax + rcx + 0x10], xmm1
movups xmmword [rax + rcx], xmm0
movaps xmm0, xmmword [rsp + 0x120]
movaps xmm1, xmmword [rsp + 0x130]
movaps xmm2, xmmword [rsp + 0x140]
movaps xmm3, xmmword [rsp + 0x150]
movaps xmmword [rsp + 0x200], xmm0
movaps xmmword [rsp + 0x210], xmm1
movaps xmmword [rsp + 0x220], xmm2
movaps xmmword [rsp + 0x230], xmm3
movaps xmm0, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x240], xmm0
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x250], rax
mov r15, qword [rsp + 0x200]
mov r12, qword [rsp + 0x208]
mov rdi, qword [rsp + 0x220]
mov r13, qword [rsp + 0x228]
dec qword [rsp + 0x1d8]
mov rsi, qword [rsp + 0x238]
mov rbx, qword [rsp + 0x240]
cmp byte [rsp + 0x57], 0
je 0x1400323a4
test rbp, rbp
je 0x1400353e2
mov r8, qword [rsp + 0x198]
mov rax, qword [r8 + 0x3d8]
mov qword [rsp + 0x1c8], rax
dec rbp
mov qword [rsp + 0x1d0], rbp
mov qword [rax + 0x160], 0
mov rcx, qword [0x141d0ba00]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
neg r15
jo 0x140031b23
jae 0x1400323c1
mov rcx, qword [0x141d0ba00]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x1400323d8
mov rcx, qword [0x141d0ba00]
xor edx, edx
mov r8, r13
call qword [sym.imp.KERNEL32.dll_HeapFree]
shl rsi, 1
test rsi, rsi
je 0x140031b23
jmp 0x140031b11
mov rsi, qword [rsp + 0x1c8]
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x1d8]
mov qword [rsp + 0x1c0], rax
movzx eax, byte [0x141d0ba30]
mov edx, 4
xor ecx, ecx
call fcn.14003b500
test rax, rax
je 0x1400353e2
mov rbx, rax
mov dword [rax], 0x48544150
add rax, 4
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x128], rax
mov word [rsp + 0x130], 0
lea rcx, [rsp + 0x220]
lea rdx, [rsp + 0x120]
call fcn.140035540
mov rdi, qword [rsp + 0x228]
test rsi, rsi
mov qword [rsp + 0x190], rsi
je 0x140032559
mov qword [rsp + 0x58], rbx
mov ebx, dword [rsp + 0x230]
xor r14d, r14d
mov r12, qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
mov r13, qword [rsp + 0x198]
lea rcx, [rsi + 0x168]
mov qword [rsp + 0x60], rsi
movzx eax, word [rsi + 0x3d2]
mov qword [rsp + 0x78], rax
imul rsi, rax, 0x38
mov rbp, 0xffffffffffffffff
nop word cs:[rax + rax]
test rsi, rsi
je 0x140032510
lea r15, [rcx + 0x38]
mov r8, qword [rcx + 0x28]
mov r9d, dword [rcx + 0x30]
mov dword [rsp + 0x20], 1
mov rcx, rdi
mov edx, ebx
call r12
inc rbp
add rsi, 0xffffffffffffffc8
mov rcx, r15
cmp eax, 3
je 0x1400324d0
cmp eax, 1
jne 0x140032531
jmp 0x140032515
mov rbp, qword [rsp + 0x78]
sub r13, 1
jb 0x1400329bb
mov rsi, qword [rsp + 0x60]
mov rsi, qword [rsi + rbp*8 + 0x3d8]
jmp 0x1400324a0
cmp eax, 2
jne 0x140035532
shl rbp, 5
mov rax, qword [rsp + 0x60]
mov r14, qword [rax + rbp + 8]
mov rax, qword [rax + rbp + 0x10]
mov qword [rsp + 0x68], rax
mov rbx, qword [rsp + 0x58]
jmp 0x14003255c
xor r14d, r14d
mov rcx, qword [0x141d0ba00]
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x220], 0
je 0x14003258b
mov rcx, qword [0x141d0ba00]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0xa8]
mov rdi, qword [rcx + 0x10]
lea r13, [0x141cfdea8]
test rdi, rdi
mov rax, qword [rsp + 0x70]
je 0x14003487b
mov r15, qword [rcx + 8]
cmp rdi, 4
jae 0x1400325bf
lea rax, [0x140037400]
jmp 0x1400325e8
mov eax, dword [r15]
bswap eax
xor ecx, ecx
cmp eax, 0x5c5c3f5c
setb cl
cmp eax, 0x5c5c3f5d
adc ecx, 0xffffffff
lea rcx, [0x1400373f0]
lea rax, [0x140037400]
cmove rax, rcx
movzx esi, byte [rdi + r15 - 1]
mov ecx, esi
call rax
test al, al
mov rax, qword [rsp + 0x70]
jne 0x14003487b
lea r11, [r15 + rdi]
cmp rdi, 3
jbe 0x14003266a
movzx eax, byte [r11 - 4]
lea ecx, [rax - 0x41]
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x2e
jne 0x1400326a1
movzx eax, byte [r11 - 3]
lea ecx, [rax - 0x41]
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x65
jne 0x1400326a1
movzx eax, byte [r11 - 2]
lea ecx, [rax - 0x41]
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x78
jne 0x1400326a1
lea eax, [rsi - 0x41]
cmp al, 0x1a
setb al
shl al, 5
or al, sil
cmp al, 0x65
sete al
jmp 0x1400326a3
xor eax, eax
movabs rsi, 0x8000000000000000
nop word cs:[rax + rax]
cmp rdi, rax
je 0x14003280b
movzx ecx, byte [r15 + rax]
cmp ecx, 0x2f
je 0x140032718
inc rax
cmp ecx, 0x5c
jne 0x140032680
jmp 0x140032718
xor eax, eax
xor ecx, ecx
movabs rsi, 0x8000000000000000
nop
cmp rdi, rcx
je 0x14003280b
movzx edx, byte [r15 + rcx]
cmp edx, 0x5c
je 0x1400326cb
inc rcx
cmp edx, 0x2f
jne 0x1400326b0
test al, al
je 0x140032718
mov qword [rsp + 0xd0], r11
lea rcx, [rsp + 0x120]
mov rdx, r15
mov r8, rdi
call fcn.14002d850
mov rcx, qword [rsp + 0x120]
mov rax, qword [rsp + 0x128]
cmp rcx, rsi
jne 0x140032981
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x1a0], rsi
jmp 0x140033207
mov qword [rsp + 0xd0], r11
test rdi, rdi
js 0x1400353e2
movzx eax, byte [0x141d0ba30]
xor ecx, ecx
mov rdx, rdi
call fcn.14003b500
test rax, rax
je 0x1400353e2
mov rsi, rax
mov rcx, rax
mov rdx, r15
mov r8, rdi
call fcn.140051c00
mov qword [rsp + 0x200], rdi
mov qword [rsp + 0x208], rsi
mov qword [rsp + 0x210], rdi
mov qword [rsp + 0x218], 0
lea rdx, [0x141cfdec0]
lea rcx, [rsp + 0x200]
mov r8d, 4
call fcn.14002dd30
mov rbx, qword [rsp + 0x200]
mov rsi, qword [rsp + 0x208]
mov rdi, qword [rsp + 0x210]
lea rcx, [rsp + 0x120]
mov rdx, rsi
mov r8, rdi
call fcn.140037410
movabs rax, 0x8000000000000000
cmp qword [rsp + 0x120], rax
jne 0x1400328de
mov rcx, rsi
mov rdx, rdi
call fcn.140031580
test rax, rax
je 0x14003316d
cmp rdx, 2
jne 0x140032903
cmp word [rax], 0x2e2e
jne 0x140032903
mov r8d, 2
xor ecx, ecx
jmp 0x140033134
xor r8d, r8d
lea r13, [0x141cfde70]
mov rax, r15
jmp 0x14003282c
xor r8d, r8d
test cx, cx
je 0x140034876
mov cx, 1
test r8w, r8w
jne 0x140032820
cmp rax, r11
je 0x14003293e
movzx edx, byte [rax]
test dl, dl
js 0x14003284b
inc rax
jmp 0x1400328aa
mov r8d, edx
and r8d, 0x1f
movzx r10d, byte [rax + 1]
and r10d, 0x3f
cmp dl, 0xdf
jbe 0x14003289c
movzx r9d, byte [rax + 2]
shl r10d, 6
and r9d, 0x3f
or r9d, r10d
cmp dl, 0xf0
jb 0x1400328b4
movzx edx, byte [rax + 3]
add rax, 4
and r8d, 7
shl r8d, 0x12
shl r9d, 6
and edx, 0x3f
or edx, r9d
or edx, r8d
cmp edx, 0xffff
jbe 0x1400328aa
jmp 0x1400328ca
add rax, 2
shl r8d, 6
or r8d, r10d
mov edx, r8d
xor r8d, r8d
mov ecx, edx
jmp 0x140032823
add rax, 3
shl r8d, 0xc
or r9d, r8d
mov edx, r9d
cmp edx, 0xffff
jbe 0x1400328aa
and edx, 0x3ff
or edx, 0xdc00
mov r8d, edx
jmp 0x140032823
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x1b0], rax
movups xmm0, xmmword [rsp + 0x120]
movaps xmmword [rsp + 0x1a0], xmm0
jmp 0x1400331e6
mov r8, rdx
nop word cs:[rax + rax]
test r8, r8
je 0x1400329c0
mov r9, r8
dec r8
cmp byte [rax + r9 - 1], 0x2e
jne 0x140032910
test r8, r8
je 0x14003312f
sub rdx, r9
mov rcx, rax
add rcx, r9
jmp 0x140033134
cmp rdi, 0xf
mov qword [rsp + 0xc8], r15
mov qword [rsp + 0x188], rdi
mov qword [rsp + 0xd0], r11
ja 0x1400329cd
mov qword [rsp + 0xb8], 0
xor eax, eax
nop word [rax + rax]
cmp byte [r15 + rax], 0x2e
je 0x1400329dc
inc rax
cmp rdi, rax
jne 0x140032970
jmp 0x1400329e9
mov rdx, qword [rsp + 0x130]
mov qword [rsp + 0x200], rcx
mov qword [rsp + 0x208], rax
mov qword [rsp + 0x210], rdx
lea rcx, [rsp + 0x1a0]
lea rdx, [rsp + 0x200]
call fcn.140037530
jmp 0x140033207
jmp 0x140032552
mov rcx, rax
mov r8, rdx
xor eax, eax
jmp 0x140033134
mov cl, 0x2e
mov rdx, r15
mov r8, rdi
call fcn.14001c490
jmp 0x1400329e1
mov eax, 1
mov qword [rsp + 0xb8], rax
test r14, r14
je 0x14003303f
add qword [rsp + 0x68], r14
mov bl, 1
mov qword [rsp + 0x60], 0
nop word cs:[rax + rax]
call sub.KERNEL32.dll_GetLastError
ud2