Function at 0x401ecc
Capabilities:
Write file on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, dword [ebp + 0x10]
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll_time]
mov dword [esp], eax
call sub.msvcrt.dll_srand
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor eax, eax
rep stosb byte es:[edi], al
mov dword [esp], esi
mov ebx, ecx
call sub.msvcrt.dll_strlen
mov edi, eax
lea eax, [eax + 0x1e]
mov dword [esp], eax
mov dword [esp + 0x3c], eax
call sub.msvcrt.dll_malloc
movups xmm0, xmmword [str.l65287_d_c10000_m20990101_n20db555b08c9ab98ff3fc2c8b8e3d0e5]
cmp dword [esp + 0x3c], 0x1d
mov ecx, ebx
movups xmm1, xmmword [0x43c360]
lea edx, [eax + 0x1e]
mov dword [esp + 0x38], eax
cmovg ecx, edi
movups xmmword [eax], xmm0
movups xmm2, xmmword [0x43c370]
movups xmm3, xmmword [0x43c380]
mov edi, edx
movups xmmword [eax + 0xe], xmm1
mov eax, dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
mov dword [eax + 4], 0x4e454741
mov dword [eax], 0x52524554
mov dword [eax + 7], 0x2034204e
mov dword [eax + 0xb], 0x2059454b
mov byte [eax + 0xf], 0x20
movups xmmword [eax + 0x10], xmm2
movups xmmword [eax + 0x20], xmm3
call sub.msvcrt.dll_rand
mov ecx, 0x100
inc eax
cdq
idiv ecx
mov eax, dword [ebp + 8]
mov byte [eax + ebx + 0x30], dl
inc ebx
cmp ebx, 0x1dd
jne 0x401f78
mov al, byte [esp + 0x3c]
mov edi, dword [ebp + 8]
mov esi, 0x43c303
mov ecx, 0x23
mov ebx, 0x20f
mov byte [esp + 0x23], al
mov eax, dword [ebp + 8]
mov byte [eax + 0x20d], 0x7c
mov al, byte [esp + 0x3c]
add eax, 0x56
mov byte [edi + 0x20e], al
movzx eax, byte [esp + 0x3c]
lea edi, [esp + 0x5a]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x7d]
mov esi, 0x43c326
mov ecx, 0x23
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x28], eax
xor edi, edi
xor esi, esi
call sub.msvcrt.dll_rand
mov edx, dword [ebp + 8]
mov ecx, 0x100
inc eax
add edx, ebx
mov dword [esp + 0x30], edx
cdq
idiv ecx
mov eax, dword [esp + 0x30]
mov byte [eax + esi], dl
inc esi
cmp esi, 0x32
jne 0x401fea
mov al, byte [esp + edi + 0x5a]
lea ecx, [ebx + 0x33]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x34], ecx
mov byte [edx + ebx + 0x32], al
shr al, 1
movzx ebx, al
cmp ebx, esi
jle 0x402044
call sub.msvcrt.dll_rand
mov ecx, 0x100
inc eax
cdq
idiv ecx
mov eax, dword [esp + 0x30]
mov byte [eax + esi + 0x33], dl
inc esi
jmp 0x402027
mov al, byte [esp + edi + 0x7d]
mov edx, dword [esp + 0x34]
add edx, dword [ebp + 8]
mov byte [edx + ebx], al
mov edx, dword [esp + 0x34]
shr al, 2
mov byte [esp + 0x30], al
movzx eax, al
mov dword [esp + 0x2c], eax
lea ecx, [ebx + edx + 1]
xor eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], eax
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x28], esi
jle 0x4020d6
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
xor esi, esi
mov al, byte [eax + edx]
mov edx, dword [ebp + 8]
mov byte [esp + 0x1c], al
xor eax, 0x66
mov byte [edx + ecx], al
cmp dword [esp + 0x2c], esi
jle 0x4020c6
mov dword [esp + 0x1c], ecx
mov ebx, 0x100
call sub.msvcrt.dll_rand
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
inc eax
add edx, ecx
mov dword [esp + 0x1c], edx
cdq
idiv ebx
mov eax, dword [esp + 0x1c]
mov byte [eax + esi + 1], dl
inc esi
jmp 0x402096
mov al, byte [esp + 0x30]
inc dword [esp + 0x34]
inc eax
movzx eax, al
add ecx, eax
jmp 0x402072
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc edi
inc ebx
imul ebx, eax
mov eax, dword [esp + 0x24]
add ebx, eax
cmp edi, 0x23
jne 0x401fe8
mov dword [esp + 0x34], 0x23
xor esi, esi
call sub.msvcrt.dll_rand
mov ecx, 0x100
mov edi, dword [ebp + 8]
inc eax
cdq
add edi, ebx
idiv ecx
mov byte [edi + esi], dl
inc esi
cmp esi, 0x23
jne 0x4020fc
mov edi, dword [ebp + 8]
mov al, byte [esp + 0x23]
xor edx, edx
mov byte [edi + ebx + 0x23], al
add ebx, 0x24
cmp dword [esp + 0x3c], 0
mov al, 0x66
cmovns edx, dword [esp + 0x3c]
mov esi, ebx
add esi, edi
mov ecx, edx
mov edi, esi
add ebx, edx
mov esi, dword [ebp + 8]
rep stosb byte es:[edi], al
add esi, ebx
call sub.msvcrt.dll_rand
mov ecx, 0xff
add eax, 0x30
cdq
idiv ecx
lea eax, [ebx + 1]
mov ecx, 2
xor ebx, ebx
mov dword [esp + 0x30], eax
mov eax, edx
mov byte [esi], dl
cdq
idiv ecx
mov edi, eax
cmp edi, ebx
jle 0x402185
call sub.msvcrt.dll_rand
mov ecx, 0x100
inc eax
cdq
idiv ecx
mov byte [esi + ebx + 1], dl
inc ebx
jmp 0x40216c
xor eax, eax
test edi, edi
cmovns eax, edi
mov ebx, eax
mov eax, dword [esp + 0x30]
add ebx, eax
dec dword [esp + 0x34]
jne 0x4020fa
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_free
lea eax, [esp + 0x4f]
mov dword [esp + 4], 0x43c300
mov dword [esp], eax
mov dword [esp + 0x53], 0x6c2e7965
mov dword [esp + 0x4f], 0x6b346774
mov dword [esp + 0x56], 0x63696c
call sub.msvcrt.dll_fopen
mov esi, eax
or eax, 0xffffffff
test esi, esi
je 0x402204
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call sub.msvcrt.dll_fclose
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret