Function at 0x10079640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cc1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push esi
push edi
mov eax, dword [0x100f2040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x110]
xor cl, cl
mov edx, eax
mov esi, 6
nop dword [eax + eax]
cmp dword [edx - 4], 0
je 0x1007968b
cmp dword [edx], 0
jne 0x1007968d
inc cl
add edx, 0x18
sub esi, 1
jne 0x10079680
cmp cl, 6
jne 0x100797ce
movaps xmm0, xmmword [str._BZH_]
xor ecx, ecx
movups xmmword [ebp - 0x20], xmm0
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x1f]
xor al, byte [ebp - 0x20]
mov byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x100796b0
xorps xmm0, xmm0
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x1f]
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x44], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100796e7
sub ecx, edx
lea eax, [ebp - 0x1f]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.10003370
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x100e9720]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x21767b7f
mov word [ebp - 0x10], 0x2e
nop
mov al, byte [ebp + ecx - 0x23]
xor al, byte [ebp - 0x24]
mov byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x14
jb 0x10079720
xorps xmm0, xmm0
mov byte [ebp - 0xf], 0
lea ecx, [ebp - 0x23]
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x28], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10079757
sub ecx, edx
lea eax, [ebp - 0x23]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10003370
push 0
push 0
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.1002afd0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.10002f50
mov eax, dword [ebp - 0x40]
push 8
push eax
mov dword [ebp - 0x40], 0
call fcn.100891b0
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.10002f50
mov eax, dword [ebp - 0x5c]
push 8
push eax
mov dword [ebp - 0x5c], 0
call fcn.100891b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
lea ecx, [esi + 6]
cmp dword [eax - 4], 0
jbe 0x100797e1
cmp dword [eax], 0
jbe 0x100797e1
add esi, dword [eax + 4]
add eax, 0x18
sub ecx, 1
jne 0x100797d3
mov ecx, edi
call fcn.10077f90
mov ecx, edi
call fcn.100783a0
push 0x2e
mov edx, esi
lea ecx, [ebp - 0x98]
call fcn.10019600
add esp, 4
mov dword [ebp - 4], 2
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1007981b
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100e9570]
push ecx
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x1e484d
xor ecx, ecx
mov al, byte [ebp + ecx - 0x23]
xor al, byte [ebp - 0x24]
mov byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x12
jb 0x10079830
sub esp, 0x1c
mov byte [ebp - 0x11], 0
mov edx, esp
lea ecx, [ebp - 0x23]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10079870
sub ecx, esi
lea eax, [ebp - 0x23]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x7c]
push eax
call fcn.1000d650
add esp, 0x24
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [edi + 0x80]
call fcn.1001e150
lea ecx, [ebp - 0x7c]
call fcn.10002f50
mov eax, dword [ebp - 0x7c]
push 8
push eax
mov dword [ebp - 0x7c], 0
call fcn.100891b0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.10002f50
mov eax, dword [ebp - 0x98]
push 8
push eax
mov dword [ebp - 0x98], 0
call fcn.100891b0
mov esi, dword [edi + 0x20]
add esp, 8
test esi, esi
je 0x1007990a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007990a
push 1
mov ecx, esi
call dword [0x100e6d54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret