Function at 0x413e04
Capabilities:
Encode data using xor

Disassembly:
push 0x64
mov eax, 0x437f15
call fcn.0041daaa
mov edi, ecx
mov dword [ebp - 0x2c], edi
and dword [ebp - 4], 0
lea ebx, [edi + 0x38]
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], ebx
cmp esi, eax
je 0x413e45
push 0xc
mov edi, eax
pop ebx
mov ecx, esi
call fcn.0040425d
add esi, ebx
cmp esi, edi
jne 0x413e2d
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x30]
xor ecx, ecx
sub eax, dword [edi + 0x2c]
push 0x34
mov dword [ebp - 0x24], ecx
cdq
pop ecx
idiv ecx
test eax, eax
je 0x413f1b
xor esi, esi
mov dword [ebp - 0x30], esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040419c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
mov eax, dword [edi + 0x2c]
add eax, esi
push eax
call fcn.0040419c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x48]
je 0x413e93
mov byte [ebp - 0x1d], 0
jmp 0x413ee1
xor ecx, ecx
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x413edd
cmp dword [ebp - 0x5c], 0xf
lea edi, [ebp - 0x70]
lea eax, [ebp - 0x58]
cmova edi, dword [ebp - 0x70]
cmp dword [ebp - 0x44], 0xf
cmova eax, dword [ebp - 0x58]
movsx eax, byte [eax + ecx]
push eax
call fcn.004208a0
mov esi, eax
mov eax, dword [ebp - 0x34]
pop ecx
movsx ecx, byte [edi + eax]
push ecx
call fcn.004208a0
pop ecx
cmp eax, esi
jne 0x413e8d
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, dword [ebp - 0x60]
jb 0x413e9c
mov byte [ebp - 0x1d], 1
lea ecx, [ebp - 0x70]
call fcn.004026b1
lea ecx, [ebp - 0x58]
call fcn.004026b1
cmp byte [ebp - 0x1d], 0
jne 0x413f2f
mov edi, dword [ebp - 0x2c]
push 0x34
pop ecx
mov esi, dword [ebp - 0x24]
mov eax, dword [edi + 0x30]
inc esi
sub eax, dword [edi + 0x2c]
cdq
idiv ecx
add dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], esi
cmp esi, eax
mov esi, dword [ebp - 0x30]
jb 0x413e63
xor bl, bl
lea ecx, [ebp + 8]
call fcn.004026b1
mov al, bl
call fcn.0041da59
ret 0x18
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xffffffff
je 0x413f1b
xor eax, eax
imul ecx, ecx, 0x34
lea edi, [ebp - 0x1c]
sub esp, 0x18
stosd dword es:[edi], eax
mov esi, esp
push 0xffffffffffffffff
stosd dword es:[edi], eax
push ecx
mov dword [ebp - 0x30], ecx
push 0x28
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax + 0x2c]
add edi, ecx
lea ecx, [edi + 0x1c]
call fcn.00408e19
inc eax
lea ecx, [edi + 0x1c]
push eax
push esi
call fcn.00404037
push 0x2c
lea eax, [ebp - 0x1c]
push eax
call fcn.00413592
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 0x18
cdq
pop edi
idiv edi
and dword [ebp - 0x24], 0
test eax, eax
je 0x414082
xor ebx, ebx
sub esp, 0x18
lea eax, [ecx + ebx]
mov ecx, esp
push eax
call fcn.0040419c
lea eax, [ebp - 0x58]
push eax
call fcn.00413696
mov ecx, dword [ebp - 0x1c]
push eax
lea ecx, [ecx + ebx]
call fcn.004040f5
lea ecx, [ebp - 0x58]
call fcn.004026b1
mov esi, dword [ebp - 0x1c]
push ecx
add esi, ebx
push 0x20
mov ecx, esi
call fcn.00408e19
test eax, eax
jle 0x413ff5
push eax
push 0
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00404037
mov ecx, dword [ebp - 0x1c]
push eax
lea ecx, [ecx + ebx]
call fcn.004040f5
lea ecx, [ebp - 0x58]
call fcn.004026b1
mov esi, str._xil
lea edi, [ebp - 0x3c]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor edx, edx
mov eax, ecx
push 0x39
pop esi
div esi
add dl, 0x35
xor byte [ebp + ecx - 0x3c], dl
inc ecx
cmp ecx, 7
jl 0x414003
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x3c]
push 0
push eax
lea ecx, [ecx + ebx]
call fcn.0040408b
cmp eax, 0xffffffff
je 0x414060
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea ecx, [esi + 0x20]
call fcn.0041432c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x20]
add eax, ebx
add ecx, ebx
cmp ecx, eax
je 0x414060
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x414057
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.0040431e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 0x18
pop edi
cdq
add ebx, edi
idiv edi
mov esi, dword [ebp - 0x24]
inc esi
mov dword [ebp - 0x24], esi
cmp esi, eax
jb 0x413f95
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov ecx, edi
push 0
lea esi, [edi + 0x2c]
mov eax, dword [esi]
add eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x18]
dec eax
imul eax, dword [edi + 0x1c]
push eax
call fcn.00413a2a
mov byte [ebp - 0x1d], al
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x4140cd
cmp dword [ebx], eax
jne 0x4140b7
mov ecx, ebx
call fcn.004041d3
jmp 0x4140cd
sub eax, dword [ebx]
push 0xc
pop ecx
cdq
idiv ecx
mov ecx, ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00414455
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x4140f8
cmp dword [esi], eax
jne 0x4140e2
mov ecx, esi
call fcn.00404226
jmp 0x4140f8
sub eax, dword [esi]
push 0x34
pop ecx
cdq
idiv ecx
mov ecx, esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004144d0
lea ecx, [edi + 0x20]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x414122
cmp dword [ecx], eax
jne 0x41410e
call fcn.0040425d
jmp 0x414122
sub eax, dword [ecx]
push 0x18
cdq
pop esi
idiv esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00414526
mov eax, dword [ebx + 4]
xor ecx, ecx
sub eax, dword [ebx]
movzx ebx, byte [ebp - 0x1d]
sub eax, 0xbfff4
cmp eax, 0xc
cmovb ebx, ecx
lea ecx, [ebp - 0x1c]
call fcn.0040425d
jmp 0x413f1d