Function at 0x14005d840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14049e608]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbp, rcx
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0x10]
mov r13, qword [rcx + 8]
cmp byte [r13 + 0x10], 0
je 0x14005dbe2
mov ecx, 0x20
call fcn.1403195d4
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rax, vtable.xmrig::HttpsServer.0
mov qword [rbx], rax
xor esi, esi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x14005d8c7
lock inc dword [rax + 0xc]
mov rax, qword [rbp + 0x18]
mov qword [rbx + 8], rax
mov rax, qword [rbp + 0x20]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rsi
mov qword [rbp + 0x38], rbx
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x10]
mov rdi, qword [rcx + 8]
cmp byte [rdi + 0xe8], sil
je 0x14005d914
cmp qword [rdi + 0xf8], rsi
je 0x14005d90a
cmp qword [rdi + 0x138], rsi
je 0x14005d90a
mov al, 1
jmp 0x14005d90c
xor al, al
test al, al
je 0x14005d914
mov al, 1
jmp 0x14005d916
xor al, al
test al, al
je 0x14005d952
mov ecx, 8
call fcn.1403195d4
mov r14, rax
mov qword [rax], rsi
lea rdx, [rdi + 0xe8]
mov rcx, rax
call fcn.14015d2f0
test al, al
jne 0x14005d955
mov rcx, qword [r14]
call fcn.1401b4060
mov edx, 8
mov rcx, r14
call fcn.140319610
mov r14, rsi
mov qword [rbx + 0x18], r14
mov ecx, 0xa8
call fcn.1403195d4
mov rdi, rax
mov qword [rsp + 0x30], rax
movzx r8d, word [r13 + 0x38]
mov rdx, qword [rbp + 0x38]
lea rax, [0x14049f658]
lea rcx, [r13 + 0x18]
cmp qword [r13 + 0x18], 0
cmove rcx, rax
mov qword [rdi], rcx
mov dword [rdi + 8], esi
mov qword [rdi + 0x10], rdx
xorps xmm0, xmm0
movups xmmword [rdi + 0x18], xmm0
movups xmmword [rdi + 0x28], xmm0
movups xmmword [rdi + 0x38], xmm0
movups xmmword [rdi + 0x48], xmm0
movups xmmword [rdi + 0x58], xmm0
movups xmmword [rdi + 0x68], xmm0
movups xmmword [rdi + 0x78], xmm0
movups xmmword [rdi + 0x88], xmm0
mov word [rdi + 0x98], r8w
mov ecx, 0x140
call fcn.1403195d4
mov rbx, rax
mov qword [rdi + 0xa0], rax
call fcn.1402e0f10
mov rcx, rax
mov rdx, rbx
call fcn.1402ef200
mov rax, qword [rdi + 0xa0]
mov qword [rax], rdi
mov edx, 1
mov rcx, qword [rdi + 0xa0]
call fcn.1402ef410
mov rax, qword [rdi]
mov rcx, qword [rax]
test rcx, rcx
je 0x14005da1d
lea rdx, [0x14045402c]
call fcn.140337b20
test rax, rax
setne sil
test sil, sil
je 0x14005da45
mov rax, qword [rdi]
movzx edx, word [rdi + 0x98]
lea r8, [rdi + 0x18]
mov rcx, qword [rax]
call fcn.1402e0fd0
test eax, eax
jne 0x14005da45
mov dword [rdi + 8], 6
jmp 0x14005da66
mov rax, qword [rdi]
movzx edx, word [rdi + 0x98]
lea r8, [rdi + 0x18]
mov rcx, qword [rax]
call fcn.1402e0f60
test eax, eax
jne 0x14005da66
mov dword [rdi + 8], 4
mov qword [rbp + 0x28], rdi
cmp dword [rdi + 8], 0
jne 0x14005da84
mov ebx, 0xfffff448
mov ecx, ebx
call fcn.1402e1160
mov rcx, rax
jmp 0x14005db42
xor r8d, r8d
lea rdx, [rdi + 0x18]
mov rcx, qword [rdi + 0xa0]
call fcn.1402e1590
lea r8, [0x14006cee0]
mov edx, 0x1ff
mov rcx, qword [rdi + 0xa0]
call fcn.1402e5150
mov ebx, eax
test eax, eax
jne 0x14005db2b
movzx eax, word [rdi + 0x98]
test ax, ax
jne 0x14005db28
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0x30], 0x80
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi + 0xa0]
call fcn.1402ef1d0
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rdi + 0x98], ax
movzx ebx, ax
test ebx, ebx
jns 0x14005db3b
mov ecx, ebx
call fcn.1402e1160
mov rcx, rax
jmp 0x14005db42
lea rcx, [0x1404014da]
test ebx, ebx
jns 0x14005db4d
movzx eax, word [r13 + 0x38]
jmp 0x14005db4f
mov eax, ebx
mov r8d, 0x24
test r14, r14
mov edx, 0x20
cmovne r8d, edx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9, qword [r13 + 0x18]
lea rdx, str.HTTP_API
lea rcx, str.e_1_32m__e_0me_1_37m__13se_0me_1__dm_s:_d_e_1_31m_se_0m
call fcn.140026570
test ebx, ebx
jns 0x14005db91
mov rcx, rbp
call fcn.14005dc20
xor al, al
jmp 0x14005dbe4
mov word [rbp + 0x30], bx
mov edx, 1
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14005dbe2
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005dbe2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1407376c8], rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [0x1407376c0], rax
mov al, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1403195b0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret