Function at 0x7d285cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor eax, eax
xor bl, bl
or rbp, 0xffffffffffffffff
mov byte [rsp + 0x90], al
test byte [rcx + 4], 0x80
mov rdi, rdx
mov r14, rcx
mov byte [rsp + 0xa0], bl
mov r12d, eax
mov r15d, eax
je 0x7d285d51
mov r15, qword [rcx + 0x30]
mov r8d, 0x7fe
mov rdx, qword [rdx + 0x18]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x7d285d63
mov rax, qword [rdi + 0x18]
xor r13d, r13d
cmp qword [0x7d2ad7b8], r15
mov word [rax + 0xffc], r13w
jne 0x7d285f78
mov bl, 1
mov byte [rsp + 0xa0], bl
jmp 0x7d285f78
mov rdx, qword [rcx + 8]
test rdx, rdx
jne 0x7d285d6a
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x7d28638c
mov rbx, rbp
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], ax
jne 0x7d285d70
mov rcx, qword [rdi + 0x18]
mov r13d, 0x7fe
cmp ebx, r13d
cmova ebx, r13d
lea rsi, [rbx + rbx]
mov r8, rsi
mov qword [rsp + 0x40], rsi
call sub.ntdll.dll_memcpy
mov rax, qword [rdi + 0x18]
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov edx, 1
mov dword [rsp + 0x28], ecx
xor r9d, r9d
mov r8d, edx
mov dword [rsp + 0x20], 3
mov word [rsi + rax], cx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x7d285e9d
test byte [r14 + 4], 4
je 0x7d285d63
mov rdx, qword [r14 + 0x18]
test rdx, rdx
je 0x7d285d63
mov rsi, rbp
nop
inc rsi
cmp word [rdx + rsi*2], r12w
jne 0x7d285df0
cmp esi, 0x800
jae 0x7d285d63
lea eax, [rsi + rbx]
mov dword [rsp + 0xa8], eax
cmp eax, r13d
ja 0x7d285d63
mov rcx, qword [rdi + 0x18]
mov eax, esi
lea rbx, [rax + rax]
mov r8, rbx
call sub.ntdll.dll_memcpy
mov rax, qword [rdi + 0x18]
mov ecx, 0x5c
mov r8, qword [rsp + 0x40]
mov word [rbx + rax], cx
lea ecx, [rsi + 1]
mov rax, qword [rdi + 0x18]
mov rdx, qword [r14 + 8]
lea rcx, [rax + rcx*2]
call sub.ntdll.dll_memcpy
mov ecx, dword [rsp + 0xa8]
xor r13d, r13d
mov rax, qword [rdi + 0x18]
inc ecx
mov edx, 1
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
xor r9d, r9d
mov r8d, edx
mov dword [rsp + 0x20], 3
mov word [rax + rcx*2], r13w
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x7d285ea0
xor al, al
jmp 0x7d28638c
xor r13d, r13d
mov qword [rsp + 0x28], r13
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r13d
mov r8d, 0x1000002
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
jne 0x7d285f20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xc1
jne 0x7d285ef5
test byte [r14 + 4], 8
jne 0x7d285ef5
mov rdx, qword [rdi + 0x20]
mov rcx, rsi
call fcn.7d2870d0
test eax, eax
jne 0x7d2861bb
jmp 0x7d28638c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xc1
jne 0x7d285f11
mov ecx, 0xc000007b
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x7d28638c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x28], r13
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rcx, rbx
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
jne 0x7d285f6e
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x7d28638c
mov byte [rsp + 0x90], 1
xor bl, bl
test r15, r15
je 0x7d2861bb
test byte [r14 + 4], 8
je 0x7d285fbf
mov rdx, qword [r14 + 0x20]
test rdx, rdx
jne 0x7d285f9f
lea ecx, [rdx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x7d2863b4
cmp rdx, 0x10000
jae 0x7d285fab
mov r12d, edx
mov r8d, 0x18
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
jmp 0x7d286007
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], r13
lea r8, [0x7d285c20]
mov qword [rsp + 0x48], r13
mov edx, 0x18
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x7d285ff6
mov r12d, dword [rsp + 0x40]
xor ecx, ecx
jmp 0x7d286001
mov r12d, r13d
mov rsi, r13
mov ecx, 0x715
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x7d2abfb4], 0x1770
mov r13d, eax
jb 0x7d28602a
test bl, bl
je 0x7d286145
cmp r12d, 1
jmp 0x7d286031
test r12d, r12d
jne 0x7d286037
test bl, bl
je 0x7d286145
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x28]
nop
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x7d286040
mov rax, qword [rdi + 0x28]
xor r9d, r9d
mov word [rax + 0xfec], r9w
test bl, bl
jne 0x7d2860a5
cmp r12d, 1
jbe 0x7d2860a5
mov rdx, qword [rdi + 0x28]
mov rcx, rbp
inc rcx
cmp word [rdx + rcx*2], r9w
jne 0x7d286073
mov eax, ecx
mov r8d, 0x2e
inc ecx
mov word [rdx + rax*2], r8w
mov r8d, 0xa
mov rax, qword [rdi + 0x28]
lea rdx, [rax + rcx*2]
mov ecx, r12d
call sub.ntdll.dll__itow
xor r9d, r9d
mov rcx, qword [rdi + 0x28]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x7d2860b0
mov r8, qword [str..manifest]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x7d2860d0
mov rcx, qword [rdi + 0x28]
mov edx, 1
mov qword [rsp + 0x30], r9
mov r8d, edx
mov dword [rsp + 0x28], r9d
xor r9d, r9d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x7d286145
mov rdx, qword [rdi + 0x20]
mov rcx, rax
call fcn.7d2870d0
test eax, eax
je 0x7d2863b4
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x18]
nop dword [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x7d286130
jmp 0x7d28619d
test rsi, rsi
je 0x7d286291
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
je 0x7d28628b
cmp ebx, 0x80000
jae 0x7d286277
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x7d286291
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, qword [rdi + 0x20]
mov r8d, ebx
mov rdx, rax
call sub.ntdll.dll_memcpy
cmp qword [0x7d2ad7b8], r15
jne 0x7d2861bb
test r12d, r12d
mov eax, 1
cmovne eax, r12d
or dword [r14 + 4], 8
mov qword [r14 + 0x20], rax
mov rcx, qword [rdi + 0x20]
call fcn.7d285180
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rdi + 0x28]
nop dword [rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x7d2861d0
mov rax, qword [rdi + 0x28]
xor esi, esi
mov word [rax + 0xfec], si
test r15, r15
je 0x7d28629f
cmp byte [rsp + 0xa0], sil
jne 0x7d28623b
cmp r12d, 1
jbe 0x7d28623b
mov rdx, qword [rdi + 0x28]
nop dword [rax]
inc rbp
cmp word [rdx + rbp*2], si
jne 0x7d286210
mov ecx, 0x2e
mov eax, ebp
mov word [rdx + rax*2], cx
lea r8d, [rcx - 0x24]
mov rax, qword [rdi + 0x28]
lea edx, [rbp + 1]
mov ecx, r12d
lea rdx, [rax + rdx*2]
call sub.ntdll.dll__itow
mov rcx, qword [rdi + 0x28]
sub rcx, 2
cmp word [rcx + 2], si
lea rcx, [rcx + 2]
jne 0x7d286243
mov r8, qword [str..config]
xor edx, edx
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x7d286260
jmp 0x7d286333
mov rdx, qword [str.Manifest_Length___d_]
mov r8d, ebx
mov ecx, 0x89d
call sym.imfsbDll.dll_SbieApi_Log
mov r13d, 0x36b4
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x7d2863b4
mov rcx, qword [rdi + 0x28]
mov edx, 0x2e
call sub.ntdll.dll_wcsrchr
mov rbx, rax
test rax, rax
je 0x7d2862f2
mov rdx, qword [str..manifest]
mov rcx, rax
call sub.ntdll.dll__wcsicmp
test eax, eax
jne 0x7d2862f2
mov rcx, qword [str..config]
sub rbx, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rbx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x7d2862e0
jmp 0x7d286333
mov rcx, qword [rdi + 0x28]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], si
lea rcx, [rcx + 2]
jne 0x7d286300
mov r9, qword [str..config]
xor r8d, r8d
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r9 + r8*2]
mov word [rcx + r8*2], ax
lea r8, [r8 + 1]
test ax, ax
jne 0x7d286320
mov rcx, qword [rdi + 0x28]
mov edx, 1
mov qword [rsp + 0x30], rsi
mov r8d, edx
mov dword [rsp + 0x28], esi
xor r9d, r9d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x7d2863a4
mov rax, qword [rdi + 0x28]
mov word [rax], si
mov rcx, qword [rdi + 0x30]
call fcn.7d285180
cmp byte [rsp + 0x90], sil
je 0x7d286382
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdi + 0x30]
mov rcx, rax
call fcn.7d2870d0
test eax, eax
jne 0x7d286366
cmp byte [rsp + 0x90], 0
je 0x7d285d63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x7d28638c