Function at 0x10042580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1029912c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [0x102a940c]
push edi
push str.NtQueryInformationProcess
push str.NTDLL.DLL
mov edi, edx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push 0
push 0x1fffff
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test ebx, ebx
je 0x10042624
test esi, esi
je 0x10042624
lea eax, [esp + 0x10]
push eax
push 0x18
lea eax, [esp + 0x1c]
push eax
push 0
push esi
call ebx
test eax, eax
js 0x100425f8
cmp dword [esp + 0x10], 0x18
jne 0x100425f8
mov bl, 1
jmp 0x100425fa
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x10042624
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10042627
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
push eax
lea eax, [esp + 0x18]
push eax
call fcn.101b1ce0
mov esi, eax
add esp, 8
cmp edi, esi
je 0x10042663
mov ecx, edi
call fcn.10002520
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [esp + 0x28]
cmp edx, 0x10
jb 0x10042699
mov ecx, dword [esp + 0x14]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004268f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100427f5
push edx
push ecx
call fcn.101d50ac
add esp, 8
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x100426a3
mov edx, dword [edi]
mov eax, 9
mov dword [esp + 0x18], 0x2d2e3e1a
mov dword [esp + 0x14], eax
xor ecx, ecx
mov dword [esp + 0x1c], 0x282a6020
mov dword [esp + 0x20], 0x5234
lea eax, [ecx + 0x49]
xor byte [esp + ecx + 0x18], al
inc ecx
mov eax, dword [esp + 0x14]
cmp ecx, eax
jb 0x100426c6
mov byte [esp + eax + 0x18], 0
lea eax, [esp + 0x18]
push edx
push eax
call fcn.101f087a
add esp, 8
test eax, eax
jne 0x100426ff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x10042709
mov edx, dword [edi]
movaps xmm0, xmmword [0x1027a790]
xor ecx, ecx
mov eax, 0x10
mov byte [esp + 0x28], 0x59
mov dword [esp + 0x14], eax
movups xmmword [esp + 0x18], xmm0
mov word [esp + 0x29], cx
mov byte [esp + 0x2b], cl
nop
lea eax, [ecx + 0x49]
xor byte [esp + ecx + 0x18], al
inc ecx
mov eax, dword [esp + 0x14]
cmp ecx, eax
jb 0x10042730
mov byte [esp + eax + 0x18], 0
lea eax, [esp + 0x18]
push edx
push eax
call fcn.101f087a
add esp, 8
test eax, eax
je 0x100427de
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10042765
mov eax, dword [edi]
movaps xmm0, xmmword [str.:_.___9_31_3W]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0xe
movups xmmword [esp + 0x1c], xmm0
call fcn.10002460
push eax
call fcn.101f087a
add esp, 8
test eax, eax
je 0x100427de
cmp dword [edi + 0x14], 0x10
jb 0x10042798
mov edi, dword [edi]
movaps xmm0, xmmword [0x1027a510]
lea ecx, [esp + 0x14]
push edi
mov dword [esp + 0x18], 0xc
movups xmmword [esp + 0x1c], xmm0
call fcn.10002460
push eax
call fcn.101f087a
add esp, 8
test eax, eax
jne 0x1004260d
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
call fcn.101f0b28
int3