Function at 0x1002b850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059c9a
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x10070014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], 0
cmp byte [esi + 0x13c], 0
movzx eax, word [esi + 0x140]
movzx ecx, word [esi + 0x136]
push eax
mov word [esi + 0x13e], cx
push ecx
je 0x1002b937
movaps xmm0, xmmword [0x10067db0]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x430e4f42
mov byte [ebp - 0x24], 0
nop dword [eax]
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x13
jb 0x1002b8c0
sub esp, 0x18
mov byte [ebp - 0x24], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1002b8ee
mov eax, dword [edx]
jmp 0x1002b8f0
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x1002b8fd
xor ecx, ecx
jmp 0x1002b90c
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002b903
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10005550
lea eax, [ebp - 0x80]
push eax
call fcn.10009e40
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 0
mov ebx, 1
jmp 0x1002b9e0
mov byte [ebp - 0x20], 0x7e
mov al, 0x5b
mov dh, al
mov byte [ebp - 0x17], 0
xor al, byte [ebp - 0x20]
mov dl, 0x5e
mov byte [ebp - 0x1f], al
mov ch, dl
mov al, byte [ebp - 0x20]
mov cl, 0x1a
xor dl, al
mov byte [ebp - 0x17], 0
xor dh, al
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x19], dh
sub esp, 0x18
mov edx, esp
mov bh, cl
mov bl, 0x11
mov ah, 0x18
xor cl, al
xor bl, al
xor ah, al
mov byte [ebp - 0x1e], cl
xor ch, al
mov byte [ebp - 0x1c], bl
xor bh, al
mov byte [ebp - 0x1b], ah
mov byte [ebp - 0x1a], ch
mov byte [ebp - 0x18], bh
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1002b99c
mov eax, dword [edx]
jmp 0x1002b99e
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x1f], 0
jne 0x1002b9ab
xor ecx, ecx
jmp 0x1002b9ba
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002b9b1
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10005550
lea eax, [ebp - 0x68]
push eax
call fcn.10009e40
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 1
mov ebx, 2
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x10], ebx
jb 0x1002b9eb
mov edx, dword [edx]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x1002ba06
xor ecx, ecx
jmp 0x1002ba19
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ba10
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10005550
mov dword [ebp - 4], 2
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1002ba4a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ba4a
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call dword [0x100665c8]
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1002ba5c
inc eax
push eax
push dword [ebp - 0x50]
call fcn.10005420
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
test bl, 2
je 0x1002ba9a
mov eax, dword [ebp - 0x54]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x1002ba88
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10005420
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
test bl, 1
je 0x1002bab1
mov eax, dword [ebp - 0x6c]
cmp eax, 0x10
jb 0x1002bab1
inc eax
push eax
push dword [ebp - 0x80]
call fcn.10005420
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret