Function at 0x14005a2f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x140297200]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rsi, rcx
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0x10]
mov r15, qword [rcx + 8]
cmp byte [r15 + 0x10], 0
je 0x14005a60d
mov ecx, 0x18
call fcn.1401d5df0
mov rcx, rax
mov qword [rsp + 0x30], rax
lea rax, vtable.xmrig::HttpServer.0
mov qword [rcx], rax
xor ebp, ebp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
cmp qword [rsi + 0x20], rbp
je 0x14005a375
mov rax, qword [rsi + 0x18]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x20]
mov qword [rcx + 0x10], rax
lock inc dword [rax + 0xc]
mov qword [rsi + 0x38], rcx
mov ecx, 0xa8
call fcn.1401d5df0
mov rdi, rax
mov qword [rsp + 0x30], rax
mov rdx, qword [rsi + 0x38]
movzx r8d, word [r15 + 0x38]
lea rax, [0x1402980a8]
lea rcx, [r15 + 0x18]
cmp qword [r15 + 0x18], 0
cmove rcx, rax
mov qword [rdi], rcx
mov dword [rdi + 8], ebp
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.1401d5df0
mov rbx, rax
mov qword [rdi + 0xa0], rax
call qword [sym.imp.uv.dll_uv_default_loop]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.uv.dll_uv_tcp_init]
mov rax, qword [rdi + 0xa0]
mov qword [rax], rdi
mov edx, 1
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.uv.dll_uv_tcp_nodelay]
mov rax, qword [rdi]
mov rcx, qword [rax]
test rcx, rcx
je 0x14005a440
lea rdx, [0x14026feec]
call fcn.1401d7ff4
test rax, rax
setne bpl
test bpl, bpl
je 0x14005a469
movzx edx, word [rdi + 0x98]
mov rcx, qword [rdi]
lea r8, [rdi + 0x18]
mov rcx, qword [rcx]
call qword [sym.imp.uv.dll_uv_ip6_addr]
test eax, eax
jne 0x14005a469
mov dword [rdi + 8], 6
jmp 0x14005a48b
movzx edx, word [rdi + 0x98]
mov rcx, qword [rdi]
lea r8, [rdi + 0x18]
mov rcx, qword [rcx]
call qword [sym.imp.uv.dll_uv_ip4_addr]
test eax, eax
jne 0x14005a48b
mov dword [rdi + 8], 4
mov qword [rsi + 0x28], rdi
cmp dword [rdi + 8], 0
jne 0x14005a49f
mov ebx, 0xfffff448
jmp 0x14005a54d
xor r8d, r8d
lea rdx, [rdi + 0x18]
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.uv.dll_uv_tcp_bind]
lea r8, [0x140069820]
mov edx, 0x1ff
mov rcx, qword [rdi + 0xa0]
call qword [sym.imp.uv.dll_uv_listen]
mov ebx, eax
test eax, eax
jne 0x14005a549
movzx eax, word [rdi + 0x98]
test ax, ax
jne 0x14005a546
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 qword [sym.imp.uv.dll_uv_tcp_getsockname]
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 0x14005a58f
mov ecx, ebx
call qword [sym.imp.uv.dll_uv_strerror]
movzx edx, word [r15 + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
mov r9, qword [r15 + 0x18]
mov r8d, 0x24
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.140025260
mov rcx, rsi
call fcn.14005a640
xor al, al
jmp 0x14005a60f
lea rax, [0x14026a955]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, qword [r15 + 0x18]
mov r8d, 0x24
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.140025260
mov word [rsi + 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 0x14005a60d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005a60d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1402a0cf8], rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [0x1402a0be8], rax
mov al, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401d5dd0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret