Function at 0x4366d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58c
push ebx
push esi
push edi
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x588], 0
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x2e8], 0
cmp dword [ebp + 8], 0
jne 0x436738
push 0
call fcn.00452990
add esp, 4
cmp eax, dword [0x462efc]
jg 0x436738
jmp 0x436dbe
push 0
call fcn.00452990
add esp, 4
inc eax
mov dword [0x462efc], eax
mov eax, dword [0x462ef8]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x436b16
cmp dword [0x4622c8], 0
je 0x43676c
jmp 0x436dbe
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2e4], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 8]
cmp dword [eax + 4], ecx
jne 0x43678e
mov dword [ebp - 0x2e8], 1
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 4], 0
jne 0x4367a9
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2f0], eax
jmp 0x436b09
mov dword [ebp - 0x588], 0
mov dword [ebp - 0x570], 0
mov byte [ebp - 0x2e0], 0
lea eax, [ebp - 0x568]
push eax
push 0
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0x570]
push eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
push eax
call fcn.0042fd1c
add esp, 0x18
mov dword [ebp - 0x56c], eax
cmp dword [ebp - 0x56c], 0
je 0x436829
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x436b09
cmp dword [ebp - 0x570], 0
je 0x436856
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2a4]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov byte [ebp - 0x2a4], 0x23
mov edi, 0x9854e0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
lea edi, [ebp - 0x29a]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x4c]
add eax, 0x44
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0
call fcn.00452990
add esp, 4
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.00452eb0
add esp, 4
mov dword [ebp - 0x2ec], eax
lea edi, [ebp - 0x48]
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004530f0
add esp, 4
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x2f4]
cmp dword [eax + 0x4c], ecx
jg 0x43697f
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x4c]
sub eax, dword [ecx + 0x4c]
mov dword [ebp - 0x58c], eax
jmp 0x436996
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x4c]
sub eax, dword [ecx + 0x4c]
add eax, 0xe10
mov dword [ebp - 0x58c], eax
mov eax, dword [ebp - 0x58c]
push eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 0x14]
add eax, 0x76c
push eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 0x10]
mov eax, dword [eax*4 + 0x4620ac]
push eax
mov eax, dword [ebp - 8]
and eax, 0xffff
push eax
xor eax, eax
mov ax, word [ebp - 0xa]
push eax
mov eax, dword [ebp - 0xc]
and eax, 0xffff
push eax
mov eax, dword [ebp - 0x14]
and eax, 0xffff
push eax
xor eax, eax
mov ax, word [ebp - 0xe]
push eax
xor eax, eax
mov ax, word [ebp - 0x12]
mov eax, dword [eax*4 + 0x4620a8]
push eax
mov eax, dword [ebp - 0x4c]
add eax, 8
push eax
push 0x5acc00
push 0x9854e0
push str.__s____s____s____s__d___d____d:_02d:_02d____s__d___d____d:_02d:_02d____d___r_n
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x48
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
push str.C:USER.LOG
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x436ab1
push 2
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x584]
push eax
lea edi, [ebp - 0x284]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
push eax
lea eax, [ebp - 0x284]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea eax, [ebp - 0x584]
push eax
push 0x80
lea eax, [ebp - 0x54c]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x2a4]
push eax
push 0x5ad500
call fcn.00437f8d
add esp, 0x1c
mov eax, dword [ebp - 0x4c]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x4c], 0
cmp dword [ebp - 0x2f0], 0
jne 0x436b09
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
jmp 0x436750
cmp dword [ebp - 0x2e8], 0
je 0x436b2a
mov dword [ebp + 8], 0
cmp dword [ebp + 8], 0
je 0x436dbe
mov dword [ebp - 0x588], 0
mov byte [ebp - 0x2e0], 0
mov dword [ebp - 0x570], 0
lea eax, [ebp - 0x568]
push eax
push 0
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0x570]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0042fd1c
add esp, 0x18
mov dword [ebp - 0x56c], eax
cmp dword [ebp - 0x56c], 0
je 0x436d91
mov byte [ebp - 0x2ae], 0
mov dword [ebp - 0x2f4], 0
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x580]
push eax
mov eax, dword [ebp - 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x436c52
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x580]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x564]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
lea edi, [ebp - 0x48]
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
and eax, 0xffff
sub eax, 0x76c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
and eax, 0xffff
mov dword [ebp - 0x48], eax
xor eax, eax
mov ax, word [ebp - 0xa]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
and eax, 0xffff
mov dword [ebp - 0x40], eax
xor eax, eax
mov ax, word [ebp - 0x12]
dec eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov ax, word [ebp - 0xe]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004530f0
add esp, 4
mov dword [ebp - 0x2f4], eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2f0], 0
je 0x436ce1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2f0]
mov dword [ecx + 4], eax
lea edi, [ebp - 0x2e0]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, dword [ebp - 0x2f0]
add edi, 8
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2f0]
add edx, 0x44
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x2f0]
mov dword [ecx + 0x4c], eax
jmp 0x436d8c
push 0x50
call fcn.004538c0
add esp, 4
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x436d0a
push str._nSTLWA_Out_of_Mem_in_UL
call fcn.00452380
add esp, 4
jmp 0x436d8c
mov edi, dword [ebp - 0x4c]
xor eax, eax
mov ecx, 0x14
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 4], eax
lea edi, [ebp - 0x2e0]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, dword [ebp - 0x4c]
add edi, 8
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x4c]
add edx, 0x44
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x2f4]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x4c], eax
cmp dword [ebp - 0x2e4], 0
je 0x436d84
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x2e4]
mov dword [ecx], eax
jmp 0x436d8c
mov eax, dword [ebp - 0x4c]
mov dword [0x462ef8], eax
jmp 0x436dbe
cmp dword [ebp - 0x570], 0
je 0x436dbe
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x570]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret