Function at 0x100d8f60
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 + 4]
mov ebx, ecx
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x1c], esi
mov esi, dword [edx]
mov eax, dword [ebx]
inc esi
push edi
push esi
push dword [ebx + 0xc]
mov dword [esp + 0x44], eax
xor edi, edi
mov eax, dword [edx + 0x10]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
call fcn.10046420
mov ecx, dword [esp + 0x3c]
add esp, 8
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov ecx, dword [ecx + 0xc]
push esi
push ecx
test ebx, ebx
jne 0x100d8fe2
call fcn.10046670
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.10045fd0
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x58], eax
mov ecx, dword [ecx + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
lea edx, [esp + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x44]
push ebx
mov edx, dword [eax + 0x14]
call fcn.100cc610
add esp, 0x14
test eax, eax
jne 0x100d9676
mov ebx, dword [ebp + 0x20]
jmp 0x100d901f
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x18]
mov dword [esp + 0x4c], 0xffffffff
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], 0
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x5c]
push dword [esp + 0x58]
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x100d95cd
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
cmp edi, ecx
jl 0x100d901b
cmp dword [esp + 0x38], eax
jne 0x100d935c
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x58], eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov eax, ecx
or eax, dword [esp + 0x14]
je 0x100d9263
mov eax, ecx
mov dword [esp + 0x38], esi
and eax, 1
or eax, esi
jne 0x100d90eb
mov edi, dword [esp + 0x14]
mov ebx, ecx
nop dword [eax]
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 0x100d90c0
mov ebx, dword [ebp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x38], esi
mov eax, dword [ebp + 0x10]
xor edx, edx
dec eax
mov dword [esp + 0x30], 0
xor ecx, ecx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x10]
and ecx, dword [esp + 0x14]
or edx, ecx
jne 0x100d9154
mov edi, dword [esp + 0x30]
mov ebx, eax
mov esi, dword [esp + 0x10]
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 + 0x14]
or edx, ecx
je 0x100d9122
mov ebx, dword [ebp + 0x20]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x18]
sub esi, dword [esp + 0x30]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x54], eax
test eax, eax
jle 0x100d925b
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], 0
mov ecx, dword [eax + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x38]
push dword [esp + 0x5c]
push dword [esp + 0x64]
mov edx, dword [eax + 0x14]
call fcn.100cc610
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100d9664
mov edi, dword [esp + 0x54]
add edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
cmp dword [esp + 0x30], edi
jge 0x100d91ff
lea ecx, [esp + 0x30]
mov dword [esp + 0x54], 0
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x5c], 0
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], 0
push ecx
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x74]
push ecx
push eax
mov eax, dword [ebx + 0x14]
call eax
mov esi, eax
add esp, 0x18
mov eax, dword [esp + 0x40]
test esi, esi
je 0x100d91b5
push eax
mov eax, ebx
mov eax, dword [eax + 0x10]
call eax
mov ebx, dword [ebp + 0x20]
add esp, 4
test esi, esi
je 0x100d921a
cmp esi, 0x65
jne 0x100d9664
mov edi, dword [esp + 0x18]
xor eax, eax
mov edx, dword [esp + 0x1c]
cmp esi, 0x65
sete al
sub eax, dword [ebp + 0x10]
add eax, dword [esp + 0x30]
test eax, eax
jle 0x100d925f
movq xmm1, qword [esp + 0x68]
add dword [esp + 0x20], eax
movd xmm0, eax
psrlq xmm1, xmm0
movq qword [esp + 0x68], xmm1
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x14], eax
jmp 0x100d9263
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
test eax, eax
jg 0x100d92a8
cmp dword [ebp + 8], esi
jg 0x100d92a8
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x100d9338
push ecx
mov ecx, ebx
call fcn.100d8eb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100d9664
jmp 0x100d9334
mov edi, dword [ebp + 0x1c]
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x100d92b0
mov eax, dword [ebx + 4]
sub edi, ecx
mov edx, dword [ebx + 8]
lea ecx, [edi + 1]
add ecx, eax
cmp ecx, edx
jl 0x100d9314
mov eax, edx
cdq
mov esi, eax
mov ecx, edx
mov eax, edi
cdq
add esi, eax
mov eax, dword [ebx]
mov dword [esp + 0x58], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.100be130
test eax, eax
jne 0x100d95c3
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
push esi
call fcn.1001cef0
add esp, 8
test eax, eax
je 0x100d95c3
mov dword [ebx], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebx]
add eax, esi
push edi
push ecx
push eax
call fcn.10107750
mov eax, dword [ebx + 4]
add esp, 0xc
add eax, edi
mov dword [ebx + 4], eax
mov byte [esi + eax], 0
xor esi, esi
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], 1
mov dword [esp + 0x6c], eax
cmp edi, ecx
jl 0x100d901b
mov eax, dword [ebp + 0x10]
add eax, ecx
cmp edi, eax
jge 0x100d9543
xor edx, edx
mov dword [esp + 0x30], 1
mov eax, edi
sub eax, ecx
xor ecx, ecx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x10]
and ecx, dword [esp + 0x14]
or edx, ecx
jne 0x100d939e
mov dword [esp + 0x30], 0
cmp edi, dword [esp + 0x20]
jle 0x100d93c7
mov eax, dword [esp + 0x28]
mov ecx, ebx
mov edx, dword [esp + 0x24]
sub eax, edx
add edx, dword [esp + 0x1c]
push eax
call fcn.100d8eb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100d952e
mov edi, dword [esp + 0x30]
test edi, edi
je 0x100d9465
mov edi, dword [ebp + 0x14]
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x100d93e0
mov eax, dword [ebx + 4]
sub edi, ecx
mov edx, dword [ebx + 8]
lea ecx, [edi + 1]
add ecx, eax
cmp ecx, edx
jl 0x100d9444
mov eax, edx
cdq
mov esi, eax
mov ecx, edx
mov eax, edi
cdq
add esi, eax
mov eax, dword [ebx]
mov dword [esp + 0x58], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.100be130
test eax, eax
jne 0x100d95c3
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
push esi
call fcn.1001cef0
add esp, 8
test eax, eax
je 0x100d95c3
mov dword [ebx], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov esi, dword [ebx]
add eax, esi
push edi
push dword [ebp + 0x14]
push eax
call fcn.10107750
mov eax, dword [ebx + 4]
add esp, 0xc
add eax, edi
mov edi, dword [esp + 0x30]
mov dword [ebx + 4], eax
mov byte [esi + eax], 0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
sub eax, ecx
push eax
lea edx, [ecx + edx]
mov ecx, ebx
call fcn.100d8eb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100d952e
test edi, edi
je 0x100d952e
mov edi, dword [ebp + 0x18]
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x100d94a0
mov eax, dword [ebx + 4]
sub edi, ecx
mov edx, dword [ebx + 8]
lea ecx, [edi + 1]
add ecx, eax
cmp ecx, edx
jl 0x100d9504
mov eax, edx
cdq
mov esi, eax
mov ecx, edx
mov eax, edi
cdq
add esi, eax
mov eax, dword [ebx]
mov dword [esp + 0x58], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.100be130
test eax, eax
jne 0x100d95c3
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
push esi
call fcn.1001cef0
add esp, 8
test eax, eax
je 0x100d95c3
mov dword [ebx], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov esi, dword [ebx]
add eax, esi
push edi
push dword [ebp + 0x18]
push eax
call fcn.10107750
mov eax, dword [ebx + 4]
add esp, 0xc
add eax, edi
mov dword [ebx + 4], eax
mov byte [esi + eax], 0
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
jmp 0x100d901f
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
test esi, esi
je 0x100d901f
jmp 0x100d9664
cmp dword [ebp + 0xc], 0
je 0x100d9664
mov edi, dword [ebp + 0x1c]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100d9553
mov eax, dword [ebx + 4]
sub edi, ecx
mov edx, dword [ebx + 8]
lea ecx, [edi + 1]
add ecx, eax
cmp ecx, edx
jl 0x100d95af
mov eax, edx
cdq
mov esi, eax
mov ecx, edx
mov eax, edi
cdq
add esi, eax
mov eax, dword [ebx]
mov dword [esp + 0x58], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.100be130
test eax, eax
jne 0x100d95c3
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
push esi
call fcn.1001cef0
add esp, 8
test eax, eax
je 0x100d95c3
mov dword [ebx], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebx]
add eax, esi
push edi
push ecx
push eax
call fcn.10107750
jmp 0x100d9653
mov esi, 7
jmp 0x100d9664
cmp esi, 0x65
jne 0x100d9664
add edi, dword [esp + 0x1c]
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x100d95e0
mov eax, dword [ebx + 4]
sub edi, ecx
mov edx, dword [ebx + 8]
lea ecx, [edi + 1]
add ecx, eax
cmp ecx, edx
jl 0x100d963c
mov eax, edx
cdq
mov esi, eax
mov ecx, edx
mov eax, edi
cdq
add esi, eax
mov eax, dword [ebx]
mov dword [esp + 0x58], eax
adc ecx, edx
add esi, 0x64
adc ecx, 0
mov dword [esp + 0x5c], ecx
call fcn.100be130
test eax, eax
jne 0x100d95c3
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
push esi
call fcn.1001cef0
add esp, 8
test eax, eax
je 0x100d95c3
mov dword [ebx], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x24]
mov esi, dword [ebx]
add eax, esi
push edi
push ecx
push eax
call fcn.10107750
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebx + 4]
add esp, 0xc
add eax, edi
mov dword [ebx + 4], eax
mov byte [esi + eax], 0
xor esi, esi
mov eax, dword [esp + 0x48]
push dword [esp + 0x44]
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