Function at 0x1002a8fa
Capabilities:
Encode data using xor

Disassembly:
push 0xec
mov eax, 0x10077e71
call fcn.1004605f
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov dword [0x1009e984], eax
test ecx, ecx
je 0x1002b148
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], ebx
jne 0x1002b148
cmp dword [0x1009e6f0], 0
je 0x1002b148
cmp dword [esi + 4], 0
je 0x1002a94d
cmp ecx, dword [esi + 4]
jne 0x1002a94d
mov ecx, esi
call fcn.1002b9ca
jmp 0x1002aa4c
mov eax, dword [esi + 0x138]
test eax, eax
je 0x1002a96c
cmp ecx, eax
jne 0x1002a96c
mov eax, dword [esi + 0x148]
cmp eax, ebx
jbe 0x1002aa4c
dec eax
jmp 0x1002a98d
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x1002a9a3
cmp ecx, eax
jne 0x1002a9a3
mov eax, dword [esi + 0x148]
cmp eax, dword [esi + 0x14c]
jae 0x1002aa4c
inc eax
mov dword [esi + 0x148], eax
mov ecx, esi
movzx eax, al
push eax
call fcn.1002c93a
jmp 0x1002aa4c
mov eax, dword [esi + 0x160]
sub eax, dword [esi + 0x15c]
push 0x68
pop edi
cdq
idiv edi
mov dword [ebp - 0xc8], edi
test eax, eax
je 0x1002aa4c
push 4
lea eax, [esi + 0x30]
xor edi, edi
pop edx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
cmp dword [eax], 0
je 0x1002aa38
cmp ecx, dword [eax]
jne 0x1002aa38
mov ebx, dword [eax - 0x14]
mov eax, dword [esi + 0x160]
sub eax, dword [esi + 0x15c]
cdq
idiv dword [ebp - 0xc8]
test eax, eax
jle 0x1002aa27
mov ecx, dword [esi + 0x15c]
add ecx, 0x18
cmp dword [ecx], ebx
je 0x1002aa53
push 0x68
pop eax
add ecx, eax
inc edi
mov eax, dword [esi + 0x160]
sub eax, dword [esi + 0x15c]
cdq
idiv dword [ebp - 0xc8]
cmp edi, eax
jl 0x1002aa03
mov ecx, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
inc ebx
mov eax, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xc0]
add eax, 0x18
sub edx, 1
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
jne 0x1002a9d7
mov al, bl
jmp 0x1002b14a
or dword [ebp - 0x70], 0xffffffff
imul edi, edi, 0x68
mov dword [esi + 0x144], ebx
xor ebx, ebx
mov eax, dword [esi + 0x15c]
mov dword [ebp - 0xc4], edi
cmp byte [edi + eax + 0x64], 2
jne 0x1002aaed
movaps xmm0, xmmword [0x1008ee00]
mov ecx, ebx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x2224392c
mov word [ebp - 0x14], 0x1023
mov byte [ebp - 0x12], bl
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x15
jb 0x1002aa92
lea eax, [ebp - 0x27]
mov byte [ebp - 0x12], bl
push eax
lea ecx, [ebp - 0xe0]
call fcn.10001f6a
mov dword [ebp - 4], ebx
lea edx, [ebp - 0xe0]
mov ecx, dword [esi + 0x7c]
call fcn.10010c45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
push ebx
push 1
call fcn.10001e1f
mov ecx, dword [esi + 0x7c]
mov edx, 0xff5cb9fe
call fcn.10010cf9
mov dword [ebp - 0x70], 0xff808080
jmp 0x1002ab76
mov cl, 0x5d
mov dword [ebp - 0xb8], 0x3308065d
mov dword [ebp - 0xb4], 0x7d2f3839
mov eax, ebx
mov dword [ebp - 0xb0], 0x243c2a
mov byte [ebp - 0xac], bl
xor byte [ebp + eax - 0xb7], cl
inc eax
cmp eax, 0xb
jae 0x1002ab2a
mov cl, byte [ebp - 0xb8]
jmp 0x1002ab15
lea eax, [ebp - 0xb7]
mov byte [ebp - 0xac], bl
push eax
lea ecx, [ebp - 0xe0]
call fcn.10001f6a
mov dword [ebp - 4], 1
lea edx, [ebp - 0xe0]
mov ecx, dword [esi + 0x7c]
call fcn.10010c45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
push ebx
push 1
call fcn.10001e1f
mov ecx, dword [esi + 0x7c]
mov edx, 0xffc4fc03
call fcn.10010cf9
lea ecx, [esi + 0x84]
mov dword [ebp - 0x9c], 4
lea ebx, [esi + 0xa8]
mov dword [ebp - 0x5c], ecx
add edi, 0x48
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x98], edi
mov eax, dword [esi + 0x15c]
xor edx, edx
cmp word [edi + eax], dx
je 0x1002aea8
mov cl, 0x27
mov dword [ebp - 0x88], 0x4c497227
mov dword [ebp - 0x84], 0x49504849
mov eax, edx
mov byte [ebp - 0x80], dl
xor byte [ebp + eax - 0x87], cl
inc eax
cmp eax, 7
jae 0x1002abdd
mov cl, byte [ebp - 0x88]
jmp 0x1002abc8
lea eax, [ebp - 0x87]
mov byte [ebp - 0x80], dl
push eax
lea ecx, [ebp - 0x40]
call fcn.10001f6a
xor eax, eax
mov dword [ebp - 4], 2
mov word [ebp - 0x60], 0x57
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x5f], al
lea eax, [ebp - 0x5f]
push eax
call fcn.10001f6a
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x15c]
movzx edi, word [edi + eax]
mov ecx, edi
call fcn.10008886
test eax, eax
je 0x1002ac4e
add eax, 4
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x1002ac3a
push 0xffffffffffffffff
push 0
push eax
call fcn.10001bf0
mov ecx, dword [ebx]
xor eax, eax
lea edx, [eax + 1]
call fcn.10010276
mov ecx, dword [ebx + 4]
jmp 0x1002ad35
xor eax, eax
inc eax
cmp di, ax
jne 0x1002ad3c
cmp byte [0x1009e768], 0
mov ebx, dword [0x1009e6f0]
je 0x1002ac9e
mov ecx, 0xd78c9c
call fcn.10010f34
mov edi, eax
test edi, edi
je 0x1002ac9e
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ac9e
push 4
add edi, 0x6a0
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ac9e
mov al, byte [edi]
mov byte [ebx + 0x34], al
mov al, byte [ebx + 0x34]
xor edx, edx
xor ebx, ebx
inc ebx
cmp al, bl
mov eax, edx
jne 0x1002acee
mov cl, 0x3a
mov dword [ebp - 0xa8], 0x1a567f3a
mov dword [ebp - 0xa4], 0x5b485577
mov word [ebp - 0xa0], 0x5e
xor byte [ebp + eax - 0xa7], cl
inc eax
cmp eax, 8
jae 0x1002ace0
mov cl, byte [ebp - 0xa8]
jmp 0x1002accb
mov byte [ebp - 0x9f], dl
lea edi, [ebp - 0xa7]
jmp 0x1002ad15
mov cl, 0xb
mov dword [ebp - 0x7c], 0x796a400b
mov word [ebp - 0x78], 0x787e
mov byte [ebp - 0x76], dl
xor byte [ebp + eax - 0x7b], cl
inc eax
cmp eax, 5
jae 0x1002ad0f
mov cl, byte [ebp - 0x7c]
jmp 0x1002ad00
mov byte [ebp - 0x76], dl
lea edi, [ebp - 0x7b]
push edi
call fcn.10001f4d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.10001ed4
mov dl, bl
mov ebx, dword [ebp - 0x74]
mov ecx, dword [ebx + 4]
call fcn.10010276
mov ecx, dword [ebx]
xor dl, dl
call fcn.10010276
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xe0]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10001f6a
mov byte [ebp - 4], 4
lea edx, [ebp - 0xe0]
mov ecx, dword [ebx + 8]
call fcn.10010c45
xor eax, eax
mov byte [ebp - 4], 3
push 0
inc eax
lea ecx, [ebp - 0xe0]
push eax
call fcn.10001e1f
mov edx, dword [ebp - 0x70]
mov ecx, dword [ebx + 8]
call fcn.10010cf9
mov ecx, dword [esi + 0x15c]
xor edx, edx
mov edi, dword [ebp - 0x98]
movzx eax, word [edi + ecx + 0x10]
push eax
movzx eax, word [edi + ecx + 8]
mov cl, 0x20
push eax
mov dword [ebp - 0x94], 0x440520
mov eax, edx
mov dword [ebp - 0x90], 0x4405000f
mov byte [ebp - 0x8c], dl
xor byte [ebp + eax - 0x93], cl
inc eax
cmp eax, 7
jae 0x1002add2
mov cl, byte [ebp - 0x94]
jmp 0x1002adbd
sub esp, 0x18
mov byte [ebp - 0x8c], dl
lea eax, [ebp - 0x93]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x28]
push eax
call fcn.10007414
add esp, 0x24
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1002ae01
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xe0]
call fcn.10001f6a
mov byte [ebp - 4], 6
lea edx, [ebp - 0xe0]
mov ecx, dword [ebx + 0xc]
call fcn.10010c45
xor eax, eax
lea ecx, [ebp - 0xe0]
push 0
inc eax
push eax
call fcn.10001e1f
xor eax, eax
mov byte [ebp - 4], 3
push 0
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.10001e1f
mov eax, dword [esi + 0x15c]
mov ecx, dword [ebx + 0x10]
movzx eax, word [edi + eax + 0x10]
push eax
call fcn.10010a4d
mov eax, dword [esi + 0x15c]
xorps xmm3, xmm3
pop ecx
mov ecx, dword [ebx + 0x10]
xorps xmm2, xmm2
movzx eax, word [edi + eax + 8]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.10010aa2
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.10010276
xor eax, eax
lea ecx, [ebp - 0x58]
push 0
inc eax
push eax
call fcn.10001e1f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
xor eax, eax
push 0
inc eax
push eax
call fcn.10001e1f
jmp 0x1002aeb1
mov ecx, dword [ecx]
xor dl, dl
call fcn.10010276
mov ecx, dword [ebp - 0x5c]
add edi, 2
add ecx, 4
mov dword [ebp - 0x98], edi
add ebx, 0x14
mov dword [ebp - 0x5c], ecx
sub dword [ebp - 0x9c], 1
mov dword [ebp - 0x74], ebx
jne 0x1002ab9b
mov ecx, dword [ebp - 0xc4]
lea eax, [esi + 0x94]
add ecx, 0x34
mov dword [ebp - 0x5c], eax
lea edi, [esi + 0xf8]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x98], 5
mov eax, dword [esi + 0x15c]
mov ebx, dword [ecx + eax - 0x14]
mov eax, dword [ecx + eax]
mov ecx, 0x35a4f8a0
mov dword [ebp - 0x9c], eax
lea eax, [ebx - 1]
cmp eax, 0x5f5e0fe
cmovbe ebx, ecx
mov ecx, ebx
call fcn.100087f9
mov dword [ebp - 0x70], eax
test eax, eax
je 0x1002b054
xor eax, eax
mov word [ebp - 0x64], 0x1a
mov byte [ebp - 0x63], al
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x63]
push eax
call fcn.10001f6a
mov eax, dword [ebp - 0x70]
mov edx, ebx
mov dword [ebp - 4], 7
mov cl, byte [eax + 4]
call fcn.10008825
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x1002af95
cmp dword [eax + 0x48], 0
je 0x1002af95
push ebx
push eax
xor edx, edx
lea ecx, [ebp - 0x58]
call fcn.100089bb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10003ac6
xor eax, eax
lea ecx, [ebp - 0x58]
push 0
inc eax
push eax
call fcn.10001e1f
mov ebx, dword [ebp - 0x70]
jmp 0x1002afbe
push ebx
mov ebx, dword [ebp - 0x70]
lea ecx, [ebp - 0x58]
push 0
mov edx, ebx
call fcn.100089bb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10003ac6
xor eax, eax
lea ecx, [ebp - 0x58]
push 0
inc eax
push eax
call fcn.10001e1f
mov ecx, dword [edi]
test ecx, ecx
je 0x1002b023
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000cd00
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x9c]
mov dword [eax + 0x50], ebx
mov eax, dword [edi]
mov dword [eax + 0x54], ecx
mov eax, dword [edi]
mov dword [eax + 0x58], edx
test ecx, ecx
je 0x1002affa
movsx ecx, word [ecx + 0x56]
movsx eax, word [ebx + 0x66]
add ecx, eax
jmp 0x1002affe
movsx ecx, word [ebx + 0x66]
mov eax, dword [edi]
mov dword [eax + 0x5c], ecx
mov eax, dword [edi]
mov ecx, dword [eax]
test ecx, ecx
je 0x1002b023
lea edx, [ebp - 0x28]
call fcn.10010878
mov ecx, dword [edi]
xor ebx, ebx
inc ebx
mov dl, bl
mov ecx, dword [ecx]
call fcn.10010276
jmp 0x1002b026
xor ebx, ebx
inc ebx
mov edx, dword [ebp - 0x9c]
mov ecx, dword [edi + 4]
call fcn.10010cd6
mov ecx, dword [ebp - 0x5c]
mov dl, bl
mov ecx, dword [ecx]
call fcn.10010276
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push ebx
call fcn.10001e1f
jmp 0x1002b121
mov ecx, dword [ebp - 0x5c]
xor dl, dl
mov ecx, dword [ecx]
call fcn.10010276
mov ecx, dword [edi + 4]
xor edx, edx
call fcn.10010cd6
xor ebx, ebx
cmp dword [edi], ebx
je 0x1002b11e
lea eax, [ebp - 0x67]
mov word [ebp - 0x68], 0x66
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 0x67], bl
call fcn.10001f6a
mov dword [ebp - 4], 8
lea edx, [ebp - 0xe0]
mov ecx, dword [edi]
add ecx, 4
call fcn.1000cd00
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
xor eax, eax
push ebx
inc eax
push eax
call fcn.10001e1f
mov eax, dword [edi]
mov dword [eax + 0x50], ebx
mov eax, dword [edi]
mov dword [eax + 0x54], ebx
mov eax, dword [edi]
mov dword [eax + 0x58], ebx
mov eax, dword [edi]
mov dword [eax + 0x5c], ebx
mov eax, dword [edi]
cmp dword [eax], ebx
je 0x1002b11e
lea eax, [ebp - 0x6b]
mov word [ebp - 0x6c], 0x46
push eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 0x6b], bl
call fcn.10001f6a
mov dword [ebp - 4], 9
lea edx, [ebp - 0xf8]
mov ecx, dword [edi]
mov ecx, dword [ecx]
call fcn.10010878
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf8]
push ebx
inc ebx
push ebx
call fcn.10001e1f
mov ecx, dword [edi]
xor dl, dl
mov ecx, dword [ecx]
call fcn.10010276
jmp 0x1002b121
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x74]
add edi, 0xc
add dword [ebp - 0x5c], 4
add ecx, 4
sub dword [ebp - 0x98], 1
mov dword [ebp - 0x74], ecx
jne 0x1002aefb
mov ecx, dword [ebp + 8]
xor edi, edi
jmp 0x1002aa2c
xor al, al
call fcn.10046009
ret 8