Function at 0x4b99a0
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 0x4b9a51
cmp edi, ebx
je 0x4b9a94
cmp ebp, 0xf
jbe 0x4b9a0c
push eax
mov edx, dword [esp + 0x40]
push edx
push ebx
push edi
call fcn.004b8d40
xor edx, edx
add esp, 0x10
jmp 0x4b99f0
mov cl, byte [edx + esi]
xor byte [edx + ebx], cl
inc edx
cmp edx, 0xf
jbe 0x4b99f0
mov esi, edi
sub ebp, 0x10
add edi, 0x10
add ebx, 0x10
cmp ebp, 0xf
ja 0x4b99cf
test ebp, ebp
jne 0x4b9b3c
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.004b8770
mov esi, ebx
sub ebp, 0x10
add edi, 0x10
add ebx, 0x10
add esp, 0x10
cmp ebp, 0xf
jbe 0x4b9ae2
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 0x4b9a60
jmp 0x4b9a36
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 0x4b9b69
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.004b8d40
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 0x4b9ad0
jmp 0x4b9a71
test ebp, ebp
je 0x4b9b1a
xor edx, edx
jmp 0x4b9af4
mov cl, byte [edx + esi]
xor cl, byte [edx + edi]
mov byte [edx + ebx], cl
inc edx
cmp edx, ebp
jb 0x4b9aea
mov edx, ebp
jmp 0x4b9b03
mov al, byte [edx + esi]
mov byte [edx + ebx], al
inc edx
cmp edx, 0xf
jbe 0x4b9afc
push eax
mov esi, dword [esp + 0x40]
push esi
push ebx
push ebx
call fcn.004b8770
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.004b8d40
xor edx, edx
add esp, 0x10
jmp 0x4b9b5e
mov cl, byte [edx + esi]
xor cl, byte [esp + edx]
mov byte [edx + ebx], cl
inc edx
cmp edx, ebp
jb 0x4b9b54
mov esi, edi
jmp 0x4b9a14
test ebp, ebp
je 0x4b9a2e
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.004b8d40
xor edx, edx
add esp, 0x10
jmp 0x4b9bae
mov edi, dword [esp + 0x40]
mov al, byte [edx + edi]
xor byte [edx + ebx], al
inc edx
cmp edx, ebp
jb 0x4b9ba3
mov edx, ebp
jmp 0x4b9bbd
mov cl, byte [esp + edx]
mov byte [edx + ebx], cl
inc edx
cmp edx, 0xf
jbe 0x4b9bb6
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 0x4b9b34