Function at 0x4b8850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, ecx
nop
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4bb280
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
call fcn.004ba850
movzx ecx, byte [0x889ae0]
add eax, dword [0x843790]
or ecx, dword [0x843780]
add ecx, eax
add ecx, 0xffff1268
call dword [0x834360]
call ecx
mov ebx, eax
mov edi, eax
xor edi, 0xbc0a365f
mov dword [ebp - 0x20], eax
xor ebx, 0xbc0a3653
mov eax, esi
mov esi, dword [esi + ebx]
mov dword [ebp - 0x40], eax
mov eax, dword [eax + edi]
sub esi, eax
nop
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
je 0x4b8971
mov edi, dword [ebp - 0x20]
xor edi, 0xbc0a365c
mov ecx, esi
and ecx, edi
mov dword [ebp - 0x24], edi
je 0x4b8905
mov edx, ecx
mov ebx, dword [ebp - 0x2c]
nop dword [eax]
nop
mov byte [eax], 0
inc eax
dec edx
jne 0x4b88f0
mov edx, esi
sub edx, ecx
cmp esi, ebx
mov edi, dword [ebp - 0x28]
jae 0x4b8911
jmp 0x4b8971
mov edx, esi
mov ebx, dword [ebp - 0x2c]
cmp esi, ebx
mov edi, dword [ebp - 0x28]
jb 0x4b8971
mov ecx, dword [ebp - 0x20]
mov esi, ecx
xor esi, 0xbc0a3658
mov dword [ebp - 0x38], esi
mov esi, ecx
xor esi, 0xbc0a365e
mov dword [ebp - 0x34], esi
mov esi, ecx
xor esi, 0xbc0a365d
mov dword [ebp - 0x30], esi
xor ecx, 0x43f5c9a3
nop dword [eax + eax]
mov byte [eax], 0
mov byte [eax + 1], 0
mov byte [eax + 2], 0
mov esi, dword [ebp - 0x38]
mov byte [eax + esi], 0
mov byte [eax + edi], 0
mov esi, dword [ebp - 0x34]
mov byte [eax + esi], 0
mov esi, dword [ebp - 0x30]
mov byte [eax + esi], 0
mov esi, dword [ebp - 0x24]
mov byte [eax + esi], 0
add eax, ebx
add edx, ecx
jne 0x4b8940
nop
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + ebx]
mov esi, dword [eax + edi]
sub edx, esi
je 0x4b8a33
mov eax, dword [ebp - 0x20]
xor eax, 0xbc0a365c
mov ecx, edx
mov dword [ebp - 0x30], eax
and ecx, eax
mov dword [ebp - 0x24], edx
je 0x4b89b4
xor edi, edi
nop dword [eax]
dec edx
mov byte [esi], 0
inc esi
mov eax, edi
xor eax, 1
and edi, 1
lea edi, [eax + edi*2]
cmp edi, ecx
jne 0x4b89a0
cmp dword [ebp - 0x24], ebx
mov edi, dword [ebp - 0x30]
jb 0x4b8a29
mov ecx, ebx
mov eax, dword [ebp - 0x20]
mov ebx, eax
xor ebx, 0xbc0a3658
mov dword [ebp - 0x24], ebx
mov ebx, eax
xor ebx, 0xbc0a365e
mov dword [ebp - 0x38], ebx
mov ebx, eax
xor ebx, 0xbc0a365d
mov dword [ebp - 0x34], ebx
xor eax, 0x43f5c9a3
nop word [eax + eax]
mov byte [esi], 0
mov byte [esi + 1], 0
mov byte [esi + 2], 0
mov ebx, dword [ebp - 0x24]
mov byte [esi + ebx], 0
mov ebx, edi
mov edi, ecx
mov ecx, dword [ebp - 0x28]
mov byte [esi + ecx], 0
mov ecx, edi
mov edi, ebx
mov ebx, dword [ebp - 0x38]
mov byte [esi + ebx], 0
mov ebx, dword [ebp - 0x34]
mov byte [esi + ebx], 0
mov byte [esi + edi], 0
add esi, ecx
add edx, eax
jne 0x4b89f0
nop
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x28]
mov esi, dword [eax + edi]
mov ebx, dword [ebp - 0x20]
test esi, esi
je 0x4b8ba5
mov edx, ebx
xor edx, 0xbc0a3657
xor eax, eax
cmp byte [0x889ae0], 0
nop
mov dword [ebp - 0x48], edx
jne 0x4b8b7d
nop
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + edx]
sub edx, esi
je 0x4b8b7d
xor ebx, 0xbc0a365c
mov eax, edx
mov ecx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x44], ebx
and eax, ebx
je 0x4b8abb
mov edi, dword [ebp - 0x20]
mov ecx, edi
xor ecx, 0x8a9121d6
xor edi, 0x756ede29
add edi, ecx
mov dword [ebp - 0x24], edi
xor ebx, ebx
mov edx, dword [ebp - 0x3c]
mov ecx, esi
nop dword [eax]
add edx, dword [ebp - 0x24]
nop
mov byte [ecx], 0
inc ecx
mov edi, eax
mov eax, ebx
xor eax, 1
and ebx, 1
lea ebx, [eax + ebx*2]
mov eax, edi
cmp ebx, edi
jne 0x4b8aa0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x44]
jb 0x4b8b32
mov eax, dword [ebp - 0x20]
mov edi, eax
xor edi, 0xbc0a3658
mov dword [ebp - 0x24], edi
mov edi, eax
xor edi, 0xbc0a365e
mov dword [ebp - 0x38], edi
mov edi, eax
xor edi, 0xbc0a365d
mov dword [ebp - 0x34], edi
xor eax, 0x43f5c9a3
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x2c]
nop word cs:[eax + eax]
mov byte [ecx], 0
mov byte [ecx + 1], 0
mov byte [ecx + 2], 0
mov eax, dword [ebp - 0x24]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x28]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x38]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x34]
mov byte [ecx + eax], 0
mov byte [ecx + ebx], 0
add ecx, edi
add edx, dword [ebp - 0x30]
jne 0x4b8b00
mov edx, dword [ebp - 0x20]
mov eax, edx
xor eax, 0xbc0a39a4
mov ecx, dword [ebp - 0x3c]
cmp ecx, eax
jbe 0x4b8b78
mov eax, edx
xor eax, 0x43f5c9a7
mov ecx, dword [esi + eax]
cmp byte [0x889b68], 0
nop
mov edi, dword [ebp - 0x28]
jne 0x4b8b69
add esi, eax
sub esi, ecx
mov eax, edx
xor eax, 0xbc0a367b
cmp esi, eax
jae 0x4b8bb7
xor edx, 0xbc0a3678
mov eax, dword [ebp - 0x3c]
add eax, edx
mov esi, ecx
jmp 0x4b8b7d
mov eax, ecx
mov edi, dword [ebp - 0x28]
push eax
push esi
call fcn.0071996d
add esp, 8
mov eax, dword [ebp - 0x40]
mov dword [eax + edi], 0
mov ecx, dword [ebp - 0x2c]
mov dword [eax + ecx], 0
mov ecx, dword [ebp - 0x48]
mov dword [eax + ecx], 0
nop
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
nop
mov dword [ebp - 0x10], 0
call fcn.006fce21
nop word cs:[eax + eax]
push ebp
sub esp, 8
add ebp, 0xc
call fcn.007311e0
int3