Function at 0x40976f
Capabilities:
Encode data using xor

Disassembly:
push 0xec
mov eax, 0x435998
call fcn.0041c69a
and dword [ebp - 4], 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp + 8]
call fcn.0040e77b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x9c], eax
cmp ecx, eax
je 0x409c83
push 0xf
pop esi
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
lea edx, [ecx + 0x18]
lea ecx, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00406fca
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0xe0], eax
cmp ebx, eax
je 0x409c5c
xor eax, eax
lea edi, [ebp - 0x94]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x94], cl
xor eax, eax
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], esi
mov byte [ebp - 0x7c], cl
xor eax, eax
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x58], cl
mov esi, str._bYDL_a:
mov byte [ebp - 4], 5
lea edi, [ebp - 0xc4]
push 0x3a
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x34
xor byte [ebp + ecx - 0xc4], dl
inc ecx
cmp ecx, 7
jl 0x40982d
push 0
lea eax, [ebp - 0xc4]
mov ecx, ebx
push eax
call fcn.00403fe5
mov esi, eax
cmp esi, 0xffffffff
je 0x4098d0
cmp byte [str._ZEC], 0
mov ecx, dword [0x43fa40]
mov edx, dword [0x43fa44]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], edx
je 0x409893
xor ecx, ecx
xor edx, edx
mov eax, ecx
div edi
add dl, 0x34
xor byte [ebp + ecx - 0xac], dl
inc ecx
cmp ecx, 8
jl 0x40987d
push esi
lea eax, [ebp - 0xac]
mov ecx, ebx
push eax
call fcn.00403fe5
cmp eax, 0xffffffff
je 0x4098d0
sub eax, esi
mov ecx, ebx
sub eax, 6
push eax
lea eax, [esi + 6]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403f91
push eax
lea ecx, [ebp - 0x94]
call fcn.0040404f
lea ecx, [ebp - 0x28]
call fcn.00402636
mov esi, 0x43f9f8
lea edi, [ebp - 0xa4]
push 0x3a
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x34
xor byte [ebp + ecx - 0xa4], dl
inc ecx
cmp ecx, 7
jl 0x4098e4
push 0
lea eax, [ebp - 0xa4]
mov ecx, ebx
push eax
call fcn.00403fe5
mov esi, eax
cmp esi, 0xffffffff
je 0x409984
cmp byte [str._AFSE], 0
mov ecx, dword [0x43fa00]
mov edx, dword [0x43fa04]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], edx
je 0x40994a
xor ecx, ecx
xor edx, edx
mov eax, ecx
div edi
add dl, 0x34
xor byte [ebp + ecx - 0xb4], dl
inc ecx
cmp ecx, 8
jl 0x409934
push esi
lea eax, [ebp - 0xb4]
mov ecx, ebx
push eax
call fcn.00403fe5
cmp eax, 0xffffffff
je 0x409984
sub eax, esi
mov ecx, ebx
sub eax, 6
push eax
lea eax, [esi + 6]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403f91
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040404f
lea ecx, [ebp - 0x28]
call fcn.00402636
mov esi, str.Q_UXPT_
lea edi, [ebp - 0x24]
push 0x3a
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x34
xor byte [ebp + ecx - 0x24], dl
inc ecx
cmp ecx, 0x13
jl 0x409998
push 0
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.00403fe5
cmp byte [str._hs___cSWP_b_DTED], 0
mov ecx, dword [0x43fa24]
mov edx, dword [0x43fa28]
lea esi, [eax + 0x12]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], edx
je 0x4099f4
xor ecx, ecx
xor edx, edx
mov eax, ecx
div edi
add dl, 0x34
xor byte [ebp + ecx - 0xbc], dl
inc ecx
cmp ecx, 8
jl 0x4099de
push 0
lea eax, [ebp - 0xbc]
mov ecx, ebx
push eax
call fcn.00403fe5
cmp esi, 0xffffffff
je 0x409a78
cmp eax, 0xffffffff
je 0x409a78
sub eax, esi
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.00403f91
mov byte [ebp - 4], 6
lea edi, [ebp - 0x34]
xor eax, eax
lea edx, [ebp - 0x28]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00406e26
push ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xf8]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.004067aa
push eax
lea ecx, [ebp - 0x58]
call fcn.0040404f
lea ecx, [ebp - 0xf8]
call fcn.00402636
inc dword [0x448834]
lea ecx, [ebp - 0x34]
call fcn.0040260e
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00402636
cmp dword [ebp - 0x84], 0
je 0x409b0c
mov esi, 0x43fa48
lea edi, [ebp - 0xcc]
push 0x3a
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x34
xor byte [ebp + ecx - 0xcc], dl
inc ecx
cmp ecx, 7
jl 0x409a99
lea eax, [ebp - 0x94]
push eax
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0xf8]
call fcn.00404e71
pop ecx
push 1
push 0x43f140
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.004042c1
push eax
lea ecx, [ebp - 0x28]
call fcn.00404084
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
mov ecx, 0x448db8
call fcn.00404245
lea ecx, [ebp - 0x28]
call fcn.00402636
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 5
call fcn.00402636
cmp dword [ebp - 0x6c], 0
je 0x409b9a
mov esi, 0x43fa08
lea edi, [ebp - 0xd4]
push 0x3a
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x34
xor byte [ebp + ecx - 0xd4], dl
inc ecx
cmp ecx, 7
jl 0x409b2a
lea eax, [ebp - 0x7c]
push eax
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0xf8]
call fcn.00404e71
pop ecx
push 1
push 0x43f140
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004042c1
push eax
lea ecx, [ebp - 0x28]
call fcn.00404084
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
mov ecx, 0x448db8
call fcn.00404245
lea ecx, [ebp - 0x28]
call fcn.00402636
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 5
call fcn.00402636
cmp dword [ebp - 0x48], 0
je 0x409c24
mov esi, 0x43fa38
lea edi, [ebp - 0xdc]
push 0x3a
xor ecx, ecx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x34
xor byte [ebp + ecx - 0xdc], dl
inc ecx
cmp ecx, 7
jl 0x409bb8
lea eax, [ebp - 0x58]
push eax
lea edx, [ebp - 0xdc]
lea ecx, [ebp - 0xf8]
call fcn.00404e71
pop ecx
push 3
push 0x43f9e4
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.004042c1
push eax
lea ecx, [ebp - 0x28]
call fcn.00404084
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
push eax
mov ecx, 0x448db8
call fcn.00404245
lea ecx, [ebp - 0x28]
call fcn.00402636
lea ecx, [ebp - 0xf8]
call fcn.00402636
mov eax, dword [ebp - 0x44]
push 0xf
pop esi
cmp eax, esi
jbe 0x409c3a
inc eax
push eax
push dword [ebp - 0x58]
call fcn.004026d2
pop ecx
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.00402636
lea ecx, [ebp - 0x94]
call fcn.00402636
add ebx, 0x18
cmp ebx, dword [ebp - 0xe0]
jne 0x4097d6
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004041b7
mov ecx, dword [ebp - 0x98]
add ecx, 0x30
mov dword [ebp - 0x98], ecx
cmp ecx, dword [ebp - 0x9c]
jne 0x4097af
lea ecx, [ebp - 0x64]
call fcn.00406711
lea ecx, [ebp + 0x14]
call fcn.0040412d
lea ecx, [ebp + 8]
call fcn.004041b7
call fcn.0041c649
ret