Function at 0x4fb240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
push 0x48
xor ebx, ebx
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.00580b30
add esp, 8
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
push 1
mov dword [esp + 0x2c], ebx
call fcn.0051bee0
mov esi, eax
test esi, esi
js 0x4fb46d
push ecx
push 1
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x20]
call fcn.0051bee0
mov edi, dword [esp + 0x1c]
mov esi, eax
test esi, esi
js 0x4fb44c
mov esi, dword [esp + 0x14]
xor eax, eax
push 0x20
push 4
push dword [0x633f94]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x86], ebx
mov word [esp + 0x8a], ax
mov dword [esp + 0x54], 0x48
mov dword [esp + 0x80], 0x181
mov word [esp + 0x84], ax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor ecx, ecx
mov edx, 0x20002
push 8
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
lea ecx, [esp + 0x2c]
mov dword [eax + 4], 1
push ecx
mov ecx, eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
call fcn.004fb520
mov esi, eax
test esi, esi
js 0x4fb44c
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fb37f
mov eax, dword [eax + 4]
jmp 0x4fb381
xor eax, eax
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x191
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0
push eax
push 0
call sym.SystemInformer.exe_PhCreateProcessWin32Ex
push edi
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x14]
xor edi, edi
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword ds:[esp + 0x10]
test esi, esi
js 0x4fb450
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4fb3e8
push edi
push edi
push dword [eax]
push dword [eax + 4]
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push edi
push dword [esp + 0x44]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
xor ebx, ebx
call fcn.004fa840
lea esp, [esp]
test eax, eax
js 0x4fb428
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x4fb419
push eax
push esi
call sym.SystemInformer.exe_PhConvertUtf8ToUtf16Ex
mov ebx, eax
push esi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0
push 0x18
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov esi, eax
mov eax, dword [esp + 0x10]
test esi, esi
cmovns esi, dword [esp + 0x30]
jmp 0x4fb450
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4fb45b
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword ds:[esp + 0x18]
test eax, eax
je 0x4fb471
push eax
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x4fb471
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4fb47c
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4fb48b
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4fb4a6
push eax
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4fb4ba
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
je 0x4fb4d1
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4fb4d1
call fcn.004fbd80
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc