Function at 0x1007ba90
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 0x1009fdc3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x100b7080]
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 0x1007c2ff
test cx, cx
je 0x1007c2ff
cmp dword [esi + 0x34], 0
jg 0x1007c2ff
mov eax, dword [esi + 8]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1007bbbd
push 4
push eax
call ecx
test eax, eax
jne 0x1007bbb7
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 0x1007bb50
sub ecx, edx
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100812b9
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.100833b0
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.10082e30
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 [0x100ae5c0]
push edi
call fcn.100812b4
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 0x1007bc49
push 4
push eax
call ecx
test eax, eax
jne 0x1007bc49
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 0x1007bbe2
sub ecx, edx
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100812b9
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.100833b0
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.10082e30
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 [0x100ae5c0]
push edi
call fcn.100812b4
mov esi, dword [ebp - 0x80]
add esp, 4
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1007bc66
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007bc66
push eax
mov ecx, edi
call dword [0x100ae5c4]
mov edi, dword [esi + 0x14]
test edi, edi
je 0x1007bc83
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007bc83
push eax
mov ecx, edi
call dword [0x100ae5c4]
mov edi, dword [ebp - 0x84]
cmp di, 0xffff
je 0x1007c29b
cmp word [ebp - 0x7c], 0xffff
je 0x1007c29b
mov byte [ebp - 0x78], 0x17
mov al, 0x64
xor al, byte [ebp - 0x78]
mov cl, 0x6e
mov byte [ebp - 0x77], al
mov dl, 0x7a
mov al, byte [ebp - 0x78]
mov ah, 0x75
xor cl, al
mov byte [ebp - 0x4d], 0x4b
xor dl, al
mov byte [ebp - 0x76], cl
mov ch, 0x78
mov byte [ebp - 0x70], 0
xor ch, al
mov byte [ebp - 0x75], dl
mov dh, 0x7b
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 [0x100b8f88]
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 0x1007bcf7
sub ecx, dword [ebp - 0x84]
mov eax, 0x7fffffff
sub eax, edx
cmp eax, ecx
jb 0x1007c395
cmp dword [0x100b8f8c], 0xf
mov eax, 0x100b8f78
push ecx
cmova eax, dword [0x100b8f78]
lea ecx, [ebp - 0x77]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x54]
lea ecx, [ebp - 0x44]
call fcn.1000ee00
mov dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 2
test ax, ax
jne 0x1007bdce
movaps xmm0, xmmword [0x100afbd0]
xor ecx, ecx
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0x7c36736a
mov word [ebp - 0x58], 0x6c60
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 0x1007bd70
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 0x1007bda5
sub ecx, edx
lea eax, [ebp - 0x6b]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.10002570
lea ecx, [ebp - 0xa0]
mov eax, 0x11
jmp 0x1007be50
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
movaps xmm0, xmmword [0x100aed50]
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], 4
xor ecx, ecx
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x10
jb 0x1007bdf5
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 0x1007be25
sub ecx, edi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10002570
lea eax, [ebp - 0xb8]
push eax
call fcn.1000a3e0
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 0x1007bee4
mov ecx, dword [ebp - 0xa4]
and eax, 0xfffffffd
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
cmp ecx, 0xf
jbe 0x1007bec9
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007bebc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c39a
push ecx
push edx
call fcn.100812a6
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 0x1007bf2f
mov ecx, dword [ebp - 0x8c]
and eax, 0xfffffffe
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
cmp ecx, 0xf
jbe 0x1007bf2f
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007bf25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c39a
push ecx
push edx
call fcn.100812a6
add esp, 8
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x2c]
call fcn.10018170
mov edi, dword [esi + 0x18]
test edi, edi
je 0x1007bf80
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007bf80
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 [0x100ae5a4]
mov eax, dword [ebp - 0x54]
test ax, ax
jne 0x1007c011
movaps xmm0, xmmword [0x100af2b0]
xor ecx, ecx
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0x367c3920
mov word [ebp - 0x58], 0x262a
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 0x1007bfb0
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 0x1007bfe5
sub ecx, edx
lea eax, [ebp - 0x6b]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.10002570
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
or dword [ebp - 0x48], 4
jmp 0x1007c09a
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
movaps xmm0, xmmword [0x100af4c0]
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], 0x49
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x10
jb 0x1007c040
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 0x1007c070
sub ecx, edi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10002570
lea eax, [ebp - 0xd0]
push eax
call fcn.1000a3e0
add esp, 0x2c
mov ecx, eax
or dword [ebp - 0x48], 8
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100051c0
mov eax, dword [ebp - 0x48]
test al, 8
je 0x1007c108
mov ecx, dword [ebp - 0xbc]
and eax, 0xfffffff7
mov dword [ebp - 0x48], eax
cmp ecx, 0xf
jbe 0x1007c0ed
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007c0e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c39f
push ecx
push edx
call fcn.100812a6
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 0x1007c14d
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0xf
jbe 0x1007c14d
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007c143
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c39f
push ecx
push edx
call fcn.100812a6
add esp, 8
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1007c1e2
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c1e2
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 0x1007c178
sub ecx, edx
mov dword [ebp - 0x7c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100812b9
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.100833b0
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.10082e30
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 [0x100ae59c]
push edi
call fcn.100812b4
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 0x1007c22c
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c22c
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 [0x100ae5a4]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x1007c263
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x1007c259
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c3a4
push ecx
push edi
call fcn.100812a6
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1007c29b
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007c291
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c3a4
push ecx
push edx
call fcn.100812a6
add esp, 8
mov edi, dword [esi + 0x20]
test edi, edi
je 0x1007c2b8
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c2b8
push eax
mov ecx, edi
call dword [0x100ae564]
mov edi, dword [esi + 0x24]
test edi, edi
je 0x1007c2d5
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c2d5
push eax
mov ecx, edi
call dword [0x100ae564]
mov al, byte [ebx + 0x18]
mov ecx, esi
mov byte [esi + 0x30], al
call fcn.1007a790
mov esi, dword [esi]
test esi, esi
je 0x1007c2ff
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007c2ff
push 1
mov ecx, esi
call dword [0x100ae564]
mov ecx, dword [ebx + 0x30]
cmp ecx, 0xf
jbe 0x1007c333
mov edx, dword [ebx + 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007c329
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c3a9
push ecx
push edx
call fcn.100812a6
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 0x1007c375
mov edx, dword [ebx + 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007c36b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c3a9
push ecx
push edx
call fcn.100812a6
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.10081245
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x44
call fcn.100023b0
call fcn.1008643f
call fcn.1008643f
call fcn.1008643f
call fcn.1008643f
int3