Function at 0x512760
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517357
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x56bbe0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4cc], ecx
mov eax, dword [ebp - 0x4cc]
cmp dword [eax + 0x4c0], 0
je 0x5127a5
jmp 0x5129a2
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
push ecx
call fcn.00405b41
mov ecx, eax
call fcn.00404bdd
test eax, eax
je 0x5129a2
push 1
mov ecx, dword [ebp - 0x4cc]
call fcn.0050e720
mov byte [ebp - 0x3c], 0x31
mov byte [ebp - 0x3b], 0x62
mov byte [ebp - 0x3a], 0x33
mov byte [ebp - 0x39], 0x30
mov byte [ebp - 0x38], 0x34
mov byte [ebp - 0x37], 0x63
mov byte [ebp - 0x36], 0x37
mov byte [ebp - 0x35], 0x61
mov byte [ebp - 0x34], 0x32
mov byte [ebp - 0x33], 0x64
mov byte [ebp - 0x32], 0x30
mov byte [ebp - 0x31], 0x30
mov byte [ebp - 0x30], 0x34
mov byte [ebp - 0x2f], 0x37
mov byte [ebp - 0x2e], 0x31
mov byte [ebp - 0x2d], 0x30
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x4bc]
call fcn.004ed820
mov dword [ebp - 4], 0
push 0x10
push 0x10
mov edx, dword [0x56d1ac]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.004ed120
mov ecx, dword [ebp - 0x4cc]
mov edx, dword [ecx + 0x4cc]
mov dword [ebp - 0x10], edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x4cc]
mov edx, dword [ecx + 0x4d0]
push edx
mov eax, dword [ebp - 0x4cc]
mov ecx, dword [eax + 0x4d0]
push ecx
lea ecx, [ebp - 0x4bc]
call fcn.004edbd0
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x512984
mov dword [ebp - 0x4c0], 0
jmp 0x5128ba
mov eax, dword [ebp - 0x4c0]
add eax, 1
mov dword [ebp - 0x4c0], eax
mov ecx, dword [ebp - 0x4c0]
cmp ecx, dword [ebp - 0x10]
jge 0x512910
mov edx, dword [ebp - 0x4cc]
mov eax, dword [edx + 0x4d0]
mov ecx, dword [ebp - 0x4c0]
movzx edx, byte [eax + ecx]
push edx
push 0x540d30
push 8
lea eax, [ebp - 0x4c8]
push eax
call fcn.004aa595
add esp, 0x10
push 0
lea ecx, [ebp - 0x44]
push ecx
push 2
lea edx, [ebp - 0x4c8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x40], eax
jmp 0x5128ab
mov dword [ebp - 0x4c0], 0
jmp 0x51292b
mov ecx, dword [ebp - 0x4c0]
add ecx, 1
mov dword [ebp - 0x4c0], ecx
cmp dword [ebp - 0x4c0], 4
jge 0x51297a
mov edx, dword [ebp - 0x4c0]
mov eax, dword [0x57705c]
mov ecx, dword [eax + edx*4]
add ecx, 5
push ecx
push 0x540d38
push 8
lea edx, [ebp - 0x4c8]
push edx
call fcn.004aa595
add esp, 0x10
push 0
lea eax, [ebp - 0x44]
push eax
push 2
lea ecx, [ebp - 0x4c8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x40], eax
jmp 0x51291c
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00405b41
mov ecx, eax
call fcn.00404748
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4bc]
call fcn.004ed800
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a9399
mov esp, ebp
pop ebp
ret 4