Function at 0x140002d90
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rdi, rcx
mov r12, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x1400071d0], r12
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [0x1400071d8], rax
mov edx, 0x6f
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x34], eax
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov ebx, dword [rsp + 0x34]
mov r8d, 0xad
mov rcx, rbx
mov edx, esi
call fcn.140002bc0
mov r15, rax
mov ecx, 0x1000
call fcn.140002bc0
mov rdi, rax
mov qword [rsp + 0x20], 0xb0
mov ecx, 4
mov r8d, 0x6d
mov edx, esi
mov r9d, esi
call fcn.140002bc0
xor ecx, ecx
mov rdx, r15
mov r8d, edi
mov r9d, eax
call r12
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
mov rdx, r14
mov r8, rbx
call fcn.140002b90
mov rdi, qword [rsp + 0x38]
mov edx, 0x74
xor ecx, ecx
mov r8d, esi
mov r9d, esi
call fcn.140002bc0
mov ecx, dword [rsp + 0x34]
test rdi, rdi
je 0x140003246
cmp ecx, eax
je 0x140003246
mov ecx, 5
mov edx, 0x1e
call fcn.140002bc0
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x50], rdx
cmp ecx, eax
jbe 0x140003294
mov rax, qword [rsp + 0x38]
mov esi, dword [rax]
mov dword [rsp + 0x20], esi
mov ecx, 0x2e786f72
mov r8d, 0xc1
mov edx, esi
mov r9d, esi
call fcn.140002bc0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x50], rcx
cmp esi, eax
jne 0x140003294
mov rax, qword [rsp + 0x38]
add rax, 4
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
mov byte [rsp + 0x33], al
movzx eax, byte [rsp + 0x33]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov dword [rsp + 0x44], ecx
mov edx, 0x89
xor ecx, ecx
call fcn.140002bc0
mov rsi, rax
movzx ebx, byte [rsp + 0x33]
movzx edx, byte [rsp + 0x33]
mov qword [rsp + 0x20], 0xd
mov ecx, 4
mov r8d, 0x30
mov r9d, edx
call fcn.140002bc0
mov ecx, dword [rsp + 0x44]
cmp bl, sil
je 0x1400032a5
cmp ecx, eax
jle 0x1400032a5
movzx eax, byte [rsp + 0x33]
mov qword [rsp + 0x58], rax
mov ecx, 4
call fcn.140002bc0
add rax, qword [rsp + 0x58]
add rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], 0xb5
mov ecx, 0xfffffffb
mov edx, 0x84
mov r9, r8
call fcn.140002bc0
mov rsi, rax
add esi, dword [rsp + 0x44]
mov ecx, 2
call fcn.140002bc0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rcx
cmp esi, eax
jb 0x140003294
mov qword [rsp + 0x20], 0x45
mov ecx, 0xfffffffc
mov edx, 0x9c
mov r8d, 0x8d
mov r9d, 0x22
call fcn.140002bc0
mov rsi, rax
add esi, dword [rsp + 0x44]
mov qword [rsp + 0xa0], rsi
mov ecx, 1
call fcn.140002bc0
xor ecx, ecx
cmp al, byte [rsp + 0x33]
adc rcx, 1
mov qword [rsp + 0xa8], rcx
mov ecx, 1
call fcn.140002bc0
and rax, qword [rsp + 0xa0]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x70], 2
cmp esi, 3
je 0x1400031e9
mov edx, 0x25e0318a
mov r8d, 0xdc
mov rcx, 0xfffffffffffffffe
call fcn.140002bc0
mov rsi, rax
add rsi, qword [rsp + 0xa0]
mov rcx, 0xfffffffffffffffe
mov rdx, rsi
mov r8, rsi
call fcn.140002bc0
and rax, rsi
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x88], 2
mov qword [rsp + 0x80], 0
xor r14d, r14d
nop dword [rax + rax]
mov r15, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
cmp rsi, qword [rsp + 0x58]
mov ebx, 0
cmovb rbx, rsi
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax + r12]
mov rdx, qword [rsp + 0x60]
xor cl, byte [rdx + rbx]
mov byte [rax + r12], cl
mov ecx, 1
mov r8d, 0xe68658
mov rdx, rsi
mov r9, rsi
call fcn.140002bc0
mov rdi, rax
add rdi, rbx
mov qword [rsp + 0x20], rsi
mov ecx, 1
mov edx, 0x2a
mov r8d, 0x74
mov r9d, 0x45
call fcn.140002bc0
or rax, r12
cmp rdi, qword [rsp + 0x58]
cmovae rdi, r14
mov rcx, qword [rsp + 0x48]
movzx edx, byte [rcx + rax]
mov rbx, qword [rsp + 0x60]
xor dl, byte [rbx + rdi]
mov byte [rcx + rax], dl
mov qword [rsp + 0x20], rsi
mov ecx, 1
mov edx, 0xfcb019
mov r8d, 0x16
mov r9, rsi
call fcn.140002bc0
mov rsi, rax
add rsi, rdi
mov ecx, 2
mov edx, 0x267bba
mov r8d, 0x14
mov r9d, 0x47
call fcn.140002bc0
mov rdi, rax
add rdi, r12
mov ecx, 2
call fcn.140002bc0
add rax, r15
cmp rax, qword [rsp + 0xb8]
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rdi
jne 0x1400030d0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x68]
mov qword [rsp + 0x20], r8
mov edx, 0xc6
xor ecx, ecx
mov r9, r8
call fcn.140002bc0
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rdx
cmp rcx, rax
je 0x140003294
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
jae 0x14000326c
mov rax, qword [rsp + 0x68]
jmp 0x14000326e
lea rdx, [0x140006230]
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0xc0]
movzx ebx, byte [rcx + rdx]
mov rdi, qword [rsp + 0x60]
xor bl, byte [rdi + rax]
mov byte [rcx + rdx], bl
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
lea rdx, str.s7C9rrGnvbK0vaenqaevp6f
call fcn.140001000
mov rcx, qword [rsp + 0x98]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_FreeResource]
adc ecx, ecx
invalid
fnstenv [rcx + 0xb95ece7]
invalid
sal dword [rdx - 0x4a597a1a], 0x69
outsb dx, byte [rsi]
adc byte [rax], cl
or byte [rcx + 0x6d], dh
xor sil, byte [rbp + rdx*4 - 0x41]
adc ah, ch
invalid
mov edi, 0x2837ec10
invalid
sub byte [rbp + 0x3e], ah
push rdi
cli
leave
and eax, dword [rax]
adc byte [rcx], bh
or dword [rax], eax
or dword [rbx - 0x3e46392a], eax
add byte [rax], dl
cmp dword [rcx], ecx
add byte [rcx], cl
adc esi, 0xffffffc6
mov ecx, 0xf27f3ec1
jg 0x14000ca41
jg 0x14000ca41
mov ecx, 0xfdf64d7c
xchg ebx, eax
jmp 0x18f24ab20
in eax, 0xf3
invalid
add al, byte [rax]
push rax
mov word [rax], es
add byte [rbx + riz], dl
add byte [rax], al
invalid
mov word [rax], es
add byte [rbx + riz], dl
add byte [rax], al
invalid
add byte [rax], al
adc al, 0x23
add byte [rax], al
invalid
add al, byte [rax]
push rax
mov word [rax], es
add byte [rbx + riz], dl
add byte [rax], al
invalid
adc al, 0x23
add byte [rax], al
invalid
invalid
add al, byte [rax]
push rax
mov word [rax], es
add byte [rbx + riz], dl
add byte [rax], al
invalid
add byte [rax + 0x31], al
add al, byte [rax]
push rax
mov word [rax], es
add byte [rbx + riz], dl
add byte [rax], al
add ch, al
add ch, al
or byte [rax], al
xor dword [rdx], eax
add byte [rax - 0x74], dl
add byte [rax], al
adc al, 0x23
add byte [rax], al
invalid
or byte [rax], al
xor dword [rdx], eax
add byte [rax - 0x74], dl
add byte [rax], al
adc al, 0x23
add byte [rax], al
invalid
add eax, 0x37e7980
add dword [rax], eax
or al, 0x5b
invalid
push rdx
push rcx
adc dword [rax + rdi*2 - 0x62], edi
stosb byte [edi], al
sub esp, dword [rdi + 0x5329ca98]
xchg rbp, rax
jmp [rdx]
jg 0x14000cac7
add byte [rdx], cl
test eax, 0xb534acae
adc byte [rax], al
xchg rdx, rax
add esp, dword [rax]
lodsb al, byte [rsi]
scasb al, byte [rdi]
mov edx, 0xabad4cda
cdq
je 0x14000cb6f
adc byte [rax], al
pop rdx
add ah, byte [rax]
mov dl, 0x41
add byte [rax], al
and dword [rcx + 0xb], ebp
invalid
or eax, dword [rax - 0x4a4a9664]
adc byte [r10 + rcx*4 - 0x2dbe0000], dl
add byte [rax], al
invalid
invalid
sbb byte [rcx + rbp*2 + 0x1041b5b5], 0x94
mov al, byte [rax]
add byte [rax], al
invalid
invalid
add byte [rax], al
rcr byte [rdx], cl
add byte [rdx - 0x56], al
sbb al, byte [rax]
stosb byte [rdi], al
sbb byte [rcx - 0x2d], 0xa7
xchg esi, eax
push rsp
or eax, 0x48400010
invalid