Function at 0x1004d1d0
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 0x10080ddd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x10091040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], esi
cmp dword [esi + 0x144], 0xffffffff
je 0x1004d9a5
movaps xmm0, xmmword [0x100893b0]
xor ecx, ecx
mov dword [esi + 0x144], 0xffffffff
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0xa151018
mov byte [ebp - 0x50], 0
nop
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x13
jb 0x1004d240
xorps xmm0, xmm0
mov byte [ebp - 0x50], 0
lea ecx, [ebp - 0x63]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004d270
sub ecx, edx
lea eax, [ebp - 0x63]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.100024a0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x7c]
mov ecx, dword [ebp - 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1004d32a
push 4
push eax
call edi
test eax, eax
jne 0x1004d327
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
cmova ecx, dword [ebp - 0x44]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004d2c0
sub ecx, edx
mov dword [ebp - 0x20], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x30], 0xf
lea edx, [ebp - 0x44]
push dword [ebp - 0x20]
cmova edx, dword [ebp - 0x44]
lea esi, [edi + 0x20]
push edx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x20]
add esp, 0x1c
mov ecx, dword [ebp - 0x24]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10088b78]
push edi
call fcn.1007d11c
mov esi, dword [ebp - 0x48]
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, 0xf
jbe 0x1004d364
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004d35a
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004d9b9
push edx
push ecx
call fcn.1007d105
add esp, 8
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1004d382
push 4
push eax
call edi
test eax, eax
jne 0x1004d382
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
call dword [0x10088b80]
xor al, al
mov byte [ebp - 0x11], al
nop word [eax + eax]
movzx eax, al
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + eax*4 + 0x84]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1004d3b7
push 4
push eax
call edi
test eax, eax
jne 0x1004d3b7
mov ecx, dword [ebp - 0x24]
push eax
call dword [0x10088b1c]
xorps xmm0, xmm0
mov word [ebp - 0x18], 0x15
lea ecx, [ebp - 0x17]
mov byte [ebp - 0x17], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004d3e0
sub ecx, edx
lea eax, [ebp - 0x17]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.100024a0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x20], edx
lea eax, [eax + eax*4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + eax*4 + 0xb0]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1004d495
push 4
push eax
call edi
test eax, eax
jne 0x1004d492
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
cmova ecx, dword [ebp - 0x20]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004d431
sub ecx, edx
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x30], 0xf
lea edx, [ebp - 0x44]
push dword [ebp - 0x4c]
cmova edx, dword [ebp - 0x20]
lea esi, [edi + 0x20]
push edx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x4c]
add esp, 0x1c
mov ecx, dword [ebp - 0x28]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10088b78]
push edi
call fcn.1007d11c
mov esi, dword [ebp - 0x48]
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, 0xf
jbe 0x1004d4cf
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004d4c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004d9b9
push ecx
push edx
call fcn.1007d105
add esp, 8
xorps xmm0, xmm0
mov word [ebp - 0x1c], 0x44
lea ecx, [ebp - 0x1b]
mov byte [ebp - 0x1b], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004d4f4
sub ecx, edx
lea eax, [ebp - 0x1b]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.100024a0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 2
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x4c], edi
lea eax, [eax + eax*4]
mov eax, dword [esi + eax*4 + 0xb4]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1004d5a9
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004d5a9
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
cmova ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004d545
sub ecx, edx
mov dword [ebp - 0x2c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x30], 0xf
lea edx, [ebp - 0x44]
push dword [ebp - 0x2c]
cmova edx, dword [ebp - 0x4c]
lea esi, [edi + 0x20]
push edx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x2c]
add esp, 0x1c
mov ecx, dword [ebp - 0x28]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10088b78]
push edi
call fcn.1007d11c
mov esi, dword [ebp - 0x48]
add esp, 4
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, 0xf
jbe 0x1004d5e3
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x1004d5d9
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004d9b9
push ecx
push edi
call fcn.1007d105
add esp, 8
mov edi, dword [ebp - 0x24]
mov edi, dword [esi + edi*4 + 0xb8]
test edi, edi
je 0x1004d638
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004d638
lea eax, [edi + 0x140]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004d638
lea eax, [edi + 0x13c]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004d638
mov ecx, edi
mov dword [edi + 0x140], eax
mov dword [edi + 0x13c], eax
call dword [0x10088b60]
mov edi, dword [ebp - 0x24]
mov eax, dword [esi + edi*4 + 0xb8]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1004d66f
push 4
push eax
call edi
test eax, eax
jne 0x1004d66f
mov ecx, dword [ebp - 0x28]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [0x10088b64]
mov al, byte [ebp - 0x11]
inc al
mov byte [ebp - 0x11], al
cmp al, 4
jb 0x1004d390
xor al, al
mov byte [ebp - 0x11], al
nop dword [eax]
nop dword [eax + eax]
movzx edi, al
mov eax, dword [esi + edi*4 + 0x94]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1004d6b8
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004d6b8
mov ecx, dword [ebp - 0x28]
push eax
call dword [0x10088b1c]
lea eax, [edi + edi*2]
mov eax, dword [esi + eax*4 + 0xfc]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1004d6e0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004d6e0
mov ecx, dword [ebp - 0x28]
push eax
call dword [0x10088b7c]
lea edi, [edi + edi*2]
cmp dword [esi + edi*4 + 0xf8], 0
mov dword [ebp - 0x2c], edi
je 0x1004d995
xorps xmm0, xmm0
mov word [ebp - 0x1c], 0x63
lea ecx, [ebp - 0x1b]
mov byte [ebp - 0x1b], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004d720
sub ecx, edx
lea eax, [ebp - 0x1b]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.100024a0
mov dword [ebp - 4], 3
mov eax, dword [esi + edi*4 + 0xf8]
mov ecx, dword [ebp - 0x44]
add eax, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
je 0x1004d7dc
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004d7d9
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
cmova ecx, dword [ebp - 0x20]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004d771
sub ecx, edx
mov dword [ebp - 0x24], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
push dword [ebp - 0x24]
cmova ecx, dword [ebp - 0x20]
lea esi, [edi + 0x20]
push ecx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x24]
add esp, 0x1c
mov ecx, dword [ebp - 0x28]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push 0xffffffffffffffff
push 0
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10088ae0]
push edi
call fcn.1007d11c
mov esi, dword [ebp - 0x48]
add esp, 4
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, 0xf
jbe 0x1004d816
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004d80c
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004d9b9
push edx
push ecx
call fcn.1007d105
add esp, 8
mov eax, dword [esi + edi*4 + 0xf8]
mov dword [eax + 0x50], 0
mov eax, dword [esi + edi*4 + 0xf8]
mov dword [eax + 0x54], 0
mov eax, dword [esi + edi*4 + 0xf8]
mov dword [eax + 0x58], 0
mov eax, dword [esi + edi*4 + 0xf8]
mov dword [eax + 0x5c], 0
mov eax, dword [esi + edi*4 + 0xf8]
cmp dword [eax], 0
je 0x1004d995
xorps xmm0, xmm0
mov word [ebp - 0x18], 0x75
lea ecx, [ebp - 0x17]
mov byte [ebp - 0x17], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004d883
sub ecx, edx
lea eax, [ebp - 0x17]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.100024a0
mov dword [ebp - 4], 4
mov eax, dword [esi + edi*4 + 0xf8]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1004d93c
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004d939
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
cmova ecx, dword [ebp - 0x20]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004d8d5
sub ecx, edx
mov dword [ebp - 0x24], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x30], 0xf
lea edx, [ebp - 0x44]
push dword [ebp - 0x24]
cmova edx, dword [ebp - 0x20]
lea esi, [edi + 0x20]
push edx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x24]
add esp, 0x1c
mov ecx, dword [ebp - 0x28]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10088b50]
push edi
call fcn.1007d11c
mov esi, dword [ebp - 0x48]
add esp, 4
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
cmp eax, 0xf
jbe 0x1004d972
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004d968
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004d9b9
push edx
push ecx
call fcn.1007d105
add esp, 8
mov eax, dword [esi + edi*4 + 0xf8]
mov edi, dword [eax]
test edi, edi
je 0x1004d995
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004d995
push eax
mov ecx, edi
call dword [0x10088b1c]
mov al, byte [ebp - 0x11]
inc al
mov byte [ebp - 0x11], al
cmp al, 5
jb 0x1004d690
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
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3