Function at 0x404ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov edi, dword [esp + 0x78]
push 0x4df40
call fcn.00408c10
add esp, 4
mov dword [edi], 0
xor ebx, ebx
test eax, eax
je 0x4054ef
mov esi, eax
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
imul ecx, dword [esp + 0x6c]
mov dword [esp + 4], 0
mov dword [esp + 0x10], 1
mov eax, ecx
and eax, 1
mov dword [esp + 0x20], ecx
xor ecx, 1
lea eax, [ecx + eax*2]
mov ecx, edi
not ecx
and ecx, eax
mov edx, eax
not edx
and edx, edi
imul edx, ecx
mov ecx, eax
and ecx, edi
or eax, edi
imul eax, ecx
add eax, edx
mov ecx, 0x79
cmp eax, 0x40
jl 0x404f69
mov eax, dword [esp + 0x20]
lea ecx, [eax + 1]
imul ecx, dword [esp + 0x70]
add ecx, 0x39
mov dword [esp + 8], ecx
mov ebp, ecx
push ecx
call fcn.00408c10
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
test eax, eax
je 0x4052ee
mov dword [esp], esi
mov dword [esp + 0x1c], 0x29
xor edi, edi
mov byte [esp + 0x18], 0x29
mov ebx, 0x29
mov eax, dword [esp + 0x14]
mov ecx, ebp
jmp 0x404ff2
mov dword [esp + 0x24], ecx
push esi
push dword [esp + 0x18]
call fcn.00408c30
add esp, 8
test eax, eax
je 0x405029
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 0x14], eax
mov ecx, esi
movzx ebx, byte [esp + 0x18]
mov byte [eax + edi], bl
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x1c]
mov edi, ebp
dec ebx
mov dword [esp + 0x1c], ebx
mov edx, ebx
mov byte [esp + 0x18], bl
je 0x405035
lea ebp, [edi + 1]
cmp ebp, ecx
jbe 0x404fd3
cmp dword [esp + 0x10], 0
je 0x405025
mov esi, ecx
jmp 0x405014
cmp ebp, esi
jbe 0x404fb0
add esi, esi
cmp esi, 0x81
jae 0x405010
mov esi, 0x80
jmp 0x405010
mov ebp, edi
jmp 0x404fe3
mov eax, dword [esp + 0x14]
mov ebp, edi
mov ecx, dword [esp + 0x24]
jmp 0x404fe3
mov eax, dword [esp + 0x7c]
cmp eax, 0xa
jb 0x405043
mov eax, 0xa
mov ecx, dword [eax*4 + 0x444a54]
mov eax, ecx
or eax, 0x1000
mov ebp, dword [esp]
mov dword [ebp], 0x404e50
lea edx, [esp + 4]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov edx, eax
not edx
or edx, 0xfff
add eax, edx
add eax, 3
mov edx, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
inc eax
mov dword [ebp + 0xc], eax
mov eax, ecx
shr eax, 0xe
and eax, 1
mov dword [ebp + 0x14], eax
shr ecx, 2
and ecx, 0x3ff
add ecx, 2
imul eax, ecx, 0x5556
shr eax, 0x10
inc eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x29272]
push 0x10000
push 0
push eax
call fcn.00408c90
add esp, 0xc
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x1c], 0
lea eax, [ebp + 0x9272]
lea ecx, [ebp + 0x9273]
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x60], 0
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], eax
mov byte [ebp + 0x9272], 0
mov dword [ebp + 0x38], 8
lea eax, [ebp + 0x39272]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x6c], 0
mov dword [ebp + 0x54], 0
mov dword [ebp + 0x50], 0
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x18], 1
lea esi, [ebp + 0x70]
mov eax, ebp
add eax, 0x8192
push 0x280
push 0
push eax
call fcn.00408c90
add esp, 0xc
push 0x8121
push 0
push esi
call fcn.00408c90
add esp, 0xc
lea edi, [esp + 0x28]
cmp dword [esp + 0x70], 0
jle 0x405200
xor esi, esi
lea ebx, [esp + 0x1c]
jmp 0x4051d1
mov ecx, dword [esp + 0x20]
imul eax, ecx
add eax, dword [esp + 0x68]
mov dword [esp + 0x28], ecx
push 0
push 0
push 0
push edi
push eax
push ebp
call fcn.004037d0
add esp, 0x18
mov eax, esi
and eax, 1
xor esi, 1
lea esi, [esi + eax*2]
cmp esi, dword [esp + 0x70]
jge 0x405200
mov dword [esp + 0x28], 1
push 0
push 0
push 0
push edi
push ebx
push ebp
call fcn.004037d0
add esp, 0x18
mov eax, esi
cmp dword [esp + 0x80], 0
je 0x4051a0
mov eax, esi
not eax
add eax, dword [esp + 0x70]
jmp 0x4051a0
mov dword [esp + 0x28], 0
push 4
push 0
push 0
push edi
push 0
push ebp
call fcn.004037d0
add esp, 0x18
cmp eax, 1
jne 0x4052fc
mov ebp, dword [esp + 4]
lea ebx, [ebp - 0x29]
mov eax, dword [esp + 0x78]
mov dword [eax], ebx
push 0x29
push 0x444a85
push edi
call fcn.00408c40
add esp, 0xc
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x3a], ah
mov byte [esp + 0x3b], al
mov eax, dword [esp + 0x70]
mov byte [esp + 0x3e], ah
mov byte [esp + 0x3f], al
mov eax, dword [esp + 0x74]
movzx eax, byte [eax + 0x444a80]
mov byte [esp + 0x41], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x49], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x4a], al
mov byte [esp + 0x4b], bh
mov byte [esp + 0x4c], bl
mov ecx, 0xffffffff
mov eax, 0xc
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x28]
mov esi, ecx
shr esi, 4
xor ecx, edx
and ecx, 0xf
xor esi, dword [ecx*4 + 0x444a14]
mov ecx, esi
shr ecx, 4
and esi, 0xf
shr edx, 4
xor edx, esi
xor ecx, dword [edx*4 + 0x444a14]
cmp eax, 0x1c
je 0x40530e
movzx edx, byte [esp + eax + 0x29]
mov esi, ecx
shr esi, 4
xor ecx, edx
and ecx, 0xf
xor esi, dword [ecx*4 + 0x444a14]
mov ecx, esi
shr ecx, 4
and esi, 0xf
shr edx, 4
xor edx, esi
xor ecx, dword [edx*4 + 0x444a14]
add eax, 2
jmp 0x405290
push esi
call fcn.00408c20
add esp, 4
jmp 0x4054ef
push ebp
call fcn.00408c20
add esp, 4
push dword [esp + 0xc]
jmp 0x4054e5
not ecx
bswap ecx
mov dword [esp + 0x45], ecx
mov ebx, dword [esp + 0xc]
push 0x29
push edi
push ebx
call fcn.00408c40
add esp, 0xc
lea edi, [ebp + 0x10]
mov esi, dword [esp + 8]
cmp edi, esi
jbe 0x405385
cmp dword [esp + 0x10], 0
je 0x4054c8
mov ebp, dword [esp]
jmp 0x405354
cmp edi, esi
jbe 0x405365
add esi, esi
cmp esi, 0x81
jae 0x405350
mov esi, 0x80
jmp 0x405350
push esi
push ebx
call fcn.00408c30
add esp, 8
test eax, eax
je 0x4054cd
mov ebx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov ebp, dword [esp + 4]
mov dword [ebx + ebp + 0xc], 0x826042ae
mov dword [ebx + ebp + 8], 0x444e4549
mov dword [ebx + ebp + 4], 0
mov dword [ebx + ebp], 0
mov dword [esp + 4], edi
mov ebp, dword [esp + 0x78]
mov edx, dword [ebp]
mov ebx, edx
mov esi, dword [esp + 0xc]
add ebx, 4
je 0x4053dc
mov dword [esp + 0x18], esi
add esi, 0x25
cmp edx, 0xfffffffd
jne 0x4053e6
mov ecx, 0xffffffff
mov ebx, dword [esp]
test dl, 1
jne 0x405455
jmp 0x40547d
xor ecx, ecx
mov ebx, dword [esp]
jmp 0x405483
and ebx, 0xfffffffe
mov ecx, 0xffffffff
nop
nop
movzx ebp, byte [esi]
mov eax, ecx
shr eax, 4
xor ecx, ebp
and ecx, 0xf
xor eax, dword [ecx*4 + 0x444a14]
mov ecx, eax
shr ecx, 4
and eax, 0xf
shr ebp, 4
xor ebp, eax
xor ecx, dword [ebp*4 + 0x444a14]
movzx ebp, byte [esi + 1]
add esi, 2
mov eax, ecx
shr eax, 4
xor ecx, ebp
and ecx, 0xf
xor eax, dword [ecx*4 + 0x444a14]
mov ecx, eax
shr ecx, 4
and eax, 0xf
shr ebp, 4
xor ebp, eax
xor ecx, dword [ebp*4 + 0x444a14]
add ebx, 0xfffffffe
jne 0x4053f0
mov ebx, dword [esp]
mov ebp, dword [esp + 0x78]
test dl, 1
je 0x40547d
movzx edx, byte [esi]
mov eax, ecx
shr eax, 4
xor ecx, edx
and ecx, 0xf
xor eax, dword [ecx*4 + 0x444a14]
mov ecx, eax
shr ecx, 4
and eax, 0xf
shr edx, 4
xor edx, eax
xor ecx, dword [edx*4 + 0x444a14]
not ecx
mov esi, dword [esp + 0x18]
mov eax, ecx
shr eax, 0x18
mov byte [esi + edi - 0x10], al
mov eax, ecx
shr eax, 0x10
mov edx, dword [esp + 4]
mov esi, dword [esp + 0xc]
mov byte [esi + edx - 0xf], al
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov byte [edx + eax - 0xe], ch
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov byte [edx + eax - 0xd], cl
add dword [ebp], 0x39
push ebx
call fcn.00408c20
add esp, 4
mov ebx, dword [esp + 0xc]
jmp 0x4054ef
mov ebp, dword [esp]
jmp 0x4054d1
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x78]
mov dword [eax], 0
push ebp
call fcn.00408c20
add esp, 4
push ebx
call fcn.00408c20
add esp, 4
xor ebx, ebx
mov eax, ebx
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret