Function at 0x10024940
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ed30
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp word [ebx + 8], 0
mov dword [ebp - 4], 0
jbe 0x10024cfb
cmp word [esi + 0x28], 0
jg 0x10024cfb
movaps xmm0, xmmword [0x100a4ef0]
xor ecx, ecx
mov byte [esi + 0x20], 0
mov dword [esi + 0x24], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x23292942
mov dword [ebp - 0x18], 0x442929
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x16
jb 0x100249c0
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x2b]
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100249f0
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.100051e0
mov byte [ebp - 4], 1
mov edi, dword [esi + 8]
test edi, edi
je 0x10024a2a
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10024a2a
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call dword [0x100a31a0]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x10024a62
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10024a58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10024d41
push ecx
push edx
call fcn.10069bf1
add esp, 8
movaps xmm0, xmmword [0x100a4ac0]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x6066d16
mov dword [ebp - 0x18], 0x6b06060c
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x17
jb 0x10024a81
xorps xmm0, xmm0
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2b]
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024ab0
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.100051e0
mov byte [ebp - 4], 2
mov edi, dword [esi + 0xc]
test edi, edi
je 0x10024aea
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10024aea
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call dword [0x100a31a0]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x10024b22
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10024b18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10024d46
push ecx
push edx
call fcn.10069bf1
add esp, 8
cmp dword [ebx + 0x1c], 0
jne 0x10024c27
mov byte [ebp - 0x20], 9
mov cl, 0x60
xor cl, byte [ebp - 0x20]
mov al, 0x5a
xor al, byte [ebp - 0x20]
mov dl, 0x6c
mov byte [ebp - 0x1f], al
mov ch, dl
mov byte [ebp - 0x1e], cl
mov dh, 0x29
mov cl, byte [ebp - 0x20]
mov ah, 0x6e
mov byte [ebp - 0x2d], 0x4a
xor dl, cl
mov al, byte [ebp - 0x2d]
xor ch, cl
xor al, cl
mov byte [ebp - 0x2e], 0x65
mov byte [ebp - 0x19], al
xor dh, cl
mov al, byte [ebp - 0x2e]
xor ah, cl
xor al, cl
mov byte [ebp - 0x2f], 0x68
mov byte [ebp - 0x18], al
xorps xmm0, xmm0
mov al, byte [ebp - 0x2f]
xor al, cl
mov byte [ebp - 0x30], 0x67
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x30]
xor al, cl
mov byte [ebp - 0x1b], ch
lea ecx, [ebp - 0x1f]
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x1a], dh
lea edx, [ecx + 1]
mov byte [ebp - 0x1c], ah
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024bb2
sub ecx, edx
lea eax, [ebp - 0x1f]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.100051e0
mov byte [ebp - 4], 3
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10024bec
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10024bec
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call dword [0x100a31a0]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x10024ccc
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10024cc2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10024d4b
jmp 0x10024cc2
cmp dword [ebx + 0x20], 0xf
lea eax, [ebx + 0xc]
movaps xmm0, xmmword [0x100a5280]
cmova eax, dword [ebx + 0xc]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x61
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x10
jb 0x10024c46
sub esp, 0x18
mov byte [ebp - 0x17], 0
mov edx, esp
lea ecx, [ebp - 0x27]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024c76
sub ecx, edi
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.100051e0
lea eax, [ebp - 0x48]
push eax
call fcn.10004d80
add esp, 0x20
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 4
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10024bec
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10024bec
push dword [ebp - 0x4c]
jmp 0x10024be4
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov ecx, dword [esi]
push 2
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
call dword [0x100a31f4]
mov ax, word [ebx + 8]
mov ecx, esi
mov word [esi + 0x28], ax
mov byte [esi + 0x21], 1
call fcn.10024fd0
mov ecx, dword [ebx + 0x20]
cmp ecx, 0xf
jbe 0x10024d2b
mov edx, dword [ebx + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10024d21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10024d4b
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c
call fcn.1006f2c1
call fcn.1006f2c1
call fcn.1006f2c1
int3