Function at 0x412f19
Capabilities:
Encode data using xor

Disassembly:
push 0x64
mov eax, 0x436b48
call fcn.0041c69a
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 0x412f5a
push 0xc
mov edi, eax
pop ebx
mov ecx, esi
call fcn.004041b7
add esi, ebx
cmp esi, edi
jne 0x412f42
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 0x413030
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 0x412fa8
mov byte [ebp - 0x1d], 0
jmp 0x412ff6
xor ecx, ecx
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x412ff2
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.0041f660
mov esi, eax
mov eax, dword [ebp - 0x34]
pop ecx
movsx ecx, byte [edi + eax]
push ecx
call fcn.0041f660
pop ecx
cmp eax, esi
jne 0x412fa2
mov ecx, dword [ebp - 0x34]
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, dword [ebp - 0x60]
jb 0x412fb1
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 0x413044
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 0x412f78
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00402636
mov al, bl
call fcn.0041c649
ret 0x18
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xffffffff
je 0x413030
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.00408acd
inc eax
lea ecx, [edi + 0x1c]
push eax
push esi
call fcn.00403f91
push 0x2c
lea eax, [ebp - 0x1c]
push eax
call fcn.0041269e
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 0x413197
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.004127a2
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.00408acd
test eax, eax
jle 0x41310a
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, 0x4405d4
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, 0x34
xor byte [ebp + ecx - 0x3c], dl
inc ecx
cmp ecx, 7
jl 0x413118
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x3c]
push 0
push eax
lea ecx, [ecx + ebx]
call fcn.00403fe5
cmp eax, 0xffffffff
je 0x413175
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea ecx, [esi + 0x20]
call fcn.00413441
mov ecx, dword [esi + 0x20]
mov eax, dword [ebp - 0x1c]
add ecx, ebx
add eax, ebx
cmp ecx, eax
je 0x413175
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x41316c
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 0x4130aa
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.00412b36
mov byte [ebp - 0x1d], al
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x4131e2
cmp dword [ebx], eax
jne 0x4131cc
mov ecx, ebx
call fcn.0040412d
jmp 0x4131e2
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.0041356a
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x41320d
cmp dword [esi], eax
jne 0x4131f7
mov ecx, esi
call fcn.00404180
jmp 0x41320d
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.004135c0
lea ecx, [edi + 0x20]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x413237
cmp dword [ecx], eax
jne 0x413223
call fcn.004041b7
jmp 0x413237
sub eax, dword [ecx]
push 0x18
cdq
pop esi
idiv esi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00413616
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 0x413032