Function at 0x4e0390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
je 0x4e03a9
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 8], 0
je 0x4e03b9
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4e06fb
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x4e06fb
cdq
and edx, 0x7f
push edi
lea edi, [edx + eax]
mov eax, dword [ebx + 4]
sar edi, 7
mov dword [ebp - 0x18], edi
sub eax, 0
je 0x4e06c4
sub eax, 1
je 0x4e0622
sub eax, 1
je 0x4e0402
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
mov esi, edi
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1c], eax
test edi, edi
jle 0x4e06ef
mov al, byte [ebp - 0x19]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0x1a]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x1b]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0x1d]
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0x1e]
mov byte [ebp - 0xb], al
mov al, byte [ebp - 0x1f]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0x20]
mov edi, dword [ebp + 0x14]
mov byte [ebp - 9], al
mov al, byte [ebp - 0x21]
mov byte [ebp - 8], al
mov al, byte [ebp - 0x22]
mov byte [ebp - 7], al
mov al, byte [ebp - 0x23]
mov byte [ebp - 6], al
mov al, byte [ebp - 0x24]
mov byte [ebp - 5], al
mov al, byte [ebp - 0x25]
mov byte [ebp - 4], al
mov al, byte [ebp - 0x26]
mov byte [ebp - 3], al
mov al, byte [ebp - 0x27]
mov byte [ebp - 2], al
mov al, byte [ebp - 0x28]
mov byte [ebp - 1], al
nop word [eax + eax]
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [ebp - 0x28]
lea eax, [ebp - 0x38]
push eax
push eax
push ebx
movups xmmword [ebp - 0x38], xmm0
call fcn.004e0ac0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov bl, al
and bl, 7
mov eax, eax
test eax, eax
jns 0x4e04be
add eax, 7
sar eax, 3
lea edx, [eax + edi]
mov cl, bl
mov al, byte [ebp - 0x38]
mov ah, byte [ebp - 1]
and al, 0x80
shr al, cl
add ah, ah
xor byte [edx], al
mov cl, byte [ebp - 2]
mov al, cl
mov dl, byte [edx]
shr al, 7
add cl, cl
or ah, al
mov byte [ebp - 1], ah
mov byte [ebp - 0x28], ah
mov ah, byte [ebp - 3]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 2], cl
mov byte [ebp - 0x27], cl
mov cl, byte [ebp - 4]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 3], ah
mov byte [ebp - 0x26], ah
mov ah, byte [ebp - 5]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 4], cl
mov byte [ebp - 0x25], cl
mov cl, byte [ebp - 6]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 5], ah
mov byte [ebp - 0x24], ah
mov ah, byte [ebp - 7]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 6], cl
mov byte [ebp - 0x23], cl
mov cl, byte [ebp - 8]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 7], ah
mov byte [ebp - 0x22], ah
mov ah, byte [ebp - 9]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 8], cl
mov byte [ebp - 0x21], cl
mov cl, byte [ebp - 0xa]
mov al, cl
shr al, 7
or ah, al
mov byte [ebp - 9], ah
add cl, cl
mov byte [ebp - 0x20], ah
mov ah, byte [ebp - 0xb]
mov al, ah
mov dh, byte [ebp - 0xf]
shr al, 7
add ah, ah
or cl, al
mov ch, byte [ebp - 0x10]
mov byte [ebp - 0xa], cl
mov byte [ebp - 0x1f], cl
mov cl, byte [ebp - 0xc]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov byte [ebp - 0xb], ah
mov byte [ebp - 0x1e], ah
mov ah, byte [ebp - 0xd]
mov al, ah
add ah, ah
shr al, 7
or cl, al
mov byte [ebp - 0xc], cl
mov byte [ebp - 0x1d], cl
mov cl, byte [ebp - 0xe]
mov al, cl
add cl, cl
shr al, 7
or ah, al
mov al, dh
shr al, 7
add dh, dh
or cl, al
mov byte [ebp - 0xd], ah
mov al, ch
mov byte [ebp - 0xe], cl
mov byte [ebp - 0x1b], cl
add ch, ch
shr al, 7
mov cl, 7
or dh, al
mov byte [ebp - 0x1c], ah
mov eax, dword [ebp - 0x14]
sub cl, bl
mov ebx, dword [ebp + 8]
inc eax
shr dl, cl
and dl, 1
mov byte [ebp - 0xf], dh
or ch, dl
mov byte [ebp - 0x1a], dh
mov byte [ebp - 0x10], ch
mov byte [ebp - 0x19], ch
mov dword [ebp - 0x14], eax
cmp eax, 0x80
jl 0x4e0497
dec esi
test esi, esi
jg 0x4e0490
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc]
xor eax, dword [esi]
push dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x10]
xor eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [esi + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x18]
xor eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.004e0ac0
lea eax, [edi - 1]
add esp, 0xc
add esi, 0x10
mov dword [ebp + 8], eax
test eax, eax
jle 0x4e06ef
mov edi, dword [ebp + 0x14]
add edi, 8
nop dword [eax]
mov eax, dword [edi - 8]
lea edi, [edi + 0x10]
xor eax, dword [esi]
mov dword [ebp - 0x38], eax
mov eax, dword [edi - 0x14]
xor eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 8]
xor eax, dword [edi - 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [edi - 0xc]
xor eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [edi - 8]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.004e0ac0
mov eax, dword [ebp + 8]
lea esi, [esi + 0x10]
dec eax
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jg 0x4e0670
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], edi
test edi, edi
jle 0x4e06ef
mov edi, dword [ebp + 0x14]
sub esi, edi
push edi
lea eax, [esi + edi]
push eax
push ebx
call fcn.004e0ac0
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
add edi, 0x10
mov dword [ebp + 8], eax
test eax, eax
jg 0x4e06d0
mov edi, dword [ebp - 0x18]
shl edi, 7
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret