Function at 0x10027850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100692a5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1007e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [0x100819c0], eax
call esi
sub eax, dword [edi + 0x30]
mov ecx, eax
sbb edx, dword [edi + 0x34]
call fcn.10067110
divss xmm0, dword [0x1007675c]
comiss xmm0, dword [0x1007670c]
jb 0x10027eb4
call esi
cmp byte [edi + 0x20], 0
mov ecx, 0xe10
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], edx
je 0x10027c4b
mov esi, dword [edi + 0x24]
test esi, esi
jle 0x100278d1
dec esi
mov dword [edi + 0x24], esi
test esi, esi
js 0x10027c3a
mov eax, esi
mov dword [ebp - 0x18], 0
cdq
xorps xmm0, xmm0
idiv ecx
mov eax, 0x88888889
mov dword [ebp - 0x14], 0xf
mov ecx, edx
imul ecx
movups xmmword [ebp - 0x28], xmm0
mov eax, esi
mov esi, 0x3c
add edx, ecx
mov byte [ebp - 0x28], 0
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
idiv esi
mov dword [ebp - 4], 0
push edx
push ecx
cmp ecx, 0xa
jae 0x10027a5c
cmp edx, 0xa
jae 0x100279f3
mov al, 5
mov byte [ebp - 0x34], 0x35
mov ch, al
mov byte [ebp - 0x2c], 0
xor al, byte [ebp - 0x34]
mov cl, 0x10
mov dl, 0x51
mov byte [ebp - 0x33], al
mov al, byte [ebp - 0x34]
mov dh, cl
xor cl, al
mov byte [ebp - 0x35], dl
xor dl, al
mov byte [ebp - 0x32], cl
xor ch, al
mov byte [ebp - 0x31], dl
xor dh, al
mov byte [ebp - 0x2f], ch
mov ah, 0xf
mov byte [ebp - 0x2e], dh
xor ah, al
mov byte [ebp - 0x2c], 0
mov al, byte [ebp - 0x35]
lea ecx, [ebp - 0x33]
xor al, byte [ebp - 0x34]
lea esi, [ecx + 1]
sub esp, 0x18
mov byte [ebp - 0x30], ah
mov edx, esp
mov byte [ebp - 0x2d], al
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027991
sub ecx, esi
lea eax, [ebp - 0x33]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x54]
push eax
call fcn.10004db0
add esp, 0x24
lea ecx, [ebp - 0x28]
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x10027b26
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10027b1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10027b1c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov byte [ebp - 0x34], 0x3d
mov al, 0xd
xor al, byte [ebp - 0x34]
mov cl, 0x18
mov dl, 0x59
mov byte [ebp - 0x33], al
mov al, byte [ebp - 0x34]
mov ch, cl
mov dh, dl
mov byte [ebp - 0x2d], 0
mov ah, 7
mov byte [ebp - 0x2d], 0
xor cl, al
xor dl, al
xor ch, al
mov byte [ebp - 0x31], dl
xor dh, al
mov byte [ebp - 0x32], cl
xor ah, al
mov byte [ebp - 0x2e], dh
sub esp, 0x18
mov byte [ebp - 0x2f], ch
mov edx, esp
mov byte [ebp - 0x30], ah
lea ecx, [ebp - 0x33]
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027a50
jmp 0x10027998
cmp edx, 0xa
jae 0x10027ac3
mov al, 0x49
mov byte [ebp - 0x34], 0x6c
mov ch, al
mov byte [ebp - 0x2d], 0
xor al, byte [ebp - 0x34]
mov cl, 8
mov dh, cl
mov byte [ebp - 0x33], al
mov al, byte [ebp - 0x34]
mov dl, 0x56
mov ah, 0x5c
mov byte [ebp - 0x2d], 0
xor cl, al
xor dl, al
xor ch, al
mov byte [ebp - 0x31], dl
xor dh, al
mov byte [ebp - 0x32], cl
xor ah, al
mov byte [ebp - 0x2e], dh
sub esp, 0x18
mov byte [ebp - 0x2f], ch
mov edx, esp
mov byte [ebp - 0x30], ah
lea ecx, [ebp - 0x33]
lea esi, [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 0x10027ab7
jmp 0x10027998
mov dh, 0x7a
mov byte [ebp - 0x2e], 0
mov cl, 0x1e
mov byte [ebp - 0x34], dh
mov al, 0x5f
mov byte [ebp - 0x2e], 0
mov ch, cl
mov dl, 0x40
mov ah, al
xor cl, dh
xor ch, dh
mov byte [ebp - 0x32], cl
xor al, dh
mov byte [ebp - 0x2f], ch
xor dl, dh
mov byte [ebp - 0x33], al
xor ah, dh
mov byte [ebp - 0x31], dl
sub esp, 0x18
mov byte [ebp - 0x30], ah
mov edx, esp
lea ecx, [ebp - 0x33]
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027b10
jmp 0x10027998
push ecx
push edx
call fcn.100662c0
add esp, 8
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
movaps xmm0, xmmword [0x100770f0]
cmova eax, dword [ebp - 0x28]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x3816403e
mov byte [ebp - 0x40], 0
nop word [eax + eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x13
jb 0x10027b50
sub esp, 0x18
mov byte [ebp - 0x40], 0
mov edx, esp
lea ecx, [ebp - 0x53]
xorps xmm0, xmm0
lea esi, [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 0x10027b80
sub ecx, esi
lea eax, [ebp - 0x53]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x6c]
push eax
call fcn.10004db0
add esp, 0x20
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
mov esi, dword [edi + 8]
test esi, esi
je 0x10027bc7
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10027bc7
push dword [ebp - 0x3c]
mov ecx, esi
call dword [0x10075274]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x10027bff
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10027bf5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279ed
push ecx
push edx
call fcn.100662c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10027c3a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10027c30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279ed
push ecx
push edx
call fcn.100662c0
add esp, 8
cmp dword [edi + 0x24], 0
jg 0x10027c4b
mov byte [edi + 0x20], 0
mov dword [edi + 0x24], 0
cmp byte [edi + 0x21], 0
je 0x10027eb4
movzx eax, word [edi + 0x28]
mov ecx, eax
test ax, ax
jle 0x10027c68
dec eax
mov word [edi + 0x28], ax
movzx ecx, ax
test cx, cx
js 0x10027ea3
movsx esi, cx
xorps xmm0, xmm0
mov eax, esi
mov dword [ebp - 0x18], 0
cdq
mov ecx, 0xe10
idiv ecx
mov eax, 0x88888889
mov dword [ebp - 0x14], 0xf
mov ecx, edx
imul ecx
movups xmmword [ebp - 0x28], xmm0
mov eax, esi
mov esi, 0x3c
add edx, ecx
mov byte [ebp - 0x28], 0
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
idiv esi
movzx ecx, cx
movzx eax, dx
mov dword [ebp - 4], 2
cmp ecx, 0xa
jae 0x10027ecf
cmp eax, 0xa
jae 0x10027ecf
push eax
push ecx
mov al, 0x5e
mov byte [ebp - 0x34], 0x6e
mov ch, al
mov byte [ebp - 0x2c], 0
xor al, byte [ebp - 0x34]
mov cl, 0x4b
mov dl, 0xa
mov byte [ebp - 0x33], al
mov al, byte [ebp - 0x34]
mov dh, cl
xor cl, al
mov byte [ebp - 0x35], dl
xor dl, al
mov byte [ebp - 0x32], cl
xor ch, al
mov byte [ebp - 0x31], dl
xor dh, al
mov byte [ebp - 0x2f], ch
mov ah, 0x54
mov byte [ebp - 0x2e], dh
xor ah, al
mov byte [ebp - 0x2c], 0
mov al, byte [ebp - 0x35]
lea ecx, [ebp - 0x33]
xor al, byte [ebp - 0x34]
lea esi, [ecx + 1]
sub esp, 0x18
mov byte [ebp - 0x30], ah
mov edx, esp
mov byte [ebp - 0x2d], al
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027d40
sub ecx, esi
lea eax, [ebp - 0x33]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x6c]
push eax
call fcn.10004db0
add esp, 0x24
lea ecx, [ebp - 0x28]
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x10027d9e
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10027d94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279ed
push ecx
push edx
call fcn.100662c0
add esp, 8
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
movaps xmm0, xmmword [0x10077570]
cmova eax, dword [ebp - 0x28]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x3a6c1269
mov word [ebp - 0x40], 0x14
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x14
jb 0x10027dc4
sub esp, 0x18
mov byte [ebp - 0x3f], 0
mov edx, esp
lea ecx, [ebp - 0x53]
xorps xmm0, xmm0
lea esi, [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 0x10027df4
sub ecx, esi
lea eax, [ebp - 0x53]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x6c]
push eax
call fcn.10004db0
add esp, 0x20
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
mov esi, dword [edi + 0xc]
test esi, esi
je 0x10027e3b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10027e3b
push dword [ebp - 0x3c]
mov ecx, esi
call dword [0x10075274]
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x10027e6f
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10027e65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279ed
push ecx
push edx
call fcn.100662c0
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10027ea3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10027e99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279ed
push ecx
push edx
call fcn.100662c0
add esp, 8
cmp word [edi + 0x28], 0
jg 0x10027eb4
xor eax, eax
mov byte [edi + 0x21], 0
mov word [edi + 0x28], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006625f
mov esp, ebp
pop ebp
ret
mov edx, eax
mov esi, ecx
push edx
push esi
cmp ecx, 0xa
jae 0x10027f3c
mov byte [ebp - 0x34], 0x42
mov al, 0x72
xor al, byte [ebp - 0x34]
mov cl, 0x67
mov dl, 0x26
mov byte [ebp - 0x33], al
mov al, byte [ebp - 0x34]
mov ch, cl
mov dh, dl
mov byte [ebp - 0x2d], 0
mov ah, 0x78
mov byte [ebp - 0x2d], 0
xor cl, al
xor dl, al
xor ch, al
mov byte [ebp - 0x31], dl
xor dh, al
mov byte [ebp - 0x32], cl
xor ah, al
mov byte [ebp - 0x2e], dh
sub esp, 0x18
mov byte [ebp - 0x2f], ch
mov edx, esp
mov byte [ebp - 0x30], ah
lea ecx, [ebp - 0x33]
lea esi, [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 0x10027f30
jmp 0x10027d47
cmp eax, 0xa
jae 0x10027fa3
mov al, 0x7a
mov byte [ebp - 0x34], 0x5f
mov ch, al
mov byte [ebp - 0x2d], 0
xor al, byte [ebp - 0x34]
mov cl, 0x3b
mov dh, cl
mov byte [ebp - 0x33], al
mov al, byte [ebp - 0x34]
mov dl, 0x65
mov ah, 0x6f
mov byte [ebp - 0x2d], 0
xor cl, al
xor dl, al
xor ch, al
mov byte [ebp - 0x31], dl
xor dh, al
mov byte [ebp - 0x32], cl
xor ah, al
mov byte [ebp - 0x2e], dh
sub esp, 0x18
mov byte [ebp - 0x2f], ch
mov edx, esp
mov byte [ebp - 0x30], ah
lea ecx, [ebp - 0x33]
lea esi, [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 0x10027f97
jmp 0x10027d47
mov dh, 0x38
mov byte [ebp - 0x2e], 0
mov cl, 0x5c
mov byte [ebp - 0x34], dh
mov al, 0x1d
mov byte [ebp - 0x2e], 0
mov ch, cl
mov dl, 2
mov ah, al
xor cl, dh
xor ch, dh
mov byte [ebp - 0x32], cl
xor al, dh
mov byte [ebp - 0x2f], ch
xor dl, dh
mov byte [ebp - 0x33], al
xor ah, dh
mov byte [ebp - 0x31], dl
sub esp, 0x18
mov byte [ebp - 0x30], ah
mov edx, esp
lea ecx, [ebp - 0x33]
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10027ff0
jmp 0x10027d47