Function at 0x1400a18a0
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, 0x1f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov r12, qword [rsp + 0x240]
mov rbp, qword [rsp + 0x250]
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x38], r12
mov r13, r8
mov qword [rsp + 0x50], r8
mov r15, rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
mov edx, 0x256
lea r8d, [rcx + 5]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor ecx, ecx
lea r8d, [rcx + 0xd]
mov edx, 0x31e
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, qword [rsp + 0x248]
or rsi, 0xffffffffffffffff
mov rcx, rsi
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400a1940
mov r14d, dword [r15 + 8]
imul ecx, r13d
mov rax, rsi
sub r14d, ecx
sub r14d, edi
nop word [rax + rax]
inc rax
cmp byte [rax + rbp], 0
jne 0x1400a1960
sub r14d, eax
mov rax, rsi
sub r14d, 4
inc rax
cmp byte [rbx + rax], 0
jne 0x1400a1973
mov r15d, dword [r15 + 0x10]
mov rcx, r12
sub r15d, r13d
sub r15d, dword [rsp + 0x20]
sub r15d, eax
add r15d, 6
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r12, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rcx, [rsp + 0xa0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov qword [rsp + 0x68], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [rsp + 0x48]
mov r8d, dword [rcx + 8]
mov qword [rsp + 0x58], rax
mov rdi, rsi
inc rdi
cmp byte [rdi + rbp], 0
jne 0x1400a1a03
mov rax, rsi
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x1400a1a10
mov r9, qword [rsp + 0x38]
imul edi, eax
mov rcx, rsi
imul edi, r13d
mov eax, r9d
imul edi, r14d
imul eax, r12d
shl edi, 3
lea eax, [rax + rax*4]
sub edi, eax
sub edi, r15d
add edi, r8d
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400a1a41
mov rax, qword [rsp + 0x30]
mov r13d, 1
lea eax, [rax*4]
mov edx, r13d
sub edx, eax
mov rax, rsi
imul edx, r9d
sub edx, dword [rsp + 0x50]
add edx, r8d
add edx, dword [rsp + 0x28]
add edx, r14d
sub edx, ecx
nop dword [rax + rax]
inc rax
cmp byte [rax + rbp], 0
jne 0x1400a1a80
add edx, 0xfffffffa
add eax, edx
mov dword [rsp + 0x70], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
movzx r15d, byte [rsp + 0x70]
movzx r12d, byte [rsp + 0x58]
shl r15b, 2
mov qword [rsp + 0x88], rax
sub r15b, dil
shl r12b, 2
add r15b, r12b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
mov ecx, dword [rsp + 0x28]
movzx edx, ax
movzx eax, dl
mov dword [rsp + 0x30], edx
imul cl
sub r12b, al
cmp ecx, 8
jne 0x1400a1bb1
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rcx, [rsp + 0xa0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
xor ecx, ecx
mov edx, 0x1c0
lea r8d, [rcx + 0xd]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor ecx, ecx
mov edx, 0x32c
lea r8d, [rcx + 0x11]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x35c
lea r8d, [rcx + 0x1b]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rsp + 0xa0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edx, 0x12
xor ecx, ecx
lea r8d, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x118
lea r8d, [rcx + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0x11b
lea r8d, [rcx + 8]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov qword [rax], r8
mov rax, rsi
inc rax
cmp byte [rax + rbp], 0
jne 0x1400a1bc1
nop word [rax + rax]
inc rsi
cmp byte [rbx + rsi], 0
jne 0x1400a1bd0
mov rbx, qword [rsp + 0x40]
imul eax, esi
imul edx, ecx
sub r13d, eax
shl edi, 4
movsx eax, r15b
sub edi, edx
mov edx, 0xd9
imul eax, dword [rsp + 0x88]
imul r13d, r8d
imul edi, dword [rsp + 0x58]
sub edi, eax
mov rax, qword [rsp + 0x38]
add r13d, edi
imul eax, dword [rsp + 0x20]
sub r13d, eax
mov rax, qword [rsp + 0x60]
lea eax, [rax + 4]
lea ecx, [rax*2]
mov rax, qword [rsp + 0x68]
add ecx, r13d
lea eax, [rax + rax*4]
add ecx, eax
movzx eax, r12b
add ecx, eax
mov rax, qword [rsp + 0x48]
add ecx, dword [rax]
add ecx, r14d
mov dword [rbx + 8], ecx
xor ecx, ecx
lea r8d, [rcx + 0x16]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400dd340
lea r11, [rsp + 0x1f0]
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