Function at 0x10027160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005625a
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x1006a018]
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 0x10027247
movaps xmm0, xmmword [0x100634f0]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x1c51101d
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 0x100271d0
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 0x100271fe
mov eax, dword [edx]
jmp 0x10027200
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x1002720d
xor ecx, ecx
jmp 0x1002721c
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027213
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.100052b0
lea eax, [ebp - 0x80]
push eax
call fcn.1000be20
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 0
mov ebx, 1
jmp 0x100272f0
mov byte [ebp - 0x20], 0x58
mov al, 0x7d
mov dh, al
mov byte [ebp - 0x17], 0
xor al, byte [ebp - 0x20]
mov dl, 0x78
mov byte [ebp - 0x1f], al
mov ch, dl
mov al, byte [ebp - 0x20]
mov cl, 0x3c
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, 0x37
mov ah, 0x3e
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 0x100272ac
mov eax, dword [edx]
jmp 0x100272ae
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x1f], 0
jne 0x100272bb
xor ecx, ecx
jmp 0x100272ca
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100272c1
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.100052b0
lea eax, [ebp - 0x68]
push eax
call fcn.1000be20
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 0x100272fb
mov edx, dword [edx]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x10027316
xor ecx, ecx
jmp 0x10027329
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027320
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.100052b0
mov dword [ebp - 4], 2
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1002735a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002735a
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call dword [0x1006254c]
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1002736c
inc eax
push eax
push dword [ebp - 0x50]
call fcn.10005180
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
test bl, 2
je 0x100273aa
mov eax, dword [ebp - 0x54]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x10027398
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10005180
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
test bl, 1
je 0x100273c1
mov eax, dword [ebp - 0x6c]
cmp eax, 0x10
jb 0x100273c1
inc eax
push eax
push dword [ebp - 0x80]
call fcn.10005180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret