Function at 0x1007f980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x1007fa06
test edi, edi
je 0x1007f9e8
cmp byte [edi], 0
mov esi, edi
je 0x1007f9a6
nop
inc esi
cmp byte [esi], 0
jne 0x1007f9a0
mov ebx, dword [ebp + 8]
sub esi, edi
add ebx, 0x19c
and esi, 0x3fffffff
cmp dword [ebx + 0xc], 0
je 0x1007f9cd
push esi
push edi
call fcn.100a4ec0
xor edx, edx
add esp, 8
div dword [ebx]
jmp 0x1007f9cf
xor edx, edx
push edx
push esi
push edi
push ebx
call fcn.1005ace0
add esp, 0x10
test eax, eax
je 0x1007f9e4
mov ecx, dword [eax + 8]
jmp 0x1007f9ee
xor ecx, ecx
jmp 0x1007f9ee
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x1007fa10
movzx eax, byte [ebp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea eax, [ecx + eax*4]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1007fa10
cmp dword [eax + 0xc], 0
jne 0x1007fbad
movzx ebx, byte [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push ebx
push esi
call fcn.1004fd90
add esp, 0xc
test edi, edi
je 0x1007fa84
cmp byte [edi], 0
mov esi, edi
je 0x1007fa36
nop dword [eax]
inc esi
cmp byte [esi], 0
jne 0x1007fa30
mov eax, dword [ebp + 8]
sub esi, edi
add eax, 0x19c
and esi, 0x3fffffff
mov dword [ebp + 0x10], eax
cmp dword [eax + 0xc], 0
je 0x1007fa69
push esi
push edi
call fcn.100a4ec0
mov ecx, dword [ebp + 8]
xor edx, edx
add esp, 8
div dword [ecx + 0x19c]
mov eax, dword [ebp + 0x10]
jmp 0x1007fa6b
xor edx, edx
push edx
push esi
push edi
push eax
call fcn.1005ace0
add esp, 0x10
test eax, eax
je 0x1007fa80
mov eax, dword [eax + 8]
jmp 0x1007fa87
xor eax, eax
jmp 0x1007fa87
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1007fbad
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
add eax, 0xffffffec
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1007fbad
cmp dword [eax + 0xc], 0
jne 0x1007fbad
mov esi, dword [eax]
xor edx, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], edx
nop word [eax + eax]
mov bl, byte [edx + 0x100bcb74]
mov byte [ebp - 1], bl
test esi, esi
je 0x1007fb69
cmp byte [esi], 0
mov ecx, esi
je 0x1007fade
inc ecx
cmp byte [ecx], 0
jne 0x1007fad8
mov eax, dword [ebp + 8]
sub ecx, esi
add eax, 0x19c
and ecx, 0x3fffffff
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
cmp dword [eax + 0xc], 0
je 0x1007fb48
xor edi, edi
mov dword [ebp - 0xc], esi
mov ebx, ecx
test ecx, ecx
je 0x1007fb33
mov ecx, esi
nop word [eax + eax]
movzx eax, byte [ecx]
lea edx, [edi*8]
dec ebx
lea ecx, [ecx + 1]
movzx esi, byte [eax + 0x100bc608]
xor esi, edx
xor edi, esi
test ebx, ebx
jg 0x1007fb10
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov bl, byte [ebp - 1]
mov eax, edi
mov edi, dword [ebp + 8]
xor edx, edx
div dword [edi + 0x19c]
mov eax, dword [ebp - 0x18]
jmp 0x1007fb4a
xor edx, edx
push edx
push ecx
push esi
push eax
call fcn.1005ace0
add esp, 0x10
test eax, eax
je 0x1007fb62
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 8]
jmp 0x1007fb6f
mov edx, dword [ebp - 8]
xor ecx, ecx
jmp 0x1007fb6f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x1007fb7f
movzx eax, bl
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
add ecx, 0xffffffec
cmp dword [ecx + 0xc], 0
jne 0x1007fb9b
inc edx
mov dword [ebp - 8], edx
cmp edx, 3
jl 0x1007fac0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, edx
movups xmm0, xmmword [ecx]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret