Function at 0x477892
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x500
lea ebp, [esp - 4]
mov eax, dword [0x590cec]
xor eax, ebp
mov dword [ebp + 0x500], eax
push 0x14
mov eax, 0x5366a3
call fcn.004f41c4
mov eax, dword [ebp + 0x50c]
mov ebx, dword [ebp + 0x510]
mov esi, dword [ebp + 0x514]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x518]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + 0x438]
mov dword [ebp - 0x14], eax
call fcn.0047017d
xor edi, edi
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.004063ed
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00489a76
lea ecx, [ebp]
test eax, eax
jne 0x47794b
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0xa
mov byte [ebp - 4], 0
call fcn.004064c1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x438]
call fcn.00470194
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x500]
xor ecx, ebp
call fcn.004f41b5
add ebp, 0x504
leave
ret 0x10
push str.loader.exe
push edi
call fcn.00489e94
lea eax, [ebp]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
push edi
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x438]
call fcn.00471218
cmp eax, edi
jne 0x477995
lea ecx, [ebp]
call fcn.00489a76
cmp eax, edi
jne 0x477995
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0xc
lea ecx, [ebp]
jmp 0x47790c
push 0x554bd4
push edi
lea ecx, [ebp]
call fcn.00489e94
lea eax, [ebp]
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call esi
push 0x554bd0
push dword [ebp - 0x14]
call esi
lea eax, [ebp]
push eax
mov eax, dword [ebp - 0x14]
add eax, 3
push eax
call esi
lea ecx, [ebp]
call fcn.0048a958
lea ecx, [ebp]
call fcn.00489e3d
test eax, eax
je 0x477a03
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp]
call fcn.0048a958
lea ecx, [ebp]
call fcn.00489e3d
test eax, eax
je 0x477a03
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0xb
jmp 0x47798d
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x477a52
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 9
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.004064c1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x438]
call fcn.00470194
mov eax, edi
jmp 0x477926
lea ecx, [ebp + 0x438]
call fcn.004707cb
test eax, eax
push edi
lea eax, [ebp - 0x18]
push eax
je 0x477a6f
push 0xd
push str.loader64.dll_n
jmp 0x477a76
push 0xb
push str.loader.dll_n
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.004f3730
pop ecx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push 1
mov edi, 0x5441e4
push edi
push dword [ebp - 0x14]
call esi
test ebx, ebx
je 0x477b57
mov eax, dword [ebx + 8]
cmp eax, 1
jl 0x477b57
push 0xa
lea ecx, [ebp + 0x4cc]
push ecx
push eax
call fcn.004f9424
add esp, 0xc
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x4cc]
push eax
call fcn.004f3730
pop ecx
push eax
lea eax, [ebp + 0x4cc]
push eax
push dword [ebp - 0x14]
call esi
push 0
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push dword [ebp - 0x14]
call esi
and dword [ebp - 0x10], 0
cmp dword [ebx + 8], 0
jle 0x477b69
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.0040639c
mov eax, dword [eax]
push dword [ebp - 0x10]
mov ecx, ebx
mov dword [ebp - 0x1c], eax
call fcn.0040639c
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.004f3730
pop ecx
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call esi
push 0
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push dword [ebp - 0x14]
call esi
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 8]
jl 0x477b06
jmp 0x477b69
push 0
lea eax, [ebp - 0x18]
push eax
push 2
push 0x554bb0
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x438]
call fcn.00471a96
xor edi, edi
inc edi
jmp 0x477a30