Function at 0x14004c700
Capabilities:
Copy file
Create thread
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 - 0x428]
sub rsp, 0x528
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r15, qword [rbp + 0x490]
mov rsi, r8
movzx r12d, r9b
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x48], rcx
mov r8d, r12d
mov rdx, rsi
mov rcx, rsi
mov qword [rbp - 0x68], r15
mov dword [rsp + 0x74], r12d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [rbp + 0xc0], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or r14, 0xffffffffffffffff
mov dword [rbp + 0xc4], eax
mov rax, r14
inc rax
cmp byte [rsi + rax], 0
jne 0x14004c776
imul eax, r12d
mov r13d, edi
mov qword [rbp + 0xd0], rdi
sub r13d, eax
sub r13d, dword [r15 + 0x28]
mov dword [rsp + 0x7c], r13d
mov dword [rbp + 0xc8], r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rbp + 0xd8], rax
lea rax, str.duplexer
mov dword [rbp + 0xec], 0x20
mov qword [rbp + 0xe0], rax
mov eax, edi
sub eax, dword [r15 + 0x28]
mov r15, r14
mov dword [rbp + 0xe8], eax
inc r15
cmp byte [rbx + r15], 0
jne 0x14004c7d4
movaps xmm0, xmmword [rbp + 0xc0]
movaps xmm1, xmmword [rbp + 0xd0]
lea rax, [0x1400ed3f4]
mov qword [rbp + 0xf8], rax
imul r15d, r12d
lea rcx, [rbp + 0x100]
add r15d, edi
mov dword [rbp + 0xf0], r15d
movaps xmmword [rbp + 0x100], xmm0
movaps xmm0, xmmword [rbp + 0xe0]
movaps xmmword [rbp + 0x110], xmm1
movaps xmm1, xmmword [rbp + 0xf0]
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x130], xmm1
call fcn.140088e80
lea rcx, [rbp + 0x300]
mov edx, 0x104
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov r12, r14
mov qword [rbp - 0x80], rax
nop dword [rax + rax]
inc r12
cmp byte [rbx + r12], 0
jne 0x14004c860
mov rax, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x68]
mov ecx, edi
sub ecx, eax
add r12d, edi
mov dword [rsp + 0x60], ecx
mov ecx, edi
imul ecx, dword [rdx + 0x20]
sub ecx, eax
mov dword [rsp + 0x64], ecx
mov ecx, 0xffff
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
lea rcx, [rbp + 0x1c0]
xor edx, edx
mov r8d, 0x140
mov dword [rbp + 0x80], eax
call fcn.1400e27d0
lea rdx, [rbp + 0x1c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edx, dword [rsp + 0x74]
mov qword [rbp + 0x98], 0
mov qword [rbp + 0x88], rax
lea rax, [0x1400ed3f4]
mov qword [rbp + 0x90], rax
mov eax, edx
imul eax, edi
mov ecx, eax
mov dword [rbp - 0x38], eax
mov rax, qword [rbp - 0x70]
sub ecx, eax
sub ecx, r15d
mov dword [rsp + 0x78], ecx
mov dword [rbp + 0xa0], ecx
mov rcx, r14
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14004c902
imul ecx, edi
imul eax, r13d
sub ecx, eax
mov rax, qword [rbp - 0x68]
sub ecx, dword [rax + 8]
mov dword [rbp + 0xa4], ecx
mov rcx, r14
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14004c924
movups xmm0, xmmword [rbp + 0x80]
mov r9d, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x60]
mov eax, edi
sub eax, edx
mov edx, r12d
movups xmmword [rbp + 0x50], xmm0
movups xmm0, xmmword [rbp + 0x90]
add ecx, eax
lea rax, [rbp + 0x50]
mov dword [rbp + 0xa8], ecx
mov qword [rbp + 0xb0], rcx
mov rcx, qword [rbp - 0x80]
movaps xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rbp + 0xa0]
mov qword [rsp + 0x20], rax
movaps xmmword [rbp + 0x70], xmm1
call fcn.1400c1b40
lea rcx, [rbp + 0x100]
mov r13d, eax
mov dword [rsp + 0x70], eax
call fcn.14006dc30
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x50], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbp + 0x60], xmm1
mov eax, dword [rsp + 0x60]
imul eax, r12d
mov ecx, eax
mov dword [rbp - 0x58], eax
mov rax, qword [rbp - 0x68]
sub ecx, dword [rax + 0x20]
movups xmmword [rbp + 0x70], xmm0
movups xmm0, xmmword [rbp + 0x80]
add ecx, edi
psrldq xmm0, 8
movd eax, xmm0
add ecx, eax
add ecx, r13d
mov dword [rbp - 0x78], ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x6c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.pantry
mov dword [rsp + 0x68], eax
call fcn.1400d2910
mov edx, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x60]
mov qword [rbp - 0x60], rax
lea r9, [0x1400ed4fc]
cmp r8d, edx
jbe 0x14004cdcb
mov edx, dword [rsp + 0x74]
mov rax, r14
imul edx, dword [rsp + 0x7c]
mov dword [rsp + 0x7c], edx
inc rax
cmp byte [rsi + rax], 0
jne 0x14004ca25
mov ecx, dword [rbp - 0x80]
mov qword [rbp + 0x190], rdi
mov qword [rbp + 0x1a0], r9
imul ecx, dword [rbp - 0x70]
sub ecx, dword [rsp + 0x78]
sub ecx, r8d
add ecx, edx
mov edx, 0x9d
add ecx, edi
sub ecx, eax
lea rax, str.spank
mov dword [rbp - 0x54], ecx
xor ecx, ecx
mov qword [rbp + 0x198], rax
lea r8d, [rcx + 7]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r9d, dword [rsp + 0x6c]
lea r8, [0x140001b00]
mov qword [rbp + 0x1a8], rax
lea rax, str.cormorant
xor edx, edx
mov qword [rbp + 0x1b0], rax
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9d, dword [rsp + 0x64]
xor ecx, ecx
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
movsxd rax, r12d
lea rdx, str.pantry
mov r8, rsi
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x68]
mov ecx, r9d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, r14
mov qword [rbp - 0x40], rax
nop dword [rax + rax]
inc rcx
cmp byte [rsi + rcx], 0
jne 0x14004cb00
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x14004cb10
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
imul ecx, eax
mov eax, dword [rbp + 0x50]
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], 0
imul eax, dword [rsp + 0x6c]
imul eax, r13d
add ecx, eax
mov eax, r15d
imul eax, dword [r8 + 0x20]
add ecx, eax
mov rax, r14
sub ecx, dword [rbp - 0x58]
add ecx, edi
add ecx, edx
mov rdx, qword [rbp - 0x70]
add ecx, edx
mov dword [rbp - 0x30], ecx
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x14004cb60
mov ecx, dword [r8 + 0x28]
add ecx, edi
add ecx, dword [rbp + 0x78]
add ecx, dword [rsp + 0x64]
add ecx, edx
sub ecx, eax
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x14004cb80
sub ecx, eax
mov edx, 0x12f
mov dword [rbp - 0x18], ecx
xor ecx, ecx
lea r8d, [rcx + 0xe]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov dword [rbp - 8], 1
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, qword [rbp - 0x80]
mov ecx, edi
movaps xmm0, xmmword [rbp - 0x30]
movaps xmm1, xmmword [rbp - 0x20]
mov qword [rbp], rax
mov eax, dword [rbp + 0x68]
mov qword [rbp + 0x18], rdx
imul ecx, edx
movaps xmmword [rbp + 0x140], xmm0
movaps xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp + 0x150], xmm1
mov edx, dword [rbp - 0x54]
mov qword [rbp + 8], 0
lea r9, [rbp + 0x20]
imul eax, dword [rsp + 0x64]
movaps xmmword [rbp + 0x160], xmm0
movaps xmm1, xmmword [rbp]
movaps xmmword [rbp + 0x170], xmm1
add ecx, eax
lea rax, [rbp + 0x140]
lea r8, [0x1400ed4fc]
movups xmm1, xmmword [rbp + 0x1a0]
sub ecx, dword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x40]
movaps xmmword [rbp + 0x30], xmm1
mov dword [rbp + 0x10], ecx
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x50]
movaps xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp + 0x180], xmm0
xor ecx, ecx
mov qword [rsp + 0x20], rax
movups xmm0, xmmword [rbp + 0x190]
movaps xmmword [rbp + 0x20], xmm0
movsd xmm0, qword [rbp + 0x1b0]
movsd qword [rbp + 0x40], xmm0
call fcn.1400b9600
mov edx, eax
mov dword [rbp - 0x58], eax
mov rax, r14
nop
inc rax
cmp byte [rsi + rax], 0
jne 0x14004cc80
mov ecx, dword [rsp + 0x7c]
sub ecx, dword [rbp - 0x50]
sub ecx, edx
mov edx, 0x1cc
sub ecx, dword [rbp - 0x54]
sub ecx, dword [rsp + 0x64]
sub ecx, r12d
add ecx, edi
sub ecx, eax
mov rax, qword [rbp - 0x80]
mov dword [rsp + 0x7c], ecx
xor ecx, ecx
mov qword [rbp + 0x190], rax
lea r8d, [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [rbp - 0x10]
mov qword [rbp + 0x198], rax
mov eax, dword [rbp - 0x78]
imul ecx, dword [rbp - 0x50]
imul ecx, dword [rbp - 0x58]
lea eax, [rax + rax*2]
lea edi, [rax + rax]
mov rax, qword [rbp - 0x68]
mov eax, dword [rax + 0x10]
imul eax, dword [rbp + 0xd8]
imul eax, dword [rbp - 0x80]
sub ecx, eax
lea eax, [rdi - 2]
sub ecx, dword [rbp - 0x60]
sub ecx, dword [rsp + 0x68]
sub ecx, r13d
sub ecx, r12d
add ecx, dword [rbp - 0x48]
add eax, ecx
mov dword [rbp + 0x1a0], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rbp + 0x1a8], rax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
mov ecx, dword [rbp + 0x50]
movups xmm0, xmmword [rbp + 0x190]
movups xmm1, xmmword [rbp + 0x1a0]
mov edx, dword [rsp + 0x7c]
movzx eax, ax
imul ecx, r13d
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x30], xmm1
mov dword [rbp + 0x1b0], eax
mov eax, dword [rbp - 0x60]
lea r9, str.pencil
movsd xmm0, qword [rbp + 0x1b0]
movsd qword [rbp + 0x40], xmm0
mov r8d, 2
imul eax, dword [rbp - 0x54]
sub ecx, eax
lea eax, [rcx*2 - 0x20]
xor ecx, ecx
sub eax, r12d
add eax, dword [rbp - 0x38]
add eax, edi
add eax, dword [rsp + 0x68]
add eax, dword [rbp - 0x70]
add eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, str.whirlpool
mov qword [rsp + 0x20], rax
call fcn.140078f20
lea rcx, str.cleric
call fcn.140093a60
mov rcx, qword [rbp - 0x60]
mov edx, 8
call fcn.1400ca2c0
mov rdi, qword [rbp - 0x48]
mov edx, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x60]
mov rax, qword [rbp + 0x58]
mov rcx, r14
inc rcx
cmp byte [rax + rcx], 0
jne 0x14004cdd2
movzx eax, byte [rbp - 0x78]
imul cl
movzx ecx, al
movzx eax, byte [rsp + 0x6c]
imul cl
movzx r13d, al
add al, al
add r13b, al
movzx eax, dl
add r13b, r13b
imul r8b
movzx ecx, al
movzx eax, byte [rbp + 0xa8]
imul cl
movzx ecx, al
movzx eax, byte [rsp + 0x70]
imul cl
mov rcx, r14
sub r13b, al
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14004ce20
movzx eax, dil
imul cl
mov rcx, rbx
add r13b, al
sub r13b, byte [rsp + 0x68]
add r13b, r12b
add r13b, byte [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, r14
mov rcx, rax
mov qword [rbp - 0x50], rax
nop
inc rdi
cmp byte [rbx + rdi], 0
jne 0x14004ce60
mov eax, dword [rbp - 0x48]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x80]
sub eax, dword [rsp + 0x68]
lea r9, str.birthday
sub eax, dword [rsp + 0x6c]
sub eax, dword [rsp + 0x70]
sub eax, dword [rsp + 0x60]
sub eax, r15d
add eax, edx
lea rdx, str.bench
add edi, eax
add edi, r12d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rcx
movzx ecx, r13b
call fcn.140067840
lea rcx, [rbp + 0x190]
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, str.bench
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
movsx rdx, r13b
mov qword [rbp - 0x30], rax
lea rax, str.atelier
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x28], rax
mov rax, r14
inc rax
cmp byte [rsi + rax], 0
jne 0x14004cef3
imul eax, dword [rbp + 0xc4]
mov ecx, dword [rsp + 0x68]
mov r13d, dword [rsp + 0x6c]
mov r15, qword [rbp - 0x48]
imul ecx, r13d
sub ecx, eax
mov eax, dword [rsp + 0x60]
add eax, eax
sub ecx, eax
sub ecx, edx
sub ecx, dword [rbp - 0x50]
lea eax, [r15 + rcx]
mov ecx, dword [rsp + 0x64]
add eax, 5
add eax, edi
mov dword [rbp - 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rbp + 0x1c0]
xor edx, edx
mov r8d, 0x140
mov qword [rbp - 0x18], rax
call fcn.1400e27d0
mov rcx, qword [rbp - 0x40]
lea rdx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rbp - 0x10], rax
lea rax, str.panties
mov qword [rbp - 8], rax
mov rax, r14
inc rax
cmp byte [rsi + rax], 0
jne 0x14004cf74
mov rcx, r14
inc rcx
cmp byte [rbx + rcx], 0
jne 0x14004cf80
mov rdx, qword [rbp - 0x68]
imul eax, ecx
mov ecx, dword [rsp + 0x70]
imul ecx, dword [rbp + 0xb0]
imul eax, dword [rdx + 0x2c]
mov rdx, qword [rbp + 0x58]
imul eax, dword [rsp + 0x74]
sub ecx, eax
mov rax, qword [rbp - 0x80]
add eax, eax
sub ecx, eax
mov rax, r14
sub ecx, r13d
mov r13, qword [rbp - 0x70]
sub ecx, r13d
add ecx, r15d
add ecx, r12d
inc rax
cmp byte [rdx + rax], 0
jne 0x14004cfc5
add eax, 0xfffffff2
mov edx, 0xb3
add eax, ecx
xor ecx, ecx
lea r8d, [rcx + 0x11]
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r9d, dword [rsp + 0x70]
lea r8, str.c8a3
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
mov rbx, rax
lea rax, [0x1400ed3f4]
lea rdx, [rbp + 0x20]
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x30], xmm1
movups xmm0, xmmword [rbp - 0x10]
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x190]
mov qword [rsp + 0x28], rbx
movaps xmmword [rbp + 0x40], xmm0
mov qword [rsp + 0x20], r13
call fcn.140086ba0
mov r8, r14
movups xmm0, xmmword [rax]
movsd xmm1, qword [rax + 0x10]
movups xmmword [rbp + 0x20], xmm0
movsd qword [rbp + 0x30], xmm1
nop dword [rax]
inc r8
cmp byte [rsi + r8], 0
jne 0x14004d050
mov ecx, dword [rsp + 0x70]
mov eax, dword [rbp - 0x10]
mov edx, dword [rsp + 0x74]
imul r8d, r15d
imul ecx, r13d
lea ecx, [rcx + rax*2]
mov rax, qword [rbp - 0x68]
add ecx, ecx
imul edx, dword [rax + 0x28]
mov eax, dword [rbp - 0x50]
sub edx, ecx
imul eax, edi
mov edi, dword [rsp + 0x64]
imul eax, dword [rbp - 0x80]
sub edx, eax
mov eax, dword [rbp - 0x78]
add r8d, edx
add eax, 7
sub r8d, dword [rsp + 0x68]
sub r8d, dword [rsp + 0x6c]
sub r8d, dword [rsp + 0x78]
sub r8d, edi
sub r8d, dword [rsp + 0x60]
add r8d, dword [rbp - 0x60]
add r8d, dword [rbp + 0x28]
add eax, r8d
mov dword [rsp + 0x78], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumber]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov edx, 0x109
lea r8d, [rcx + 0x16]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r8, str.c9a5
cmp edi, dword [rsp + 0x74]
jb 0x14004d189
nop
inc r14
cmp byte [rsi + r14], 0
jne 0x14004d100
movzx eax, r15b
add r12b, 5
mov qword [rsp + 0x28], r8
lea r9, str.pool
lea r8, str.c3a0
imul r14b
movzx edx, al
movzx eax, byte [rsp + 0x60]
imul byte [rbp - 0x78]
movzx ecx, al
movzx eax, byte [rbp + 0xa8]
imul cl
movzx ecx, al
movzx eax, byte [rbp + 0x78]
imul cl
movzx ecx, al
movzx eax, byte [rbp - 0x30]
imul r13b
sub cl, al
movzx eax, byte [rbp - 0x80]
add dl, cl
lea rcx, [rbp + 0x190]
imul r12b
add dl, al
mov rax, qword [rbp - 0x68]
sub dl, byte [rsp + 0x78]
sub dl, bl
sub dl, byte [rbp - 0x50]
add dl, 8
add dl, byte [rax + 8]
add dl, byte [rsp + 0x68]
mov byte [rsp + 0x20], dl
mov rdx, r13
call fcn.14009e270
xor ecx, ecx
mov edx, 0x24c
lea r8d, [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea r9, str.november
lea rdx, str.c9a5
mov r8, rax
mov ecx, 8
call fcn.14007d650
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [0x1400ed4fc]
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x528
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret