Function at 0x14014c510
Capabilities:
Encode data using base64
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x420], rax
mov r14, qword [rbp + 0x490]
xor ebx, ebx
xorps xmm0, xmm0
mov qword [rbp + 0x78], r8
mov rcx, r8
mov dword [rbp + 0x50], 0x4034b50
mov r12d, r9d
mov dword [rbp + 0x54], 0x8000014
lea edi, [rbx + 1]
mov dword [rbp + 0x58], 8
mov rsi, rdx
mov word [rbp + 0x5c], bx
movups xmmword [rbp + 0x5e], xmm0
mov dword [rbp - 0x30], 0x2014b50
mov word [rbp - 0x2c], 0x3f
mov dword [rbp - 0x2a], 0x8000014
mov dword [rbp - 0x26], 8
mov word [rbp - 0x22], bx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x10], ebx
mov word [rbp - 0xc], bx
mov qword [rbp - 0xa], rbx
mov qword [rbp + 0xe0], 0x6054b50
mov qword [rbp + 0xe8], 0x10001
mov dword [rbp + 0xf0], ebx
mov word [rbp + 0xf4], bx
call fcn.14014da80
mov r15, rax
test rax, rax
jne 0x14014c5dd
mov eax, edi
jmp 0x14014d061
mov ecx, 0x10000
mov qword [rsp + 0x570], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, 0x10000
mov qword [rsp + 0x60], rax
mov r13, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, 0x132
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x48], rax
test r13, r13
je 0x14014cffd
test rdi, rdi
je 0x14014cffd
test rax, rax
je 0x14014cffd
mov rsi, qword [rsi]
xor edx, edx
mov r8d, 0x101
mov dword [rsp + 0x20], ebx
mov rcx, rsi
lea r9d, [rdx + 4]
call fcn.14018cd60
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14014cff3
xor r9d, r9d
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0xb8]
mov rcx, rax
call fcn.14018db40
mov eax, dword [rbp + 0x68]
mov ebx, 0x103
movsd xmm1, qword [rbp + 0x60]
mov dword [rbp + 0xd8], eax
movzx eax, word [rbp + 0x6c]
mov word [rbp + 0xdc], ax
movsd qword [rbp + 0xd0], xmm1
movups xmm0, xmmword [rbp + 0x50]
movups xmmword [rbp + 0xc0], xmm0
test r14, r14
je 0x14014c6fb
mov r8, qword [r14]
test r8, r8
je 0x14014c6fb
cmp word [r8], 0
je 0x14014c6fb
mov r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [r8 + rax*2], 0
jne 0x14014c6c1
lfence
mov edx, 0x104
lea rcx, [rbp + 0x210]
cmp rax, rdx
jb 0x14014c773
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor esi, esi
mov word [rbp + 0x416], si
jmp 0x14014c77b
mov r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp word [rsi + rax*2], 0
jne 0x14014c705
lea rcx, [rsi - 2]
lea rcx, [rcx + rax*2]
test rax, rax
je 0x14014c779
nop dword [rax]
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x14014c740
cmp dx, 0x2f
je 0x14014c73b
sub rcx, 2
sub rax, 1
jne 0x14014c720
jmp 0x14014c779
test rax, rax
je 0x14014c779
lea r8, [rcx + 2]
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x14014c750
lfence
mov edx, 0x104
lea rcx, [rbp + 0x210]
cmp rax, rdx
jae 0x14014c6e4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor esi, esi
movzx ecx, word [rbp + 0x210]
lea rdx, [rbp + 0x100]
lea r8, [rbp + 0x210]
test cx, cx
je 0x14014c828
nop dword [rax]
movzx eax, cx
test eax, 0x7fffff80
jne 0x14014c7b9
cmp rbx, 1
jb 0x14014c7b9
mov byte [rdx], cl
mov eax, 1
jmp 0x14014c810
test eax, 0x7ffff800
jne 0x14014c7e3
cmp rbx, 2
jb 0x14014c7e3
movzx eax, cx
and cl, 0x3f
shr ax, 6
and al, 0x1f
or al, 0xc0
mov byte [rdx], al
or cl, 0x80
mov byte [rdx + 1], cl
mov eax, 2
jmp 0x14014c810
cmp rbx, 3
jb 0x14014c828
movzx eax, cx
shr ax, 0xc
or al, 0xe0
mov byte [rdx], al
movzx eax, cx
shr ax, 6
and cl, 0x3f
and al, 0x3f
or al, 0x80
or cl, 0x80
mov byte [rdx + 1], al
mov byte [rdx + 2], cl
mov eax, 3
movzx ecx, word [r8 + 2]
add r8, 2
add rdx, rax
sub rbx, rax
test cx, cx
jne 0x14014c7a0
mov byte [rdx], 0
lea rcx, [rbp + 0x100]
mov rax, r14
inc rax
cmp byte [rcx + rax], 0
jne 0x14014c835
mov ebx, 1
mov word [rbp + 0xda], ax
mov r8d, ebx
xor edx, edx
mov rcx, r15
call fcn.14018d0b0
mov qword [rbp + 0x70], rax
mov rcx, r15
movzx eax, byte [0x140256a90]
test al, al
je 0x14014c8d1
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x38], rsi
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0x1e
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x80]
xor edx, edx
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x80], xmm0
call qword [0x1401ea898]
mov ecx, eax
mov ebx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbp + 0x88]
test ebx, ebx
mov ebx, 1
cmovs rax, r14
jmp 0x14014c8f7
lea r9, [rbp]
mov qword [rsp + 0x20], rsi
mov r8d, 0x1e
lea rdx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov rax, r14
je 0x14014c8f7
mov eax, dword [rbp]
cmp rax, 0x1e
jne 0x14014cfec
movzx eax, byte [0x140256a90]
movzx ecx, word [rbp + 0xda]
test al, al
je 0x14014c975
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x100]
mov qword [rsp + 0x38], rsi
xorps xmm0, xmm0
mov dword [rsp + 0x30], ecx
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x90]
xor edx, edx
mov rcx, r15
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0x90], xmm0
call qword [0x1401ea898]
mov ecx, eax
mov ebx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x98]
test ebx, ebx
cmovs rcx, r14
jmp 0x14014c99b
mov r8d, ecx
mov qword [rsp + 0x20], rsi
mov rcx, r15
lea r9, [rbp + 4]
lea rdx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
test eax, eax
je 0x14014c99b
mov ecx, dword [rbp + 4]
movzx eax, word [rbp + 0xda]
cmp rcx, rax
jne 0x14014cfe7
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
cmp r12d, 0xffffffff
je 0x14014c9d7
cmp r12d, 1
jge 0x14014c9cb
mov r12d, 6
jmp 0x14014c9d7
mov eax, 9
cmp r12d, eax
cmovg r12d, eax
mov edx, r12d
lea rcx, [rsp + 0x70]
call fcn.1401b5710
test eax, eax
jne 0x14014cfdb
mov dword [rbp + 0xce], esi
mov rbx, rsi
mov r14, rsi
lea esi, [rax + 1]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
mov r8d, 0x10000
mov rdx, r13
call fcn.14018ce80
mov r8d, eax
mov r13, rax
add rbx, r8
mov dword [rsp + 0x78], r13d
mov qword [rbp + 0x40], rbx
mov rbx, qword [rsp + 0x60]
test eax, eax
je 0x14014ca42
mov ecx, dword [rbp + 0xce]
mov rdx, rbx
call fcn.1401b5400
mov dword [rbp + 0xce], eax
xor r12d, r12d
mov qword [rsp + 0x70], rbx
cmp r13d, 0x10000
mov eax, 4
cmovne r12d, eax
nop word [rax + rax]
mov edx, r12d
mov dword [rbp - 0x78], 0x10000
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x80], rdi
call fcn.1401b5be0
cmp eax, 0xfffffffe
je 0x14014ce76
cmp eax, 0xfffffffb
je 0x14014ce76
mov eax, 0x10000
sub eax, dword [rbp - 0x78]
mov ebx, eax
test esi, esi
jne 0x14014cabc
test eax, eax
je 0x14014cae5
mov r8d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.14018cf60
cmp rax, rbx
je 0x14014cae5
mov dword [rsp + 0x50], 1
jmp 0x14014ce7e
cmp rbx, 2
jb 0x14014ce76
sub rbx, 2
je 0x14014cae3
lfence
lea rdx, [rdi + 2]
mov r8, rbx
mov rcx, r15
call fcn.14018cf60
cmp rax, rbx
jne 0x14014caaf
xor esi, esi
add r14, rbx
cmp dword [rbp - 0x78], 0
je 0x14014ca60
cmp r13d, 0x10000
jne 0x14014cb09
mov rbx, qword [rbp + 0x40]
mov r13, qword [rsp + 0x60]
jmp 0x14014ca00
movzx eax, byte [0x140256a90]
mov rcx, qword [rsp + 0x58]
test al, al
je 0x14014cb31
call qword [0x1401e9888]
mov ecx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14014cb37
call qword [case.0x1401b9e8b.6]
xor ebx, ebx
mov qword [rsp + 0x58], rbx
cmp qword [rbp - 0x60], rbx
je 0x14014cc31
mov r8, qword [rbp - 0x58]
test r8, r8
je 0x14014cc31
mov rdx, qword [rbp - 0x68]
test rdx, rdx
je 0x14014cc31
lea rax, [rsp + 0x70]
cmp qword [rdx], rax
jne 0x14014cc31
mov ecx, dword [rdx + 8]
lea eax, [rcx - 0x2a]
cmp eax, 0x3d
ja 0x14014cb8b
movabs r9, 0x2002000088008001
bt r9, rax
jb 0x14014cb9c
cmp ecx, 0x71
je 0x14014cb9c
cmp ecx, 0x29a
jne 0x14014cc31
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x14014cbbd
mov rcx, qword [rbp - 0x50]
mov rdx, rax
mov rax, r8
call qword [case.0x14003c8e9.0]
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x68]
mov rax, qword [rdx + 0x68]
test rax, rax
je 0x14014cbde
mov rcx, qword [rbp - 0x50]
mov rdx, rax
mov rax, r8
call qword [case.0x14003c8e9.0]
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x68]
mov rax, qword [rdx + 0x60]
test rax, rax
je 0x14014cbff
mov rcx, qword [rbp - 0x50]
mov rdx, rax
mov rax, r8
call qword [case.0x14003c8e9.0]
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x68]
mov rax, qword [rdx + 0x50]
test rax, rax
je 0x14014cc20
mov rcx, qword [rbp - 0x50]
mov rdx, rax
mov rax, r8
call qword [case.0x14003c8e9.0]
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x50]
mov rax, r8
call qword [case.0x14003c8e9.0]
mov qword [rbp - 0x68], rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
lea rdx, [rbp + 0x10]
call fcn.14018ae70
movzx ecx, word [rbp + 0x24]
mov eax, 0x200
add cx, 0x30
movzx r12d, cx
imul r12d, eax
movzx eax, word [rbp + 0x20]
inc ax
shl ax, 5
or r12w, ax
movzx eax, word [rbp + 0x10]
or r12w, word [rbp + 0x1c]
cmp ax, 0x3b
jbe 0x14014cc7d
mov eax, 0x3b
movzx esi, word [rbp + 0x18]
xor r8d, r8d
mov r13, qword [rbp + 0x70]
mov rcx, r15
shl si, 6
mov rdx, r13
or si, word [rbp + 0x14]
shr ax, 1
shl si, 5
or si, ax
mov word [rbp + 0xcc], r12w
mov rax, qword [rbp + 0x40]
mov dword [rbp + 0xd6], eax
mov word [rbp + 0xca], si
mov dword [rbp + 0xd2], r14d
mov word [rbp + 0xdc], bx
call fcn.14018d0b0
movzx eax, byte [0x140256a90]
mov rcx, r15
test al, al
je 0x14014cd44
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x38], rbx
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0x1e
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0xa0]
xor edx, edx
mov qword [rsp + 0x20], rax
movups xmmword [rbp + 0xa0], xmm0
call qword [0x1401ea898]
mov ecx, eax
mov ebx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbp + 0xa8]
test ebx, ebx
mov rcx, 0xffffffffffffffff
cmovs rax, rcx
jmp 0x14014cd6e
lea r9, [rbp + 8]
mov qword [rsp + 0x20], rbx
mov r8d, 0x1e
lea rdx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov rax, 0xffffffffffffffff
je 0x14014cd6e
mov eax, dword [rbp + 8]
cmp rax, 0x1e
jne 0x14014ce6c
movzx edx, word [rbp + 0xda]
mov rcx, r15
add rdx, r14
mov r14d, 1
mov r8d, r14d
call fcn.14018d0b0
movups xmm1, xmmword [rbp - 0x20]
mov eax, dword [rbp - 8]
lea rdx, [rbp + 0x100]
movups xmm0, xmmword [rbp - 0x30]
movzx ebx, word [rbp + 0xda]
mov dword [rbp + 0x38], eax
mov r8d, ebx
mov eax, dword [rbp + 0xce]
movups xmmword [rbp + 0x20], xmm1
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 0xd2]
movups xmmword [rbp + 0x10], xmm0
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0xd6]
mov dword [rbp + 0x28], eax
mov word [rbp + 0x1c], si
mov rsi, qword [rbp + 0x48]
mov dword [rbp + 0x3a], r13d
mov eax, dword [rbp + 0x38]
mov word [rbp + 0x1e], r12w
movups xmm0, xmmword [rbp + 0x10]
mov word [rbp + 0x2c], bx
lea rcx, [rsi + 0x2e]
movups xmm1, xmmword [rbp + 0x20]
movups xmmword [rsi], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rsi + 0x10], xmm1
movsd qword [rsi + 0x20], xmm0
mov dword [rsi + 0x28], eax
movzx eax, word [rbp + 0x3c]
mov word [rsi + 0x2c], ax
call sub.VCRUNTIME140.dll_memcpy
add ebx, 0x2e
mov dword [rbp + 0xe8], 0x10001
mov r8d, r14d
mov dword [rbp + 0xec], ebx
xor edx, edx
mov rcx, r15
call fcn.14018d0b0
mov r8d, ebx
mov rdx, rsi
mov rcx, r15
mov dword [rbp + 0xf0], eax
call fcn.14018cf60
lea r8d, [r14 + 0x15]
mov rcx, r15
lea rdx, [rbp + 0xe0]
call fcn.14018cf60
xor eax, eax
mov esi, eax
mov ebx, eax
jmp 0x14014cf7d
mov ebx, 1
jmp 0x14014cf78
mov dword [rsp + 0x50], 2
cmp qword [rbp - 0x60], 0
je 0x14014cf74
mov r8, qword [rbp - 0x58]
test r8, r8
je 0x14014cf74
mov rdx, qword [rbp - 0x68]
test rdx, rdx
je 0x14014cf74
lea rax, [rsp + 0x70]
cmp qword [rdx], rax
jne 0x14014cf74
mov ecx, dword [rdx + 8]
lea eax, [rcx - 0x2a]
cmp eax, 0x3d
ja 0x14014cecc
movabs r9, 0x2002000088008001
bt r9, rax
jb 0x14014cedd
cmp ecx, 0x71
je 0x14014cedd
cmp ecx, 0x29a
jne 0x14014cf74
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x14014cefe
mov rcx, qword [rbp - 0x50]
mov rdx, rax
mov rax, r8
call qword [case.0x14003c8e9.0]
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x68]
mov rax, qword [rdx + 0x68]
test rax, rax
je 0x14014cf1f
mov rcx, qword [rbp - 0x50]
mov rdx, rax
mov rax, r8
call qword [case.0x14003c8e9.0]
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x68]
mov rax, qword [rdx + 0x60]
test rax, rax
je 0x14014cf40
mov rcx, qword [rbp - 0x50]
mov rdx, rax
mov rax, r8
call qword [case.0x14003c8e9.0]
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x68]
mov rax, qword [rdx + 0x50]
test rax, rax
je 0x14014cf61
mov rcx, qword [rbp - 0x50]
mov rdx, rax
mov rax, r8
call qword [case.0x14003c8e9.0]
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x50]
mov rax, r8
call qword [case.0x14003c8e9.0]
xor eax, eax
mov qword [rbp - 0x68], rax
mov ebx, dword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r13, r13
je 0x14014cf99
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x48]
mov r13, qword [rsp + 0x570]
test rcx, rcx
je 0x14014cfb0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rsi, rsi
je 0x14014d015
movzx eax, byte [0x140256a90]
mov rcx, rsi
test al, al
je 0x14014d00f
call qword [0x1401e9888]
mov ecx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14014d015
mov rsi, qword [rsp + 0x58]
mov ebx, 2
jmp 0x14014cf82
mov ebx, 1
mov rsi, qword [rsp + 0x58]
jmp 0x14014cf82
mov ebx, 1
mov rsi, rax
jmp 0x14014cf82
mov rsi, rbx
mov ebx, 3
test rdi, rdi
je 0x14014cf8b
jmp 0x14014cf82
call qword [case.0x1401b9e8b.6]
movzx eax, byte [0x140256a90]
mov rcx, r15
test al, al
je 0x14014d03b
call qword [0x1401e9888]
mov ecx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14014d041
call qword [case.0x1401b9e8b.6]
test ebx, ebx
je 0x14014d05f
mov rcx, qword [rbp + 0x78]
xor edx, edx
lea r8d, [rdx + 0x20]
call fcn.14018d9d0
mov rcx, qword [rbp + 0x78]
xor edx, edx
call fcn.14018d3d0
mov eax, ebx
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x530
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret