Function at 0x4a4664
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x4a466d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046ac
mov eax, dword [ebp - 8]
call fcn.004046ac
xor eax, eax
push ebp
push 0x4a4c31
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a4c54
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.004044bc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
call fcn.00405600
cmp eax, 0x20
jne 0x4a46d6
mov dword [ebp - 0x30], 3
jmp 0x4a46dd
mov dword [ebp - 0x30], 9
cmp dword [ebp - 0x30], 3
jne 0x4a475a
cmp ebx, 1
jne 0x4a4720
push 3
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x4a463c]
call fcn.004057bc
add esp, 4
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 0x20
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], 2
jmp 0x4a4841
push 3
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x4a463c]
call fcn.004057bc
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x1e
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], 0xfffffffe
jmp 0x4a4841
cmp ebx, 1
jne 0x4a47d0
push 9
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x4a463c]
call fcn.004057bc
add esp, 4
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 0x20
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], 2
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], 0x3e
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0x1e
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x18], 0x40
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0x60
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x20], 2
jmp 0x4a4841
push 9
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x4a463c]
call fcn.004057bc
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x5e
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 0x3e
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], 0x20
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0x40
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 2
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x18], 0x1e
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x20], 0xfffffffe
lea eax, [ebp - 8]
mov edx, 0x4a4c48
call fcn.004044c4
mov eax, dword [ebp + 8]
call fcn.004041fc
lea eax, [ebp - 0x38]
call fcn.004041fc
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x2c]
jge 0x4a4bdf
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx]
shl eax, 0x18
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx + 1]
shl edx, 0x10
or eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx + 2]
shl edx, 8
or eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx + 3]
or eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
xor ebx, ebx
mov bl, byte [eax + edx + 4]
shl ebx, 0x18
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx + 5]
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx + 6]
shl eax, 8
or ebx, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx + 7]
or ebx, eax
add dword [ebp - 0x10], 8
mov ecx, dword [ebp - 0x1c]
shr ecx, 4
xor ecx, ebx
and ecx, 0xf0f0f0f
xor ebx, ecx
shl ecx, 4
xor dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
xor ecx, ebx
and ecx, 0xffff
xor ebx, ecx
shl ecx, 0x10
xor dword [ebp - 0x1c], ecx
mov ecx, ebx
shr ecx, 2
xor ecx, dword [ebp - 0x1c]
and ecx, 0x33333333
xor dword [ebp - 0x1c], ecx
shl ecx, 2
xor ebx, ecx
mov ecx, ebx
shr ecx, 8
xor ecx, dword [ebp - 0x1c]
and ecx, 0xff00ff
xor dword [ebp - 0x1c], ecx
shl ecx, 8
xor ebx, ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 1
xor ecx, ebx
and ecx, 0x55555555
xor ebx, ecx
add ecx, ecx
xor dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
add eax, eax
mov edx, dword [ebp - 0x1c]
shr edx, 0x1f
or eax, edx
mov dword [ebp - 0x1c], eax
mov eax, ebx
add eax, eax
shr ebx, 0x1f
or eax, ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x30]
jge 0x4a4a72
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4 + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4 + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
je 0x4a4a5a
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
xor eax, ebx
mov edx, ebx
shr edx, 4
mov ecx, ebx
shl ecx, 0x1c
or edx, ecx
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
xor edx, dword [ecx + esi*4 + 4]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x4e833c]
mov esi, eax
shr esi, 0x10
and esi, 0x3f
or ebx, dword [esi*4 + 0x4e853c]
mov esi, eax
shr esi, 8
and esi, 0x3f
or ebx, dword [esi*4 + 0x4e873c]
and eax, 0x3f
or ebx, dword [eax*4 + 0x4e893c]
mov eax, edx
shr eax, 0x18
and eax, 0x3f
or ebx, dword [eax*4 + 0x4e823c]
mov eax, edx
shr eax, 0x10
and eax, 0x3f
or ebx, dword [eax*4 + 0x4e843c]
mov eax, edx
shr eax, 8
and eax, 0x3f
or ebx, dword [eax*4 + 0x4e863c]
and edx, 0x3f
or ebx, dword [edx*4 + 0x4e883c]
xor ebx, ecx
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x4a49b1
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov ebx, ecx
add dword [ebp - 0x18], 3
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x30]
jl 0x4a497f
mov eax, dword [ebp - 0x1c]
shr eax, 1
mov edx, dword [ebp - 0x1c]
shl edx, 0x1f
or eax, edx
mov dword [ebp - 0x1c], eax
mov eax, ebx
shr eax, 1
shl ebx, 0x1f
or eax, ebx
mov ebx, eax
mov ecx, dword [ebp - 0x1c]
shr ecx, 1
xor ecx, ebx
and ecx, 0x55555555
xor ebx, ecx
add ecx, ecx
xor dword [ebp - 0x1c], ecx
mov ecx, ebx
shr ecx, 8
xor ecx, dword [ebp - 0x1c]
and ecx, 0xff00ff
xor dword [ebp - 0x1c], ecx
shl ecx, 8
xor ebx, ecx
mov ecx, ebx
shr ecx, 2
xor ecx, dword [ebp - 0x1c]
and ecx, 0x33333333
xor dword [ebp - 0x1c], ecx
shl ecx, 2
xor ebx, ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
xor ecx, ebx
and ecx, 0xffff
xor ebx, ecx
shl ecx, 0x10
xor dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 4
xor ecx, ebx
and ecx, 0xf0f0f0f
xor ebx, ecx
shl ecx, 4
xor dword [ebp - 0x1c], ecx
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x1c]
shr edx, 0x18
call fcn.004043e4
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x1c]
shr edx, 0x10
and edx, 0xff
call fcn.004043e4
push dword [ebp - 0x40]
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
shr edx, 8
and edx, 0xff
call fcn.004043e4
push dword [ebp - 0x44]
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x1c]
and edx, 0xff
call fcn.004043e4
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
mov edx, ebx
shr edx, 0x18
call fcn.004043e4
push dword [ebp - 0x4c]
lea eax, [ebp - 0x50]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
call fcn.004043e4
push dword [ebp - 0x50]
lea eax, [ebp - 0x54]
mov edx, ebx
shr edx, 8
and edx, 0xff
call fcn.004043e4
push dword [ebp - 0x54]
lea eax, [ebp - 0x58]
mov edx, ebx
and edx, 0xff
call fcn.004043e4
push dword [ebp - 0x58]
lea eax, [ebp - 0x38]
mov edx, 9
call fcn.0040457c
add dword [ebp - 0x34], 8
cmp dword [ebp - 0x34], 0x200
jne 0x4a4bd3
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
call fcn.004044c4
mov eax, dword [ebp + 8]
lea eax, [ebp - 0x38]
call fcn.004041fc
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x2c]
jl 0x4a486a
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
call fcn.004044c4
mov eax, dword [ebp + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4c38
lea eax, [ebp - 0x58]
mov edx, 9
call fcn.00404220
lea eax, [ebp - 0x20]
mov edx, dword [0x4a463c]
call fcn.004058dc
lea eax, [ebp - 0xc]
mov edx, dword [0x4a4580]
call fcn.004058dc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404220
ret