Function at 0x41071c
Capabilities:
Encode data using xor

Disassembly:
push 0x64
mov eax, 0x42ed9e
call fcn.0041992a
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 0x41075d
push 0xc
mov edi, eax
pop ebx
mov ecx, esi
call fcn.0040438d
add esi, ebx
cmp esi, edi
jne 0x410745
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 0x410833
xor esi, esi
mov dword [ebp - 0x30], esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
call fcn.004042cc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
mov eax, dword [edi + 0x2c]
add eax, esi
push eax
call fcn.004042cc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x48]
je 0x4107ab
mov byte [ebp - 0x1d], 0
jmp 0x4107f9
xor ecx, ecx
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x4107f5
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.0041c8f0
mov esi, eax
mov eax, dword [ebp - 0x34]
pop ecx
movsx ecx, byte [edi + eax]
push ecx
call fcn.0041c8f0
pop ecx
cmp eax, esi
jne 0x4107a5
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, dword [ebp - 0x60]
jb 0x4107b4
mov byte [ebp - 0x1d], 1
lea ecx, [ebp - 0x70]
call fcn.004025e6
lea ecx, [ebp - 0x58]
call fcn.004025e6
cmp byte [ebp - 0x1d], 0
jne 0x410847
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 0x41077b
xor bl, bl
lea ecx, [ebp + 8]
call fcn.004025e6
mov al, bl
call fcn.004198d9
ret 0x18
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xffffffff
je 0x410833
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.0040822d
inc eax
lea ecx, [edi + 0x1c]
push eax
push esi
call fcn.00404167
push 0x2c
lea eax, [ebp - 0x1c]
push eax
call fcn.0040fea1
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 0x41099a
xor ebx, ebx
sub esp, 0x18
lea eax, [ecx + ebx]
mov ecx, esp
push eax
call fcn.004042cc
lea eax, [ebp - 0x58]
push eax
call fcn.0040ffa5
mov ecx, dword [ebp - 0x1c]
push eax
lea ecx, [ecx + ebx]
call fcn.00404225
lea ecx, [ebp - 0x58]
call fcn.004025e6
mov esi, dword [ebp - 0x1c]
push ecx
add esi, ebx
push 0x20
mov ecx, esi
call fcn.0040822d
test eax, eax
jle 0x41090d
push eax
push 0
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00404167
mov ecx, dword [ebp - 0x1c]
push eax
lea ecx, [ecx + ebx]
call fcn.00404225
lea ecx, [ebp - 0x58]
call fcn.004025e6
mov esi, 0x438f40
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, 0x31
xor byte [ebp + ecx - 0x3c], dl
inc ecx
cmp ecx, 7
jl 0x41091b
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x3c]
push 0
push eax
lea ecx, [ecx + ebx]
call fcn.004041bb
cmp eax, 0xffffffff
je 0x410978
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea ecx, [esi + 0x20]
call fcn.00410c44
mov ecx, dword [esi + 0x20]
mov eax, dword [ebp - 0x1c]
add ecx, ebx
add eax, ebx
cmp ecx, eax
je 0x410978
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x41096f
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.0040444e
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 0x4108ad
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.00410339
mov byte [ebp - 0x1d], al
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x4109e5
cmp dword [ebx], eax
jne 0x4109cf
mov ecx, ebx
call fcn.00404303
jmp 0x4109e5
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.00410d6d
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x410a10
cmp dword [esi], eax
jne 0x4109fa
mov ecx, esi
call fcn.00404356
jmp 0x410a10
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.00410dc3
lea ecx, [edi + 0x20]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x410a3a
cmp dword [ecx], eax
jne 0x410a26
call fcn.0040438d
jmp 0x410a3a
sub eax, dword [ecx]
push 0x18
cdq
pop esi
idiv esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00410e19
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.0040438d
jmp 0x410835