Function at 0x100f2bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
mov esi, dword [edx]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x24], 0
mov ecx, dword [edx + 0x14]
inc esi
push esi
mov dword [esp + 0x34], edi
mov eax, dword [edi]
push dword [edi + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
call fcn.1004ab80
mov ecx, dword [esp + 0x38]
add esp, 8
mov edi, eax
mov dword [esp + 0x10], edi
mov ecx, dword [ecx + 0xc]
push esi
push ecx
test edi, edi
jne 0x100f2c72
call fcn.1004add0
sub eax, 5
add esp, 8
neg eax
sbb eax, eax
and eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1004a730
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov ecx, dword [ecx + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [esp + 0x40]
push edi
mov edx, dword [eax + 0x14]
call fcn.100dc2d0
add esp, 0x14
test eax, eax
jne 0x100f3411
jmp 0x100f2cb4
mov ebx, dword [esp + 0x20]
mov edi, dword [ebp + 0x20]
lea eax, [esp + 0x24]
mov dword [esp + 0x50], 0xffffffff
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x60]
push dword [esp + 0x5c]
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x100f336d
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x24], edx
jl 0x100f2cb7
cmp dword [esp + 0x2c], eax
jne 0x100f306a
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
sub eax, ebx
mov dword [esp + 0x44], eax
lea eax, [ebx + ecx]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov eax, ebx
or eax, dword [esp + 0xc]
je 0x100f2ef0
mov eax, ebx
mov dword [esp + 0x34], esi
and eax, 1
or eax, esi
jne 0x100f2d77
mov edi, dword [esp + 0xc]
inc esi
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, ebx
and ecx, edi
or edx, ecx
je 0x100f2d50
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x34], esi
mov ebx, dword [ebp + 0x10]
xor edx, edx
dec ebx
mov dword [esp + 0x2c], 0
xor ecx, ecx
mov eax, ebx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x14]
and ecx, dword [esp + 0xc]
or edx, ecx
jne 0x100f2dde
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
nop
dec ebx
xor edx, edx
xor ecx, ecx
mov eax, ebx
bts edx, eax
inc edi
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, esi
and ecx, dword [esp + 0xc]
or edx, ecx
je 0x100f2db0
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], edi
mov edi, dword [ebp + 0x20]
sub esi, dword [esp + 0x2c]
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
test ebx, ebx
jle 0x100f2ee4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], 0
mov ecx, dword [eax + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x48]
push dword [esp + 0x48]
mov edx, dword [eax + 0x14]
call fcn.100dc2d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100f33ff
add ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
nop dword [eax]
cmp dword [esp + 0x2c], ebx
jge 0x100f2e8a
lea ecx, [esp + 0x2c]
mov dword [esp + 0x58], 0
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x44], 0
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], 0
push ecx
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x74]
push ecx
push eax
mov eax, dword [edi + 0x14]
call eax
mov esi, eax
add esp, 0x18
mov eax, dword [esp + 0x3c]
test esi, esi
je 0x100f2e40
push eax
mov eax, edi
mov eax, dword [eax + 0x10]
call eax
mov edi, dword [ebp + 0x20]
add esp, 4
test esi, esi
je 0x100f2ea5
cmp esi, 0x65
jne 0x100f33ff
mov edx, dword [esp + 0x18]
xor eax, eax
mov ecx, dword [esp + 0x10]
cmp esi, 0x65
sete al
sub eax, dword [ebp + 0x10]
add eax, dword [esp + 0x2c]
test eax, eax
jle 0x100f2eec
movq xmm1, qword [esp + 0x68]
add edx, eax
movd xmm0, eax
psrlq xmm1, xmm0
movq qword [esp + 0x68], xmm1
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], eax
jmp 0x100f2ef0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
xor esi, esi
mov ebx, dword [esp + 0xc]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], 1
test edx, edx
jg 0x100f2fbc
cmp dword [ebp + 8], esi
jg 0x100f2fbc
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x100f3049
jns 0x100f2f39
mov ebx, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f2f30
sub ebx, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f2f8d
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x44], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x58], ecx
call fcn.100cb480
test eax, eax
jne 0x100f3363
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.1001e930
add esp, 8
test eax, eax
je 0x100f3363
mov dword [edi], eax
mov dword [edi + 8], esi
mov esi, dword [edi + 4]
mov edi, dword [edi]
mov edx, dword [esp + 0x10]
push ebx
push edx
lea eax, [edi + esi]
push eax
call fcn.1012bff0
mov edx, dword [esp + 0x24]
lea eax, [esi + ebx]
mov ebx, dword [ebp + 0x20]
add esp, 0xc
mov byte [edi + eax], 0
xor esi, esi
mov dword [ebx + 4], eax
jmp 0x100f304c
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f2fc2
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f301f
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x44], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x58], ecx
call fcn.100cb480
test eax, eax
jne 0x100f3363
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.1001e930
add esp, 8
test eax, eax
je 0x100f3363
mov dword [edi], eax
mov dword [edi + 8], esi
mov esi, dword [edi + 4]
mov edi, dword [edi]
push ebx
push dword [ebp + 0x1c]
lea eax, [edi + esi]
push eax
call fcn.1012bff0
mov edx, dword [esp + 0x24]
lea eax, [esi + ebx]
mov ebx, dword [ebp + 0x20]
add esp, 0xc
mov byte [eax + edi], 0
xor esi, esi
mov dword [ebx + 4], eax
jmp 0x100f304c
mov ebx, dword [ebp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
cmp edi, edx
jl 0x100f2cb0
jmp 0x100f3071
mov ebx, dword [ebp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
add eax, edx
cmp edi, eax
jge 0x100f32d9
mov eax, edi
xor ecx, ecx
sub eax, edx
xor edx, edx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x14]
and ecx, dword [esp + 0xc]
or edx, ecx
je 0x100f30aa
mov ebx, 1
jmp 0x100f30ac
xor ebx, ebx
cmp edi, dword [esp + 0x18]
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x40], ebx
jle 0x100f30df
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
sub eax, ecx
push eax
lea edx, [edx + ecx]
mov ecx, edi
call fcn.100f2b30
mov esi, eax
add esp, 4
test esi, esi
jne 0x100f32c4
test ebx, ebx
je 0x100f316f
mov ebx, dword [ebp + 0x14]
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f30f0
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f314d
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x44], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x58], ecx
call fcn.100cb480
test eax, eax
jne 0x100f3363
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.1001e930
add esp, 8
test eax, eax
je 0x100f3363
mov dword [edi], eax
mov dword [edi + 8], esi
mov esi, dword [edi + 4]
mov edi, dword [edi]
push ebx
push dword [ebp + 0x14]
lea eax, [edi + esi]
push eax
call fcn.1012bff0
lea eax, [esi + ebx]
add esp, 0xc
mov ebx, dword [ebp + 0x20]
mov byte [eax + edi], 0
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
sub ecx, ebx
mov dword [esp + 0x34], ecx
lea eax, [ebx + eax]
mov dword [esp + 0x5c], eax
jns 0x100f319d
mov ecx, eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f3190
sub ecx, edx
mov dword [esp + 0x34], ecx
mov edi, dword [ebp + 0x20]
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
inc eax
add eax, ecx
mov dword [esp + 0x44], edx
cmp eax, edx
jl 0x100f31fb
mov eax, edx
cdq
mov ebx, eax
mov esi, edx
mov eax, ecx
cdq
add ebx, eax
mov eax, dword [edi]
mov dword [esp + 0x58], eax
adc esi, edx
add ebx, 0x64
mov dword [esp + 0x44], ebx
adc esi, 0
call fcn.100cb480
test eax, eax
jne 0x100f3363
mov ecx, dword [esp + 0x58]
push esi
push ebx
call fcn.1001e930
add esp, 8
test eax, eax
je 0x100f3363
mov ecx, dword [esp + 0x34]
mov dword [edi], eax
mov dword [edi + 8], ebx
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push ecx
push dword [esp + 0x60]
mov dword [esp + 0x28], ebx
lea eax, [ebx + esi]
push eax
call fcn.1012bff0
mov ecx, dword [esp + 0x40]
add esp, 0xc
add ecx, esi
xor esi, esi
mov dword [edi + 4], ecx
mov byte [ecx + ebx], 0
cmp dword [esp + 0x40], esi
je 0x100f32c4
mov ebx, dword [ebp + 0x18]
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f3234
sub ebx, edx
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x44]
add eax, ebx
cmp eax, ecx
jl 0x100f3293
mov eax, ecx
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.100cb480
test eax, eax
jne 0x100f3363
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
push esi
call fcn.1001e930
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x100f3363
mov dword [edi], eax
mov dword [edi + 8], esi
jmp 0x100f3297
mov eax, dword [esp + 0x20]
mov esi, dword [edi + 4]
add eax, esi
push ebx
push dword [ebp + 0x18]
push eax
call fcn.1012bff0
mov ecx, dword [esp + 0x2c]
lea eax, [esi + ebx]
add esp, 0xc
mov dword [edi + 4], eax
mov byte [eax + ecx], 0
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
jmp 0x100f2cb7
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
test esi, esi
je 0x100f2cb7
jmp 0x100f33ff
cmp dword [ebp + 0xc], 0
je 0x100f33ff
mov esi, dword [ebp + 0x1c]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100f32f0
mov eax, dword [ebx + 8]
sub esi, ecx
mov ecx, dword [ebx + 4]
inc ecx
mov dword [esp + 0x44], esi
add ecx, esi
cmp ecx, eax
jl 0x100f3343
cdq
mov edi, eax
mov ecx, edx
mov eax, esi
mov esi, dword [ebx]
cdq
add edi, eax
adc ecx, edx
add edi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.100cb480
test eax, eax
jne 0x100f3363
push dword [esp + 0x5c]
mov ecx, esi
push edi
call fcn.1001e930
add esp, 8
test eax, eax
je 0x100f3363
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov esi, dword [ebx + 4]
mov edi, dword [ebx]
push dword [esp + 0x44]
push dword [ebp + 0x1c]
lea eax, [edi + esi]
push eax
call fcn.1012bff0
mov eax, dword [esp + 0x50]
add eax, esi
jmp 0x100f33f3
mov esi, 7
jmp 0x100f33ff
cmp esi, 0x65
jne 0x100f33ff
add ebx, dword [esp + 0x10]
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f3380
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f33d5
cdq
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
add esi, eax
mov eax, dword [edi]
mov dword [esp + 0x58], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.100cb480
test eax, eax
jne 0x100f3363
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
push esi
call fcn.1001e930
add esp, 8
test eax, eax
je 0x100f3363
mov dword [edi], eax
mov dword [edi + 8], esi
mov esi, dword [edi + 4]
mov edi, dword [edi]
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x20]
push ebx
push eax
lea eax, [edi + esi]
push eax
call fcn.1012bff0
lea eax, [esi + ebx]
mov ebx, dword [ebp + 0x20]
add esp, 0xc
mov byte [eax + edi], 0
xor esi, esi
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x4c]
push dword [esp + 0x48]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret