Function at 0x100f2390
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.1004a820
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 0x100f2412
call fcn.1004aa70
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.1004a3d0
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.100dbb00
add esp, 0x14
test eax, eax
jne 0x100f2bb1
jmp 0x100f2454
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 0x100f2b0d
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x24], edx
jl 0x100f2457
cmp dword [esp + 0x2c], eax
jne 0x100f280a
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 0x100f2690
mov eax, ebx
mov dword [esp + 0x34], esi
and eax, 1
or eax, esi
jne 0x100f2517
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 0x100f24f0
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 0x100f257e
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 0x100f2550
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 0x100f2684
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.100dbb00
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100f2b9f
add ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
nop dword [eax]
cmp dword [esp + 0x2c], ebx
jge 0x100f262a
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 0x100f25e0
push eax
mov eax, edi
mov eax, dword [eax + 0x10]
call eax
mov edi, dword [ebp + 0x20]
add esp, 4
test esi, esi
je 0x100f2645
cmp esi, 0x65
jne 0x100f2b9f
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 0x100f268c
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 0x100f2690
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 0x100f275c
cmp dword [ebp + 8], esi
jg 0x100f275c
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x100f27e9
jns 0x100f26d9
mov ebx, ecx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f26d0
sub ebx, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f272d
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.100cac40
test eax, eax
jne 0x100f2b03
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.1001e570
add esp, 8
test eax, eax
je 0x100f2b03
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.1012be10
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 0x100f27ec
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f2762
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f27bf
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.100cac40
test eax, eax
jne 0x100f2b03
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.1001e570
add esp, 8
test eax, eax
je 0x100f2b03
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.1012be10
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 0x100f27ec
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 0x100f2450
jmp 0x100f2811
mov ebx, dword [ebp + 0x20]
mov edi, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
add eax, edx
cmp edi, eax
jge 0x100f2a79
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 0x100f284a
mov ebx, 1
jmp 0x100f284c
xor ebx, ebx
cmp edi, dword [esp + 0x18]
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x40], ebx
jle 0x100f287f
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.100f22d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100f2a64
test ebx, ebx
je 0x100f290f
mov ebx, dword [ebp + 0x14]
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f2890
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f28ed
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.100cac40
test eax, eax
jne 0x100f2b03
push dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push esi
call fcn.1001e570
add esp, 8
test eax, eax
je 0x100f2b03
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.1012be10
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 0x100f293d
mov ecx, eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f2930
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 0x100f299b
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.100cac40
test eax, eax
jne 0x100f2b03
mov ecx, dword [esp + 0x58]
push esi
push ebx
call fcn.1001e570
add esp, 8
test eax, eax
je 0x100f2b03
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.1012be10
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 0x100f2a64
mov ebx, dword [ebp + 0x18]
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f29d4
sub ebx, edx
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x44]
add eax, ebx
cmp eax, ecx
jl 0x100f2a33
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.100cac40
test eax, eax
jne 0x100f2b03
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
push esi
call fcn.1001e570
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x100f2b03
mov dword [edi], eax
mov dword [edi + 8], esi
jmp 0x100f2a37
mov eax, dword [esp + 0x20]
mov esi, dword [edi + 4]
add eax, esi
push ebx
push dword [ebp + 0x18]
push eax
call fcn.1012be10
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 0x100f2457
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
test esi, esi
je 0x100f2457
jmp 0x100f2b9f
cmp dword [ebp + 0xc], 0
je 0x100f2b9f
mov esi, dword [ebp + 0x1c]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100f2a90
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 0x100f2ae3
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.100cac40
test eax, eax
jne 0x100f2b03
push dword [esp + 0x5c]
mov ecx, esi
push edi
call fcn.1001e570
add esp, 8
test eax, eax
je 0x100f2b03
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.1012be10
mov eax, dword [esp + 0x50]
add eax, esi
jmp 0x100f2b93
mov esi, 7
jmp 0x100f2b9f
cmp esi, 0x65
jne 0x100f2b9f
add ebx, dword [esp + 0x10]
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f2b20
mov eax, dword [edi + 8]
sub ebx, ecx
mov ecx, dword [edi + 4]
inc ecx
add ecx, ebx
cmp ecx, eax
jl 0x100f2b75
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.100cac40
test eax, eax
jne 0x100f2b03
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
push esi
call fcn.1001e570
add esp, 8
test eax, eax
je 0x100f2b03
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.1012be10
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