Function at 0x414790
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47336b
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x493018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x410
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0044ede0
mov eax, dword fs:[0x2c]
add esp, 0xc
mov dword [ebp - 0x430], 0xf0f0f6f
mov dword [ebp - 0x42c], 0x5a565a00
mov byte [ebp - 0x491], 0x2e
mov ecx, dword [eax]
mov eax, dword [0x49f598]
cmp eax, dword [ecx + 4]
jle 0x414866
push 0x49f598
call fcn.0043751a
add esp, 4
cmp dword [0x49f598], 0xffffffff
jne 0x414866
movaps xmm0, xmmword [0x489720]
mov al, byte [ebp - 0x491]
movups xmmword [0x4a0528], xmm0
push 0x478400
movq xmm0, qword [ebp - 0x430]
movq qword [0x4a0538], xmm0
mov byte [0x4a0540], al
call fcn.00437941
push 0x49f598
call fcn.004374d0
add esp, 8
cmp byte [0x4a0540], 0
je 0x41489d
movups xmm0, xmmword [0x4a0528]
mov eax, 0x10
movaps xmm1, xmmword [0x4890c0]
pxor xmm1, xmm0
movups xmmword [0x4a0528], xmm1
nop dword [eax]
xor byte [eax + 0x4a0528], 0x2e
inc eax
cmp eax, 0x19
jb 0x414890
mov ecx, 0x4a0528
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x498], 0xf
mov byte [ebp - 0x4ac], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4148c0
sub ecx, edx
push ecx
push 0x4a0528
lea ecx, [ebp - 0x4ac]
call fcn.00401f40
push 0x50
lea eax, [ebp - 0x490]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0044ede0
add esp, 0xc
lea ecx, [ebp - 0x490]
call fcn.00417320
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4ac]
cmp dword [ebp - 0x498], 0x10
mov eax, dword [ebp - 0x49c]
cmovae ecx, dword [ebp - 0x4ac]
add eax, ecx
push eax
push ecx
lea eax, [ebp - 0x4c4]
push eax
lea ecx, [ebp - 0x490]
call fcn.00419880
lea ecx, [ebp - 0x490]
call fcn.00417260
cmp dword [ebp - 0x4b0], 8
lea eax, [ebp - 0x4c4]
cmovae eax, dword [ebp - 0x4c4]
push eax
push esi
lea eax, [ebp - 0x424]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x4b0]
add esp, 0x10
cmp edx, 8
jb 0x4149a6
mov ecx, dword [ebp - 0x4c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41499c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414a7d
push edx
push ecx
call fcn.004373c7
add esp, 8
mov edx, dword [ebp - 0x498]
xor eax, eax
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4b0], 7
mov word [ebp - 0x4c4], ax
cmp edx, 0x10
jb 0x4149fd
mov ecx, dword [ebp - 0x4ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4149f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414a7d
push edx
push ecx
call fcn.004373c7
add esp, 8
lea eax, [ebp - 0x424]
push 0x487c98
push eax
call fcn.004566c0
mov esi, eax
add esp, 8
test esi, esi
je 0x414a40
mov ecx, 0x4970f0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414a20
push esi
sub ecx, edx
push ecx
push 1
push 0x4970f0
call fcn.004565a7
push esi
call fcn.00452aa5
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00437386
mov esp, ebp
pop ebp
ret
call fcn.0045214a
int3