Function at 0x10010630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b01e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10027008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0
push 0x1001d9f3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10001d80
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x18]
mov edi, eax
inc eax
shr edi, 1
push ecx
shr eax, 1
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], edi
call fcn.10005c70
xor edx, edx
xor ebx, ebx
cmp dword [ebp - 0x1c], edx
jbe 0x1001075b
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
cmovae ecx, edi
setae byte [ebp - 0x11]
test byte [ecx + edx], 0x40
je 0x100106e9
cmp byte [ebp - 0x11], 0
cmovne eax, edi
mov cl, byte [eax + edx]
add cl, 9
jmp 0x100106f3
cmp byte [ebp - 0x11], 0
cmovne eax, edi
mov cl, byte [eax + edx]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
shl cl, 4
mov byte [eax + ebx], cl
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov edi, dword [ebp + 8]
cmovae ecx, edi
setae byte [ebp - 0x11]
test byte [ecx + edx + 1], 0x40
je 0x1001072f
cmp byte [ebp - 0x11], 0
cmovne eax, edi
mov cl, byte [eax + edx + 1]
add cl, 9
jmp 0x1001073a
cmp byte [ebp - 0x11], 0
cmovne eax, edi
mov cl, byte [eax + edx + 1]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
and cl, 0xf
add edx, 2
or byte [eax + ebx], cl
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x100106c0
mov edi, dword [ebp - 0x30]
push edi
call fcn.10018d53
mov edx, dword [ebp - 0x2c]
add esp, 4
xor ecx, ecx
mov ebx, eax
test edi, edi
je 0x10010798
cmp dword [ebp - 0x18], 0x10
setae byte [ebp - 0x11]
nop word [eax + eax]
cmp byte [ebp - 0x11], 0
lea eax, [ebp - 0x2c]
cmovne eax, edx
mov al, byte [eax + ecx]
xor al, byte [ebp - 0x34]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, edi
jl 0x10010780
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
xor edi, edi
mov dword [ebp - 0x38], 1
cmp dword [ebp - 0x30], edi
jbe 0x100107f7
xor eax, eax
nop word [eax + eax]
mov cl, byte [edi + ebx]
mov byte [ebp - 0x11], cl
cmp eax, dword [esi + 8]
je 0x100107e2
mov byte [eax], cl
inc dword [esi + 4]
jmp 0x100107ee
lea ecx, [ebp - 0x11]
push ecx
push eax
mov ecx, esi
call fcn.10014670
mov eax, dword [esi + 4]
inc edi
cmp edi, dword [ebp - 0x30]
jl 0x100107d0
push ebx
call fcn.10018d4e
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 0x10
jb 0x10010832
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x10010828
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010858
push edx
push ecx
call fcn.100189ba
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x10010868
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001085e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001085e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100189ba
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018459
mov esp, ebp
pop ebp
ret