Function at 0x100f2480
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.1004a8a0
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 0x100f2502
call fcn.1004aaf0
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.1004a450
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.100dbc10
add esp, 0x14
test eax, eax
jne 0x100f2ca1
jmp 0x100f2544
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 0x100f2bfd
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x24], edx
jl 0x100f2547
cmp dword [esp + 0x2c], eax
jne 0x100f28fa
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 0x100f2780
mov eax, ebx
mov dword [esp + 0x34], esi
and eax, 1
or eax, esi
jne 0x100f2607
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 0x100f25e0
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 0x100f266e
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 0x100f2640
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 0x100f2774
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.100dbc10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100f2c8f
add ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
nop dword [eax]
cmp dword [esp + 0x2c], ebx
jge 0x100f271a
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 0x100f26d0
push eax
mov eax, edi
mov eax, dword [eax + 0x10]
call eax
mov edi, dword [ebp + 0x20]
add esp, 4
test esi, esi
je 0x100f2735
cmp esi, 0x65
jne 0x100f2c8f
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 0x100f277c
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 0x100f2780
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 0x100f284c
cmp dword [ebp + 8], esi
jg 0x100f284c
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x100f28d9
jns 0x100f27c9
mov ebx, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f27c0
sub ebx, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f281d
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.100cad40
test eax, eax
jne 0x100f2bf3
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.1001e600
add esp, 8
test eax, eax
je 0x100f2bf3
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.1012bec0
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 0x100f28dc
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f2852
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f28af
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.100cad40
test eax, eax
jne 0x100f2bf3
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.1001e600
add esp, 8
test eax, eax
je 0x100f2bf3
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.1012bec0
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 0x100f28dc
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 0x100f2540
jmp 0x100f2901
mov ebx, dword [ebp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
add eax, edx
cmp edi, eax
jge 0x100f2b69
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 0x100f293a
mov ebx, 1
jmp 0x100f293c
xor ebx, ebx
cmp edi, dword [esp + 0x18]
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x40], ebx
jle 0x100f296f
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.100f23c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100f2b54
test ebx, ebx
je 0x100f29ff
mov ebx, dword [ebp + 0x14]
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f2980
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f29dd
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.100cad40
test eax, eax
jne 0x100f2bf3
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.1001e600
add esp, 8
test eax, eax
je 0x100f2bf3
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.1012bec0
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 0x100f2a2d
mov ecx, eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f2a20
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 0x100f2a8b
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.100cad40
test eax, eax
jne 0x100f2bf3
mov ecx, dword [esp + 0x58]
push esi
push ebx
call fcn.1001e600
add esp, 8
test eax, eax
je 0x100f2bf3
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.1012bec0
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 0x100f2b54
mov ebx, dword [ebp + 0x18]
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f2ac4
sub ebx, edx
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x44]
add eax, ebx
cmp eax, ecx
jl 0x100f2b23
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.100cad40
test eax, eax
jne 0x100f2bf3
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
push esi
call fcn.1001e600
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x100f2bf3
mov dword [edi], eax
mov dword [edi + 8], esi
jmp 0x100f2b27
mov eax, dword [esp + 0x20]
mov esi, dword [edi + 4]
add eax, esi
push ebx
push dword [ebp + 0x18]
push eax
call fcn.1012bec0
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 0x100f2547
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
test esi, esi
je 0x100f2547
jmp 0x100f2c8f
cmp dword [ebp + 0xc], 0
je 0x100f2c8f
mov esi, dword [ebp + 0x1c]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100f2b80
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 0x100f2bd3
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.100cad40
test eax, eax
jne 0x100f2bf3
push dword [esp + 0x5c]
mov ecx, esi
push edi
call fcn.1001e600
add esp, 8
test eax, eax
je 0x100f2bf3
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.1012bec0
mov eax, dword [esp + 0x50]
add eax, esi
jmp 0x100f2c83
mov esi, 7
jmp 0x100f2c8f
cmp esi, 0x65
jne 0x100f2c8f
add ebx, dword [esp + 0x10]
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f2c10
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f2c65
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.100cad40
test eax, eax
jne 0x100f2bf3
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
push esi
call fcn.1001e600
add esp, 8
test eax, eax
je 0x100f2bf3
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.1012bec0
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