Function at 0x10093680
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x10131ed7
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1017a974]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x5c]
mov dword [esi], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 4], eax
cdq
sub eax, edx
mov dword [esi + 0xc], ecx
xor ebp, ebp
sar eax, 1
lea ecx, [esi + 0x10]
mov dword [esi + 8], eax
push ebp
mov dword [ecx], ebp
mov dword [ecx + 4], ebp
call fcn.10090a20
mov dword [esp + 0x54], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x18], ebp
mov byte [esp + 0x54], 1
lea ebx, [esi + 0x24]
mov ecx, ebx
mov dword [esi + 0x20], ebp
call fcn.10092d30
mov byte [esp + 0x54], 2
lea ecx, [esi + 0x3c]
call fcn.10093620
mov byte [esp + 0x54], 3
mov dword [esi + 0x5c], ebp
mov edi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], edi
jbe 0x10093717
call fcn.100d63f7
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x68], ecx
cmp ecx, dword [ebx + 0x10]
jbe 0x10093732
call fcn.100d63f7
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx]
push edi
push edx
push ecx
push eax
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.10091530
cmp byte [esp + 0x64], 0
jne 0x100938a3
mov ecx, dword [esi + 8]
inc ecx
mov dword [esp + 0x68], ebp
test ecx, ecx
jle 0x100938a1
mov edi, dword [esp + 0x5c]
mov eax, 1
sub eax, edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
cmp ebp, eax
je 0x100937cb
cmp byte [edi], 0x3f
je 0x1009378c
cmp byte [edi + 1], 0x3f
jne 0x1009388d
cmp ebp, eax
je 0x100937cb
cmp byte [edi], 0x3f
je 0x100937cb
cmp byte [edi + 1], 0x3f
jne 0x100937cb
lea edx, [esp + 0x64]
push edx
push edi
call fcn.100c75c0
mov cl, byte [esp + 0x6c]
add esp, 8
lea eax, [ebp + ebp]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], eax
push edx
lea eax, [esp + 0x38]
mov byte [esp + 0x2c], cl
push eax
lea ecx, [esi + 0x3c]
call fcn.100923b0
cmp ebp, dword [esi + 8]
je 0x1009380d
cmp byte [edi], 0x3f
jne 0x1009380d
cmp byte [edi + 1], 0x3f
je 0x1009380d
lea ecx, [esp + 0x64]
push ecx
push edi
call fcn.100c75c0
mov edx, dword [esp + 0x1c]
mov al, byte [esp + 0x6c]
add edx, edi
add esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edx
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esi + 0x3c]
mov byte [esp + 0x38], al
call fcn.100923b0
mov eax, dword [esp + 0x68]
cmp ebp, eax
jle 0x10093886
test eax, eax
jne 0x1009381e
cmp ebp, dword [esi + 8]
je 0x10093886
mov edi, ebp
sub edi, dword [esp + 0x68]
cmp edi, dword [esi + 0x5c]
jle 0x10093838
mov dword [esi + 0x5c], edi
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar eax, 2
mov dword [esi + 0x60], eax
push 0x64
call fcn.100d59cb
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x54], 4
test eax, eax
je 0x1009386b
mov ecx, dword [esp + 0x68]
push ecx
push 1
lea edx, [edi + edi]
push edx
mov edx, dword [esp + 0x68]
lea ecx, [edx + ecx*2]
push ecx
mov ecx, eax
call fcn.10093680
jmp 0x1009386d
xor eax, eax
mov byte [esp + 0x54], 3
lea edx, [esp + 0x68]
push edx
mov ecx, ebx
mov dword [esp + 0x6c], eax
call fcn.100931b0
mov edi, dword [esp + 0x60]
lea eax, [ebp + 1]
mov dword [esp + 0x68], eax
mov ecx, dword [esi + 8]
inc ebp
add edi, 2
inc ecx
cmp ebp, ecx
mov dword [esp + 0x60], edi
jl 0x10093776
xor ebp, ebp
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar eax, 2
mov dword [esi + 0x20], eax
cmp eax, ebp
jne 0x100939e7
mov edx, dword [esi + 8]
push edx
mov byte [esp + 0x68], 0
call fcn.100d3c3c
mov ecx, dword [esp + 0x68]
add esp, 4
push ecx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.10090ac0
mov byte [esp + 0x54], 5
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebx
lea ebp, [esi + 0x10]
push edx
mov ecx, ebp
call fcn.1008f700
mov byte [esp + 0x54], 3
xor edi, edi
cmp ebx, edi
je 0x1009392c
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1009392c
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1009392c
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
mov eax, dword [esi + 8]
push eax
mov byte [esp + 0x68], 0
call fcn.100d3c3c
mov ecx, dword [esp + 0x68]
add esp, 4
push ecx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.10090ac0
mov byte [esp + 0x54], 6
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebx
push edx
lea ecx, [esi + 0x18]
call fcn.1008f700
mov byte [esp + 0x54], 3
cmp ebx, edi
je 0x1009399d
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1009399d
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1009399d
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
cmp dword [ebp], edi
je 0x100939e4
cmp dword [esi + 8], edi
jle 0x100939e7
mov eax, dword [ebp]
add eax, edi
push eax
mov eax, dword [esi + 0xc]
lea ebx, [edi + edi]
add eax, ebx
push eax
call fcn.100c75c0
mov ecx, dword [esi + 0xc]
mov dl, byte [ebx + ecx + 1]
xor dl, byte [ebx + ecx]
mov eax, dword [esi + 0x18]
add ebx, ecx
mov byte [eax + edi], dl
mov ecx, dword [esi + 0x18]
mov cl, byte [ecx + edi]
mov eax, dword [ebp]
xor byte [eax + edi], cl
inc edi
add esp, 8
cmp edi, dword [esi + 8]
jl 0x100939a7
jmp 0x100939e7
mov dword [esi + 8], edi
mov dword [esp + 0x54], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x10