Function at 0x40358f
Capabilities:
Encode data using xor

Disassembly:
push 0xac
mov eax, 0x434a79
call fcn.0041c69a
mov dword [ebp - 4], 1
xor ecx, ecx
mov eax, dword [str.WZFN8]
mov dword [ebp - 0x98], eax
mov al, byte [0x43f200]
push 0x37
mov byte [ebp - 0x94], al
pop ebx
xor edx, edx
mov eax, ecx
div ebx
add dl, 0x34
xor byte [ebp + ecx - 0x98], dl
inc ecx
cmp ecx, 5
jl 0x4035c0
lea eax, [ebp - 0x98]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x5c]
call fcn.00404325
pop ecx
mov byte [ebp - 4], 2
push 0x48
mov byte [ebp - 0x8d], 0
call fcn.0041be08
mov esi, eax
pop ecx
mov dword [ebp - 0xa0], esi
push 0x48
push 0
push esi
mov byte [ebp - 4], 3
call fcn.0041dab0
sub esp, 0xc
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004040f6
lea eax, [ebp - 0x8d]
mov ecx, esi
push eax
call fcn.0040282f
mov byte [ebp - 4], 2
mov ebx, eax
cmp byte [ebp - 0x8d], 0
je 0x40380d
mov esi, str.XZQVJ:
lea edi, [ebp - 0x98]
push 0x37
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x34
xor byte [ebp + ecx - 0x98], dl
inc ecx
cmp ecx, 7
jl 0x403655
sub esp, 0x18
lea eax, [ebp - 0x98]
mov ecx, esp
push eax
call fcn.004040bd
mov ecx, ebx
call fcn.00412f19
test al, al
je 0x40380d
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 4
xor esi, esi
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x38]
push 0xc
cdq
pop edi
idiv edi
test eax, eax
jle 0x403805
push 0
push esi
lea eax, [ebp - 0x8c]
mov ecx, ebx
push eax
call fcn.0041325a
push 3
push esi
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
mov ecx, ebx
call fcn.0041325a
push 5
push esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.0041325a
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 0
je 0x4037d4
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
seta cl
cmp byte [eax], 0x76
jne 0x403737
test cl, cl
lea eax, [ebp - 0x2c]
cmovne eax, dword [ebp - 0x2c]
cmp byte [eax + 1], 0x31
jne 0x403737
lea eax, [ebp + 0x20]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xb8]
call fcn.00402202
pop ecx
jmp 0x403753
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.004040f6
lea ecx, [ebp - 0xb8]
call fcn.004028f1
add esp, 0x18
push eax
lea ecx, [ebp - 0x44]
call fcn.0040404f
lea ecx, [ebp - 0xb8]
call fcn.00402636
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x9c], esp
push eax
call fcn.004040f6
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp - 0x74]
mov dword [ebp - 0xa0], esp
mov ecx, esp
push eax
call fcn.004040f6
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [ebp - 0x8c]
mov ecx, esp
push eax
call fcn.004040f6
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 7
call fcn.00404a40
add esp, 0x48
push eax
mov ecx, 0x4488bc
mov byte [ebp - 4], 0xa
call fcn.00404245
lea ecx, [ebp - 0xb8]
call fcn.00402636
lea ecx, [ebp - 0x2c]
call fcn.00402636
lea ecx, [ebp - 0x74]
call fcn.00402636
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00402636
mov eax, dword [ebx + 0x3c]
inc esi
sub eax, dword [ebx + 0x38]
cdq
idiv edi
cmp esi, eax
jl 0x4036bd
lea ecx, [ebp - 0x44]
call fcn.00402636
test ebx, ebx
je 0x403822
mov ecx, ebx
call fcn.00403127
push 0x48
push ebx
call fcn.0041be38
pop ecx
pop ecx
cmp dword [ebp - 0x48], 0xf
lea eax, [ebp - 0x5c]
cmova eax, dword [ebp - 0x5c]
push eax
call fcn.0041f4f8
pop ecx
lea ecx, [ebp - 0x5c]
call fcn.00402636
lea ecx, [ebp + 8]
call fcn.00402636
lea ecx, [ebp + 0x20]
call fcn.00402636
call fcn.0041c649
ret