Function at 0x10078880
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 0x100824d3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x10091040]
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 0x100790db
test cx, cx
je 0x100790db
cmp dword [esi + 0x34], 0
jg 0x100790db
mov eax, dword [esi + 8]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x100789ad
push 4
push eax
call ecx
test eax, eax
jne 0x100789a7
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 0x10078940
sub ecx, edx
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
add esp, 4
mov edi, eax
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
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 sub.VCRUNTIME140.dll_memcpy
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 [0x10088b78]
push edi
call fcn.1007d11c
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 0x10078a39
push 4
push eax
call ecx
test eax, eax
jne 0x10078a39
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 0x100789d2
sub ecx, edx
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
add esp, 4
mov edi, eax
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
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 sub.VCRUNTIME140.dll_memcpy
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 [0x10088b78]
push edi
call fcn.1007d11c
mov esi, dword [ebp - 0x80]
add esp, 4
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10078a56
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10078a56
push eax
mov ecx, edi
call dword [0x10088b7c]
mov edi, dword [esi + 0x14]
test edi, edi
je 0x10078a73
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10078a73
push eax
mov ecx, edi
call dword [0x10088b7c]
mov edi, dword [ebp - 0x84]
cmp di, 0xffff
je 0x10079077
cmp word [ebp - 0x7c], 0xffff
je 0x10079077
mov byte [ebp - 0x78], 0x4d
mov al, 0x3e
xor al, byte [ebp - 0x78]
mov cl, 0x34
mov byte [ebp - 0x77], al
mov dl, 0x20
mov al, byte [ebp - 0x78]
mov ah, 0x2f
xor cl, al
mov byte [ebp - 0x4d], 0x11
xor dl, al
mov byte [ebp - 0x76], cl
mov ch, 0x22
mov byte [ebp - 0x70], 0
xor ch, al
mov byte [ebp - 0x75], dl
mov dh, 0x21
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 [0x10092548]
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 0x10078ae7
sub ecx, dword [ebp - 0x84]
mov eax, 0x7fffffff
sub eax, edx
cmp eax, ecx
jb 0x10079173
cmp dword [0x1009254c], 0xf
mov eax, 0x10092538
push ecx
cmova eax, dword [0x10092538]
lea ecx, [ebp - 0x77]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x54]
lea ecx, [ebp - 0x44]
call fcn.1000b3a0
mov dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 2
test ax, ax
jne 0x10078bbe
movaps xmm0, xmmword [0x10089890]
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 0x10078b60
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 0x10078b95
sub ecx, edx
lea eax, [ebp - 0x6b]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.100024a0
lea ecx, [ebp - 0xa0]
mov eax, 0x11
jmp 0x10078c40
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
movaps xmm0, xmmword [0x100895e0]
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], 0x12
xor ecx, ecx
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x10
jb 0x10078be5
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 0x10078c15
sub ecx, edi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0xb8]
push eax
call fcn.10006910
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 0x10078cd0
mov ecx, dword [ebp - 0xa4]
and eax, 0xfffffffd
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
cmp ecx, 0xf
jbe 0x10078cb5
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10078ca8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10078d0d
push ecx
push edx
call fcn.1007d105
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 0x10078d1d
mov ecx, dword [ebp - 0x8c]
and eax, 0xfffffffe
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
cmp ecx, 0xf
jbe 0x10078d1d
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10078d13
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10078d13
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x2c]
call fcn.10014be0
mov edi, dword [esi + 0x18]
test edi, edi
je 0x10078d6e
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10078d6e
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 [0x10088b5c]
mov eax, dword [ebp - 0x54]
test ax, ax
jne 0x10078df4
movaps xmm0, xmmword [0x10089eb0]
xor ecx, ecx
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0x63296c75
mov word [ebp - 0x58], 0x737f
mov byte [ebp - 0x56], al
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x15
jb 0x10078d93
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 0x10078dc8
sub ecx, edx
lea eax, [ebp - 0x6b]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.100024a0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
or dword [ebp - 0x48], 4
jmp 0x10078e7a
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
movaps xmm0, xmmword [0x1008a280]
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], 0x73
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x10
jb 0x10078e20
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 0x10078e50
sub ecx, edi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0xd0]
push eax
call fcn.10006910
add esp, 0x2c
mov ecx, eax
or dword [ebp - 0x48], 8
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1000b490
mov eax, dword [ebp - 0x48]
test al, 8
je 0x10078ee4
mov ecx, dword [ebp - 0xbc]
and eax, 0xfffffff7
mov dword [ebp - 0x48], eax
cmp ecx, 0xf
jbe 0x10078ec9
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10078ebc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10078f1b
push ecx
push edx
call fcn.1007d105
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 0x10078f2b
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0xf
jbe 0x10078f2b
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10078f21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10078f21
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10078fc0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10078fc0
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 0x10078f56
sub ecx, edx
mov dword [ebp - 0x7c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
add esp, 4
mov edi, eax
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
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 sub.VCRUNTIME140.dll_memcpy
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 [0x10088b54]
push edi
call fcn.1007d11c
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 0x1007900a
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1007900a
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 [0x10088b5c]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x1007903d
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10079033
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10079067
push ecx
push edi
call fcn.1007d105
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x10079077
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007906d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007906d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
mov edi, dword [esi + 0x20]
test edi, edi
je 0x10079094
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10079094
push eax
mov ecx, edi
call dword [0x10088b1c]
mov edi, dword [esi + 0x24]
test edi, edi
je 0x100790b1
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100790b1
push eax
mov ecx, edi
call dword [0x10088b1c]
mov al, byte [ebx + 0x18]
mov ecx, esi
mov byte [esi + 0x30], al
call fcn.10077690
mov esi, dword [esi]
test esi, esi
je 0x100790db
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100790db
push 1
mov ecx, esi
call dword [0x10088b1c]
mov ecx, dword [ebx + 0x30]
cmp ecx, 0xf
jbe 0x1007910b
mov edx, dword [ebx + 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10079101
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10079143
push ecx
push edx
call fcn.1007d105
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 0x10079153
mov edx, dword [ebx + 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10079149
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10079149
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
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.1007d0a4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x44
call fcn.10002330
int3