Function at 0x405346
Capabilities:
Encode data using xor

Disassembly:
push 0xc4
mov eax, 0x43501d
call fcn.0041c69a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
push 0x1a
pop edx
call fcn.00405b8b
push 1
push 0x43f144
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004042c1
push eax
lea ecx, [ebp - 0x4c]
call fcn.00404084
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x4c]
call fcn.00404245
push eax
lea ecx, [ebp - 0x34]
call fcn.00404084
mov esi, str.heDXPVO
mov byte [ebp - 4], 3
cmp byte [0x43f6dd], 0
lea edi, [ebp - 0x1c]
push 0x37
pop ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x4053ca
xor ecx, ecx
xor edx, edx
mov eax, ecx
div ebx
add dl, 0x34
xor byte [ebp + ecx - 0x1c], dl
inc ecx
cmp ecx, 0xa
jl 0x4053b7
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040464d
push eax
lea ecx, [ebp - 0x7c]
call fcn.00404084
lea ecx, [ebp - 0x34]
call fcn.00402636
lea ecx, [ebp - 0x4c]
call fcn.00402636
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.00402636
lea edx, [ebp + 8]
lea ecx, [ebp - 0x94]
call fcn.004079f7
lea edx, [ebp - 0x7c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1c]
call fcn.004084c3
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x9c], eax
cmp ebx, eax
je 0x4054dd
push ebx
lea ecx, [ebp - 0x64]
call fcn.004040f6
mov byte [ebp - 4], 0xa
lea edi, [ebp - 0x44]
cmp byte [0x43f74b], 0
mov esi, 0x43f73c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x40546a
push 0x37
xor ecx, ecx
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x34
xor byte [ebp + ecx - 0x44], dl
inc ecx
cmp ecx, 0x10
jl 0x405457
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x34]
call fcn.00404325
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 0xf
cmova eax, dword [ebp - 0x34]
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0xa0], esp
push eax
call fcn.004040bd
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x94]
mov ecx, esp
push eax
call fcn.004040f6
mov byte [ebp - 4], 0xb
call fcn.00404ec3
add esp, 0x30
lea ecx, [ebp - 0x34]
call fcn.00402636
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 9
call fcn.00402636
add ebx, 0x18
cmp ebx, dword [ebp - 0x9c]
jne 0x405430
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.004041b7
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x40]
call fcn.004084c3
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
cmp eax, ecx
mov dword [ebp - 0xa0], ecx
jmp 0x405870
push eax
lea ecx, [ebp - 0x34]
call fcn.004040f6
push str.release
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xe
call fcn.004040bd
lea edx, [ebp - 0xd0]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x34]
call fcn.00407eef
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xe
mov bl, al
call fcn.00402636
test bl, bl
je 0x405855
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa4], esp
push 0x43f133
call fcn.004040bd
mov esi, 0x43f71c
mov byte [ebp - 4], 0x10
lea edi, [ebp - 0x1c]
xor ebx, ebx
push 0x37
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x34
xor byte [ebp + ecx - 0x1c], dl
inc ecx
cmp ecx, 9
jl 0x40557e
sub esp, 0x18
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0xa8], esp
push eax
call fcn.004040bd
mov byte [ebp - 4], 0x11
cmp byte [0x43f6ab], 0
mov eax, dword [str.UYZ7]
mov dword [ebp - 0x98], eax
je 0x4055d5
mov ecx, ebx
xor edx, edx
mov eax, ecx
div esi
add dl, 0x34
xor byte [ebp + ecx - 0x98], dl
inc ecx
cmp ecx, 4
jl 0x4055bf
sub esp, 0x18
lea eax, [ebp - 0x98]
mov ecx, esp
mov dword [ebp - 0xac], esp
push eax
call fcn.004040bd
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0x98], esp
mov edi, 0x448d40
push edi
call fcn.004058a5
sub esp, 0x18
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004040f6
push ebx
xor dl, dl
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xd0]
call fcn.004088dc
add esp, 0x7c
mov ecx, edi
push eax
call fcn.004058f1
lea ecx, [ebp - 0xc4]
call fcn.0040412d
lea ecx, [ebp - 0xd0]
call fcn.004041b7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb0], esp
push 0x43f133
call fcn.004040bd
mov byte [ebp - 4], 0x14
cmp byte [0x43f73b], 0
mov eax, dword [0x43f734]
mov ecx, dword [0x43f738]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], ecx
je 0x40569c
mov ecx, ebx
xor edx, edx
mov eax, ecx
div esi
add dl, 0x34
xor byte [ebp + ecx - 0xb8], dl
inc ecx
cmp ecx, 8
jl 0x405686
sub esp, 0x18
lea eax, [ebp - 0xb8]
mov ecx, esp
mov dword [ebp - 0xac], esp
push eax
call fcn.004040bd
mov byte [ebp - 4], 0x15
cmp byte [0x43f6ab], 0
mov eax, dword [str.UYZ7]
mov dword [ebp - 0x98], eax
je 0x4056e3
mov ecx, ebx
xor edx, edx
mov eax, ecx
div esi
add dl, 0x34
xor byte [ebp + ecx - 0x98], dl
inc ecx
cmp ecx, 4
jl 0x4056cd
sub esp, 0x18
lea eax, [ebp - 0x98]
mov ecx, esp
mov dword [ebp - 0xa8], esp
push eax
call fcn.004040bd
sub esp, 0x18
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0xa4], esp
push edi
call fcn.004058a5
sub esp, 0x18
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004040f6
push ebx
xor dl, dl
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xd0]
call fcn.004088dc
add esp, 0x7c
mov ecx, edi
push eax
call fcn.004058f1
lea ecx, [ebp - 0xc4]
call fcn.0040412d
lea ecx, [ebp - 0xd0]
call fcn.004041b7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb0], esp
push 0x43f133
call fcn.004040bd
mov esi, str.XZQVJ
mov byte [ebp - 4], 0x18
cmp byte [0x43f733], 0
lea edi, [ebp - 0x58]
push 0x37
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
je 0x405799
mov ecx, ebx
xor edx, edx
mov eax, ecx
div esi
add dl, 0x34
xor byte [ebp + ecx - 0x58], dl
inc ecx
cmp ecx, 0xc
jl 0x405786
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
mov dword [ebp - 0xac], esp
push eax
call fcn.004040bd
mov byte [ebp - 4], 0x19
cmp byte [0x43f6ab], 0
mov eax, dword [str.UYZ7]
mov dword [ebp - 0x98], eax
je 0x4057dd
mov ecx, ebx
xor edx, edx
mov eax, ecx
div esi
add dl, 0x34
xor byte [ebp + ecx - 0x98], dl
inc ecx
cmp ecx, 4
jl 0x4057c7
sub esp, 0x18
lea eax, [ebp - 0x98]
mov ecx, esp
mov dword [ebp - 0xa8], esp
push eax
call fcn.004040bd
sub esp, 0x18
mov byte [ebp - 4], 0x1a
mov ecx, esp
mov dword [ebp - 0xa4], esp
push 0x448d40
call fcn.004058a5
sub esp, 0x18
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004040f6
push ebx
xor dl, dl
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xd0]
call fcn.004088dc
add esp, 0x7c
mov ecx, 0x448d40
push eax
call fcn.004058f1
lea ecx, [ebp - 0xc4]
call fcn.0040412d
lea ecx, [ebp - 0xd0]
call fcn.004041b7
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.00402636
mov eax, dword [ebp - 0x9c]
add eax, 0x18
cmp eax, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
jne 0x40550b
lea ecx, [ebp - 0x40]
call fcn.004041b7
lea ecx, [ebp - 0x94]
call fcn.00402636
lea ecx, [ebp - 0x7c]
call fcn.00402636
lea ecx, [ebp + 8]
call fcn.00402636
call fcn.0041c649
ret