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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x6b9549
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409e18
mov eax, dword [ebp - 8]
call fcn.00409e18
mov eax, dword [ebp + 0xc]
call fcn.00409e18
xor eax, eax
push ebp
push 0x6b9c5f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006b9c90
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x6b95bb
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x6b95ca
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x20
jne 0x6b95d8
mov dword [ebp - 0x4c], 3
jmp 0x6b95df
mov dword [ebp - 0x4c], 9
cmp dword [ebp - 0x4c], 3
jne 0x6b965d
cmp dword [ebp - 0x18], 1
jne 0x6b9623
push 3
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x6b9518]
call fcn.0040bf50
add esp, 4
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0x20
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 2
jmp 0x6b9745
push 3
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x6b9518]
call fcn.0040bf50
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x1e
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0xfffffffe
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 0xfffffffe
jmp 0x6b9745
cmp dword [ebp - 0x18], 1
jne 0x6b96d4
push 9
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x6b9518]
call fcn.0040bf50
add esp, 4
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0x20
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 2
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 0x3e
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0x1e
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x14], 0xfffffffe
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x40
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], 0x60
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x20], 2
jmp 0x6b9745
push 9
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x6b9518]
call fcn.0040bf50
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x5e
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0x3e
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 0xfffffffe
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 0x20
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0x40
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x14], 2
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x18], 0x1e
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c], 0xfffffffe
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x20], 0xfffffffe
lea eax, [ebp - 8]
mov edx, 0x6b9c7c
call fcn.0040aa9c
mov eax, dword [ebp + 8]
call fcn.00409d34
lea eax, [ebp - 0xc]
call fcn.00409d34
cmp dword [ebp + 0x10], 1
jne 0x6b97ec
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
movzx eax, word [eax + edx*2]
shl eax, 0x18
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [edx + ecx*2 + 2]
shl edx, 0x10
or eax, edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [edx + ecx*2 + 4]
shl edx, 8
or eax, edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [edx + ecx*2 + 6]
or eax, edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
movzx eax, word [eax + edx*2 + 8]
shl eax, 0x18
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [edx + ecx*2 + 0xa]
shl edx, 0x10
or eax, edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [edx + ecx*2 + 0xc]
shl edx, 8
or eax, edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [edx + ecx*2 + 0xe]
or eax, edx
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x48]
jge 0x6b9c05
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, word [eax + edx*2]
shl eax, 0x18
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [edx + ecx*2 + 2]
shl edx, 0x10
or eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [edx + ecx*2 + 4]
shl edx, 8
or eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx edx, word [edx + ecx*2 + 6]
or eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx ebx, word [eax + edx*2 + 8]
shl ebx, 0x18
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, word [eax + edx*2 + 0xa]
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, word [eax + edx*2 + 0xc]
shl eax, 8
or ebx, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
movzx eax, word [eax + edx*2 + 0xe]
or ebx, eax
add dword [ebp - 0x1c], 8
cmp dword [ebp + 0x10], 1
jne 0x6b98a0
cmp dword [ebp - 0x18], 1
jne 0x6b988b
mov eax, dword [ebp - 0x30]
xor dword [ebp - 0x2c], eax
xor ebx, dword [ebp - 0x38]
jmp 0x6b98a0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x2c]
shr eax, 4
xor eax, ebx
and eax, 0xf0f0f0f
mov dword [ebp - 0x28], eax
xor ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
shl eax, 4
xor dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
shr eax, 0x10
xor eax, ebx
and eax, 0xffff
mov dword [ebp - 0x28], eax
xor ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
shl eax, 0x10
xor dword [ebp - 0x2c], eax
mov eax, ebx
shr eax, 2
xor eax, dword [ebp - 0x2c]
and eax, 0x33333333
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
add eax, eax
add eax, eax
xor ebx, eax
mov eax, ebx
shr eax, 8
xor eax, dword [ebp - 0x2c]
and eax, 0xff00ff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
shl eax, 8
xor ebx, eax
mov eax, dword [ebp - 0x2c]
shr eax, 1
xor eax, ebx
and eax, 0x55555555
mov dword [ebp - 0x28], eax
xor ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
add eax, eax
xor dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add eax, eax
mov edx, dword [ebp - 0x2c]
shr edx, 0x1f
or eax, edx
mov dword [ebp - 0x2c], eax
mov eax, ebx
add eax, eax
shr ebx, 0x1f
or eax, ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x4c]
jge 0x6b9a56
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4 + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4 + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x40]
je 0x6b9a3a
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov esi, dword [eax + edx*4]
xor esi, ebx
mov edi, ebx
shr edi, 4
mov eax, ebx
shl eax, 0x1c
or edi, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
xor edi, dword [eax + edx*4 + 4]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
mov eax, esi
shr eax, 0x18
and eax, 0x3f
mov ebx, dword [eax*4 + 0x6f4220]
mov eax, esi
shr eax, 0x10
and eax, 0x3f
or ebx, dword [eax*4 + 0x6f4420]
mov eax, esi
shr eax, 8
and eax, 0x3f
or ebx, dword [eax*4 + 0x6f4620]
and esi, 0x3f
or ebx, dword [esi*4 + 0x6f4820]
mov eax, edi
shr eax, 0x18
and eax, 0x3f
or ebx, dword [eax*4 + 0x6f4120]
mov eax, edi
shr eax, 0x10
and eax, 0x3f
or ebx, dword [eax*4 + 0x6f4320]
mov eax, edi
shr eax, 8
and eax, 0x3f
or ebx, dword [eax*4 + 0x6f4520]
and edi, 0x3f
or ebx, dword [edi*4 + 0x6f4720]
xor ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x44]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x40]
jne 0x6b998d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x28]
add dword [ebp - 0x24], 3
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x4c]
jl 0x6b995b
mov eax, dword [ebp - 0x2c]
shr eax, 1
mov edx, dword [ebp - 0x2c]
shl edx, 0x1f
or eax, edx
mov dword [ebp - 0x2c], eax
mov eax, ebx
shr eax, 1
shl ebx, 0x1f
or eax, ebx
mov ebx, eax
mov eax, dword [ebp - 0x2c]
shr eax, 1
xor eax, ebx
and eax, 0x55555555
mov dword [ebp - 0x28], eax
xor ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
add eax, eax
xor dword [ebp - 0x2c], eax
mov eax, ebx
shr eax, 8
xor eax, dword [ebp - 0x2c]
and eax, 0xff00ff
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
shl eax, 8
xor ebx, eax
mov eax, ebx
shr eax, 2
xor eax, dword [ebp - 0x2c]
and eax, 0x33333333
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
add eax, eax
add eax, eax
xor ebx, eax
mov eax, dword [ebp - 0x2c]
shr eax, 0x10
xor eax, ebx
and eax, 0xffff
mov dword [ebp - 0x28], eax
xor ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
shl eax, 0x10
xor dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
shr eax, 4
xor eax, ebx
and eax, 0xf0f0f0f
mov dword [ebp - 0x28], eax
xor ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
shl eax, 4
xor dword [ebp - 0x2c], eax
cmp dword [ebp + 0x10], 1
jne 0x6b9b20
cmp dword [ebp - 0x18], 1
jne 0x6b9b17
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ebx
jmp 0x6b9b20
mov eax, dword [ebp - 0x34]
xor dword [ebp - 0x2c], eax
xor ebx, dword [ebp - 0x3c]
push dword [ebp - 0xc]
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x2c]
shr edx, 0x18
call fcn.0040a8b0
push dword [ebp - 0x54]
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x2c]
shr edx, 0x10
and edx, 0xff
call fcn.0040a8b0
push dword [ebp - 0x58]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x2c]
shr edx, 8
and edx, 0xff
call fcn.0040a8b0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 0x2c]
and edx, 0xff
call fcn.0040a8b0
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
mov edx, ebx
shr edx, 0x18
call fcn.0040a8b0
push dword [ebp - 0x64]
lea eax, [ebp - 0x68]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
call fcn.0040a8b0
push dword [ebp - 0x68]
lea eax, [ebp - 0x6c]
mov edx, ebx
shr edx, 8
and edx, 0xff
call fcn.0040a8b0
push dword [ebp - 0x6c]
lea eax, [ebp - 0x70]
mov edx, 0xff
and edx, ebx
call fcn.0040a8b0
push dword [ebp - 0x70]
lea eax, [ebp - 0xc]
mov edx, 9
call fcn.0040ab7c
add dword [ebp - 0x50], 8
cmp dword [ebp - 0x50], 0x200
jne 0x6b9bf9
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040aa9c
mov eax, dword [ebp + 8]
lea eax, [ebp - 0xc]
call fcn.00409d34
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x48]
jl 0x6b97f8
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.0040aa9c
mov eax, dword [ebp + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b9c66
lea eax, [ebp - 0x70]
mov edx, 8
call fcn.00409d94
lea eax, [ebp - 0x14]
mov edx, dword [0x6b9518]
call fcn.0040c074
lea eax, [ebp - 0x10]
mov edx, dword [0x6b94ec]
call fcn.0040c074
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409d94
lea eax, [ebp + 0xc]
call fcn.00409d34
ret