Function at 0x14004d1f0
Capabilities:
Copy file
Create thread
Extract resource via kernel32 functions
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x158]
sub rsp, 0x258
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15d, r9d
mov dword [rsp + 0x3c], r9d
mov r14, r8
mov r12, rdx
mov qword [rsp + 0x48], rdx
mov edi, ecx
mov dword [rsp + 0x34], ecx
call fcn.140063f50
mov rsi, rax
call fcn.1400af400
mov r13d, eax
mov dword [rsp + 0x40], eax
imul edi, r12d
or rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp byte [rsi + rcx], 0
jne 0x14004d255
imul ecx, dword [rbp + 0x1c0]
mov r12d, edi
sub r12d, ecx
sub r12d, r15d
add r12d, eax
mov rax, rbx
inc rax
cmp byte [r14 + rax], 0
jne 0x14004d274
sub r12d, eax
mov edx, 0x10
mov r9d, r12d
call fcn.1400a3970
mov ecx, 0xffff
mov r15, rax
mov qword [rbp - 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorCount]
mov r8d, eax
mov dword [rsp + 0x44], eax
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp byte [rsi + rcx], 0
jne 0x14004d2b0
mov edx, dword [rbp + 0x1c0]
movzx eax, r13b
imul cl
movzx r13d, al
movzx eax, byte [rsp + 0x48]
mov rcx, rbx
imul dl
sub r13b, al
add r13b, byte [rsp + 0x34]
nop dword [rax + rax]
inc rcx
cmp byte [r15 + rcx], 0
jne 0x14004d2e0
sub r13b, cl
mov dl, 0x40
mov ecx, r8d
sub r13b, 0x60
mov byte [rsp + 0x30], r13b
call fcn.14009bf20
mov r15, rax
cmp dword [rsp + 0x40], r12d
jle 0x14004d406
xor ecx, ecx
mov edx, 0x3b5
lea r8d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov qword [rsp + 0x60], rax
inc rcx
cmp byte [rsi + rcx], 0
jne 0x14004d327
mov edx, dword [rbp + 0x1c0]
imul edi, dword [rsp + 0x3c]
mov rax, rbx
imul ecx, edx
sub edi, ecx
inc rax
cmp byte [r15 + rax], 0
jne 0x14004d343
mov rcx, qword [rbp - 0x78]
add edi, eax
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x14004d356
add edi, eax
lea rax, [0x1400ed4fc]
movzx ecx, r13b
add ecx, 0xa
mov qword [rbp - 0x58], rax
mov rax, rbx
add ecx, edi
mov dword [rbp - 0x60], ecx
nop dword [rax + rax]
inc rax
cmp byte [r14 + rax], 0
jne 0x14004d380
imul eax, dword [rsp + 0x34]
mov rdi, qword [rsp + 0x48]
mov rcx, rbx
imul eax, edi
add eax, dword [rsp + 0x40]
add eax, edx
inc rcx
cmp byte [rsi + rcx], 0
jne 0x14004d3a0
sub eax, ecx
mov rcx, rbx
nop
inc rcx
cmp byte [r15 + rcx], 0
jne 0x14004d3b0
sub eax, ecx
lea rcx, [rbp + 0x30]
mov edx, 0x104
mov dword [rbp - 0x50], eax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov qword [rbp - 0x48], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [rsp + 0x60]
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdi
lea rdx, [rbp - 0x20]
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x10], xmm1
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp], xmm0
call fcn.1400ccce0
lea rcx, str.clasp
call fcn.1400ac230
mov ecx, r12d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor ecx, ecx
lea r8d, [rcx + 8]
mov edx, 0x201
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rbx
mov qword [rbp - 0x58], rax
inc rdi
cmp byte [rsi + rdi], 0
jne 0x14004d436
imul edi, dword [rbp + 0x1c0]
mov rax, rbx
add edi, dword [rsp + 0x34]
add edi, dword [rsp + 0x3c]
inc rax
cmp byte [r13 + rax], 0
jne 0x14004d451
sub edi, eax
sub edi, 0x10
call qword [sym.imp.USER32.dll_GetActiveWindow]
movzx r9d, byte [rsp + 0x30]
mov qword [rbp - 0x40], rax
mov rax, rbx
inc rax
cmp byte [rsi + rax], 0
jne 0x14004d474
mov r8d, dword [rsp + 0x34]
imul eax, r12d
mov rcx, rbx
imul eax, dword [rsp + 0x40]
sub eax, dword [rsp + 0x3c]
sub eax, dword [rbp + 0x1c0]
add eax, r9d
add eax, r8d
nop
inc rcx
cmp byte [r14 + rcx], 0
jne 0x14004d4a0
sub eax, ecx
mov rdx, rbx
sub eax, 0x45
mov dword [rbp - 0x10], eax
inc rdx
cmp byte [r14 + rdx], 0
jne 0x14004d4b5
mov rax, rbx
inc rax
cmp byte [rsi + rax], 0
jne 0x14004d4c2
imul edx, eax
mov ecx, r9d
lea eax, [r12 + r12*2]
add eax, eax
sub ecx, eax
lea eax, [r8 + 0x61]
sub ecx, edx
mov edx, 0x365
sub ecx, dword [rsp + 0x44]
add eax, ecx
xor ecx, ecx
lea r8d, [rcx + 0xc]
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x58], rax
lea edx, [rax + rdi]
lea ecx, [rdx + 6]
movzx ecx, cl
cmp edx, ecx
jle 0x14004d544
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea rcx, str.c1a0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
mov edx, 0x2d4
lea r8d, [rcx + 0x15]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
mov rax, qword [rsp + 0x58]
lea ecx, [rax + rax*2]
mov eax, dword [rbp - 0x40]
lea ecx, [rcx - 1]
lea edi, [rax + rcx*2]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor eax, eax
mov qword [rsp + 0x28], rax
lea r8, [0x140001b00]
movsxd r9, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp byte [rsp + 0x30], 0x40
mov r8, rax
mov qword [rbp - 0x28], rax
ja 0x14004d82f
mov rcx, rbx
nop
inc rcx
cmp byte [r15 + rcx], 0
jne 0x14004d5b0
movzx eax, byte [rbp - 0x10]
imul cl
mov rcx, rbx
movzx edi, al
shl dil, 6
nop word [rax + rax]
inc rcx
cmp byte [r14 + rcx], 0
jne 0x14004d5d0
movzx eax, byte [rsp + 0x48]
lea rdx, str.underground
mov r8d, 0x40
imul cl
add dil, al
movzx eax, byte [rbp + 0x1c0]
lea rcx, str.mirror
imul byte [rsp + 0x40]
add dil, al
sub dil, byte [rsp + 0x3c]
sub dil, byte [rsp + 0x58]
add dil, 0x42
add dil, byte [rsp + 0x34]
mov byte [rsp + 0x39], dil
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea r9, str.opera
mov dword [rsp + 0x28], eax
lea rcx, str.c2a4
movzx r8d, dil
xor edx, edx
mov byte [rsp + 0x20], 0x40
mov dword [rsp + 0x7c], eax
call fcn.1400b8290
mov ecx, 0xffff
mov qword [rbp - 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
lea rcx, [rbp + 0x30]
mov edx, 0x104
mov edi, eax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
xor ecx, ecx
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rbp - 0x80]
mov r9d, eax
mov ecx, edi
mov dword [rsp + 0x68], eax
call fcn.140078be0
xor ecx, ecx
lea r8d, [rcx + 6]
mov edx, 0xb6
mov byte [rsp + 0x38], al
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, qword [rsp + 0x48]
mov rdx, rax
mov qword [rsp + 0x60], rax
call fcn.1400819a0
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea rdx, str.gown
mov ecx, eax
mov qword [rbp + 0x20], rax
call fcn.1400a4fe0
mov qword [rbp + 0x18], rax
call fcn.14006d810
lea rcx, [rbp + 0x30]
mov edx, 0x104
movzx edi, al
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov r8d, edi
mov dword [rsp + 0x78], edi
mov qword [rbp + 0x10], rax
mov rdx, rbx
inc rdx
cmp byte [r15 + rdx], 0
jne 0x14004d704
mov eax, dword [rbp - 0x70]
mov rdi, qword [rsp + 0x58]
imul eax, dword [rsp + 0x60]
add eax, edi
lea ecx, [rax*4 + 0x4c]
mov eax, dword [rsp + 0x70]
imul eax, dword [rbp - 0x80]
sub ecx, eax
mov rax, qword [rbp - 0x30]
imul eax, dword [rsp + 0x7c]
sub ecx, eax
mov eax, r8d
imul eax, dword [rbp + 0x18]
add ecx, eax
movzx eax, byte [rsp + 0x39]
sub ecx, dword [rbp - 0x58]
add ecx, eax
mov eax, dword [rsp + 0x34]
sub ecx, dword [rsp + 0x50]
add eax, ecx
lea rcx, str.hovercraft
add edx, eax
mov dword [rbp - 0x20], edx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp - 0x18], rax
lea rax, str.c9a2
mov qword [rbp - 0x10], rax
mov rax, rbx
inc rax
cmp byte [r14 + rax], 0
jne 0x14004d786
imul eax, dword [rsp + 0x3c]
imul eax, r12d
imul eax, dword [rsp + 0x40]
lea ecx, [rax + rax*4]
mov rax, qword [rbp - 0x70]
shl ecx, 5
imul eax, dword [rbp + 0x20]
sub ecx, eax
movzx eax, byte [rsp + 0x38]
sub ecx, eax
movzx eax, byte [rsp + 0x30]
sub ecx, dword [rsp + 0x78]
sub ecx, dword [rsp + 0x60]
sub ecx, dword [rsp + 0x68]
add ecx, eax
mov rax, rbx
add ecx, dword [rsp + 0x34]
add ecx, dword [rsp + 0x44]
inc rax
cmp byte [r15 + rax], 0
jne 0x14004d7d3
sub ecx, eax
mov rax, rbx
inc rax
cmp byte [r13 + rax], 0
jne 0x14004d7e2
movups xmm0, xmmword [rbp - 0x20]
add ecx, 8
lea r8, str.c0ret
add eax, ecx
mov rcx, qword [rbp + 0x10]
lea rdx, [rbp - 0x60]
mov dword [rbp - 8], eax
mov rax, qword [rsp + 0x70]
mov r9d, 1
movaps xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rbp - 0x10]
mov qword [rsp + 0x20], rax
movaps xmmword [rbp - 0x50], xmm1
call fcn.1400a5d90
mov r8, qword [rbp - 0x28]
jmp 0x14004d834
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x78]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14004d840
imul eax, dword [rsp + 0x44]
imul ecx, eax, 0xffffffc0
mov eax, dword [rsp + 0x3c]
imul eax, dword [rbp + 0x1c0]
sub ecx, eax
mov rax, rbx
cmp byte [r13 + rax + 1], 0
lea rax, [rax + 1]
jne 0x14004d861
lea eax, [rax + rax*4]
sub ecx, eax
movzx eax, byte [rsp + 0x30]
sub ecx, eax
mov rax, rbx
sub ecx, dword [rsp + 0x48]
sub ecx, r8d
sub ecx, dword [rsp + 0x50]
add ecx, dword [rsp + 0x34]
add ecx, edi
add ecx, r12d
add ecx, dword [rsp + 0x40]
inc rax
cmp byte [r14 + rax], 0
jne 0x14004d894
sub ecx, eax
mov rax, rbx
inc rax
cmp byte [rsi + rax], 0
jne 0x14004d8a3
sub ecx, eax
nop
inc rbx
cmp byte [r15 + rbx], 0
jne 0x14004d8b0
sub ecx, ebx
lea eax, [rcx + 3]
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x258
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret