Function at 0x635e70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x24
call fcn.0066af60
push ebx
mov ebx, dword [esp + 0x38]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp + 0x174]
mov edx, dword [ebp + 0x160]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x164]
mov dword [esp + 0x24], eax
mov eax, ebx
add eax, dword [ebp + 0x38]
mov dword [esp + 0x28], edx
adc ecx, dword [ebp + 0x3c]
cmp ecx, 0xf
ja 0x6360bc
jb 0x635ec0
cmp eax, 0xffffffe0
ja 0x6360bc
cmp dword [ebp + 0x16c], 0
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x40]
mov dword [ebp + 0x3c], ecx
lea ecx, [ebp + 0x60]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
je 0x635ef3
push ecx
push eax
call edx
add esp, 8
mov dword [ebp + 0x16c], 0
lea eax, [ebp + 0x40]
jmp 0x635efb
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [ebp + 0x168]
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], esi
bswap ecx
mov dword [esp + 0x14], ecx
test edi, edi
je 0x635f7d
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], edx
test ebx, ebx
je 0x635f63
mov cl, byte [edi + ebp + 0x10]
lea eax, [ebp + 0x40]
xor cl, byte [esi]
dec ebx
mov byte [edx], cl
inc esi
xor byte [eax + edi], cl
inc edx
inc edi
mov dword [esp + 0x1c], eax
and edi, 0xf
mov dword [esp + 0x44], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], edi
jne 0x635f28
mov ecx, eax
lea eax, [ebp + 0x60]
push eax
push ecx
call dword [esp + 0x38]
add esp, 8
jmp 0x635f85
mov ecx, dword [esp + 0x1c]
test edi, edi
jne 0x6360ac
lea eax, [ebp + 0x60]
push eax
push ecx
call dword [esp + 0x38]
add esp, 8
jmp 0x635f85
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x48]
cmp ebx, 0xc00
jb 0x636001
mov edi, dword [esp + 0x44]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x1c], edx
push ebp
push dword [esp + 0x28]
push 0xc0
push edi
push esi
call ecx
mov eax, dword [esp + 0x28]
push 0xc00
push edi
push dword [esp + 0x3c]
add eax, 0xc0
push dword [esp + 0x38]
mov dword [esp + 0x38], eax
bswap eax
mov dword [ebp + 0xc], eax
call dword [esp + 0x50]
mov ecx, dword [esp + 0x6c]
add esp, 0x24
add edi, 0xc00
add esi, 0xc00
sub ebx, 0xc00
sub dword [esp + 0x1c], 1
jne 0x635fa3
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x28], eax
je 0x636058
push ebp
push dword [esp + 0x28]
mov esi, eax
shr esi, 4
push esi
push dword [esp + 0x50]
push dword [esp + 0x20]
call ecx
mov eax, dword [esp + 0x28]
add eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
bswap eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
add esi, eax
push eax
push dword [esp + 0x5c]
sub ebx, eax
push dword [esp + 0x3c]
push dword [esp + 0x38]
call dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
add esp, 0x24
add dword [esp + 0x44], eax
test ebx, ebx
je 0x6360ac
push dword [esp + 0x24]
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x170]
push ebp
call eax
mov eax, dword [esp + 0x20]
add esp, 0xc
inc eax
bswap eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x44]
sub esi, eax
mov ebp, dword [esp + 0x18]
lea edx, [edi + eax]
nop word [eax + eax]
mov cl, byte [edi + ebp - 0x30]
lea eax, [edi + ebp]
xor cl, byte [esi + edx]
lea edx, [edx + 1]
mov byte [edx - 1], cl
inc edi
xor byte [eax], cl
sub ebx, 1
jne 0x636090
mov ebp, dword [esp + 0x38]
mov dword [ebp + 0x168], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret