Function at 0x412401
Capabilities:
Encode data using xor

Disassembly:
push 0x64
mov eax, 0x433143
call fcn.0041bc0a
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 0x412442
push 0xc
mov edi, eax
pop ebx
mov ecx, esi
call fcn.004041b7
add esi, ebx
cmp esi, edi
jne 0x41242a
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 0x412518
xor esi, esi
mov dword [ebp - 0x30], esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x58]
call fcn.004040f6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
mov eax, dword [edi + 0x2c]
add eax, esi
push eax
call fcn.004040f6
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x48]
je 0x412490
mov byte [ebp - 0x1d], 0
jmp 0x4124de
xor ecx, ecx
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x4124da
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.0041ebd0
mov esi, eax
mov eax, dword [ebp - 0x34]
pop ecx
movsx ecx, byte [edi + eax]
push ecx
call fcn.0041ebd0
pop ecx
cmp eax, esi
jne 0x41248a
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, dword [ebp - 0x60]
jb 0x412499
mov byte [ebp - 0x1d], 1
lea ecx, [ebp - 0x70]
call fcn.00402636
lea ecx, [ebp - 0x58]
call fcn.00402636
cmp byte [ebp - 0x1d], 0
jne 0x41252c
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 0x412460
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00402636
mov al, bl
call fcn.0041bbb9
ret 0x18
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xffffffff
je 0x412518
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.0040897e
inc eax
lea ecx, [edi + 0x1c]
push eax
push esi
call fcn.00403f91
push 0x2c
lea eax, [ebp - 0x1c]
push eax
call fcn.00411b86
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 0x41267f
xor ebx, ebx
sub esp, 0x18
lea eax, [ecx + ebx]
mov ecx, esp
push eax
call fcn.004040f6
lea eax, [ebp - 0x58]
push eax
call fcn.00411c8a
mov ecx, dword [ebp - 0x1c]
push eax
lea ecx, [ecx + ebx]
call fcn.0040404f
lea ecx, [ebp - 0x58]
call fcn.00402636
mov esi, dword [ebp - 0x1c]
push ecx
add esi, ebx
push 0x20
mov ecx, esi
call fcn.0040897e
test eax, eax
jle 0x4125f2
push eax
push 0
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00403f91
mov ecx, dword [ebp - 0x1c]
push eax
lea ecx, [ecx + ebx]
call fcn.0040404f
lea ecx, [ebp - 0x58]
call fcn.00402636
mov esi, str.gdcr8
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 0x33
pop esi
div esi
add dl, 0x32
xor byte [ebp + ecx - 0x3c], dl
inc ecx
cmp ecx, 7
jl 0x412600
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x3c]
push 0
push eax
lea ecx, [ecx + ebx]
call fcn.00403fe5
cmp eax, 0xffffffff
je 0x41265d
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea ecx, [esi + 0x20]
call fcn.00412929
mov ecx, dword [esi + 0x20]
mov eax, dword [ebp - 0x1c]
add ecx, ebx
add eax, ebx
cmp ecx, eax
je 0x41265d
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x412654
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00404278
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 0x412592
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.0041201e
mov byte [ebp - 0x1d], al
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x4126ca
cmp dword [ebx], eax
jne 0x4126b4
mov ecx, ebx
call fcn.0040412d
jmp 0x4126ca
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.00412a52
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x4126f5
cmp dword [esi], eax
jne 0x4126df
mov ecx, esi
call fcn.00404180
jmp 0x4126f5
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.00412aa8
lea ecx, [edi + 0x20]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x41271f
cmp dword [ecx], eax
jne 0x41270b
call fcn.004041b7
jmp 0x41271f
sub eax, dword [ecx]
push 0x18
cdq
pop esi
idiv esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00412afe
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.004041b7
jmp 0x41251a