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

Disassembly:
push 0xffffffffffffffff
push 0x46b0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4854a0]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4854a0]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
mov eax, dword [ebp]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0x30]
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 8], ebx
lea esi, [ebp + 4]
jbe 0x41446b
call fcn.004382be
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x414478
call fcn.004382be
xor eax, eax
cmp edi, ebx
mov ecx, edi
je 0x414498
or edi, 0xffffffff
mov edx, dword [ecx]
cmp dword [edx + 0x1c], edi
je 0x414491
mov edx, dword [edx + 0x14]
lea eax, [edx + eax + 0x10]
add ecx, 4
cmp ecx, ebx
jne 0x414483
mov edx, dword [ebp + 0x30]
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4145cd
cmp dword [esp + 0x1c], 4
jne 0x4145cd
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4144de
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x414648
push eax
call fcn.0041bf8c
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], 0
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
jbe 0x414510
call fcn.004382be
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x41451d
call fcn.004382be
push edi
push esi
push ebx
push esi
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x3c]
push eax
mov ebx, 0x415180
call fcn.00414e10
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00417ad0
mov edi, eax
add esp, 0x1c
push edi
call fcn.0041bf8c
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov byte [esp + 0x64], 1
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x24]
push edi
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00417ab0
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.00405e70
add esp, 0x14
xor eax, eax
jmp 0x414590
xor byte [esp + eax + 0x34], 0xa4
add eax, 1
cmp eax, 0x20
jb 0x414590
mov ecx, dword [ebp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x20]
push edx
push 0x20
lea eax, [esp + 0x40]
push eax
push ecx
call ebx
test eax, eax
jne 0x4145d1
push esi
call fcn.0041bf87
add esp, 4
push edi
call fcn.0041bf87
add esp, 4
xor eax, eax
jmp 0x41464d
cmp dword [esp + 0x1c], 0x20
jne 0x4145bb
cmp dword [ebp + 0x13c], 0
jbe 0x41460b
xor ecx, ecx
cmp dword [esp + 0x14], ecx
jbe 0x41460b
lea esp, [esp]
xor edx, edx
mov eax, ecx
div dword [ebp + 0x13c]
add ecx, 1
mov dl, byte [edx + ebp + 0x3c]
xor byte [ecx + esi - 1], dl
cmp ecx, dword [esp + 0x14]
jb 0x4145f0
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x30]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push esi
push edx
call ebx
test eax, eax
je 0x4145bb
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
jne 0x4145bb
mov ecx, dword [ebp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.0041bf87
add esp, 4
push edi
call fcn.0041bf87
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00436f5b
add esp, 0x54
ret 4