Function at 0x42ece0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push ebx
push 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], 0
call esi
push ebx
push 0
mov dword [esp + 0x24], eax
call esi
mov ecx, dword [ebp + 0x1c]
add ecx, 4
mov dword [esp + 0x20], eax
cmp ecx, ebx
mov eax, ecx
cmovbe eax, ebx
push eax
push 0
call esi
cmp dword [ebp + 0x24], 0
xorps xmm0, xmm0
mov edi, eax
movlpd qword [esp + 0x38], xmm0
je 0x42ef03
cmp dword [esp + 0x24], 0
mov esi, dword [esp + 0x28]
jne 0x42ed51
test esi, esi
jne 0x42ef03
cmp dword [esp + 0x1c], 0
je 0x42eefc
test edi, edi
je 0x42eefc
cmp dword [esp + 0x20], 0
je 0x42eefc
movsd xmm0, qword [0x4dff58]
mov eax, ebx
movd xmm1, ebx
sub esp, 8
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x4e0250]
divsd xmm0, xmm1
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.004b83c0
add esp, 8
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
call fcn.004b9581
mov ecx, 1
mov dword [esp + 0x28], eax
sub ecx, eax
lea eax, [esp + 0x38]
imul ecx, ebx
push esi
push dword [esp + 0x28]
push eax
add ecx, 0x20
mov dword [esp + 0x3c], ecx
call dword [ebp + 8]
test eax, eax
jne 0x42edeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x42ef08
mov esi, 1
mov dword [esp + 0x24], esi
cmp dword [esp + 0x28], esi
jb 0x42eef0
nop
mov esi, dword [ebp + 0x14]
push esi
push 0
push dword [esp + 0x24]
call fcn.00498510
add esp, 0xc
xor ebx, ebx
test ebx, ebx
jne 0x42ee51
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
call fcn.004986b0
mov edx, dword [ebp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [edi + edx], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + edx + 1], al
mov eax, ecx
shr eax, 8
mov byte [edi + edx + 2], al
lea eax, [edx + 4]
mov byte [edi + edx + 3], cl
jmp 0x42ee61
push esi
push dword [esp + 0x24]
push edi
call fcn.004986b0
add esp, 0xc
mov eax, esi
push dword [esp + 0x20]
push eax
push edi
lea eax, [esp + 0x44]
push eax
call dword [ebp + 0xc]
test eax, eax
je 0x42edde
mov eax, dword [esp + 0x1c]
mov edx, esi
mov ecx, eax
test edx, edx
je 0x42eea5
mov esi, dword [esp + 0x20]
sub esi, eax
nop dword [eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x42ee90
mov esi, dword [ebp + 0x14]
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, 0x1b39
jb 0x42ee14
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x28]
je 0x42eecb
mov ebx, dword [ebp + 0x14]
push ebx
push eax
push dword [ebp + 0x24]
call fcn.004986b0
jmp 0x42eedb
push dword [esp + 0x30]
push eax
push dword [ebp + 0x24]
call fcn.004986b0
mov ebx, dword [ebp + 0x14]
add dword [ebp + 0x24], ebx
inc esi
add esp, 0xc
mov dword [esp + 0x24], esi
cmp esi, dword [esp + 0x28]
jbe 0x42ee00
mov dword [esp + 0x2c], 1
xor ebx, ebx
jmp 0x42ef08
mov ebx, 8
jmp 0x42ef08
mov ebx, 0xa0
lea eax, [esp + 0x38]
push eax
call dword [ebp + 0x10]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x42ef21
push eax
call esi
test edi, edi
je 0x42ef28
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42ef33
push eax
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret