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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x248
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, qword [rsp + 0x2b0]
mov qword [rsp + 0x60], rdx
mov rbx, rcx
mov rdx, r8
xor ecx, ecx
mov r12, r9
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x98], r9
mov r13, r8
call qword [sym.imp.KERNEL32.dll_LoadResource]
or r14, 0xffffffffffffffff
mov r15, rax
mov qword [rsp + 0xa0], rax
mov rbp, r14
nop dword [rax]
inc rbp
cmp byte [rbx + rbp], 0
jne 0x140071d40
sub ebp, r12d
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rsi, r14
mov qword [rsp + 0x78], rax
nop word [rax + rax]
inc rsi
cmp byte [rbx + rsi], 0
jne 0x140071d60
imul eax, r15d
sub esi, eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, r14
mov qword [rsp + 0x90], rax
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140071d80
imul ecx, r13d
mov edx, 0x1d2
imul ecx, dword [rsp + 0x60]
sub ecx, edi
add ecx, r12d
add ecx, r15d
mov dword [rsp + 0xc0], ecx
xor ecx, ecx
lea r8d, [rcx + 0x1b]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r8d, ebp
mov rdx, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r15d, eax
movzx eax, r13b
imul byte [rsp + 0xc0]
movzx ecx, al
mov al, 0x1e
imul sil
movzx edi, al
sub dil, cl
add dil, 4
add dil, byte [rsp + 0x90]
cmp dil, sil
je 0x140071e0b
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8d, esi
mov r9d, esi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r12d, eax
mov dword [rsp + 0x6c], eax
add eax, 0xa
mov dword [rsp + 0x68], eax
cmp dil, sil
jb 0x140071e51
lea rcx, [rsp + 0xf0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
xor ecx, ecx
mov edx, 0x35b
lea r8d, [rcx + 0x17]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov edx, 0x2b4
lea r8d, [rcx + 0x13]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsp + 0xf0]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0xf0]
lea rcx, [0x1400ed4d4]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea rcx, [rsp + 0xf0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
xor edx, edx
movzx ecx, dil
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0xd0], rax
movzx eax, dil
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x40], rax
lea eax, [r12 + 0xa]
lea r8, [0x1400ed4d4]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
lea rdx, str.plane
mov r9d, eax
mov ecx, r12d
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, r14
nop
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140071f10
mov r8, qword [rsp + 0x80]
mov r11, qword [rsp + 0x98]
imul ecx, r13d
imul r15d, esi
lea edx, [r12 + 0xa]
lea r10d, [r11 + 1]
mov eax, edx
imul eax, r12d
add ecx, eax
add ecx, r15d
mov r15, r14
sub ecx, r8d
sub ecx, dword [rsp + 0x78]
add r10d, ecx
inc r15
cmp byte [rbx + r15], 0
jne 0x140071f52
mov r9, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x60]
mov rcx, r14
lea eax, [r9 + r9]
sub eax, r8d
dec eax
add eax, r13d
add eax, r12d
add eax, esi
add r15d, eax
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140071f80
movzx eax, r12b
sub dl, 2
imul cl
movzx r12d, al
movzx eax, r8b
imul bpl
movzx ecx, al
movzx eax, r9b
imul cl
shl al, 2
add r12b, al
add r12b, dl
mov rdx, r14
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140071fb2
movzx eax, byte [rsp + 0x78]
movzx ecx, r11b
imul r9b
sub cl, al
movzx eax, byte [rsp + 0x60]
imul r13b
sub cl, al
movsx eax, r12b
sub cl, dil
mov rdi, qword [rsp + 0x88]
sub cl, 6
add edi, 0xfffffffc
add dl, cl
movzx ecx, dl
imul ecx, eax
mov eax, r15d
imul eax, r10d
add ecx, eax
sub ecx, r8d
add edi, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r8, rax
mov qword [rsp + 0xa8], rax
cmp ebp, edi
je 0x140072021
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [rsp + 0xa8]
inc r14
cmp byte [rbx + r14], 0
jne 0x140072021
mov rax, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x80]
movsx rcx, r12b
lea edx, [rax*2 - 8]
lea eax, [rsi + rsi*2]
imul edi, dword [rsp + 0xa0]
sub edx, eax
mov rax, qword [rsp + 0x60]
sub edx, dword [rsp + 0x70]
add edx, dword [rsp + 0x6c]
add edx, edx
inc eax
imul eax, r13d
sub edx, eax
mov eax, dword [rsp + 0xd0]
imul eax, r15d
sub edx, eax
mov rax, qword [rsp + 0x98]
sub edx, edi
add edx, ecx
sub edx, r8d
sub edx, ebp
add eax, edx
add eax, r14d
add eax, dword [rsp + 0x88]
add eax, dword [rsp + 0x68]
add eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x248
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret