Function at 0x1400363f0
Capabilities:
Copy file
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x208]
sub rsp, 0x308
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rsi, qword [rbp + 0x270]
mov rbx, rcx
lea rcx, [0x1400ed3b4]
mov byte [rsp + 0x60], r9b
mov r13, r8
mov qword [rbp - 0x78], r8
mov qword [rbp - 0x20], rsi
mov qword [rsp + 0x78], rdx
call fcn.1400c5520
lea rcx, [rbp + 0xb0]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, str.resident
mov r9d, eax
mov r12d, eax
mov dword [rsp + 0x64], eax
call fcn.1400bb180
or rdi, 0xffffffffffffffff
mov r14, rax
mov qword [rbp - 0x70], rax
mov rcx, rdi
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140036482
mov edx, eax
mov rax, rdi
sub edx, ecx
inc rax
cmp byte [rbx + rax], 0
jne 0x140036493
add edx, 0xfffffff8
mov r8d, r12d
mov rcx, r15
add eax, edx
mov rdx, rsi
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r12d, eax
mov dword [rbp + 0xb0], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rdx, str.c1a0
mov rcx, rdi
mov qword [rbp + 0xb8], rax
mov qword [rbp + 0xc0], rdx
nop dword [rax + rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400364e0
movups xmm0, xmmword [rbp + 0xb0]
mov eax, r13d
lea r9, str.role
xor r8d, r8d
imul eax, r14d
add ecx, eax
lea rax, str.lamb
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
mov dword [rbp + 0xc8], ecx
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rbp + 0xc0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x70]
mov qword [rbp + 0x30], rcx
movaps xmmword [rbp - 0x40], xmm1
lea rcx, [rbp + 0x70]
mov dword [rsp + 0x20], eax
call fcn.14007ad50
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 8], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbp + 8], xmm1
movsd xmm1, qword [rax + 0x30]
movups xmmword [rbp + 0x18], xmm0
movsd qword [rbp + 0x28], xmm1
call fcn.14008df70
movzx r8d, byte [rsp + 0x60]
mov rdx, rax
mov qword [rbp - 0x10], rax
cmp dword [rsp + 0x64], r8d
ja 0x14003666d
mov rcx, rdi
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140036583
movzx eax, r8b
imul cl
movzx r14d, al
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x1400365a0
shl al, 2
sub al, 0x12
add r14b, al
mov rax, rdi
add r14b, byte [rsp + 0x78]
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x1400365c0
mov rcx, rbx
add r14b, al
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r13d, eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rdi
nop dword [rax]
inc rsi
cmp byte [rbx + rsi], 0
jne 0x1400365f0
mov eax, dword [rsp + 0x64]
imul esi, dword [rsp + 0x78]
lea eax, [rax*8]
sub esi, eax
mov rax, rdi
add esi, dword [rbp - 0x78]
inc rax
cmp byte [r15 + rax], 0
jne 0x140036611
xor ecx, ecx
sub esi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140036630
imul eax, dword [rsp + 0x78]
movzx ecx, byte [rsp + 0x60]
lea r9d, [rsi + 0xa]
sub eax, dword [rbp - 0x78]
mov edx, r13d
sub eax, ecx
movzx ecx, r14b
sub eax, dword [rbp]
sub eax, dword [rsp + 0x64]
add eax, 0x10
add eax, r12d
mov dword [rsp + 0x30], eax
call fcn.14007c280
mov r14, qword [rbp - 0x70]
mov rax, rdi
inc rax
cmp byte [r15 + rax], 0
jne 0x140036670
mov rcx, qword [rsp + 0x78]
lea r13d, [rcx + rcx]
sub r13d, dword [rbp + 0x14]
sub r13d, r14d
add r13d, dword [rbp + 0xb8]
sub r13d, eax
mov rax, rdi
inc rax
cmp byte [rbx + rax], 0
jne 0x140036697
add r13d, eax
mov dword [rsp + 0x6c], r13d
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
lea rdx, str.c0a0
lea rcx, str.c3ret
mov r9d, 0x20
mov r8d, r13d
mov word [rsp + 0x68], ax
mov qword [rsp + 0x30], r14
call fcn.14007dc80
cmp byte [rsp + 0x60], 0x20
mov qword [rbp - 0x58], rax
jne 0x1400368de
mov r13, qword [rbp - 0x78]
lea rdx, str.medicine
lea rcx, str.toad
mov r9, r13
mov r8, r14
call fcn.1400af2d0
xor ecx, ecx
mov edx, 0x26b
lea r8d, [rcx + 0x16]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rdi
mov qword [rbp - 0x60], rax
nop dword [rax + rax]
inc rsi
cmp byte [rbx + rsi], 0
jne 0x140036720
mov ecx, dword [rbp + 0xb8]
movsx rax, byte [rsp + 0x68]
mov r9d, dword [rsp + 0x70]
imul ecx, r9d
mov r8, qword [rbp - 0x70]
lea edx, [rax + rcx*4]
mov eax, r13d
imul eax, r14d
shl edx, 5
mov rcx, rdi
sub edx, eax
mov eax, dword [rsp + 0x64]
add eax, 0xfffffffc
add edx, r8d
add eax, edx
add esi, eax
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140036762
movzx eax, byte [rsp + 0x60]
imul r12d, r9d
mov edx, 0x104
add eax, eax
sub r12d, eax
sub r12d, dword [rsp + 0x78]
sub r12d, r8d
lea eax, [r12 + r13]
lea r13d, [r14 + 0x85]
add ecx, eax
add ecx, dword [rbp + 0x18]
add r13d, ecx
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov r8, qword [rbp - 0x70]
mov r9, qword [rbp - 0x78]
mov qword [rbp - 0x50], rax
mov eax, dword [rbp - 4]
mov qword [rbp - 0x48], r9
lea r12d, [r8*4]
mov rdx, rdi
lea r14d, [rax + rax*4]
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x1400367d0
mov ecx, dword [rsp + 0x6c]
movzx r10d, byte [rsp + 0x60]
mov eax, r12d
imul eax, dword [rsp + 0x64]
lea ecx, [rcx*4 + 4]
mov qword [rbp - 0x38], r8
sub ecx, eax
sub ecx, r10d
sub ecx, r8d
lea eax, [r14 + rcx]
add edx, eax
add edx, r9d
add edx, dword [rbp - 0x58]
mov dword [rbp - 0x40], edx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rbp - 0x30], rax
mov rax, rdi
nop word [rax + rax]
inc rax
cmp byte [r15 + rax], 0
jne 0x140036820
imul r14d, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x64]
movzx r8d, byte [rsp + 0x60]
neg ecx
shl ecx, 3
sub ecx, r14d
sub ecx, dword [rbp - 0x78]
sub ecx, dword [rbp + 0xb8]
sub ecx, dword [rbp - 0x70]
add ecx, r12d
add ecx, r8d
sub ecx, eax
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140036860
movups xmm0, xmmword [rbp - 0x50]
movups xmm1, xmmword [rbp - 0x40]
mov r9, qword [rsp + 0x78]
add ecx, 0x8a
mov edx, esi
add eax, ecx
mov rcx, qword [rbp - 0x60]
mov dword [rbp - 0x28], eax
lea rax, [rbp + 0x40]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x50], xmm1
movups xmm0, xmmword [rbp - 0x30]
mov qword [rsp + 0x30], rax
lea rax, str.c5a4
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
movaps xmmword [rbp + 0x60], xmm0
call fcn.14009ed30
mov r12, qword [rbp - 0x70]
lea r8, str.c6a0
lea rdx, str.c1a1
lea rcx, str.course
mov r9, r12
call fcn.1400618f0
mov r13d, dword [rsp + 0x6c]
jmp 0x1400368e2
mov r12, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str.c2a0
movsxd r14, eax
movzx ecx, r14b
mov dword [rbp - 0x80], r14d
call fcn.140097fd0
cmp dword [rsp + 0x70], 0x20
mov rsi, rax
jne 0x140036a65
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
mov qword [rbp - 0x50], 0
mov dword [rbp - 0x48], 4
mov r10d, eax
mov rax, qword [rbp - 0x20]
mov rdx, rdi
nop dword [rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x140036930
inc edx
mov rcx, rdi
imul edx, r12d
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140036942
mov rax, qword [rsp + 0x78]
imul ecx, dword [rbp - 0x58]
add eax, edx
mov rdx, rdi
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140036960
add ecx, eax
mov eax, r13d
sub eax, dword [rbp + 8]
add ecx, 0xffffffe0
add ecx, edx
lea eax, [rcx + rax*4]
mov rcx, rdi
mov dword [rbp - 0x44], eax
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
nop dword [rax + rax]
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140036990
mov rdx, qword [rbp + 0x20]
movsx rax, r14b
imul ecx, eax
lea eax, [r13 + 4]
mov r13, qword [rbp - 0x78]
shl eax, 5
add ecx, eax
mov rax, rdi
sub ecx, r13d
inc rax
cmp byte [rdx + rax], 0
jne 0x1400369b7
sub ecx, eax
mov rax, rdi
inc rax
cmp byte [rbx + rax], 0
jne 0x1400369c5
mov rdx, qword [rbp - 0x10]
add ecx, eax
mov rax, rdi
inc rax
cmp byte [rdx + rax], 0
jne 0x1400369d7
add ecx, eax
mov rdx, rdi
inc rdx
cmp byte [r15 + rdx], 0
jne 0x1400369e5
mov eax, dword [rbp - 8]
mov r8, rdi
shl eax, 4
add edx, eax
add edx, edx
nop dword [rax]
inc r8
cmp byte [rsi + r8], 0
jne 0x140036a00
movsx r14d, word [rsp + 0x68]
movsx eax, r14b
imul r8d, eax
mov rax, rdi
imul r8d, r12d
sub edx, r8d
cmp byte [rbx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140036a22
lea r8d, [rax - 0x1c]
lea rax, str.objective
lea r9, str.racist
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
add r8d, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea rcx, str.gamma_ray
mov edx, r10d
call fcn.14008f980
jmp 0x140036a6f
movzx r14d, word [rsp + 0x68]
mov r13, qword [rbp - 0x78]
mov rcx, rdi
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140036a72
mov rax, rdi
nop
inc rax
cmp byte [r15 + rax], 0
jne 0x140036a80
imul cl
mov edx, 0x125
movzx ecx, al
movzx eax, r13b
imul cl
movzx ecx, al
movzx eax, byte [rsp + 0x78]
imul cl
movzx ecx, byte [rsp + 0x64]
movzx r13d, al
add cl, cl
movzx eax, r14b
imul byte [rbp]
sub al, cl
xor ecx, ecx
sub al, 5
lea r8d, [rcx + 0xa]
add al, al
add r13b, al
add r13b, r13b
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rbp - 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rcx, [rbp + 0xe0]
mov edx, 0x104
mov r12, rax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov rcx, rdi
mov r8, rax
mov qword [rbp - 0x50], rax
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140036af7
mov rdx, qword [rbp - 0x20]
mov rax, rdi
inc rax
cmp byte [rdx + rax], 0
jne 0x140036b07
imul cl
mov rcx, rdi
movzx r14d, al
nop dword [rax]
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140036b20
movzx eax, byte [rbp - 0x70]
movzx edx, byte [rbp - 0x58]
mov r9d, dword [rbp - 0x80]
add r14b, cl
movzx ecx, byte [rbp + 0x14]
add al, al
sub dl, al
movzx eax, cl
add r9b, 0x10
shl dl, 5
shl al, 2
add cl, al
sub dl, cl
movzx ecx, r13b
add r14b, dl
mov rdx, qword [rbp - 0x60]
add r14b, byte [rsp + 0x6c]
add r14b, r9b
mov r9, r12
mov byte [rsp + 0x28], r14b
mov qword [rsp + 0x20], r8
lea r8, str.c0ret
call fcn.1400b9a70
movzx r12d, al
movsx eax, byte [rbp - 0x80]
cmp dword [rsp + 0x64], eax
jae 0x140036ba4
xor ecx, ecx
mov edx, 0x1fc
lea r8d, [rcx + 0xc]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rax
call fcn.1400814d0
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorGroupCount]
movsx r10, byte [rbp - 0x80]
movzx r11d, r12b
movsx r9, r13b
mov word [rbp - 0x68], ax
mov rax, qword [rbp + 0x20]
mov dword [rbp - 0x18], r11d
movzx r13d, r14b
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x140036bd0
mov r12, qword [rbp - 0x10]
mov rax, rdi
inc rax
cmp byte [r12 + rax], 0
jne 0x140036be0
imul edx, eax
mov rcx, rdi
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140036bf0
imul ecx, dword [rsp + 0x64]
mov eax, r10d
shl eax, 6
add eax, 0xfffffffe
add ecx, eax
mov rax, qword [rbp - 0x50]
lea r8d, [rdx + rcx*2]
lea eax, [rax + rax*4]
mov rcx, rdi
add r8d, eax
sub r8d, dword [rbp - 0x78]
sub r8d, r11d
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140036c22
mov r14d, dword [rsp + 0x6c]
lea eax, [r9 + r8]
add ecx, eax
add ecx, r13d
add ecx, dword [rsp + 0x70]
shl r14d, 5
mov dword [rbp - 0x50], ecx
mov rcx, rdi
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140036c47
movsx eax, byte [rsp + 0x68]
imul ecx, r10d
mov r10d, dword [rsp + 0x64]
lea edx, [r10*8]
imul eax, dword [rbp - 0x58]
sub edx, eax
mov rax, rdi
sub edx, ecx
inc rax
cmp byte [r12 + rax], 0
jne 0x140036c71
imul eax, dword [rbp - 4]
movzx ecx, byte [rsp + 0x60]
sub edx, eax
mov rax, rdi
sub edx, r9d
sub edx, r14d
sub edx, dword [rbp - 0x60]
sub edx, ecx
inc rax
cmp byte [rbx + rax], 0
jne 0x140036c94
add eax, 9
mov ecx, 0xffff
mov dword [rbp - 0x48], 0
add eax, edx
mov dword [rbp - 0x4c], eax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorCount]
mov r10, qword [rbp - 0x20]
mov dword [rbp - 0x44], eax
mov rcx, rdi
inc rcx
cmp byte [r10 + rcx], 0
jne 0x140036cc1
mov rax, qword [rbp - 0x58]
movsxd r9, dword [rbp - 0x80]
mov r11d, dword [rsp + 0x6c]
mov r8, qword [rbp + 0x28]
lea eax, [rax*8]
mov edx, 3
sub edx, eax
movsx rax, r9b
mov r9d, dword [rbp - 0x18]
sub edx, r11d
shl edx, 2
sub edx, eax
mov rax, rdi
sub edx, r9d
add edx, dword [rsp + 0x78]
sub edx, ecx
inc rax
cmp byte [r8 + rax], 0
jne 0x140036d06
sub edx, eax
mov rax, rdi
inc rax
cmp byte [rbx + rax], 0
jne 0x140036d15
add edx, eax
mov rax, rdi
mov dword [rbp - 0x40], edx
inc rax
cmp byte [r10 + rax], 0
jne 0x140036d26
imul eax, dword [rsp + 0x78]
movzx ecx, byte [rsp + 0x60]
movsx edx, byte [rbp - 0x80]
imul eax, dword [rbp - 0x78]
imul eax, ecx
mov ecx, edi
sub ecx, edx
imul ecx, dword [rbp - 0x70]
sub ecx, eax
mov rax, rdi
sub ecx, dword [rbp + 0xb8]
add ecx, r14d
mov r14d, dword [rsp + 0x70]
add ecx, r13d
add ecx, r9d
add ecx, r14d
nop dword [rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x140036d70
sub ecx, eax
mov rax, rdi
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x140036d80
add ecx, eax
mov rax, rdi
nop
inc rax
cmp byte [r12 + rax], 0
jne 0x140036d90
add ecx, eax
mov rax, rdi
nop
inc rax
cmp byte [r15 + rax], 0
jne 0x140036da0
add eax, 0x18
add eax, ecx
xor esi, esi
mov dword [rbp - 0x3c], eax
lea rax, str.drink
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x38], rax
mov rax, rdi
inc rax
cmp byte [r8 + rax], sil
jne 0x140036dc6
mov rcx, rdi
inc rcx
cmp byte [r12 + rcx], sil
jne 0x140036dd2
imul eax, ecx
nop
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140036de0
movzx r8d, byte [rsp + 0x60]
imul edi, dword [rsp + 0x78]
mov ebx, dword [rsp + 0x64]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
imul edx, r11d
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x38], r8d
sub edi, edx
add eax, edi
mov dword [rsp + 0x30], r11d
add ebx, 7
sub eax, r8d
lea r8, str.c0ret
mov rdx, r10
add eax, dword [rbp - 0x78]
mov ecx, 0x20
mov dword [rsp + 0x28], r14d
add eax, dword [rbp + 0x30]
mov dword [rsp + 0x20], r11d
add ebx, eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
movzx ecx, word [rbp - 0x68]
movups xmm0, xmmword [rbp - 0x50]
movups xmm1, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0xb0], xmm0
movaps xmmword [rbp + 0xc0], xmm1
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp + 0xd0], xmm0
cmp cl, bl
ja 0x140036e9d
movzx edx, cl
mov dword [rsp + 0x28], eax
lea r9, [rbp + 0xb0]
lea rcx, str.glue
lea r8, str.cattle
mov dword [rsp + 0x20], ebx
call fcn.1400c8160
jmp 0x140036ea3
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdx, qword [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x308
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret