Function at 0x1002bdd0
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 0x10067612
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
push esi
push edi
mov eax, dword [0x1007c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], 0
cmp byte [esi + 0x13c], 0
movzx eax, word [esi + 0x136]
mov ecx, eax
mov word [esi + 0x13e], ax
movzx eax, word [esi + 0x140]
push eax
push ecx
je 0x1002beb9
movaps xmm0, xmmword [0x10075430]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x8450409
mov byte [ebp - 0x2c], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x13
jb 0x1002be52
sub esp, 0x18
mov byte [ebp - 0x2c], 0
mov edx, esp
lea ecx, [ebp - 0x3f]
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 0x1002be82
sub ecx, edi
lea eax, [ebp - 0x3f]
push ecx
push eax
mov ecx, edx
call fcn.100051a0
lea eax, [ebp - 0x88]
push eax
call fcn.10004d30
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 0
mov eax, 1
jmp 0x1002bf5f
mov cl, 0x50
mov byte [ebp - 0x20], 0x34
mov al, 0x11
mov byte [ebp - 0x12], cl
xor cl, byte [ebp - 0x20]
mov dl, 0x14
mov byte [ebp - 0x11], al
mov dh, dl
xor al, byte [ebp - 0x20]
mov ch, 0x52
mov byte [ebp - 0x1f], al
mov ah, 0x5b
mov al, byte [ebp - 0x11]
xorps xmm0, xmm0
mov byte [ebp - 0x1e], cl
mov cl, byte [ebp - 0x20]
xor al, cl
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x19], al
xor dl, cl
mov al, byte [ebp - 0x12]
xor dh, cl
xor ah, cl
mov byte [ebp - 0x1d], dl
xor ch, cl
mov byte [ebp - 0x1a], dh
xor al, cl
mov byte [ebp - 0x1b], ch
sub esp, 0x18
mov byte [ebp - 0x1c], ah
mov edx, esp
mov byte [ebp - 0x18], al
lea ecx, [ebp - 0x1f]
mov byte [ebp - 0x17], 0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002bf30
sub ecx, edi
lea eax, [ebp - 0x1f]
push ecx
push eax
mov ecx, edx
call fcn.100051a0
lea eax, [ebp - 0x70]
push eax
call fcn.10004d30
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 1
mov eax, 2
cmp dword [edx + 0x14], 0xf
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
jbe 0x1002bf6d
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002bf87
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.100051a0
mov dword [ebp - 4], 2
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1002bfc1
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002bfc1
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call dword [0x10073638]
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1002bff5
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002bfeb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c086
push ecx
push edx
call fcn.100641c5
add esp, 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
test al, 2
je 0x1002c059
mov ecx, dword [ebp - 0x5c]
and eax, 0xfffffffd
mov dword [ebp - 0x24], eax
cmp ecx, 0xf
jbe 0x1002c047
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c03a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002c086
push ecx
push edx
call fcn.100641c5
mov eax, dword [ebp - 0x24]
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
test al, 1
je 0x1002c096
mov ecx, dword [ebp - 0x74]
cmp ecx, 0xf
jbe 0x1002c096
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002c08c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002c08c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100641c5
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