Function at 0x10042060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096f28
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100be084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov esi, dword [edx + 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
lea eax, [esi + 1]
cmp eax, ecx
jbe 0x100420a0
xor cl, cl
jmp 0x100420a6
mov eax, dword [edx + 0x10]
mov cl, byte [esi + eax]
lea eax, [esi + 1]
mov dword [edx + 8], eax
movzx eax, cl
sub eax, 0
je 0x10042200
sub eax, 1
jne 0x100422df
mov cl, 0x70
mov dword [ebp - 0x3c], 0x41f3c70
mov dword [ebp - 0x38], 0x9021504
mov dword [ebp - 0x34], 0x1e150635
mov word [ebp - 0x30], 4
nop
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x100420ef
mov cl, byte [ebp - 0x3c]
jmp 0x100420e0
cmp byte [ebp - 0x3b], 0
mov byte [ebp - 0x2f], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jne 0x1004210f
xor ecx, ecx
jmp 0x1004211e
lea ecx, [ebp - 0x3b]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042115
sub ecx, edx
push ecx
lea eax, [ebp - 0x3b]
push eax
lea ecx, [ebp - 0x70]
call fcn.100055d0
mov dword [ebp - 4], 3
xor ecx, ecx
movaps xmm0, xmmword [0x100b2730]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0x653c2929
mov dword [ebp - 0x44], 0x2b2c2a2f
mov dword [ebp - 0x40], 0x6b2120
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x1a
jb 0x10042154
cmp byte [ebp - 0x57], 0
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x10042181
xor ecx, ecx
jmp 0x10042190
lea ecx, [ebp - 0x57]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042187
sub ecx, edx
push ecx
lea eax, [ebp - 0x57]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100055d0
push 0
push ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x70]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x2c]
push eax
push eax
call dword [0x100b0960]
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x100421d5
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10005480
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x100422df
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
jmp 0x100422da
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, edx
call fcn.1000e450
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100422ca
cmp eax, 0xff
ja 0x100422ca
mov cl, 0x4d
mov dword [ebp - 0x3c], 0x3922014d
mov dword [ebp - 0x38], 0x343f2839
xor eax, eax
mov dword [ebp - 0x34], 0x23283b08
mov word [ebp - 0x30], 0x39
nop dword [eax]
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x1004226f
mov cl, byte [ebp - 0x3c]
jmp 0x10042260
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2f], 0
push eax
lea ecx, [ebp - 0x54]
call fcn.100056d0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.100056d0
push 0
push ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x54]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x70]
push eax
push eax
call dword [0x100b0960]
lea ecx, [ebp - 0x70]
call fcn.10005060
lea ecx, [ebp - 0x54]
call fcn.10005060
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x100422df
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10005480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1005cea0
mov esp, ebp
pop ebp
ret 4