Function at 0x42ecb0
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 0x42eed3
cmp dword [esp + 0x24], 0
mov esi, dword [esp + 0x28]
jne 0x42ed21
test esi, esi
jne 0x42eed3
cmp dword [esp + 0x1c], 0
je 0x42eecc
test edi, edi
je 0x42eecc
cmp dword [esp + 0x20], 0
je 0x42eecc
movsd xmm0, qword [0x4deeb8]
mov eax, ebx
movd xmm1, ebx
sub esp, 8
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x4df1b0]
divsd xmm0, xmm1
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
fstp qword [esp]
call fcn.004b8080
add esp, 8
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
call fcn.004b9241
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 0x42edbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x42eed8
mov esi, 1
mov dword [esp + 0x24], esi
cmp dword [esp + 0x28], esi
jb 0x42eec0
nop
mov esi, dword [ebp + 0x14]
push esi
push 0
push dword [esp + 0x24]
call fcn.004981d0
add esp, 0xc
xor ebx, ebx
test ebx, ebx
jne 0x42ee21
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
call fcn.00498370
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 0x42ee31
push esi
push dword [esp + 0x24]
push edi
call fcn.00498370
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 0x42edae
mov eax, dword [esp + 0x1c]
mov edx, esi
mov ecx, eax
test edx, edx
je 0x42ee75
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 0x42ee60
mov esi, dword [ebp + 0x14]
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, 0x1b39
jb 0x42ede4
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x28]
je 0x42ee9b
mov ebx, dword [ebp + 0x14]
push ebx
push eax
push dword [ebp + 0x24]
call fcn.00498370
jmp 0x42eeab
push dword [esp + 0x30]
push eax
push dword [ebp + 0x24]
call fcn.00498370
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 0x42edd0
mov dword [esp + 0x2c], 1
xor ebx, ebx
jmp 0x42eed8
mov ebx, 8
jmp 0x42eed8
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 0x42eef1
push eax
call esi
test edi, edi
je 0x42eef8
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42ef03
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