Function at 0x1400d5bd0
Capabilities:
Extract resource via kernel32 functions
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rcx, [rsp + 0x380]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
mov qword [rsp + 0xa8], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
lea ecx, [rbx + rbx*4]
mov r12, rax
mov qword [rsp + 0xb8], rax
add ecx, ecx
lea eax, [rax*4]
mov edx, 0x104
mov r14d, ecx
mov dword [rsp + 0xcc], ecx
lea rcx, [rsp + 0x270]
sub r14d, edi
mov dword [rsp + 0xc8], eax
sub r14d, eax
mov dword [rsp + 0xb0], r14d
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov edx, 0x28
lea r8d, [rdx - 0x1b]
xor ecx, ecx
mov qword [rsp + 0x88], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, str.suggestion
movsxd rdi, r14d
mov rbp, rax
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.vein
mov r9, rdi
mov r8, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov ecx, eax
mov r13d, eax
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 0x28
xor ecx, ecx
lea r8d, [rdx - 0x1f]
mov r15, rax
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
mov qword [rsp + 0xe0], rax
movzx eax, bpl
imul r15b
movzx ecx, al
movzx eax, byte [rsp + 0x88]
imul cl
lea ebp, [rax - 0x32]
add bpl, r12b
add bpl, bl
movzx eax, bpl
movsx r15d, bpl
mov dword [rsp + 0xb4], r15d
imul sil
movzx r12d, al
xor eax, eax
shl r12b, 2
cmp r14d, r15d
jg 0x1400d5de3
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
movsx ecx, r12b
mov qword [rsp + 0x40], rdi
lea r8, str.vein
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], r14d
lea rdx, str.vein
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], ecx
mov r9d, r15d
mov ecx, r15d
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea rcx, [rsp + 0x130]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0x130]
lea rcx, str.c2a2
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea rcx, [rsp + 0x130]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0x130]
lea rcx, str.c2a2
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
mov edx, 0x8b
lea r8d, [rcx + 3]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rdi, rax
mov qword [rsp + 0x98], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
mov qword [rsp + 0xc0], rax
movzx eax, dil
imul cl
movzx ecx, al
movzx eax, bpl
imul cl
movzx edi, al
shl dil, 2
sub dil, 0x1e
add dil, bl
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x78], rax
movsx ecx, dil
movsx r8, r12b
add eax, ecx
mov dword [rsp + 0x68], ecx
mov ecx, edx
mov dword [rsp + 0x64], eax
movsx r9, dil
mov eax, esi
mov qword [rsp + 0xe8], r9
mov qword [rsp + 0xa0], r8
imul eax, dword [rsp + 0x90]
sub ecx, eax
mov dword [rsp + 0xd0], eax
lea eax, [r13 + 0x10]
sub ecx, r8d
sub ecx, r9d
add ecx, ebx
add eax, ecx
xor ecx, ecx
mov dword [rsp + 0xf0], eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor ecx, ecx
mov edx, 0x206
mov qword [rsp + 0x110], rax
lea r8d, [rcx + 0x14]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, 0xffff
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorCount]
mov r9d, dword [rsp + 0x64]
xor edx, edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x6c], eax
movzx eax, byte [rsp + 0x90]
movsx ecx, r12b
movsx r8d, dil
lea rdx, str.c1a1
imul sil
movzx esi, r13b
sub sil, al
movsx rax, bpl
sub sil, byte [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r13d
sub sil, byte [rsp + 0x98]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], ecx
sub sil, dil
lea r8, str.c0a1
mov ecx, r9d
sub sil, r12b
mov dword [rsp + 0x20], r14d
sub sil, 0xa
add sil, byte [rsp + 0x88]
add sil, bl
mov byte [rsp + 0x60], sil
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, rax
mov qword [rsp + 0xd8], rax
movzx eax, sil
imul cl
mov rbp, qword [rsp + 0xe0]
lea edi, [rax - 7]
add dil, byte [rsp + 0xf0]
add dil, bpl
add dil, byte [rsp + 0x6c]
cmp r14d, r15d
je 0x1400d5faa
xor ecx, ecx
mov edx, 0x145
lea r8d, [rcx + 0x1c]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov edx, 0x2df
lea r8d, [rcx + 0x11]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
imul ecx, r14d
imul eax, r13d
mov r8d, dword [rsp + 0x68]
mov r9, qword [rsp + 0xa0]
movsx r14d, byte [rsp + 0x6c]
imul r8d, edx
sub ecx, eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x68], r8d
sub ecx, r8d
mov r8, qword [rsp + 0xb8]
movsx esi, sil
imul eax, dword [rsp + 0x70]
add ecx, r9d
mov r15d, r14d
movsx r12, dil
imul esi, dword [rsp + 0xd8]
sub r15d, eax
add ecx, r12d
lea r13d, [rbp - 9]
add ecx, r8d
add r13d, ecx
imul r15d, ebp
sub r15d, esi
sub r15d, dword [rsp + 0xc0]
add r15d, r9d
add r15d, dword [rsp + 0x98]
add r15d, edx
add r15d, r8d
add r15d, ebx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rdx, qword [rsp + 0xb8]
mov rbp, rax
mov rax, qword [rsp + 0xa8]
mov ecx, r14d
imul ecx, dword [rsp + 0xd8]
imul ecx, dword [rsp + 0x64]
imul eax, edx
imul eax, ebx
inc ebx
imul ebx, edx
shl eax, 2
sub eax, ecx
mov ecx, dword [rsp + 0xd0]
sub eax, dword [rsp + 0x68]
sub eax, dword [rsp + 0xc0]
imul ecx, dword [rsp + 0x80]
add eax, dword [rsp + 0xa0]
sub ebx, ecx
sub ebx, dword [rsp + 0x78]
add eax, r12d
add eax, dword [rsp + 0x70]
inc ebx
mov qword [rsp + 0xa8], rax
sub al, bpl
sub al, 5
add al, r13b
add al, r15b
add al, dl
movzx edi, al
add ebx, edi
add ebx, esi
add ebx, r13d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, qword [rsp + 0xe0]
imul r14d, dword [rsp + 0x110]
mov r8, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0xb4]
imul r14d, dword [rsp + 0x64]
imul r14d, edx
imul r8d, dword [rsp + 0x98]
imul ecx, edx
sub ecx, r8d
lea edx, [r14 + rcx*4]
mov ecx, dword [rsp + 0x70]
dec ecx
imul ecx, dword [rsp + 0x80]
add edx, ecx
mov r8, qword [rsp + 0xb8]
imul eax, ebx
add edx, eax
lea eax, [r15 + r15*4]
add edx, eax
movsx rax, byte [rsp + 0x60]
sub edx, eax
mov eax, dword [rsp + 0xcc]
sub edx, r12d
add eax, 0xfffffffa
sub edx, ebp
sub edx, dword [rsp + 0xe8]
sub edx, r8d
sub edx, dword [rsp + 0x90]
sub edx, dword [rsp + 0xc8]
sub edx, dword [rsp + 0xb0]
add edx, edi
mov rdi, qword [rsp + 0xa8]
add edx, dword [rsp + 0xa0]
add edx, edi
add edx, r13d
add edx, dword [rsp + 0x78]
add edx, dword [rsp + 0x88]
add eax, edx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400dd340
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret