Function at 0x10012620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056edd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1006d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x1006f5ed], 0
je 0x10012972
cmp byte [0x1006f5e7], 1
jne 0x10012667
mov byte [0x1006f602], 1
jmp 0x10012674
cmp byte [0x1006f602], 0
je 0x10012720
mov ecx, 0xb2
xor edx, edx
nop dword [eax + eax]
mov al, byte [edx + 0x10062568]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x20], al
and ecx, 0x800000ff
jns 0x1001269d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x10012680
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
call fcn.10028640
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov dword [ebp - 0x20], 0x9d9e9f98
xor ecx, ecx
mov dword [ebp - 0x1c], 0xa1a2a39c
mov dword [ebp - 0x18], 0xa6a7a0
mov byte [ebp - 0x14], 1
nop dword [eax]
lea eax, [ecx + 0x1b]
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xb
jb 0x100126e0
push 0
push 0x1006242c
lea eax, [ebp - 0x38]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0x64
push eax
push 0x1006f604
xor edx, edx
mov dword [ebp - 0x3c], 1
lea ecx, [ebp - 0x20]
call fcn.10031ea0
add esp, 0x14
cmp byte [0x1006f600], 0
je 0x100127d2
mov ecx, 0xa
xor edx, edx
mov al, byte [edx + 0x10062578]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x20], al
and ecx, 0x800000ff
jns 0x10012751
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xd
jl 0x10012734
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
call fcn.10028640
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov dword [ebp - 0x20], 0x9d9e9f98
xor ecx, ecx
mov dword [ebp - 0x1c], 0xa1a2a39c
mov dword [ebp - 0x18], 0xa5a6a7a0
mov word [ebp - 0x14], 0x100
lea eax, [ecx + 0x1b]
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xc
jb 0x10012792
push 0
push 0x1006242c
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x13], 0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x64
push eax
push 0x1006f5f8
xor edx, edx
mov dword [ebp - 0x38], 1
lea ecx, [ebp - 0x20]
call fcn.10031ea0
add esp, 0x14
cmp byte [0x1006f5ee], 0
je 0x10012846
mov ecx, 0xeb
xor edx, edx
mov al, byte [edx + 0x10062588]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x34], al
and ecx, 0x800000ff
jns 0x100127ff
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xe
jl 0x100127e2
mov byte [ebp - 0x26], 0
push 0
push 0x1006242c
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x64
push eax
push 0x1006f5f0
xor edx, edx
mov dword [ebp - 0x38], 1
lea ecx, [ebp - 0x34]
call fcn.10031ea0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
cmp byte [0x1006f601], 0
je 0x100128ba
mov ecx, 0x61
xor edx, edx
mov al, byte [edx + 0x10062598]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x20], al
and ecx, 0x800000ff
jns 0x10012873
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x10012856
mov byte [ebp - 0x14], 0
push 0
push 0x1006242c
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x64
push eax
push 0x1006f5fc
xor edx, edx
mov dword [ebp - 0x38], 1
lea ecx, [ebp - 0x20]
call fcn.10031ea0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
cmp byte [0x1006f5ef], 0
je 0x10012972
mov ecx, 0xb8
xor edx, edx
nop
mov al, byte [edx + 0x100625a8]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x34], al
and ecx, 0x800000ff
jns 0x100128ed
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x100128d0
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 4
push eax
call fcn.10028640
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov dword [ebp - 0x34], 0x9e9f9899
xor ecx, ecx
mov dword [ebp - 0x30], 0xa2a39c9d
mov dword [ebp - 0x2c], 0xa6a7a0a1
mov word [ebp - 0x28], 0xa5
mov byte [ebp - 0x26], 1
lea eax, [ecx + 0x1a]
xor byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 0xd
jb 0x10012932
push 0
push 0x1006242c
lea eax, [ebp - 0x40]
mov byte [ebp - 0x26], 0
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 0x64
push eax
push 0x1006f5f4
xor edx, edx
mov dword [ebp - 0x44], 1
lea ecx, [ebp - 0x34]
call fcn.10031ea0
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052006
mov esp, ebp
pop ebp
ret