Function at 0x4b9bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
cmp dword [esp + 0x44], 1
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
je 0x4b9c71
cmp edi, ebx
je 0x4b9cb4
cmp ebp, 0xf
jbe 0x4b9c2c
push eax
mov edx, dword [esp + 0x40]
push edx
push ebx
push edi
call fcn.004b8f60
xor edx, edx
add esp, 0x10
jmp 0x4b9c10
mov cl, byte [edx + esi]
xor byte [edx + ebx], cl
inc edx
cmp edx, 0xf
jbe 0x4b9c10
mov esi, edi
sub ebp, 0x10
add edi, 0x10
add ebx, 0x10
cmp ebp, 0xf
ja 0x4b9bef
test ebp, ebp
jne 0x4b9d5c
mov edx, dword [esi]
mov ebx, dword [esp + 0x40]
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov ebp, dword [esi + 8]
mov dword [ebx + 8], ebp
mov edi, dword [esi + 0xc]
mov dword [ebx + 0xc], edi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
push ecx
mov edx, dword [esp + 0x40]
push edx
push ebx
push ebx
call fcn.004b8990
mov esi, ebx
sub ebp, 0x10
add edi, 0x10
add ebx, 0x10
add esp, 0x10
cmp ebp, 0xf
jbe 0x4b9d02
xor edx, edx
lea esi, [esi]
mov al, byte [edx + esi]
xor al, byte [edx + edi]
mov byte [edx + ebx], al
inc edx
cmp edx, 0xf
jbe 0x4b9c80
jmp 0x4b9c56
mov edx, dword [esp]
mov dword [ecx], edx
mov eax, dword [esp + 4]
mov dword [ecx + 4], eax
mov esi, dword [esp + 8]
mov dword [ecx + 8], esi
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xc], edx
sub ebp, 0x10
add edi, 0x10
add ebx, 0x10
cmp ebp, 0xf
jbe 0x4b9d89
mov esi, dword [edi]
mov dword [esp], esi
mov edx, dword [edi + 4]
mov dword [esp + 4], edx
mov eax, dword [edi + 8]
mov dword [esp + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [esp + 0xc], ecx
push esi
mov esi, dword [esp + 0x40]
push esi
push ebx
push edi
call fcn.004b8f60
xor edx, edx
add esp, 0x10
lea esi, [esi]
mov ecx, dword [esp + 0x40]
mov al, byte [edx + ecx]
xor byte [edx + ebx], al
inc edx
cmp edx, 0xf
jbe 0x4b9cf0
jmp 0x4b9c91
test ebp, ebp
je 0x4b9d3a
xor edx, edx
jmp 0x4b9d14
mov cl, byte [edx + esi]
xor cl, byte [edx + edi]
mov byte [edx + ebx], cl
inc edx
cmp edx, ebp
jb 0x4b9d0a
mov edx, ebp
jmp 0x4b9d23
mov al, byte [edx + esi]
mov byte [edx + ebx], al
inc edx
cmp edx, 0xf
jbe 0x4b9d1c
push eax
mov esi, dword [esp + 0x40]
push esi
push ebx
push ebx
call fcn.004b8990
mov esi, ebx
add esp, 0x10
mov ebp, dword [esi]
mov edx, dword [esp + 0x40]
mov dword [edx], ebp
mov edi, dword [esi + 4]
mov dword [edx + 4], edi
mov ebx, dword [esi + 8]
mov dword [edx + 8], ebx
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
mov edx, dword [esp + 0x40]
push edx
lea eax, [esp + 8]
push eax
push edi
call fcn.004b8f60
xor edx, edx
add esp, 0x10
jmp 0x4b9d7e
mov cl, byte [edx + esi]
xor cl, byte [esp + edx]
mov byte [edx + ebx], cl
inc edx
cmp edx, ebp
jb 0x4b9d74
mov esi, edi
jmp 0x4b9c34
test ebp, ebp
je 0x4b9c4e
mov ecx, dword [edi]
mov dword [esp], ecx
mov edx, dword [edi + 4]
mov dword [esp + 4], edx
mov eax, dword [edi + 8]
mov dword [esp + 8], eax
mov esi, dword [edi + 0xc]
mov dword [esp + 0xc], esi
push edx
mov ecx, dword [esp + 0x40]
push ecx
push ebx
lea edi, [esp + 0xc]
push edi
call fcn.004b8f60
xor edx, edx
add esp, 0x10
jmp 0x4b9dce
mov edi, dword [esp + 0x40]
mov al, byte [edx + edi]
xor byte [edx + ebx], al
inc edx
cmp edx, ebp
jb 0x4b9dc3
mov edx, ebp
jmp 0x4b9ddd
mov cl, byte [esp + edx]
mov byte [edx + ebx], cl
inc edx
cmp edx, 0xf
jbe 0x4b9dd6
mov esi, dword [esp]
mov edx, dword [esp + 0x40]
mov dword [edx], esi
mov ebp, dword [esp + 4]
mov dword [edx + 4], ebp
mov ebx, dword [esp + 8]
mov dword [edx + 8], ebx
mov eax, dword [esp + 0xc]
mov dword [edx + 0xc], eax
jmp 0x4b9d54