Function at 0x1001250c
Capabilities:
Encode data using xor

Disassembly:
push 0xa0
mov eax, 0x1003a63c
call fcn.10039093
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
and dword [ebp - 4], 0
xor eax, eax
inc eax
cmp dword [0x100500a0], 0
je 0x100129c7
push 0xa
lea eax, [ebx + 0x10]
pop ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov edx, dword [eax]
test edx, edx
je 0x10012561
mov ecx, dword [eax]
xor dl, dl
call fcn.1000b082
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
add eax, 4
sub ecx, 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
jne 0x1001254c
mov ecx, dword [ebx]
call dword [0x100461b4]
mov ax, word [esi]
cmp ax, word [edi]
jb 0x100126d1
mov ax, word [esi + 2]
cmp ax, word [edi + 2]
jb 0x100126d1
mov ax, word [esi + 4]
cmp ax, word [edi + 4]
jb 0x100126d1
mov ax, word [esi + 6]
cmp ax, word [edi + 6]
jb 0x100126d1
mov ecx, dword [ebx + 0x10]
call fcn.1000af9e
mov ecx, dword [ebx + 8]
mov edi, edx
call fcn.1000af9e
mov ecx, dword [ebx + 0x10]
mov esi, eax
call fcn.1000b013
mov ecx, dword [ebx + 8]
add eax, edi
push eax
mov edx, esi
call fcn.1000b039
cmp dword [ebp + 0x28], 0x10
lea eax, [ebp + 0x14]
pop ecx
cmovae eax, dword [ebp + 0x14]
mov dl, 0x1b
push eax
mov dword [ebp - 0x30], 0x683e1b
xor ecx, ecx
xor dl, byte [ebp + ecx - 0x2f]
mov byte [ebp + ecx - 0x2f], dl
inc ecx
cmp ecx, 2
jae 0x10012601
mov dl, byte [ebp - 0x30]
jmp 0x100125ee
sub esp, 0x18
mov byte [ebp - 0x2d], 0
lea eax, [ebp - 0x2f]
mov ecx, esp
push eax
call fcn.100040a5
lea eax, [ebp - 0x90]
push eax
call fcn.10003b8a
add esp, 0x20
xor ecx, ecx
mov edx, eax
inc ecx
mov byte [ebp - 4], cl
mov ecx, dword [ebx + 4]
call fcn.1000b8e3
xor eax, eax
mov byte [ebp - 4], 0
push 0
inc eax
lea ecx, [ebp - 0x90]
push eax
call fcn.10003f51
movaps xmm0, xmmword [0x10047ef0]
xor edx, edx
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x80], 0x5e574b56
mov dword [ebp - 0x7c], 0x1a5e4f
mov cl, byte [ebp - 0x90]
xor byte [ebp + edx - 0x8f], cl
inc edx
cmp edx, 0x16
jb 0x10012665
sub esp, 0x18
mov byte [ebp - 0x79], 0
lea eax, [ebp - 0x8f]
mov ecx, esp
push eax
call fcn.100040a5
lea eax, [ebp - 0xac]
push eax
call fcn.10003b8a
add esp, 0x1c
mov byte [ebp - 4], 2
mov edx, eax
mov ecx, dword [ebx + 0x38]
call fcn.1000b8e3
xor eax, eax
mov byte [ebp - 4], 0
push 0
inc eax
lea ecx, [ebp - 0xac]
push eax
call fcn.10003f51
mov ecx, dword [ebx + 0x10]
xor eax, eax
lea edx, [eax + 1]
call fcn.1000b082
jmp 0x100129b8
cmp dword [ebp + 0x28], 0x10
lea eax, [ebp + 0x14]
mov cl, 0x5a
mov dword [ebp - 0x30], 0x297f5a
cmovae eax, dword [ebp + 0x14]
xor edx, edx
push eax
xor cl, byte [ebp + edx - 0x2f]
mov byte [ebp + edx - 0x2f], cl
inc edx
cmp edx, 2
jae 0x100126fb
mov cl, byte [ebp - 0x30]
jmp 0x100126e8
sub esp, 0x18
mov byte [ebp - 0x2d], 0
lea eax, [ebp - 0x2f]
mov ecx, esp
push eax
call fcn.100040a5
lea eax, [ebp - 0xac]
push eax
call fcn.10003b8a
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [ebx + 4]
call fcn.1000b8e3
xor eax, eax
mov byte [ebp - 4], 0
push 0
inc eax
lea ecx, [ebp - 0xac]
push eax
call fcn.10003f51
mov eax, dword [ebp - 0x38]
lea ecx, [ebx + 0x10]
sub edi, eax
mov dword [ebp - 0x6c], 4
sub esi, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x94], esi
movzx edx, word [eax]
test dx, dx
je 0x100129a2
mov ecx, edx
call fcn.10006667
mov dword [ebp - 0x34], eax
mov cl, 0x4e
mov dword [ebp - 0x4c], 0x25201b4e
xor edx, edx
mov dword [ebp - 0x48], 0x20392120
mov byte [ebp - 0x44], 0
xor cl, byte [ebp + edx - 0x4b]
mov byte [ebp + edx - 0x4b], cl
inc edx
cmp edx, 7
jae 0x10012798
mov cl, byte [ebp - 0x4c]
jmp 0x10012785
lea eax, [ebp - 0x4b]
mov byte [ebp - 0x44], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.100040a5
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 4
test eax, eax
je 0x100127d0
add eax, 4
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x100128b6
push 0xffffffffffffffff
push 0
push eax
call fcn.10003d30
jmp 0x100128b6
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc ecx
cmp word [eax], cx
jne 0x100128b9
cmp byte [0x100500bb], 0
mov eax, dword [0x100500a0]
mov dword [ebp - 0x34], eax
je 0x10012838
mov ecx, 0x10b8134
call fcn.1000ba22
mov dword [ebp - 0x74], eax
test eax, eax
je 0x10012835
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10012835
mov eax, dword [ebp - 0x74]
add eax, 0x6dc
push 4
push eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10012835
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x34]
mov al, byte [eax]
mov byte [ecx + 0x38], al
mov eax, ecx
jmp 0x10012838
mov eax, dword [ebp - 0x34]
mov al, byte [eax + 0x38]
xor edx, edx
cmp al, 1
jne 0x10012873
mov cl, 0x61
mov dword [ebp - 0x5c], 0x410d2461
mov dword [ebp - 0x58], 0x130e2c
mov word [ebp - 0x54], 5
xor cl, byte [ebp + edx - 0x5b]
mov byte [ebp + edx - 0x5b], cl
inc edx
cmp edx, 8
jae 0x1001286a
mov cl, byte [ebp - 0x5c]
jmp 0x10012857
mov byte [ebp - 0x53], 0
lea eax, [ebp - 0x5b]
jmp 0x100128a0
mov cl, 0x42
mov dword [ebp - 0x40], 0x30230942
mov word [ebp - 0x3c], 0x3137
mov byte [ebp - 0x3a], 0
xor cl, byte [ebp + edx - 0x3f]
mov byte [ebp + edx - 0x3f], cl
inc edx
cmp edx, 5
jae 0x10012899
mov cl, byte [ebp - 0x40]
jmp 0x10012886
mov byte [ebp - 0x3a], 0
lea eax, [ebp - 0x3f]
mov ecx, eax
mov dword [ebp - 0x34], eax
call fcn.1000408d
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.1000401e
mov eax, dword [ebp - 0x38]
movzx eax, word [edi + eax]
mov cl, 0x3e
cmp dword [ebp - 0x18], 0x10
push eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x68], 0x1e4d1b3e
mov dword [ebp - 0x64], 0x1b115a1b
mov word [ebp - 0x60], 0x5a
movzx eax, word [esi + eax]
push eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
push eax
xor cl, byte [ebp + edx - 0x67]
mov byte [ebp + edx - 0x67], cl
inc edx
cmp edx, 8
jae 0x100128fd
mov cl, byte [ebp - 0x68]
jmp 0x100128ea
sub esp, 0x18
mov byte [ebp - 0x5f], 0
lea eax, [ebp - 0x67]
mov ecx, esp
push eax
call fcn.100040a5
lea eax, [ebp - 0x90]
push eax
call fcn.10003b8a
add esp, 0x28
mov esi, dword [ebp - 0x50]
mov edx, eax
mov byte [ebp - 4], 5
mov ecx, dword [esi + 0x28]
call fcn.1000b8e3
xor eax, eax
mov byte [ebp - 4], 4
push 0
inc eax
lea ecx, [ebp - 0x90]
push eax
call fcn.10003f51
mov ecx, dword [esi]
call fcn.1000af9e
mov ecx, dword [ebx + 8]
mov edi, edx
call fcn.1000af9e
mov esi, eax
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
call fcn.1000b013
mov ecx, dword [ebx + 8]
add eax, edi
push eax
mov edx, esi
call fcn.1000b039
xor eax, eax
pop ecx
lea edx, [eax + 1]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
call fcn.1000b082
xor eax, eax
mov byte [ebp - 4], 0
push 0
inc eax
lea ecx, [ebp - 0x2c]
push eax
call fcn.10003f51
mov esi, dword [ebp - 0x94]
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x50]
add ecx, 4
add eax, 2
sub dword [ebp - 0x6c], 1
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], eax
jne 0x10012759
mov ecx, dword [ebx]
xor eax, eax
inc eax
push eax
call dword [0x100461b8]
xor eax, eax
inc eax
push 0
push eax
lea ecx, [ebp + 0x14]
call fcn.10003f51
call fcn.1003903d
ret 0x24