Function at 0x10024980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1003f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x10024cd5
mov eax, dword [0x10041178]
mov eax, dword [eax + 0x1d]
test eax, eax
je 0x10024cd5
cmp dword [eax + 0x14dc], 0x8f
jne 0x10024acf
movaps xmm0, xmmword [0x1003beb0]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1003f8dc]
movups xmmword [ebp - 0x50], xmm0
mov byte [ebp - 0x10], 0x4c
movaps xmm0, xmmword [0x1003be60]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101122bc]
movups xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [0x1003b8f0]
movups xmmword [ebp - 0x30], xmm0
movaps xmm0, xmmword [0x1003be50]
movups xmmword [ebp - 0x20], xmm0
cmp eax, dword [ecx + 4]
jle 0x10024a4a
push 0x101122bc
call fcn.10031abc
add esp, 4
cmp dword [0x101122bc], 0xffffffff
jne 0x10024a4a
push 0x41
lea eax, [ebp - 0x50]
push eax
push 0x101123f8
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x10033e20
call fcn.10031ee1
add esp, 4
push 0x101122bc
call fcn.10031a72
add esp, 4
mov al, byte [0x10112438]
test al, al
je 0x10024ab2
movaps xmm2, xmmword [0x1003be00]
xor al, 0x4c
movups xmm0, xmmword [0x101123f8]
mov byte [0x10112438], al
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmm0, xmmword [0x10112408]
movups xmmword [0x101123f8], xmm1
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmm0, xmmword [0x10112418]
movups xmmword [0x10112408], xmm1
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmm0, xmmword [0x10112428]
movups xmmword [0x10112418], xmm1
pxor xmm2, xmm0
movups xmmword [0x10112428], xmm2
push esi
push 0x101123f8
call fcn.1002cfa0
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031912
mov esp, ebp
pop ebp
ret
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024ad2
sub ecx, edx
cmp ecx, 0x1e
jbe 0x10024bcc
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1003f8dc]
movaps xmm0, xmmword [str._t___vl]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x18], 0x2223206c
mov ecx, dword [eax + ecx*4]
movaps xmm0, xmmword [0x1003b880]
mov eax, dword [0x1011243c]
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x14], 0x622b
mov byte [ebp - 0x12], 0x4c
cmp eax, dword [ecx + 4]
jle 0x10024b6a
push 0x1011243c
call fcn.10031abc
add esp, 4
cmp dword [0x1011243c], 0xffffffff
jne 0x10024b6a
push 0x27
lea eax, [ebp - 0x38]
push eax
push 0x10112348
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x10033df0
call fcn.10031ee1
add esp, 4
push 0x1011243c
call fcn.10031a72
add esp, 4
cmp byte [0x1011236e], 0
je 0x10024baf
movaps xmm2, xmmword [0x1003be00]
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [eax + 0x10112348]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax + 0x10112348], xmm1
add eax, 0x10
cmp eax, 0x20
jb 0x10024b80
cmp eax, 0x27
jae 0x10024baf
xor byte [eax + 0x10112348], 0x4c
inc eax
cmp eax, 0x27
jb 0x10024ba2
push esi
push 0x10112348
call fcn.1002cfa0
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10031912
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1003fe14]
cmp ecx, 0x7a
jge 0x10024bff
mov eax, ecx
shl eax, 4
push 0x1d
sub eax, ecx
push esi
push 0x1e
lea eax, [eax*2 + 0x1003fe18]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
inc dword [0x1003fe14]
jmp 0x10024cba
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1003f8dc]
mov dword [ebp - 0x18], 0x23241f6c
mov dword [ebp - 0x14], 0x4c62383e
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10112440]
cmp eax, dword [ecx + 4]
jle 0x10024c74
push 0x10112440
call fcn.10031abc
add esp, 4
cmp dword [0x10112440], 0xffffffff
jne 0x10024c74
movaps xmm0, xmmword [0x1003b870]
movups xmmword [0x101122c0], xmm0
push 0x10033dd0
movq xmm0, qword [ebp - 0x18]
movq qword [0x101122d0], xmm0
call fcn.10031ee1
add esp, 4
push 0x10112440
call fcn.10031a72
add esp, 4
cmp byte [0x101122d7], 0
je 0x10024cad
movups xmm0, xmmword [0x101122c0]
mov eax, 0x10
movaps xmm1, xmmword [0x1003be00]
pxor xmm1, xmm0
movups xmmword [0x101122c0], xmm1
nop dword [eax + eax]
xor byte [eax + 0x101122c0], 0x4c
inc eax
cmp eax, 0x18
jb 0x10024ca0
push 0x101122c0
call fcn.1002cfa0
add esp, 4
mov ecx, dword [0x10041178]
mov eax, dword [0x1004117c]
push 0x10031710
push esi
mov ecx, dword [ecx + 0x1d]
add eax, 0x65ad0
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10031912
mov esp, ebp
pop ebp
ret