Function at 0x6d6c3600
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x7c
mov dword [esp + 0x3c], edx
call fcn.6d6c2f00
test eax, eax
je 0x6d6c3776
cmp dword [eax + 0x10], 0x6f2d728b
mov esi, eax
lea ecx, [eax + 0x10]
je 0x6d6c3780
lea edx, [eax + 0x23b8]
mov eax, ecx
jmp 0x6d6c3648
cmp dword [eax], 0x6f2d728b
je 0x6d6c3657
add eax, 1
cmp edx, eax
ja 0x6d6c3640
cmp ecx, eax
jne 0x6d6c38fd
mov ecx, dword [eax + 0x2c]
lea edi, [eax + 0x40]
test ecx, ecx
jne 0x6d6c3760
add edi, dword [eax + 0x38]
lea eax, [ebx + 0x10]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x20]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x18]
add eax, edi
mov dword [esp], eax
call fcn.6d6df610
test eax, eax
jne 0x6d6c3a2a
mov eax, dword [esp + 0x6c]
mov ebp, dword [ebx + 0x60]
test eax, eax
je 0x6d6c3a6d
mov eax, dword [edi + 8]
add eax, edi
movzx edx, byte [eax]
and edx, 3
cmp dl, 2
jne 0x6d6c39e3
mov ecx, dword [esp + 0x3c]
add eax, 0x20
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.6d765590
test eax, eax
jne 0x6d6c399c
test ebp, ebp
je 0x6d6c3701
mov dword [esp], ebp
call fcn.6d765608
mov ebp, dword [edi + 0xc]
mov dword [esp], ebp
call fcn.6d7655e0
test eax, eax
mov dword [ebx + 0x60], eax
je 0x6d6c3ab2
mov edx, dword [edi + 8]
mov dword [esp + 8], ebp
mov dword [esp], eax
add edx, edi
mov dword [esp + 4], edx
call fcn.6d7655d0
mov ebp, dword [edi + 0x14]
test ebp, ebp
jne 0x6d6c3791
mov eax, dword [esi]
lea edx, [eax - 1]
xor eax, eax
test edx, edx
mov dword [esi], edx
jne 0x6d6c3751
mov dword [esp + 0x3c], eax
mov dword [esp], esi
call dword [0x6d782918]
mov eax, dword [esp + 0x3c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [eax + 0x28]
lea ebp, [edi + ecx]
mov dword [esp + 0x40], ecx
cmp byte [ebp], 1
je 0x6d6c37d0
jbe 0x6d6c3665
mov eax, 0xffffffff
jmp 0x6d6c3751
mov eax, ecx
mov ecx, dword [eax + 0x2c]
lea edi, [eax + 0x40]
test ecx, ecx
jne 0x6d6c3760
jmp 0x6d6c3665
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x6d6c37a3
mov dword [esp], eax
call fcn.6d765608
mov ebp, dword [edi + 0x14]
mov dword [esp], ebp
call fcn.6d7655e0
test eax, eax
mov dword [ebx + 0x68], eax
je 0x6d6c3b6c
add edi, dword [edi + 0x10]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.6d7655d0
jmp 0x6d6c3733
movzx edx, byte [ebp + 2]
lea ecx, [ebp + 4]
mov dword [esp + 0x54], ecx
mov ecx, edx
movzx edx, byte [ebp + 3]
shl ecx, 8
shl edx, 0x10
or edx, ecx
movzx ecx, byte [ebp + 1]
or edx, ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x48], edx
mov dword [esp + 0x58], ecx
add ecx, edi
test edx, edx
mov dword [esp + 0x50], ecx
lea ecx, [edx - 1]
mov dword [esp + 0x44], ecx
je 0x6d6c3665
mov ecx, dword [esp + 0x40]
add ecx, 0x44
mov dword [esp + 0x5c], ecx
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x4c], edx
lea edx, [ecx + 0x40]
add ecx, 0x44
mov dword [esp + 0x58], edx
add edx, eax
cmp dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
setge byte [esp + 0x5c]
add ecx, 0x48
cmp dword [esp + 0x58], ecx
setge cl
or cl, byte [esp + 0x5c]
mov byte [esp + 0x40], cl
mov ecx, dword [esp + 0x4c]
or ecx, edx
and ecx, 3
sete cl
test byte [esp + 0x40], cl
je 0x6d6c3968
mov ecx, dword [esp + 0x48]
cmp ecx, 6
jbe 0x6d6c3968
cmp dword [esp + 0x44], 2
jbe 0x6d6c38c5
lea ebp, [ecx - 4]
mov dword [esp + 0x58], esi
xor ecx, ecx
shr ebp, 2
add ebp, 1
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x4c]
mov esi, dword [edx + ecx*4]
xor esi, dword [ebp + ecx*4]
mov dword [edx + ecx*4], esi
add ecx, 1
cmp ecx, dword [esp + 0x40]
jb 0x6d6c3891
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x58]
shl ebp, 2
add dword [esp + 0x54], ebp
add dword [esp + 0x50], ebp
sub dword [esp + 0x44], ebp
cmp ebp, dword [esp + 0x48]
je 0x6d6c3665
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
movzx edx, byte [ecx]
xor byte [ebp], dl
mov edx, dword [esp + 0x44]
test edx, edx
je 0x6d6c3665
movzx edx, byte [ecx + 1]
xor byte [ebp + 1], dl
cmp dword [esp + 0x44], 1
je 0x6d6c3665
movzx edx, byte [ecx + 2]
xor byte [ebp + 2], dl
jmp 0x6d6c3665
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x6d6c3b23
movzx eax, byte [eax]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6d6c3b7e
mov edx, 4
mov eax, ebx
call fcn.6d6c1410
cmp esi, 1
je 0x6d6c3b16
mov edx, dword [0x6d7826bc]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x29ea
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], str._s___d:_d_
mov dword [esp], edx
call dword [0x6d782674]
mov eax, 0xffffffff
jmp 0x6d6c3751
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x50]
xor edx, edx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], ebx
lea esi, [esi]
movzx ebx, byte [ebp + edx + 4]
xor byte [ecx + edx], bl
add edx, 1
cmp eax, edx
jne 0x6d6c3980
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
jmp 0x6d6c3665
test ebp, ebp
je 0x6d6c3af4
movzx eax, byte [ebp]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6d6c3b7e
mov edx, 4
mov eax, ebx
call fcn.6d6c1410
cmp esi, 1
je 0x6d6c3ada
mov edx, dword [0x6d7826bc]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x2a08
jmp 0x6d6c3941
test ebp, ebp
je 0x6d6c3b05
movzx eax, byte [ebp]
shr al, 2
mov esi, eax
and esi, 3
cmp esi, 2
je 0x6d6c3b7e
mov edx, 4
mov eax, ebx
call fcn.6d6c1410
cmp esi, 1
je 0x6d6c3ae7
mov edx, dword [0x6d7826bc]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x2a04
jmp 0x6d6c3941
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x6d6c3b4e
movzx ebx, byte [edx]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x6d6c3b7e
mov dword [esp], eax
call fcn.6d6dd700
cmp ebx, 1
je 0x6d6c3b34
mov edx, dword [0x6d7826bc]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x29fc
jmp 0x6d6c3941
test ebp, ebp
je 0x6d6c3b5d
movzx ebx, byte [ebp]
shr bl, 2
and ebx, 3
cmp ebx, 2
je 0x6d6c3b7e
mov dword [esp], 1
call fcn.6d6dd700
cmp ebx, 1
je 0x6d6c3b41
mov edx, dword [0x6d7826bc]
mov edx, dword [edx]
mov dword [esp + 0x10], 0x29ff
jmp 0x6d6c3941
mov esi, dword [0x6d782a44]
call esi
mov ecx, 0x10028dd
mov edx, dword [eax]
mov eax, ebx
call fcn.6d6c7850
call esi
mov dword [eax], 0
mov eax, 0xffffffff
jmp 0x6d6c3751
mov edx, dword [0x6d7826c4]
mov edx, dword [edx]
jmp 0x6d6c39d6
mov edx, dword [0x6d7826c4]
mov edx, dword [edx]
jmp 0x6d6c3a1d
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6d6c39b0
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6d6c39f7
mov edx, dword [0x6d7826c4]
mov edx, dword [edx]
jmp 0x6d6c3939
movzx eax, byte [ebx + 8]
shr al, 5
mov esi, eax
and esi, 3
jmp 0x6d6c3913
mov edx, dword [0x6d7826c4]
mov edx, dword [edx]
jmp 0x6d6c3a60
mov edx, dword [0x6d7826c4]
mov edx, dword [edx]
jmp 0x6d6c3aa5
movzx ebx, byte [ebx + 8]
shr bl, 5
and ebx, 3
jmp 0x6d6c3a3e
movzx ebx, byte [ebx + 8]
shr bl, 5
and ebx, 3
jmp 0x6d6c3a7f
mov esi, dword [0x6d782a44]
call esi
mov ecx, 0x10028ce
jmp 0x6d6c3abf
mov dword [esp], 1
call fcn.6d765628
lea esi, [esi]