Function at 0x1004bb60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 0x18]
xor edx, edx
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x158]
mov ebx, dword [edi + 0x150]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x154]
mov dword [ebp - 0x20], eax
mov eax, ecx
add eax, dword [edi + 0x38]
mov dword [ebp - 0x1c], ebx
adc edx, dword [edi + 0x3c]
cmp edx, 0xf
ja 0x1004bde1
jb 0x1004bba7
cmp eax, 0xffffffe0
ja 0x1004bde1
cmp dword [edi + 0x164], 0
mov dword [edi + 0x38], eax
lea eax, [edi + 0x40]
mov dword [edi + 0x3c], edx
lea edx, [edi + 0x50]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x1004bbd6
push edx
push eax
call ebx
mov ecx, dword [ebp + 0x18]
add esp, 8
mov dword [edi + 0x164], 0
mov eax, dword [edi + 0x160]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x1004bc49
nop word [eax + eax]
test ecx, ecx
je 0x1004bc37
mov dl, byte [ebx]
lea ecx, [eax + edi]
mov al, byte [ecx + 0x10]
inc ebx
xor al, dl
mov dword [ebp - 8], ebx
mov byte [esi], al
inc esi
xor byte [ecx + 0x40], dl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
inc eax
dec ecx
and eax, 0xf
mov dword [ebp + 0x18], ecx
mov dword [ebp - 4], eax
jne 0x1004bbf0
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x40]
push eax
call dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
add esp, 8
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp + 0x18], ecx
jmp 0x1004bc4c
pop esi
mov dword [edi + 0x160], eax
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], ebx
mov eax, dword [edi + 0xc]
bswap eax
mov dword [ebp - 0xc], eax
cmp ecx, 0xc00
jb 0x1004bcf1
mov eax, 0xaaaaaaab
add edi, 0x10
mul ecx
mov dword [ebp - 0x1c], edi
shr edx, 0xb
mov dword [ebp - 0x18], edx
push 0xc00
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call dword [ebp - 0x20]
add esp, 0x10
mov dword [ebp - 0x14], 0xc0
nop dword [eax]
push dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
call dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add esp, 0xc
inc eax
mov dword [ebp - 0xc], eax
bswap eax
mov dword [edi + 0xc], eax
mov edi, ebx
mov ebx, dword [ebp + 8]
xor eax, eax
sub edi, esi
mov ecx, dword [ebx + eax + 0x10]
lea edx, [eax + esi]
xor ecx, dword [edi + edx]
add eax, 4
mov dword [edx], ecx
cmp eax, 0x10
jb 0x1004bcb3
mov ebx, dword [ebp - 8]
add esi, 0x10
mov edi, dword [ebp - 0x1c]
add ebx, 0x10
sub dword [ebp - 0x14], 1
mov dword [ebp - 8], ebx
jne 0x1004bc90
mov ecx, dword [ebp + 0x18]
sub ecx, 0xc00
sub dword [ebp - 0x18], 1
mov dword [ebp + 0x18], ecx
jne 0x1004bc73
mov edi, dword [ebp + 8]
mov eax, ecx
and eax, 0xfffffff0
je 0x1004bd74
push eax
push ebx
lea eax, [edi + 0x50]
push eax
lea eax, [edi + 0x40]
push eax
call dword [ebp - 0x20]
mov ecx, dword [ebp + 0x18]
add esp, 0x10
cmp ecx, 0x10
jb 0x1004bd74
lea eax, [edi + 0x10]
shr ecx, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
nop dword [eax]
push dword [ebp + 0xc]
push eax
push edi
call dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add esp, 0xc
inc eax
xor edx, edx
mov dword [ebp - 0xc], eax
bswap eax
mov dword [edi + 0xc], eax
mov edi, ebx
mov ebx, dword [ebp - 0x28]
sub edi, esi
mov eax, dword [ebx + edx]
lea ecx, [edx + esi]
xor eax, dword [edi + ecx]
add edx, 4
mov dword [ecx], eax
cmp edx, 0x10
jb 0x1004bd40
mov ebx, dword [ebp - 8]
add esi, 0x10
mov ecx, dword [ebp + 0x18]
add ebx, 0x10
mov edi, dword [ebp + 8]
sub ecx, 0x10
sub dword [ebp - 0x20], 1
mov dword [ebp - 8], ebx
mov dword [ebp + 0x18], ecx
lea eax, [edi + 0x10]
jne 0x1004bd20
test ecx, ecx
je 0x1004bdc9
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
lea eax, [edi + 0x10]
push eax
push edi
call dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sub ebx, esi
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp + 8]
inc eax
bswap eax
add edx, 0x40
mov dword [edi + 0xc], eax
lea edi, [ecx + esi]
add edx, ecx
mov esi, dword [ebp + 0x18]
add ecx, esi
mov dword [ebp - 4], ecx
nop word [eax + eax]
mov cl, byte [edi + ebx]
lea edx, [edx + 1]
mov al, byte [edx - 0x31]
lea edi, [edi + 1]
xor byte [edx - 1], cl
xor al, cl
mov byte [edi - 1], al
sub esi, 1
jne 0x1004bdb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
pop esi
pop edi
mov dword [eax + 0x160], ecx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret