Function at 0x84ffe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
lea edx, [eax + 0x100]
xor ebx, ebx
mov esi, ecx
sub esi, edx
cmovb esi, ebx
test eax, eax
je 0x850055
lea eax, [esp + 0x20]
push dword [ebp + 0xc]
push 0
push eax
mov edi, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, dword [ebp + 0x18]
mov edx, edi
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp esi, ecx
jae 0x8500f2
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov edi, ecx
sub edi, eax
mov dword [esp + 8], edi
cmp ebx, edx
cmovb edx, ebx
neg ecx
mov dword [esp + 0x10], ecx
xor edi, edi
xor ecx, ecx
xor ebx, ebx
nop dword [eax + eax]
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ebx
cmp edi, eax
mov edx, eax
mov eax, 0
cmovb edx, eax
mov edi, esi
xor edi, dword [esp + 8]
mov eax, edi
not eax
dec edi
and edi, eax
mov ebx, esi
xor ebx, dword [ebp + 0x14]
mov eax, dword [esp + 0x10]
add eax, esi
xor eax, esi
or eax, ebx
xor eax, esi
mov ebx, dword [ebp + 0x10]
movzx ebx, byte [ebx + esi]
sar eax, 0x1f
and eax, ebx
mov ebx, dword [esp + 4]
sub ebx, edx
sar edi, 0x1f
movzx ecx, cl
or ecx, edi
and eax, ecx
or byte [esp + ebx + 0x20], al
mov eax, dword [ebp + 0xc]
and edi, ebx
mov ebx, dword [esp + 0x14]
or ebx, edi
mov edi, dword [esp + 4]
neg edx
add edi, edx
inc edi
mov edx, dword [esp + 0xc]
inc esi
dec edx
jne 0x850080
cmp eax, 2
jb 0x85023e
mov ecx, eax
and ecx, 0xfffffffe
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 8], ecx
mov esi, 1
lea ecx, [esp + 0x20]
mov edx, eax
jmp 0x85013e
mov esi, dword [esp + 0x18]
add esi, esi
mov ebx, dword [esp + 0x14]
shr ebx, 1
mov ecx, dword [esp + 8]
mov eax, ecx
mov dword [esp + 8], edi
cmp esi, edx
jae 0x850244
mov edi, ecx
mov dword [esp + 0x14], ebx
mov eax, ebx
and al, 1
mov byte [esp + 0x10], al
dec al
mov byte [esp + 0xc], al
mov dword [esp + 0x18], esi
mov ebx, esi
mov esi, 0
cmp edx, 1
mov eax, edx
mov dword [esp + 4], ecx
jne 0x8501b0
test al, 1
mov edx, eax
je 0x850120
cmp ebx, edx
mov eax, edx
mov edi, 0
cmovb eax, edi
sub ebx, eax
mov eax, dword [esp + 4]
movzx ecx, byte [esp + 0xc]
and cl, byte [eax + esi]
cmp byte [esp + 0x10], 0
mov eax, dword [esp + 4]
movzx eax, byte [eax + ebx]
cmove eax, edi
mov edi, dword [esp + 4]
or al, cl
mov ecx, dword [esp + 8]
mov byte [ecx + esi], al
jmp 0x850120
mov ebx, dword [esp + 0x18]
xor esi, esi
jmp 0x8501fb
sub ebx, edx
test ch, ch
mov edx, dword [esp + 8]
mov byte [edx + esi], al
mov edi, dword [esp + 4]
movzx eax, byte [edi + ebx]
mov ecx, 0
cmove eax, ecx
movzx ecx, byte [edi + esi + 1]
and cl, byte [esp + 0xc]
or al, cl
mov byte [edx + esi + 1], al
add esi, 2
inc ebx
cmp dword [esp + 0x1c], esi
mov eax, dword [ebp + 0xc]
je 0x850168
mov edx, 0
cmp ebx, eax
jb 0x850206
mov edx, eax
mov eax, ebx
sub eax, edx
mov edi, dword [esp + 4]
movzx ecx, byte [edi + esi]
and cl, byte [esp + 0xc]
mov ch, byte [esp + 0x10]
test ch, ch
movzx eax, byte [edi + eax]
mov edi, 0
cmove eax, edi
or al, cl
neg edx
add ebx, edx
inc ebx
mov edx, 0
cmp ebx, dword [ebp + 0xc]
jb 0x8501c0
mov edx, dword [ebp + 0xc]
jmp 0x8501c0
mov edx, eax
lea eax, [esp + 0x20]
test edx, edx
je 0x850255
push edx
push eax
push dword [ebp + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret