Function at 0x4fb3e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0x30]
push 0x48
push ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.00581cf0
add esp, 8
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
push 1
mov dword [esp + 0x20], ebx
call fcn.0051c6c0
mov esi, eax
test esi, esi
js 0x4fb631
push ecx
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.0051c6c0
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov edi, dword [esp + 0x10]
test esi, esi
js 0x4fb5c7
push 0x20
push 4
push dword [0x6337d4]
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x6e], 0
mov word [esp + 0x72], ax
mov dword [esp + 0x3c], 0x48
mov dword [esp + 0x68], 0x181
mov word [esp + 0x6c], ax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
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 + 0x7c], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
call fcn.004fb6a0
mov esi, eax
test esi, esi
js 0x4fb5c7
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fb53b
mov eax, dword [eax + 4]
jmp 0x4fb53d
xor eax, eax
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x191
lea ecx, [esp + 0x44]
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]
push ebx
xor edi, edi
call dword [sym.imp.ntdll.dll_NtClose]
mov ebx, dword [esp + 0x20]
test esi, esi
js 0x4fb5c7
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4fb598
push edi
push edi
push dword [eax]
push dword [eax + 4]
lea eax, [esp + 0x30]
push eax
push edi
push edi
push edi
push dword [esp + 0x38]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, dword ds:[esp + 0xc]
call fcn.004fac20
push 0
push 0x18
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x80]
push eax
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov esi, eax
test esi, esi
cmovns esi, dword [esp + 0x78]
test ebx, ebx
je 0x4fb5d2
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4fb5e6
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x4fb5f5
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4fb606
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4fb61d
push eax
push 0
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4fb637
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [esp + 0x10]
jmp 0x4fb5ea
test ebx, ebx
je 0x4fb64e
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4fb64e
call fcn.004fbfa0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc