Function at 0x140002410
Capabilities:
Encrypt data using dpapi
Query environment variable
Write file on windows

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 - 0xc0]
sub rsp, 0x1c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x40], xmm0
movups xmmword [rbp - 0x10], xmm0
xor r13d, r13d
mov word [rbp - 2], r13w
movdqa xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], 0x400
mov dword [rbp + 0x40], r13d
mov qword [rbp + 0x48], r13
lea ecx, [r13 + 0x18]
call fcn.1400047f0
mov rbx, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov qword [rbx], 0x10000
lea ecx, [rax + 1]
call fcn.1400047f0
mov qword [rbx + 8], rax
lea ecx, [r13 + 0x38]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rbx + 0x10]
lea rax, [rcx + 0x20]
mov qword [rcx], rax
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax]
mov qword [rcx], r13
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax]
mov qword [rcx + 8], r13
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax]
mov qword [rcx + 0x10], r13
mov rax, qword [rbx + 0x10]
mov byte [rax + 0x18], 1
mov rax, qword [rbx + 0x10]
mov qword [rax + 0x10], 1
mov qword [rbp], rbx
mov qword [rbp + 8], rbx
lea rcx, [rbp - 0x10]
call fcn.140002eb0
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov eax, 3
mov word [rbp - 2], ax
mov rax, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14000253b
mov rax, qword [rdi]
mov ebx, dword [rdi + 0x10]
movups xmmword [rsp + 0x40], xmm0
lea rsi, [0x14000656e]
test rax, rax
cmovne rsi, rax
cmp ebx, 0xd
ja 0x140002572
mov eax, 0x1c05
mov word [rsp + 0x4e], ax
mov eax, 0xd
sub al, bl
mov byte [rsp + 0x4d], al
lea rdi, [rsp + 0x40]
jmp 0x1400025a9
mov eax, 0xc05
mov word [rsp + 0x4e], ax
mov dword [rsp + 0x40], ebx
lea edx, [rbx + 1]
mov rcx, qword [rbp]
call fcn.140003040
mov rdi, rax
mov rcx, qword [rsp + 0x48]
movabs rax, 0xffff000000000000
and rcx, rax
or rcx, rdi
mov qword [rsp + 0x48], rcx
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], 0
lea rax, str.guid
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 4
mov r9, qword [rbp]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x10]
call fcn.140002d40
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movdqu xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], 0x100
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x80], xmm0
lea rax, [rbp - 0x40]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], r13
movdqa xmmword [rbp + 0x60], xmm0
movdqa xmmword [rbp + 0x70], xmm1
mov qword [rbp + 0x80], 0x200
mov dword [rbp + 0x88], 0x144
mov byte [rbp + 0x8c], 0
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.140003110
test al, al
jne 0x14000265d
xor dil, dil
jmp 0x1400029f9
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
sub rax, rcx
cmp rax, 1
jge 0x140002680
mov edx, 1
lea rcx, [rbp - 0x40]
call fcn.140004680
mov rcx, qword [rbp - 0x28]
lea rax, [rcx + 1]
mov qword [rbp - 0x28], rax
mov byte [rcx], 0
mov rcx, qword [rbp - 0x28]
dec rcx
mov qword [rbp - 0x28], rcx
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x68], rax
sub ecx, eax
mov dword [rbp - 0x70], ecx
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140002f20
nop
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 0x39
jb 0x140002704
lea rax, [rcx + 0x39]
mov qword [rbp - 0x50], rax
lea rbx, [rbp - 0x60]
cmp rdx, 0xf
cmova rbx, qword [rbp - 0x60]
add rbx, rcx
mov r8d, 0x39
lea rdx, str.DigitalEntitlements38d8f400_aa8a_4784_a9f0_26a08628577e
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x39], 0
jmp 0x14000276f
mov qword [rsp + 0x20], 0x39
mov edx, 0x39
lea rcx, [rbp - 0x60]
call fcn.140003fe0
lea rcx, [rbp - 0x60]
cmp rcx, rax
je 0x14000276f
mov r9, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140002731
mov r9, qword [rax]
mov rdi, qword [rax + 0x10]
mov rax, qword [rbp - 0x48]
cmp rdi, rax
ja 0x140002763
lea rbx, [rbp - 0x60]
cmp rax, 0xf
cmova rbx, qword [rbp - 0x60]
mov qword [rbp - 0x50], rdi
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x14000276f
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140003ea0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rdx, qword [rbp - 0x60]
lea rcx, [rbp + 0x90]
call fcn.140002f20
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
lea r14, [rbp + 0x90]
mov r15, qword [rbp + 0xa8]
cmp r15, 0xf
seta r12b
mov rsi, qword [rbp + 0x90]
cmova r14, rsi
movabs rdi, 0x7fffffffffffffff
mov rbx, qword [rbp + 0xa0]
cmp rbx, rdi
ja 0x140002b23
cmp rbx, 0xf
ja 0x1400027f9
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], 0xf
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x60], xmm0
jmp 0x14000288d
mov rax, rbx
or rax, 0xf
cmp rax, rdi
jbe 0x140002835
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400047f0
mov rcx, rax
test rax, rax
je 0x1400028f2
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000286f
mov ecx, 0x16
cmp rax, rcx
cmovb rax, rcx
mov rdi, rax
lea rcx, [rax + 1]
cmp rcx, 0x1000
jb 0x140002860
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002b29
jmp 0x140002813
test rcx, rcx
je 0x14000286c
call fcn.1400047f0
jmp 0x14000286f
mov rax, r13
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400022a0
cmp qword [rax + 0x18], 7
jbe 0x1400028a6
mov rax, qword [rax]
lea rdx, [0x140006454]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov rbx, rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1400028fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400028f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400028f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000482c
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
test rbx, rbx
jne 0x14000291c
xor dil, dil
jmp 0x140002971
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x14000296e
mov r8d, dword [rbp - 0x80]
mov r9, rbx
mov edx, 1
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dil, 1
test r12b, r12b
je 0x1400029ab
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400029a2
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400029a2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14000482c
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x1400029e9
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400029e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400029e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000482c
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 1
mov rcx, qword [rbp + 0x60]
call fcn.14000482c
nop
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 1
mov rcx, qword [rbp - 0x38]
call fcn.14000482c
nop
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140002ad7
lea rcx, [rbp - 0x10]
call fcn.140002eb0
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov word [rbp - 2], r13w
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140002ad7
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140002aca
mov rax, qword [rcx + 0x10]
cmp rax, 1
jbe 0x140002a76
dec rax
mov qword [rcx + 0x10], rax
jmp 0x140002aca
mov rax, qword [rcx]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x140002a9e
mov qword [rcx], rdx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x10]
test rdx, rdx
jne 0x140002a82
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax]
mov qword [rcx + 8], r13
mov rcx, qword [rbx + 0x10]
mov rsi, qword [rcx + 8]
cmp byte [rcx + 0x18], 0
je 0x140002abd
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 1
mov rcx, rsi
call fcn.14000482c
mov edx, 0x18
mov rcx, rbx
call fcn.14000482c
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 1
mov rcx, qword [rbp + 0x18]
call fcn.14000482c
movzx eax, dil
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400047d0
lea r11, [rsp + 0x1c0]
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
call fcn.140002280
nop
call fcn.140001170
int3