Function at 0x403ce9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, 0x297d5a2b
mov eax, esi
add eax, esi
mov esi, eax
call sub.CRTDLL.DLL_rand
mov edx, 0xc003000d
push ecx
mov ecx, eax
imul edx
add edx, ecx
sar edx, 0xd
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
pop ecx
mov edx, eax
mov byte [ebp - 0x11], dl
cmp dword [0x42aa50], 0
jne 0x403d2e
xor eax, eax
jmp 0x403f63
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00403619
add esp, 8
mov ebx, eax
or eax, eax
je 0x403f63
movzx edi, byte [ebp - 0x11]
shl edi, 2
mov edx, dword [edi + 0x42aa38]
sub edx, dword [edi + 0x42aa34]
mov edi, edx
dec edi
mov dword [ebp - 0x18], edi
push edi
movzx edi, byte [ebp - 0x11]
shl edi, 2
push dword [edi + 0x42aa34]
mov edi, ebx
add edi, dword [0x42aa50]
push edi
call sub.CRTDLL.DLL_memcpy
push 0xc
push 0
mov eax, ebx
add eax, dword [0x42aa50]
add eax, dword [ebp - 0x18]
push eax
call sub.CRTDLL.DLL_memset
add esp, 0x18
mov eax, dword [0x42aa54]
mov dword [ebp - 4], eax
jmp 0x403db2
mov eax, ebx
add eax, dword [ebp - 4]
mov edx, dword [0x42aa5c]
xor dword [eax], edx
add dword [ebp - 4], 4
mov eax, dword [0x42aa54]
add eax, dword [0x42aa58]
cmp dword [ebp - 4], eax
jb 0x403da1
mov eax, dword [0x42aa60]
mov dword [ebp - 8], eax
jmp 0x403de6
mov eax, ebx
add eax, dword [ebp - 8]
mov edx, dword [0x42aa68]
xor dword [eax], edx
mov eax, esi
mul esi
mov dword [ebp - 0x24], eax
mov esi, eax
add dword [ebp - 8], 4
mov eax, dword [0x42aa60]
add eax, dword [0x42aa64]
cmp dword [ebp - 8], eax
jb 0x403dcc
call sub.CRTDLL.DLL_rand
mov dword [ebp - 0x24], eax
call sub.CRTDLL.DLL_rand
mov edi, dword [ebp - 0x24]
movzx edi, di
mov edx, eax
movzx edx, dx
shl edx, 0x10
or edi, edx
mov dword [0x42aa5c], edi
mov eax, esi
sub eax, esi
mov esi, eax
call sub.CRTDLL.DLL_rand
mov dword [ebp - 0x28], eax
call sub.CRTDLL.DLL_rand
mov edi, dword [ebp - 0x28]
movzx edi, di
mov edx, eax
movzx edx, dx
shl edx, 0x10
or edi, edx
mov dword [0x42aa68], edi
push 0x40
push 0x42aa44
mov eax, ebx
add eax, dword [0x42aa4c]
push eax
call sub.CRTDLL.DLL_memcpy
add esp, 0xc
mov eax, dword [0x42aa54]
mov dword [ebp - 0xc], eax
jmp 0x403e7b
mov eax, esi
xor eax, esi
mov esi, eax
mov eax, ebx
add eax, dword [ebp - 0xc]
mov edx, dword [0x42aa5c]
xor dword [eax], edx
add dword [ebp - 0xc], 4
mov eax, dword [0x42aa54]
add eax, dword [0x42aa58]
cmp dword [ebp - 0xc], eax
jb 0x403e64
mov eax, dword [0x42aa60]
mov dword [ebp - 0x10], eax
jmp 0x403ea6
mov eax, ebx
add eax, dword [ebp - 0x10]
mov edx, dword [0x42aa68]
xor dword [eax], edx
add dword [ebp - 0x10], 4
mov eax, dword [0x42aa60]
add eax, dword [0x42aa64]
cmp dword [ebp - 0x10], eax
jb 0x403e95
mov edi, ebx
add edi, dword [0x42aa50]
movzx edx, byte [ebp - 0x11]
shl edx, 1
mov edx, dword [edx*4 + 0x42aa6c]
mov ecx, dword [0x42aa5c]
mov dword [edx + edi], ecx
mov edi, ebx
add edi, dword [0x42aa50]
movzx edx, byte [ebp - 0x11]
shl edx, 1
mov edx, dword [edx*4 + str._nz_]
mov ecx, dword [0x42aa68]
mov dword [edx + edi], ecx
add esi, 0x5039
cmp byte [ebp - 0x11], 1
jne 0x403f02
sub dword [ebp - 0x18], 0x18
movzx eax, word [ebp - 0x18]
push eax
mov eax, ebx
add eax, dword [0x42aa50]
push eax
call fcn.00403bbe
add esp, 8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x1c], eax
add esi, 0x3c39
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_WriteFile
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_CloseHandle
push ebx
call sub.KERNEL32.DLL_LocalFree
xor eax, eax
inc eax
jmp 0x403f63
pop edi
pop esi
pop ebx
leave
ret