Function at 0x7cb5e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x7cb62a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x7cb62a
jns 0x7cb5f6
js 0x7cb5f6
call 0x17cb637
add byte [ebx + 0xe], dh
cmp eax, 0x10000
jae 0x7cb60b
jne 0x7cb602
je 0x7cb602
jmp 0x7cb653
push eax
push ecx
call fcn.007cb460
jmp 0x7cb61a
cmp dword [esp + 8], 0x1740375
push eax
push ecx
call fcn.007c2cd0
add esp, 8
test eax, eax
je 0x7cb635
jle 0x7cb626
jg 0x7cb626
call fcn.00857887
pop ebp
ret 8
push 0x7bb648
call dword [fcn.009c6004]
xor eax, eax
pop ebp
ret 8
lcall 0x9aa8, 0x3d8b007b
jnp 0x7cb65c
test eax, eax
je 0x7cb671
mov ecx, dword [0x7b9a94]
mov eax, dword [0x7b9a68]
xor edi, ecx
xor edi, eax
jmp 0x7cb677
xor edi, 0xed8375b6
jne 0x7cb67c
je 0x7cb67c
jb 0x7cb6f2
jne 0x7cb681
add esi, dword [ecx + eax + 0x74]
je 0x7cb681
je 0x7cb623
mov eax, dword [0x7b9ac0]
not edi
mov dword [0x7bede8], eax
mov dword [0x7bede0], edi
rcr byte [edx - 0x2808ff85], 0xa3
call 0x897d327b
cmp eax, 0x7bede0
call fcn.007d49fc
cmp dword [esp + 4], 0x1770376
jl 0x7cb6a5
jge 0x7cb6a5
fiadd word [ebp - 0x74e08b40]
or eax, 0x7bf0c4
test eax, eax
je 0x7cb6c8
mov ecx, dword [0x7bf0c4]
mov eax, 1
test ecx, ecx
jne 0x7cba1d
pop edi
pop esi
mov dword [0x7bf0c4], eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 8], 0x17d037c
mov eax, dword [0x7b9a64]
test eax, eax
je 0x7cb9e8
lea ecx, [ebp - 0x24]
push ecx
call dword [0x9c6010]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x22]
mov eax, dword [ebp - 0x1e]
mov ecx, dword [0x7b9a90]
and esi, 0xffff
nop
lcall 0xffff, 0xe681007b
add byte [eax], al
and edx, 0xffff
shl esi, 8
or esi, edx
and eax, 0xffff
shl esi, 8
lea edx, [ebp - 0x14]
or esi, eax
mov dword [0x7bede0], edi
mov dword [0x7bedd8], ecx
mov dword [0x7beddc], 0xa
mov dword [0x7c02c4], edx
call fcn.007d4d7c
test eax, eax
je 0x7cb758
mov eax, dword [0x7bf0c4]
test eax, eax
jne 0x7cb74c
mov dword [0x7bf0c4], 6
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 0xc]
xor eax, eax
mov bl, byte [ebp + eax - 0x14]
xor bl, cl
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, 4
jb 0x7cb75d
mov cl, byte [ebp - 0xb]
mov eax, 4
mov bl, byte [ebp + eax - 0x14]
xor bl, cl
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, 8
jb 0x7cb775
mov al, byte [ebp - 0x14]
mov cl, byte [ebp - 0xf]
mov dl, byte [ebp - 0x12]
mov edi, dword [0x9c6014]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0xe]
mov byte [ebp - 0x14], cl
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0xe], dl
mov byte [ebp - 0x13], cl
mov byte [ebp - 0x10], al
call edi
and eax, 0xff
mov ecx, 0xff
cdq
idiv ecx
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 1], dl
mov byte [ebp - 0xc], dl
call edi
add al, 0x3c
mov ecx, 0xff
and eax, 0xff
cdq
idiv ecx
cmp esi, ebx
mov byte [ebp - 2], dl
mov byte [ebp - 0xb], dl
jae 0x7cb801
mov eax, dword [0x7bf0c4]
test eax, eax
jne 0x7cb7f5
mov dword [0x7bf0c4], 2
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x7b9a64]
mov edi, 3
mov dword [ebp - 0x10], esi
lea eax, [edx - 1]
cmp eax, edi
ja case.default.0x7cb81a
jmp dword [eax*4 + 0x7cba24]
cmp word [ebp - 0x14], 0x1234
jne case.0x7cb81a.1
mov ax, word [ebp - 0x12]
lea ecx, [ebp - 0x24]
push ecx
mov word [ebp - 8], ax
call dword [0x9c6010]
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0x1e]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x22]
and esi, 0xffff
and edx, 0xffff
add esi, edx
and ecx, 0xffff
and edi, 0xffff
cmp esi, 0x1e
jbe 0x7cb887
mov eax, esi
xor edx, edx
mov ebx, 0x1e
div ebx
mov eax, 0x88888889
mov ebx, edx
sub esi, ebx
mul esi
shr edx, 4
add edi, edx
mov esi, ebx
cmp edi, 0xc
jbe 0x7cb8a9
mov eax, edi
xor edx, edx
mov ebx, 0xc
div ebx
mov eax, 0xaaaaaaab
mov ebx, edx
sub edi, ebx
mul edi
shr edx, 3
add ecx, edx
mov edi, ebx
shl ecx, 8
or ecx, edi
shl ecx, 8
or ecx, esi
mov dword [ebp - 0x14], ecx
jmp case.default.0x7cb81a
mov eax, dword [ebp - 0x14]
sub eax, 0xa
test eax, eax
jg 0x7cb8de
mov eax, dword [0x7bf0c4]
test eax, eax
jne case.default.0x7cb81a
mov dword [0x7bf0c4], 5
jmp case.default.0x7cb81a
mov dword [ebp - 0x14], eax
jmp case.default.0x7cb81a
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
call dword [0x9c6010]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x22]
mov edx, dword [ebp - 0x1e]
and eax, 0xffff
shl eax, 8
and ecx, 0xffff
and edx, 0xffff
or eax, ecx
shl eax, 8
or eax, edx
cmp eax, esi
jb case.default.0x7cb81a
mov eax, dword [0x7bf0c4]
test eax, eax
jne case.default.0x7cb81a
mov dword [0x7bf0c4], edi
jmp case.default.0x7cb81a
mov cx, word [ebp - 0x12]
mov ax, word [ebp - 0x14]
mov word [ebp - 8], cx
mov esi, dword [ebp - 8]
inc esi
mov cx, si
mov dword [ebp - 8], esi
cmp cx, ax
jbe 0x7cb957
mov eax, dword [0x7bf0c4]
test eax, eax
jne 0x7cb957
mov dword [0x7bf0c4], 4
mov word [ebp - 0x12], cx
mov al, byte [ebp - 0x14]
mov dl, byte [ebp - 0xf]
mov cl, byte [ebp - 0x12]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0xe]
mov byte [ebp - 0x14], dl
mov dl, byte [ebp - 0x10]
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0xe], cl
mov byte [ebp - 0x10], al
mov byte [ebp - 0x13], dl
xor eax, eax
mov cl, byte [ebp - 1]
mov bl, byte [ebp + eax - 0x14]
xor bl, cl
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, 4
jb 0x7cb981
mov cl, byte [ebp - 2]
mov eax, 4
mov bl, byte [ebp + eax - 0x14]
xor bl, cl
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, 8
jb 0x7cb99c
call fcn.007d462f
test eax, eax
mov eax, dword [0x7bf0c4]
je 0x7cb9d8
test eax, eax
jne 0x7cb74c
pop edi
pop esi
mov dword [0x7bf0c4], 7
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x7cba1b
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x7b9aac]
test eax, eax
je 0x7cba1b
lea edx, [ebp - 0x14]
mov dword [0x7bedd8], 0
mov dword [0x7beddc], 4
mov dword [0x7c02c4], edx
call fcn.007d4d7c
test eax, eax
jne 0x7cb739
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret