Function at 0x1400539f0
Capabilities:
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 - 0x368]
sub rsp, 0x468
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov rax, qword [rbp + 0x3e0]
mov ebx, dword [rbp + 0x3d0]
mov r13, qword [rbp + 0x3d8]
movups xmm0, xmmword [rax]
movsd xmm1, qword [rax + 0x10]
mov r12, r9
mov qword [rbp - 0x50], r9
mov r15, r8
mov rdi, rdx
movaps xmmword [rbp - 0x30], xmm0
movsd qword [rbp - 0x20], xmm1
mov r14, rcx
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x64], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
or rsi, 0xffffffffffffffff
mov qword [rbp + 0xb0], rax
mov rax, rsi
nop
inc rax
cmp byte [r15 + rax], 0
jne 0x140053a70
mov ecx, r14d
sub ecx, r12d
add ecx, ebx
sub ecx, eax
mov rax, rsi
nop word [rax + rax]
inc rax
cmp byte [r13 + rax], 0
jne 0x140053a90
sub ecx, eax
mov rax, rsi
inc rax
cmp byte [rdi + rax], 0
jne 0x140053aa0
add ecx, eax
mov ebx, r12d
mov qword [rbp + 0xc0], r12
mov dword [rbp + 0xb8], ecx
imul ebx, r14d
mov dword [rbp + 0xbc], ebx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rdx, r14
mov qword [rbp + 0xc8], rax
lea rax, str.nigeria
xor ecx, ecx
mov dword [rbp + 0xd0], 0
mov qword [rbp + 0xe0], r12
mov qword [rbp + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
lea rcx, [rbp + 0x210]
xor edx, edx
mov r8d, 0x140
mov qword [rbp + 0xe8], rax
call fcn.1400e27d0
lea rdx, [rbp + 0x210]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rbp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorGroupCount]
lea rdx, [rbp + 0x100]
movaps xmm0, xmmword [rbp + 0xb0]
movaps xmm1, xmmword [rbp + 0xc0]
movzx eax, ax
lea rcx, [rbp + 0x90]
movaps xmmword [rbp + 0x100], xmm0
movaps xmm0, xmmword [rbp + 0xd0]
movaps xmmword [rbp + 0x110], xmm1
mov r8d, eax
mov dword [rsp + 0x6c], eax
movaps xmm1, xmmword [rbp + 0xe0]
movaps xmmword [rbp + 0x120], xmm0
movsd xmm0, qword [rbp + 0xf0]
movsd qword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm1
call fcn.1400ce4e0
xor ecx, ecx
mov edx, 0x1be
lea r8d, [rcx + 0x18]
movups xmm0, xmmword [rax]
movsd xmm1, qword [rax + 0x10]
movups xmmword [rbp - 8], xmm0
movsd qword [rbp + 8], xmm1
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rsi
mov qword [rbp - 0x80], rax
inc r14
cmp byte [rdi + r14], 0
jne 0x140053bc2
mov eax, dword [rbp - 0x20]
imul r14d, dword [rsp + 0x78]
lea rcx, [rbp + 0x210]
xor edx, edx
mov r8d, 0x140
imul eax, dword [rsp + 0x6c]
imul eax, ebx
sub r14d, eax
call fcn.1400e27d0
lea rdx, [rbp + 0x210]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp + 0x1d8]
mov r8d, r14d
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x20], rax
call fcn.140065350
mov r10d, dword [rsp + 0x6c]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1a0], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbp + 0x1b0], xmm1
movsd xmm1, qword [rax + 0x30]
movups xmmword [rbp + 0x1c0], xmm0
movsd qword [rbp + 0x1d0], xmm1
cmp r10d, r14d
jl 0x140054309
mov rcx, rsi
nop
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140053c60
imul ecx, dword [rbp - 0x30]
mov rdx, rsi
imul ecx, r12d
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140053c75
mov eax, dword [rbp - 0x80]
mov r8, qword [rsp + 0x78]
mov r11d, dword [rbp + 0x1a8]
imul eax, dword [rbp + 8]
add ecx, r8d
mov r9d, r11d
mov qword [rbp + 0x18], r12
add ecx, edx
imul r9d, r14d
sub r9d, eax
mov eax, r10d
imul eax, ebx
sub r9d, eax
mov eax, r8d
add r9d, ecx
mov ecx, dword [rbp - 8]
imul eax, ebx
mov dword [rbp - 0x78], r9d
mov dword [rbp + 0x10], r9d
imul ecx, r14d
imul ecx, r10d
add ecx, eax
mov rax, qword [rbp + 0x1b0]
shr rax, 0x20
add ecx, eax
mov rax, qword [rbp - 0x70]
sub ecx, eax
mov dword [rbp + 0x20], ecx
lea rcx, [0x1400ed7c8]
mov qword [rbp + 0x28], rcx
mov rcx, rsi
nop
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140053cf0
imul eax, r14d
imul eax, eax, 7
sub eax, dword [rsp + 0x64]
add eax, dword [rbp - 0x28]
add eax, r12d
add eax, r8d
add eax, r11d
sub eax, ecx
mov rcx, r15
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [rsp + 0x68]
lea rcx, [rbp + 0x50]
movups xmm0, xmmword [rbp + 0x10]
movups xmm1, xmmword [rbp + 0x20]
mov r9, rax
xor r8d, r8d
mov qword [rbp - 0x60], rax
movaps xmmword [rbp + 0x50], xmm0
movaps xmmword [rbp + 0x60], xmm1
call fcn.1400adc70
mov ecx, dword [rsp + 0x64]
inc ecx
movsx edx, al
mov byte [rsp + 0x61], al
mov dword [rbp - 0x68], edx
imul ecx, r12d
sub ecx, edx
sub ecx, dword [rbp + 0x1d0]
sub ecx, dword [rsp + 0x68]
add ecx, dword [rsp + 0x78]
add ecx, dword [rbp - 0x80]
add ecx, r14d
mov dword [rbp + 0x150], ecx
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea r8, [0x1400ed3f4]
mov qword [rbp + 0x160], r8
mov rcx, rsi
mov qword [rbp + 0x158], rax
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140053da3
mov rdx, qword [rbp - 0x80]
mov eax, r12d
mov qword [rbp + 0x170], r8
sub eax, edx
mov qword [rbp + 0x180], r12
mov dword [rbp + 0x188], 1
add eax, dword [rsp + 0x78]
add eax, r14d
sub eax, ecx
xor r8d, r8d
mov rcx, rsi
mov qword [rbp + 0x178], r8
mov dword [rbp + 0x168], eax
nop dword [rax]
inc rcx
cmp byte [r13 + rcx], r8b
jne 0x140053df0
mov eax, dword [rbp - 0x68]
mov dword [rbp + 0x54], r8d
mov r8d, 0x140
imul eax, dword [rbp - 0x60]
sub ebx, eax
sub ebx, dword [rsp + 0x64]
sub ebx, dword [rbp - 0x70]
add ebx, dword [rsp + 0x68]
add ebx, edx
xor edx, edx
sub ebx, ecx
lea rcx, [rbp + 0x210]
sub ebx, 2
mov dword [rbp + 0x50], ebx
call fcn.1400e27d0
lea rdx, [rbp + 0x210]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
movsxd rbx, dword [rsp + 0x6c]
xor ecx, ecx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], r14d
mov qword [rbp + 0x58], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], ebx
lea r8, str.ashtray
mov rdx, r15
mov r9d, eax
mov ecx, eax
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rbp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorGroupCount]
lea r9, [rbp + 0x90]
movups xmm0, xmmword [rbp + 0x50]
movzx eax, ax
lea r8, str.whole
lea rcx, [rbp + 0x100]
movaps xmmword [rbp + 0x90], xmm0
movaps xmm0, xmmword [rbp + 0x150]
movaps xmmword [rbp + 0x100], xmm0
movaps xmm0, xmmword [rbp + 0x170]
mov dword [rbp + 0x68], eax
mov rdx, r12
movaps xmmword [rbp + 0x120], xmm0
movups xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp + 0xa0], xmm1
movaps xmm1, xmmword [rbp + 0x160]
movaps xmmword [rbp + 0x110], xmm1
movaps xmm1, xmmword [rbp + 0x180]
movaps xmmword [rbp + 0x130], xmm1
call fcn.1400bae70
mov rcx, rsi
mov qword [rbp + 0x90], rax
nop
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140053f10
mov r8, qword [rbp - 0x50]
mov r12d, dword [rbp - 0x20]
mov r9, qword [rsp + 0x78]
imul r12d, r8d
imul r12d, r8d
mov rax, rsi
imul r12d, ebx
mov rbx, qword [rbp - 0x80]
sub r12d, ebx
add r12d, r9d
add r12d, dword [rbp + 0x1b8]
sub r12d, ecx
nop dword [rax]
inc rax
cmp byte [r15 + rax], 0
jne 0x140053f50
sub r12d, eax
mov rdx, rsi
add r12d, 2
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140053f64
movzx eax, byte [rbp + 0x150]
imul r8b
movzx ecx, al
movzx eax, byte [rsp + 0x61]
imul cl
movzx ecx, al
movzx eax, byte [rbp + 0xe8]
imul byte [rbp + 8]
sub cl, al
movzx eax, bl
imul r14b
add cl, al
sub cl, byte [rbp + 0x68]
add cl, byte [rbp + 0x10]
add cl, byte [rsp + 0x68]
add cl, r9b
add cl, byte [rbp - 0x60]
sub cl, dl
mov edx, 0x117
add cl, 5
mov byte [rsp + 0x60], cl
xor ecx, ecx
lea r8d, [rcx + 3]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
movzx edx, byte [rsp + 0x60]
mov ecx, r12d
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x20], rax
call fcn.1400b7920
mov rcx, r15
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, 0xffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorCount]
lea rcx, [0x1400ed7c8]
mov r8d, 4
mov rdx, rbx
mov r9d, eax
mov dword [rbp - 0x70], eax
call fcn.140063750
movzx ecx, bl
shl cl, 2
mov qword [rbp - 0x40], rax
movzx eax, byte [rbp - 0x20]
mov edx, 0x104
imul byte [rsp + 0x6c]
sub cl, al
sub cl, byte [rsp + 0x64]
sub cl, byte [rbp - 8]
sub cl, 2
add cl, byte [rsp + 0x70]
add cl, byte [rsp + 0x78]
add cl, byte [rbp - 0x58]
mov byte [rsp + 0x62], cl
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
movsx r9, byte [rsp + 0x61]
movsxd r8, r12d
mov rdx, r15
xor ecx, ecx
mov qword [rbp - 0x10], rax
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov rdx, rsi
mov dword [rbp + 0x10], eax
nop word [rax + rax]
inc rdx
cmp byte [r15 + rdx], 0
jne 0x140054080
movsx eax, byte [rsp + 0x60]
mov ecx, dword [rbp - 0x70]
mov r12, qword [rbp - 0x50]
imul eax, dword [rbp + 0x90]
imul edx, r12d
imul eax, dword [rsp + 0x70]
sub ecx, eax
mov eax, dword [rbp - 0x80]
shl ecx, 2
sub ecx, edx
mov rdx, qword [rbp - 0x40]
imul eax, r14d
mov r14, qword [rsp + 0x78]
add ecx, eax
mov rax, rsi
sub ecx, dword [rsp + 0x68]
sub ecx, dword [rbp - 8]
sub ecx, dword [rbp - 0x78]
add ecx, dword [rbp - 0x20]
add ecx, r14d
add ecx, dword [rbp - 0x60]
inc rax
cmp byte [rdx + rax], 0
jne 0x1400540d5
sub ecx, eax
xor r8d, r8d
mov qword [rbp + 0x20], r12
mov dword [rbp + 0x14], ecx
mov rcx, qword [rbp - 0x58]
mov dword [rbp + 0x18], r8d
mov dword [rbp + 0x28], 8
call qword [sym.imp.KERNEL32.dll_LockResource]
mov dword [rbp + 0x30], 8
mov dword [rbp + 0x2c], eax
lea rax, str.typewriter
mov qword [rbp + 0x38], rax
lea rax, str.scissors
mov qword [rbp + 0x40], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r8, qword [rbp - 0x10]
movups xmm0, xmmword [rbp + 0x10]
movups xmm1, xmmword [rbp + 0x20]
movzx edx, byte [rsp + 0x62]
lea r9, [rbp + 0x50]
lea rcx, [rbp + 0x150]
movaps xmmword [rbp + 0x50], xmm0
movaps xmmword [rbp + 0x60], xmm1
movups xmm0, xmmword [rbp + 0x30]
movsd xmm1, qword [rbp + 0x40]
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x20], rax
movaps xmmword [rbp + 0x70], xmm0
movsd qword [rbp + 0x80], xmm1
call fcn.140097820
movsx r8d, byte [rsp + 0x62]
mov dword [rbp - 0x48], 1
mov rdx, rsi
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x100], xmm0
movaps xmmword [rbp + 0x110], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmm1, xmmword [rax + 0x30]
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x130], xmm1
movsd xmm0, qword [rax + 0x40]
lea rax, str.plant
movsd qword [rbp + 0x140], xmm0
mov qword [rbp - 0x50], rax
mov eax, r8d
mov dword [rbp - 0x78], eax
inc rdx
cmp byte [r13 + rdx], 0
jne 0x1400541c5
imul eax, dword [rbp - 0x70]
mov r9d, dword [rbp - 0x28]
mov r13d, dword [rsp + 0x6c]
mov ecx, r14d
imul r9d, dword [rbp + 0xf0]
imul edx, r12d
sub ecx, r9d
mov r9, qword [rbp - 0x10]
sub ecx, eax
mov rax, rsi
sub ecx, edx
mov rdx, qword [rbp - 0x80]
sub ecx, dword [rbp + 0x138]
sub ecx, dword [rbp - 0x58]
sub ecx, r9d
sub ecx, dword [rbp]
sub ecx, r13d
add ecx, edx
inc rax
cmp byte [rdi + rax], 0
jne 0x140054212
sub ecx, eax
mov rax, qword [rbp - 0x40]
sub ecx, 6
mov dword [rbp - 0x44], ecx
mov rcx, rsi
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x140054230
movsx r10, byte [rsp + 0x60]
movsx rax, r8b
imul ecx, eax
mov eax, dword [rsp + 0x64]
imul r10d, ebx
imul r10d, dword [rsp + 0x70]
imul eax, dword [rbp + 8]
shl r10d, 2
sub r10d, ecx
sub r10d, eax
mov rax, qword [rbp + 0x90]
lea eax, [rax + rax*4]
sub r10d, eax
nop
inc rsi
cmp byte [rdi + rsi], 0
jne 0x140054270
movsx rax, byte [rsp + 0x61]
mov ebx, dword [rbp + 0x1c0]
imul esi, r14d
add r10d, esi
add ebx, 0xfffffffb
sub r10d, r12d
sub r10d, r9d
sub r10d, dword [rbp - 0x60]
sub r10d, eax
sub r10d, edx
add ebx, r10d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
movsxd rax, dword [rbp - 0x70]
xor ecx, ecx
lea rdx, [0x1400ed7c8]
mov r9d, r13d
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov ecx, dword [rbp - 0x68]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x64]
mov r8, r15
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp + 0x90], xmm0
mov r8d, ebx
xor edx, edx
call fcn.14006b7b0
lea rcx, [rbp + 0x210]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rbp + 0x210]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400dd340
add rsp, 0x468
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret