Function at 0x10030690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100d92b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 0xc]
imul esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], edi
mov eax, esi
mov dword [ebp - 0x30], esi
movups xmmword [ebp - 0x14], xmm0
call fcn.10057630
mov eax, esi
mov dword [ebp - 0x24], esp
call fcn.10057630
mov ebx, esp
push esi
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], ebx
call fcn.10058d80
mov ecx, dword [ebp + 0xc]
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x18], edx
test ecx, ecx
jle 0x100307b4
mov ebx, dword [ebp - 0x24]
sub edi, ebx
mov dword [ebp - 0x34], edi
nop dword [eax + eax]
imul ecx, edx
mov esi, 1
add ecx, ebx
mov ebx, dword [ebp + 0xc]
nop dword [eax]
test byte [edi + ecx], 0xf0
mov eax, esi
mov dword [ebp - 0x28], eax
jne 0x1003078f
lea edi, [edx + 1]
lea ebx, [esi + edi]
test bl, 1
jne 0x10030729
or byte [ecx], 2
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, ebx
cdq
mov ebx, 3
idiv ebx
sub edx, dword [ebp - 0x2c]
lea eax, [edx - 2]
add eax, esi
test al, 1
jne 0x10030753
or byte [ecx], 4
mov eax, edi
cdq
idiv esi
mov eax, esi
mov ebx, edx
cdq
idiv edi
mov eax, 0x55555556
add ebx, edx
imul edi
mov edi, dword [ebp - 0x34]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x18]
sub ebx, eax
lea eax, [esi - 1]
sub ebx, dword [ebp - 0x2c]
add ebx, eax
mov eax, dword [ebp - 0x28]
add ebx, edx
test bl, 1
mov ebx, dword [ebp + 0xc]
jne 0x1003078f
or byte [ecx], 8
inc esi
inc ecx
cmp eax, ebx
jl 0x10030710
mov ecx, dword [ebp + 0xc]
inc edx
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
cmp edx, ecx
jl 0x10030700
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x100307c9
mov edi, dword [ebp + 0xc]
lea edx, [ecx - 1]
mov dword [ebp - 0x2c], edx
jmp 0x10030970
xor edx, edx
test esi, esi
jle 0x10030893
cmp esi, 0x40
jb 0x10030868
lea eax, [edi - 1]
lea ecx, [ebx - 1]
add eax, esi
add ecx, esi
cmp ebx, eax
ja 0x100307f2
cmp ecx, edi
jae 0x10030868
mov eax, esi
and eax, 0x8000003f
jns 0x10030800
dec eax
or eax, 0xffffffc0
inc eax
movaps xmm1, xmmword [0x100980c0]
mov edi, esi
mov esi, dword [ebp - 0x20]
sub edi, eax
lea eax, [ebx + 0x10]
lea ecx, [esi + 0x30]
sub esi, ebx
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x18]
nop
movups xmm0, xmmword [ecx - 0x30]
add edx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
pand xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [ebx + eax - 0x40]
pand xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x50]
pand xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x40]
pand xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
cmp edx, edi
jl 0x10030820
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
cmp edx, esi
jge 0x10030893
mov eax, dword [ebp - 0x20]
lea ecx, [edx + ebx]
sub eax, ebx
mov edi, esi
mov dword [ebp - 0x18], eax
sub edi, edx
mov esi, eax
nop dword [eax]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
and al, 0xf
mov byte [ecx - 1], al
sub edi, 1
jne 0x10030880
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push edi
call fcn.100324a0
push ebx
push edi
call fcn.10031d50
mov dword [ebp - 0x14], eax
add esp, 0x20
mov eax, 1
mov dword [ebp - 0x18], 0
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], 4
lea ebx, [eax + 1]
xor edi, edi
test esi, esi
jle 0x10030917
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
mov dword [ebp - 0x3c], eax
lea esi, [edi + ecx]
mov ecx, dword [ebp - 0x20]
mov dl, byte [esi + eax]
mov cl, byte [ecx + edi]
mov al, cl
xor cl, 1
and al, 0xf
movzx ecx, cl
test bl, dl
movzx eax, al
cmove ecx, eax
mov eax, dword [ebp - 0x3c]
mov byte [esi], cl
inc edi
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
cmp edi, esi
jl 0x100308e6
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp + 0xc]
push 0
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x1c]
call fcn.100324a0
push edi
push dword [ebp - 0x1c]
call fcn.10031d50
mov ecx, dword [ebp - 0x34]
add esp, 0x20
mov edx, dword [ebp - 0x18]
mov dword [ebp + ecx - 0x14], eax
cmp eax, dword [ebp + edx - 0x14]
mov eax, dword [ebp - 0x28]
jge 0x10030955
mov edx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], edx
jmp 0x10030958
mov edx, dword [ebp - 0x2c]
add ecx, 4
rol ebx, 1
inc eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x28], eax
cmp ecx, 0x10
jl 0x100308d5
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x100309c8
test ecx, ecx
mov eax, str.specified
mov ebx, str.automatic
cmove eax, ebx
push eax
push edx
push str.Mask:__d___s_
call fcn.10007430
add esp, 0xc
cmp dword [ebp - 0x38], 0
jne 0x100309bb
xor esi, esi
nop dword [eax]
push dword [ebp + esi*4 - 0x14]
push esi
push str.__d:_d
call fcn.10007430
inc esi
add esp, 0xc
cmp esi, 4
jl 0x100309a0
mov esi, dword [ebp + 0x1c]
push 0x100864bc
call fcn.10007430
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x10030a21
cmp dword [ebp - 0x38], 0
jne 0x100309ee
cmp ebx, 3
jne 0x100309ee
mov ecx, dword [ebp - 0x30]
push ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.10058800
add esp, 0xc
jmp 0x10030a21
mov ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jle 0x10030a21
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
sub edi, eax
mov dword [ebp - 0x24], edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x24]
nop
test byte [esi + eax], dl
je 0x10030a18
xor byte [eax], 1
inc eax
sub ecx, 1
jne 0x10030a10
mov esi, dword [ebp + 0x1c]
push esi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x20]
call fcn.100324a0
add esp, 0x18
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10057052
mov esp, ebp
pop ebp
ret