Function at 0x140003560
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Enumerate gui resources

Disassembly:
push rbp
push r13
lea rbp, [rsp - 0x4f]
sub rsp, 0xb8
mov rax, qword [0x14002a040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [rbp - 0x39], rcx
lea rdx, [0x140001f60]
mov rcx, qword [0x14002bf30]
xor r8d, r8d
mov dword [rbp - 0x31], 0
call qword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov r13, qword [0x14002bf48]
test r13, r13
je 0x140003986
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xa0], r15
mov rdi, qword [0x14002bd78]
mov esi, dword [r13]
test rdi, rdi
je 0x140003949
mov rbx, qword [rdi]
mov r15, qword [rdi + 8]
cmp dword [rbx + 0x9c], 0
jne 0x140003614
mov ecx, 0x714
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140003949
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov r14d, dword [rbx + 0x98]
lea r8, str.RTID
add r14, r15
mov r12d, eax
mov rdx, r14
mov rcx, r14
call fcn.140009150
test rax, rax
jne 0x14000364e
mov ecx, 0x715
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140003949
mov eax, dword [rax + 4]
mov rcx, r14
mov edx, dword [rbx + 0x98]
btr eax, 0x1f
add rax, r15
movzx r8d, si
add rdx, rax
call fcn.140009150
test rax, rax
jne 0x140003682
mov ecx, 0x716
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140003949
mov eax, dword [rax + 4]
mov rcx, r14
mov esi, dword [rbx + 0x98]
btr eax, 0x1f
add rax, r15
movzx r8d, r12w
add rsi, rax
mov rdx, rsi
call fcn.140009150
test rax, rax
jne 0x1400036c3
cmp word [rsi + 0xe], ax
jne 0x1400036bf
mov ecx, 0x717
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140003949
lea rax, [rsi + 0x10]
mov eax, dword [rax + 4]
mov ecx, dword [rbx + 0x98]
btr eax, 0x1f
add rax, r15
add rcx, rax
je 0x140003949
mov ebx, dword [rcx]
add rbx, qword [rdi + 8]
je 0x140003949
mov eax, dword [rcx + 4]
mov ecx, eax
mov dword [rbp - 0x31], eax
call fcn.14000de0c
mov r15, rax
test rax, rax
je 0x140003949
mov r8d, dword [rbp - 0x31]
mov rdx, rbx
mov rcx, rax
call fcn.14001d070
mov rbx, qword [rbp - 0x39]
lea rax, [rbp - 0x29]
mov rcx, qword [0x14002bf60]
lea rdx, [rbp - 0x19]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov dword [rbp - 0x21], 1
movups xmm1, xmmword [rbx + 0x10]
xor r9d, r9d
mov dword [rbp - 0x19], 0x208
movups xmmword [rbp + 0x17], xmm0
lea r8d, [r14 + 0x2c]
mov dword [rbp - 0x15], 0x6610
movups xmm0, xmmword [rbx]
mov dword [rbp - 0x11], 0x20
movups xmmword [rbp + 3], xmm1
mov dword [rsp + 0x20], r14d
movups xmmword [rbp - 0xd], xmm0
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140003941
mov rcx, qword [rbp - 0x29]
lea r8, [rbp - 0x21]
xor r9d, r9d
lea edx, [r14 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140003937
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x17]
xor r9d, r9d
lea edx, [r14 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140003937
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, 0x5a4d
cmp word [r15], ax
jne 0x140003941
mov edx, dword [rbp - 0x31]
cmp edx, 0x130
jb 0x140003941
movsxd r8, dword [r15 + 0x3c]
cmp edx, dword [r8 + r15 + 0x54]
jb 0x140003941
lea rcx, [r8 + 0x108]
cmp rdx, rcx
jb 0x140003941
mov eax, 0x8664
cmp word [r8 + r15 + 4], ax
jne 0x140003941
mov eax, 0x2000
test word [r8 + r15 + 0x16], ax
je 0x140003941
cmp edx, 0x130
jb 0x140003941
movsxd rax, dword [r15 + 0x3c]
cmp edx, dword [rax + r15 + 0x54]
jb 0x140003941
mov rcx, r15
call fcn.140008d00
test rax, rax
je 0x140003941
lea rdx, [rbp - 0x21]
mov qword [rbp - 0x21], r14
mov rcx, rax
call fcn.1400017f0
test eax, eax
jne 0x140003887
call fcn.140004f50
test eax, eax
je 0x140003941
mov rbx, qword [rbp - 0x21]
mov rsi, r14
test rbx, rbx
je 0x140003941
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x1400038e7
cmp dword [rdi + 0x1c], r14d
je 0x1400038bc
mov rax, qword [rdi]
xor r8d, r8d
mov rcx, qword [rdi + 8]
xor edx, edx
mov r9d, dword [rax + 0x28]
add r9, rcx
call r9
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400038d3
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14002be90]
test rcx, rcx
je 0x14000392d
cmp qword [rcx], rbx
je 0x14000390e
mov rsi, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400038f3
mov rcx, rbx
call fcn.14000ddf8
jmp 0x140003941
mov rax, qword [rcx + 8]
test rsi, rsi
jne 0x140003920
mov qword [0x14002be90], rax
jmp 0x140003924
mov qword [rsi + 8], rax
mov qword [rcx + 8], r14
call fcn.14000ddf8
mov rcx, rbx
call fcn.14000ddf8
jmp 0x140003941
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, r15
call fcn.14000ddf8
mov r13, qword [r13 + 8]
test r13, r13
jne 0x1400035e0
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd8]
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400092d0
add rsp, 0xb8
pop r13
pop rbp
ret