Function at 0x1007b990
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f913
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x100b7040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
movzx ecx, word [ebx + 0xc]
movzx eax, word [ebx + 8]
movzx edx, word [ebx + 0x14]
mov dword [ebp - 0x88], ecx
movzx ecx, word [ebx + 0x10]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 1
test ax, ax
je 0x1007c1ff
test cx, cx
je 0x1007c1ff
cmp dword [esi + 0x34], 0
jg 0x1007c1ff
mov eax, dword [esi + 8]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1007babd
push 4
push eax
call ecx
test eax, eax
jne 0x1007bab7
cmp dword [ebx + 0x30], 0xf
lea ecx, [ebx + 0x1c]
cmova ecx, dword [ebx + 0x1c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007ba50
sub ecx, edx
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100810e9
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.100831e0
add esp, 0xc
lea edx, [ebx + 0x1c]
cmp dword [ebx + 0x30], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebx + 0x1c]
push dword [ebp - 0x4c]
push edx
push esi
call fcn.10082c60
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov ecx, dword [ebp - 0x48]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100ae570]
push edi
call fcn.100810e4
mov esi, dword [ebp - 0x80]
add esp, 4
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1007bb49
push 4
push eax
call ecx
test eax, eax
jne 0x1007bb49
cmp dword [ebx + 0x48], 0xf
lea ecx, [ebx + 0x34]
cmova ecx, dword [ebx + 0x34]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007bae2
sub ecx, edx
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100810e9
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.100831e0
add esp, 0xc
lea edx, [ebx + 0x34]
cmp dword [ebx + 0x48], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebx + 0x34]
push dword [ebp - 0x4c]
push edx
push esi
call fcn.10082c60
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov ecx, dword [ebp - 0x48]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100ae570]
push edi
call fcn.100810e4
mov esi, dword [ebp - 0x80]
add esp, 4
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1007bb66
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007bb66
push eax
mov ecx, edi
call dword [0x100ae574]
mov edi, dword [esi + 0x14]
test edi, edi
je 0x1007bb83
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007bb83
push eax
mov ecx, edi
call dword [0x100ae574]
mov edi, dword [ebp - 0x84]
cmp di, 0xffff
je 0x1007c19b
cmp word [ebp - 0x7c], 0xffff
je 0x1007c19b
mov byte [ebp - 0x78], 0x42
mov al, 0x31
xor al, byte [ebp - 0x78]
mov cl, 0x3b
mov byte [ebp - 0x77], al
mov dl, 0x2f
mov al, byte [ebp - 0x78]
mov ah, 0x20
xor cl, al
mov byte [ebp - 0x4d], 0x1e
xor dl, al
mov byte [ebp - 0x76], cl
mov ch, 0x2d
mov byte [ebp - 0x70], 0
xor ch, al
mov byte [ebp - 0x75], dl
mov dh, 0x2e
mov byte [ebp - 0x73], ch
xor dh, al
mov byte [ebp - 0x70], 0
xor ah, al
mov byte [ebp - 0x72], dh
mov al, byte [ebp - 0x4d]
lea ecx, [ebp - 0x77]
xor al, byte [ebp - 0x78]
mov edx, dword [0x100b8f48]
mov byte [ebp - 0x74], ah
mov byte [ebp - 0x71], al
lea eax, [ecx + 1]
mov dword [ebp - 0x84], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007bbf7
sub ecx, dword [ebp - 0x84]
mov eax, 0x7fffffff
sub eax, edx
cmp eax, ecx
jb 0x1007c295
cmp dword [0x100b8f4c], 0xf
mov eax, 0x100b8f38
push ecx
cmova eax, dword [0x100b8f38]
lea ecx, [ebp - 0x77]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x54]
lea ecx, [ebp - 0x44]
call fcn.1000ed20
mov dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 2
test ax, ax
jne 0x1007bcce
movaps xmm0, xmmword [0x100aed80]
xor ecx, ecx
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0xb41041d
mov word [ebp - 0x58], 0x1b17
mov byte [ebp - 0x56], al
nop dword [eax]
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x15
jb 0x1007bc70
xorps xmm0, xmm0
mov byte [ebp - 0x56], 0
lea ecx, [ebp - 0x6b]
mov dword [ebp - 0x90], 0
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x8c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007bca5
sub ecx, edx
lea eax, [ebp - 0x6b]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.10002580
lea ecx, [ebp - 0xa0]
mov eax, 0x11
jmp 0x1007bd50
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
movaps xmm0, xmmword [0x100afad0]
cmova ecx, dword [ebp - 0x44]
cwde
push eax
movsx eax, di
push eax
push 1
push ecx
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0x7a
xor ecx, ecx
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x10
jb 0x1007bcf5
sub esp, 0x18
mov byte [ebp - 0x57], 0
mov edx, esp
lea ecx, [ebp - 0x67]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007bd25
sub ecx, edi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10002580
lea eax, [ebp - 0xb8]
push eax
call fcn.1000a310
mov ecx, eax
add esp, 0x2c
mov eax, 0x12
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [ebp - 4], 4
test al, 2
je 0x1007bde4
mov ecx, dword [ebp - 0xa4]
and eax, 0xfffffffd
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
cmp ecx, 0xf
jbe 0x1007bdc9
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007bdbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c29a
push ecx
push edx
call fcn.100810d6
mov eax, dword [ebp - 0x48]
add esp, 8
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
mov byte [ebp - 4], 5
test al, 1
je 0x1007be2f
mov ecx, dword [ebp - 0x8c]
and eax, 0xfffffffe
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
cmp ecx, 0xf
jbe 0x1007be2f
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007be25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c29a
push ecx
push edx
call fcn.100810d6
add esp, 8
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x2c]
call fcn.10018090
mov edi, dword [esi + 0x18]
test edi, edi
je 0x1007be80
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007be80
sub esp, 0x20
mov ecx, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [0x100ae554]
mov eax, dword [ebp - 0x54]
test ax, ax
jne 0x1007bf11
movaps xmm0, xmmword [0x100af4c0]
xor ecx, ecx
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0x4903465f
mov word [ebp - 0x58], 0x5955
mov byte [ebp - 0x56], al
nop dword [eax]
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x15
jb 0x1007beb0
xorps xmm0, xmm0
mov byte [ebp - 0x56], 0
lea ecx, [ebp - 0x6b]
mov dword [ebp - 0x90], 0
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x8c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007bee5
sub ecx, edx
lea eax, [ebp - 0x6b]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.10002580
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
or dword [ebp - 0x48], 4
jmp 0x1007bf9a
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
movaps xmm0, xmmword [0x100aee00]
cmova ecx, dword [ebp - 0x44]
cwde
push eax
mov eax, dword [ebp - 0x7c]
cwde
push eax
push 1
push ecx
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0x1e
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x10
jb 0x1007bf40
sub esp, 0x18
mov byte [ebp - 0x57], 0
mov edx, esp
lea ecx, [ebp - 0x67]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007bf70
sub ecx, edi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10002580
lea eax, [ebp - 0xd0]
push eax
call fcn.1000a310
add esp, 0x2c
mov ecx, eax
or dword [ebp - 0x48], 8
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10005130
mov eax, dword [ebp - 0x48]
test al, 8
je 0x1007c008
mov ecx, dword [ebp - 0xbc]
and eax, 0xfffffff7
mov dword [ebp - 0x48], eax
cmp ecx, 0xf
jbe 0x1007bfed
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007bfe0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c29f
push ecx
push edx
call fcn.100810d6
mov eax, dword [ebp - 0x48]
add esp, 8
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], 0
mov dword [ebp - 4], 5
test al, 4
je 0x1007c04d
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0xf
jbe 0x1007c04d
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007c043
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c29f
push ecx
push edx
call fcn.100810d6
add esp, 8
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1007c0e2
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c0e2
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007c078
sub ecx, edx
mov dword [ebp - 0x7c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100810e9
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.100831e0
add esp, 0xc
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x2c]
push dword [ebp - 0x7c]
push edx
push esi
call fcn.10082c60
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100ae54c]
push edi
call fcn.100810e4
mov esi, dword [ebp - 0x80]
add esp, 4
mov edi, dword [ebp - 0x2c]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1007c12c
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c12c
mov ecx, dword [ebp - 0x54]
sub esp, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [0x100ae554]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x1007c163
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x1007c159
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c2a4
push ecx
push edi
call fcn.100810d6
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1007c19b
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007c191
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c2a4
push ecx
push edx
call fcn.100810d6
add esp, 8
mov edi, dword [esi + 0x20]
test edi, edi
je 0x1007c1b8
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c1b8
push eax
mov ecx, edi
call dword [0x100ae514]
mov edi, dword [esi + 0x24]
test edi, edi
je 0x1007c1d5
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c1d5
push eax
mov ecx, edi
call dword [0x100ae514]
mov al, byte [ebx + 0x18]
mov ecx, esi
mov byte [esi + 0x30], al
call fcn.1007a690
mov esi, dword [esi]
test esi, esi
je 0x1007c1ff
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c1ff
push 1
mov ecx, esi
call dword [0x100ae514]
mov ecx, dword [ebx + 0x30]
cmp ecx, 0xf
jbe 0x1007c233
mov edx, dword [ebx + 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007c229
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c2a9
push ecx
push edx
call fcn.100810d6
add esp, 8
mov ecx, dword [ebx + 0x48]
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0xf
mov byte [ebx + 0x1c], 0
cmp ecx, 0xf
jbe 0x1007c275
mov edx, dword [ebx + 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007c26b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c2a9
push ecx
push edx
call fcn.100810d6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10081075
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x44
call fcn.100023c0
call fcn.1008626f
call fcn.1008626f
call fcn.1008626f
call fcn.1008626f
int3