Function at 0x10042460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cef4b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x100f7040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
test esi, esi
je 0x1004291c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004291c
push 4
add esi, 0xfc
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004291c
cmp byte [esi], al
je 0x1004291c
cmp dword [ebp + 8], eax
je 0x1004291c
cmp dword [0x100faf5c], eax
je 0x1004291c
mov eax, dword [edi]
mov eax, dword [eax + 0x310]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x1004291c
mov ecx, 0xd78d1c
call fcn.1001e520
mov esi, eax
test esi, esi
je 0x10042522
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10042522
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x70], eax
jmp 0x10042530
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
add edi, 0xc
mov dword [ebp - 0x80], 0xc
mov dword [ebp - 0x6c], edi
nop dword [eax]
mov esi, dword [edi - 4]
test esi, esi
je 0x1004290c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004290c
push dword [ebp - 0x70]
mov eax, dword [0x100ec5f4]
mov ecx, esi
push dword [ebp - 0x74]
call eax
test al, al
je 0x1004290c
cmp byte [edi + 4], 0
je 0x1004290c
mov eax, dword [0x100faf5c]
lea ecx, [ebp - 0x9c]
mov edx, dword [edi]
push 0x2c
cmp dword [eax + 0x4c], edx
jae 0x10042711
call fcn.10019780
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x100425af
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100ef080]
push ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x51575d46
xor ecx, ecx
mov dword [ebp - 0x54], 0x11140e14
mov word [ebp - 0x50], 0x47
mov al, byte [ebp + ecx - 0x67]
xor al, byte [ebp - 0x68]
mov byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x18
jb 0x100425d1
sub esp, 0x1c
mov byte [ebp - 0x4f], 0
mov edx, esp
lea ecx, [ebp - 0x67]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042610
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x2c]
push eax
call fcn.1002a0f0
add esp, 0x24
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.10002f50
mov eax, dword [ebp - 0x9c]
push 8
push eax
mov dword [ebp - 0x9c], 0
call fcn.10089370
add esp, 8
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
cmova ecx, dword [ebp - 0x28]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042670
sub ecx, edx
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10089390
push esi
mov edi, eax
push 0
push edi
call fcn.1008c3c0
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
push dword [ebp - 0x4c]
cmova ecx, dword [ebp - 0x28]
lea esi, [edi + 0x20]
push ecx
push esi
call fcn.1008be40
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x78]
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
push edi
mov dword [eax], edi
call fcn.10089370
mov eax, dword [ebp - 0x7c]
add esp, 0x20
mov edi, dword [ebp + 8]
mov esi, dword [eax + 0x144]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100426e8
push esi
mov ecx, edi
call dword [0x100ec668]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.10089370
mov edi, dword [ebp - 0x6c]
jmp 0x10042909
call fcn.10019780
add esp, 4
mov dword [ebp - 4], 3
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1004272b
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100ee950]
xor eax, eax
push ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x2040e15
mov dword [ebp - 0x54], 0x42475d47
mov word [ebp - 0x50], 0x14
nop dword [eax]
mov cl, byte [ebp + eax - 0x67]
xor cl, byte [ebp - 0x68]
mov byte [ebp + eax - 0x67], cl
inc eax
cmp eax, 0x18
jb 0x10042750
sub esp, 0x1c
mov byte [ebp - 0x4f], 0
mov edx, esp
lea ecx, [ebp - 0x67]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042790
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x48]
push eax
call fcn.1002a0f0
add esp, 0x24
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
call fcn.10002f50
mov eax, dword [ebp - 0x9c]
push 8
push eax
mov dword [ebp - 0x9c], 0
call fcn.10089370
add esp, 8
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 0xf
cmova ecx, dword [ebp - 0x44]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100427f0
sub ecx, edx
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10089390
push esi
mov edi, eax
push 0
push edi
call fcn.1008c3c0
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
push dword [ebp - 0x4c]
cmova ecx, dword [ebp - 0x44]
lea esi, [edi + 0x20]
push ecx
push esi
call fcn.1008be40
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x78]
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
push edi
mov dword [eax], edi
call fcn.10089370
mov edi, dword [ebp - 0x6c]
add esp, 0x20
mov eax, dword [ebp - 0x7c]
mov ecx, dword [edi]
mov esi, dword [eax + 0x140]
cmp ecx, 0x3b9aca00
jl 0x10042863
mov esi, 0xff00fff6
jmp 0x100428cf
cmp ecx, 0x5f5e100
jl 0x10042872
mov esi, 0xffff00ea
jmp 0x100428cf
cmp ecx, 0x989680
jl 0x10042881
mov esi, 0xfffc9601
jmp 0x100428cf
cmp ecx, 0xf4240
jl 0x10042890
mov esi, 0xff00d939
jmp 0x100428cf
cmp ecx, 0x186a0
jge 0x100428cf
cmp ecx, 0x2710
jl 0x100428a7
mov esi, 0xff00fff6
jmp 0x100428cf
cmp ecx, 0x3e8
jl 0x100428b6
mov esi, 0xffff00ea
jmp 0x100428cf
cmp ecx, 0x64
jl 0x100428c2
mov esi, 0xfffc9601
jmp 0x100428cf
cmp ecx, 0xa
mov eax, 0xff00d939
cmovl eax, esi
mov esi, eax
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100428e8
mov ecx, dword [ebp + 8]
push esi
call dword [0x100ec668]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x48]
push 8
push eax
mov dword [ebp - 0x48], 0
call fcn.10089370
add esp, 8
add edi, 0xc
sub dword [ebp - 0x80], 1
mov dword [ebp - 0x6c], edi
jne 0x10042540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100892c0
mov esp, ebp
pop ebp
ret 8