Function at 0x405538
Capabilities:
Encode data using xor

Disassembly:
push 0xc4
mov eax, 0x42d5ed
call fcn.0041992a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
push 0x1a
pop edx
call fcn.00405d75
push 1
push 0x437f98
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00404497
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040425a
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040441b
push eax
lea ecx, [ebp - 0x34]
call fcn.0040425a
mov esi, 0x4385c4
mov byte [ebp - 4], 3
cmp byte [0x4385cd], 0
lea edi, [ebp - 0x1c]
push 0x39
pop ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x4055bc
xor ecx, ecx
xor edx, edx
mov eax, ecx
div ebx
add dl, 0x30
xor byte [ebp + ecx - 0x1c], dl
inc ecx
cmp ecx, 0xa
jl 0x4055a9
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404840
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040425a
lea ecx, [ebp - 0x34]
call fcn.004025e6
lea ecx, [ebp - 0x4c]
call fcn.004025e6
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.004025e6
lea edx, [ebp + 8]
lea ecx, [ebp - 0x94]
call fcn.00407626
lea edx, [ebp - 0x7c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1c]
call fcn.00407d5e
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x9c], eax
cmp ebx, eax
je 0x4056cf
push ebx
lea ecx, [ebp - 0x64]
call fcn.004042cc
mov byte [ebp - 4], 0xa
lea edi, [ebp - 0x44]
cmp byte [0x43855b], 0
mov esi, str.lR__SD
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 0x40565c
push 0x39
xor ecx, ecx
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x30
xor byte [ebp + ecx - 0x44], dl
inc ecx
cmp ecx, 0x10
jl 0x405649
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x34]
call fcn.004044fb
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.00404293
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x94]
mov ecx, esp
push eax
call fcn.004042cc
mov byte [ebp - 4], 0xb
call fcn.004050b5
add esp, 0x30
lea ecx, [ebp - 0x34]
call fcn.004025e6
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 9
call fcn.004025e6
add ebx, 0x18
cmp ebx, dword [ebp - 0x9c]
jne 0x405622
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.0040438d
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x40]
call fcn.00407d5e
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
cmp eax, ecx
mov dword [ebp - 0xa0], ecx
jmp 0x405a5a
push eax
lea ecx, [ebp - 0x34]
call fcn.004042cc
push str.release
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xe
call fcn.00404293
lea edx, [ebp - 0xd0]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x34]
call fcn.00407b5b
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xe
mov bl, al
call fcn.004025e6
test bl, bl
je 0x405a3f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa4], esp
push 0x437f86
call fcn.00404293
mov esi, 0x438594
mov byte [ebp - 4], 0x10
lea edi, [ebp - 0x1c]
xor ecx, ecx
push 0x30
pop ebx
movsd dword es:[edi], dword [esi]
push 0x39
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, bl
xor byte [ebp + ecx - 0x1c], dl
inc ecx
cmp ecx, 9
jl 0x405771
sub esp, 0x18
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0xa8], esp
push eax
call fcn.00404293
mov byte [ebp - 4], 0x11
cmp byte [0x438593], 0
mov eax, dword [str.Q_3ST_G_reRU8]
mov dword [ebp - 0x98], eax
je 0x4057c6
xor ecx, ecx
xor edx, edx
mov eax, ecx
div esi
add dl, bl
xor byte [ebp + ecx - 0x98], dl
inc ecx
cmp ecx, 4
jl 0x4057b1
sub esp, 0x18
lea eax, [ebp - 0x98]
mov ecx, esp
mov dword [ebp - 0xac], esp
push eax
call fcn.00404293
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0x98], esp
mov edi, 0x440ce8
push edi
call fcn.00405a8f
sub esp, 0x18
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004042cc
xor dl, dl
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xd0]
call fcn.00408047
add esp, 0x78
mov ecx, edi
push eax
call fcn.00405adb
lea ecx, [ebp - 0xc4]
call fcn.00404303
lea ecx, [ebp - 0xd0]
call fcn.0040438d
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb0], esp
push 0x437f86
call fcn.00404293
mov byte [ebp - 4], 0x14
cmp byte [0x4385c3], 0
mov eax, dword [0x4385bc]
mov ecx, dword [0x4385c0]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], ecx
je 0x40588b
xor ecx, ecx
xor edx, edx
mov eax, ecx
div esi
add dl, bl
xor byte [ebp + ecx - 0xb8], dl
inc ecx
cmp ecx, 8
jl 0x405876
sub esp, 0x18
lea eax, [ebp - 0xb8]
mov ecx, esp
mov dword [ebp - 0xac], esp
push eax
call fcn.00404293
mov byte [ebp - 4], 0x15
cmp byte [0x438593], 0
mov eax, dword [str.Q_3ST_G_reRU8]
mov dword [ebp - 0x98], eax
je 0x4058d1
xor ecx, ecx
xor edx, edx
mov eax, ecx
div esi
add dl, bl
xor byte [ebp + ecx - 0x98], dl
inc ecx
cmp ecx, 4
jl 0x4058bc
sub esp, 0x18
lea eax, [ebp - 0x98]
mov ecx, esp
mov dword [ebp - 0xa8], esp
push eax
call fcn.00404293
sub esp, 0x18
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0xa4], esp
push edi
call fcn.00405a8f
sub esp, 0x18
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004042cc
xor dl, dl
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xd0]
call fcn.00408047
add esp, 0x78
mov ecx, edi
push eax
call fcn.00405adb
lea ecx, [ebp - 0xc4]
call fcn.00404303
lea ecx, [ebp - 0xd0]
call fcn.0040438d
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb0], esp
push 0x437f86
call fcn.00404293
mov esi, str.UZZF
mov byte [ebp - 4], 0x18
cmp byte [0x4385ab], 0
lea edi, [ebp - 0x58]
push 0x39
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
je 0x405985
xor ecx, ecx
xor edx, edx
mov eax, ecx
div esi
add dl, bl
xor byte [ebp + ecx - 0x58], dl
inc ecx
cmp ecx, 0xc
jl 0x405973
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
mov dword [ebp - 0xac], esp
push eax
call fcn.00404293
mov byte [ebp - 4], 0x19
cmp byte [0x438593], 0
mov eax, dword [str.Q_3ST_G_reRU8]
mov dword [ebp - 0x98], eax
je 0x4059c8
xor ecx, ecx
xor edx, edx
mov eax, ecx
div esi
add dl, bl
xor byte [ebp + ecx - 0x98], dl
inc ecx
cmp ecx, 4
jl 0x4059b3
sub esp, 0x18
lea eax, [ebp - 0x98]
mov ecx, esp
mov dword [ebp - 0xa8], esp
push eax
call fcn.00404293
sub esp, 0x18
mov byte [ebp - 4], 0x1a
mov ecx, esp
mov dword [ebp - 0xa4], esp
push 0x440ce8
call fcn.00405a8f
sub esp, 0x18
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004042cc
xor dl, dl
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xd0]
call fcn.00408047
add esp, 0x78
mov ecx, 0x440ce8
push eax
call fcn.00405adb
lea ecx, [ebp - 0xc4]
call fcn.00404303
lea ecx, [ebp - 0xd0]
call fcn.0040438d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.004025e6
mov eax, dword [ebp - 0x9c]
add eax, 0x18
cmp eax, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
jne 0x4056fd
lea ecx, [ebp - 0x40]
call fcn.0040438d
lea ecx, [ebp - 0x94]
call fcn.004025e6
lea ecx, [ebp - 0x7c]
call fcn.004025e6
lea ecx, [ebp + 8]
call fcn.004025e6
call fcn.004198d9
ret