Function at 0x1001d663
Capabilities:
Encode data using xor

Disassembly:
push 0xf0
mov eax, 0x10073918
call fcn.1003bfa0
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov dword [0x10099db0], eax
test ecx, ecx
je 0x1001dedd
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], ebx
jne 0x1001dedd
cmp dword [0x10099bc0], 0
je 0x1001dedd
cmp dword [esi + 4], 0
je 0x1001d6b6
cmp ecx, dword [esi + 4]
jne 0x1001d6b6
mov ecx, esi
call fcn.1001e6a3
jmp 0x1001ded9
mov eax, dword [esi + 0x138]
test eax, eax
je 0x1001d6d5
cmp ecx, eax
jne 0x1001d6d5
mov eax, dword [esi + 0x144]
cmp eax, ebx
jle 0x1001ded9
dec eax
jmp 0x1001d6f6
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x1001d70c
cmp ecx, eax
jne 0x1001d70c
mov eax, dword [esi + 0x144]
cmp eax, dword [esi + 0x148]
jge 0x1001ded9
inc eax
mov dword [esi + 0x144], eax
mov ecx, esi
movzx eax, al
push eax
call fcn.1001f5b1
jmp 0x1001ded9
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
push 0x68
pop edi
cdq
idiv edi
mov dword [ebp - 0xc8], edi
test eax, eax
je 0x1001ded9
push 4
lea eax, [esi + 0x30]
pop edx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
cmp dword [eax], 0
je 0x1001debe
cmp ecx, dword [eax]
jne 0x1001debe
mov ebx, dword [eax - 0x14]
xor eax, eax
mov edi, eax
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
cdq
idiv dword [ebp - 0xc8]
test eax, eax
jle 0x1001deb2
mov ecx, dword [esi + 0x158]
add ecx, 0x18
cmp dword [ecx], ebx
je 0x1001d7a0
push 0x68
pop eax
add ecx, eax
inc edi
mov eax, dword [esi + 0x15c]
sub eax, dword [esi + 0x158]
cdq
idiv dword [ebp - 0xc8]
cmp edi, eax
jl 0x1001d77a
jmp 0x1001deaf
or dword [ebp - 0xcc], 0xffffffff
mov dword [esi + 0x140], ebx
mov eax, dword [esi + 0x158]
imul ebx, edi, 0x68
mov dword [ebp - 0x9c], ebx
cmp byte [ebx + eax + 0x65], 2
jne 0x1001d84a
movaps xmm0, xmmword [0x1008af70]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x47415c49
mov edx, eax
mov word [ebp - 0x14], 0x7546
mov byte [ebp - 0x12], al
mov cl, byte [ebp - 0x28]
xor byte [ebp + edx - 0x27], cl
inc edx
cmp edx, 0x15
jb 0x1001d7e6
xor eax, eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x27]
push eax
call fcn.10004179
xor eax, eax
lea edx, [ebp - 0xe4]
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x7c]
call fcn.1000de6f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push eax
inc eax
push eax
call fcn.1000402e
mov ecx, dword [esi + 0x7c]
mov edx, 0xff5cb9fe
call fcn.1000deb5
mov dword [ebp - 0xcc], 0xff808080
jmp 0x1001d8df
xor eax, eax
mov dword [ebp - 0xb8], 0x764d4318
mov cl, 0x18
mov dword [ebp - 0xb4], 0x386a7d7c
mov dword [ebp - 0xb0], 0x4561796f
mov edx, eax
mov byte [ebp - 0xac], al
xor cl, byte [ebp + edx - 0xb7]
mov byte [ebp + edx - 0xb7], cl
inc edx
cmp edx, 0xb
jae 0x1001d890
mov cl, byte [ebp - 0xb8]
jmp 0x1001d874
xor eax, eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 0xac], al
lea eax, [ebp - 0xb7]
push eax
call fcn.10004179
xor eax, eax
lea edx, [ebp - 0xe4]
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x7c]
call fcn.1000de6f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push eax
inc eax
push eax
call fcn.1000402e
mov ecx, dword [esi + 0x7c]
mov edx, 0xffc4fc03
call fcn.1000deb5
lea edi, [ebx + 0x58]
mov dword [ebp - 0x5c], 0x48
lea ecx, [esi + 0x84]
mov dword [ebp - 0xc4], edi
lea ebx, [esi + 0xa8]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x98], 4
mov eax, dword [esi + 0x158]
xor edx, edx
cmp word [edi + eax - 0x10], dx
je 0x1001dc41
mov cl, 0x6b
mov dword [ebp - 0x88], 0x53e6b
mov dword [ebp - 0x84], 0x51c0405
mov byte [ebp - 0x80], dl
xor cl, byte [ebp + edx - 0x87]
mov byte [ebp + edx - 0x87], cl
inc edx
cmp edx, 7
jae 0x1001d953
mov cl, byte [ebp - 0x88]
jmp 0x1001d937
xor eax, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x80], al
lea eax, [ebp - 0x87]
push eax
call fcn.10004179
xor eax, eax
mov dword [ebp - 4], 2
mov word [ebp - 0x60], 0x40
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x5f], al
lea eax, [ebp - 0x5f]
push eax
call fcn.10004179
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x158]
add eax, dword [ebp - 0x9c]
movzx ecx, word [ecx + eax]
call fcn.10008ebd
test eax, eax
je 0x1001d9d4
add eax, 4
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x1001d9b9
push 0xffffffffffffffff
push 0
push eax
call fcn.10003dff
mov ecx, dword [ebx]
xor eax, eax
lea edx, [eax + 1]
call fcn.1000d60f
mov ecx, dword [ebx + 4]
xor dl, dl
call fcn.1000d60f
jmp 0x1001dadd
mov eax, dword [esi + 0x158]
xor ecx, ecx
inc ecx
cmp word [edi + eax - 0x10], cx
jne 0x1001dadd
cmp byte [0x10099bdb], 0
mov ebx, dword [0x10099bc0]
je 0x1001da2c
mov ecx, 0x10b8134
call fcn.1000dfae
mov edi, eax
test edi, edi
je 0x1001da2c
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001da2c
push 4
add edi, 0x6dc
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001da2c
mov al, byte [edi]
mov byte [ebx + 0x38], al
mov al, byte [ebx + 0x38]
xor ebx, ebx
inc ebx
cmp al, bl
jne 0x1001da82
push 0x68
mov dl, 0x2d
mov dword [ebp - 0xa6], 0x42600d41
pop eax
xor ebx, ebx
mov byte [ebp - 0xa8], dl
mov byte [ebp - 0xa7], al
mov ecx, ebx
mov dword [ebp - 0xa2], 0x494c5f
xor byte [ebp + ecx - 0xa7], dl
inc ecx
cmp ecx, 8
jae 0x1001da74
mov dl, byte [ebp - 0xa8]
jmp 0x1001da5f
mov byte [ebp - 0x9f], bl
lea edi, [ebp - 0xa7]
jmp 0x1001daad
xor ebx, ebx
mov dword [ebp - 0x7c], 0x40537932
mov dl, 0x32
mov word [ebp - 0x78], 0x4147
mov byte [ebp - 0x76], bl
mov ecx, ebx
xor byte [ebp + ecx - 0x7b], dl
inc ecx
cmp ecx, 5
jae 0x1001daa7
mov dl, byte [ebp - 0x7c]
jmp 0x1001da98
mov byte [ebp - 0x76], bl
lea edi, [ebp - 0x7b]
push edi
call fcn.1000415c
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.100040e3
mov ebx, dword [ebp - 0x74]
xor eax, eax
mov ecx, dword [ebx + 4]
lea edx, [eax + 1]
call fcn.1000d60f
mov ecx, dword [ebx]
xor dl, dl
call fcn.1000d60f
mov edi, dword [ebp - 0xc4]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xe4]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10004179
mov byte [ebp - 4], 4
lea edx, [ebp - 0xe4]
mov ecx, dword [ebx + 8]
call fcn.1000de6f
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0xe4]
push eax
call fcn.1000402e
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebx + 8]
call fcn.1000deb5
mov ecx, dword [esi + 0x158]
mov dl, 0x2a
movzx eax, word [edi + ecx]
push eax
movzx eax, word [ecx + edi - 8]
push eax
xor eax, eax
mov dword [ebp - 0x94], 0xa4e0f2a
mov dword [ebp - 0x90], 0x4e0f0a05
mov ecx, eax
mov byte [ebp - 0x8c], al
xor byte [ebp + ecx - 0x93], dl
inc ecx
cmp ecx, 7
jae 0x1001db6e
mov dl, byte [ebp - 0x94]
jmp 0x1001db59
xor eax, eax
sub esp, 0x18
mov byte [ebp - 0x8c], al
mov ecx, esp
lea eax, [ebp - 0x93]
push eax
call fcn.10004179
lea eax, [ebp - 0x28]
push eax
call fcn.10003c43
add esp, 0x24
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1001db9f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xe4]
call fcn.10004179
mov byte [ebp - 4], 6
lea edx, [ebp - 0xe4]
mov ecx, dword [ebx + 0xc]
call fcn.1000de6f
xor eax, eax
lea ecx, [ebp - 0xe4]
push eax
inc eax
push eax
call fcn.1000402e
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.1000402e
mov eax, dword [esi + 0x158]
mov ecx, dword [ebx + 0x10]
movzx eax, word [edi + eax]
push eax
call fcn.1000dcbd
mov eax, dword [esi + 0x158]
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.1000dd12
mov ecx, dword [ebp - 0x70]
xor eax, eax
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.1000d60f
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.1000402e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
xor eax, eax
push eax
inc eax
push eax
call fcn.1000402e
jmp 0x1001dc4a
mov ecx, dword [ecx]
xor dl, dl
call fcn.1000d60f
mov ecx, dword [ebp - 0x70]
add edi, 2
add dword [ebp - 0x5c], 2
add ecx, 4
add ebx, 0x14
mov dword [ebp - 0xc4], edi
sub dword [ebp - 0x98], 1
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
jne 0x1001d90b
mov ecx, dword [ebp - 0x9c]
lea eax, [esi + 0x94]
add ecx, 0x34
mov dword [ebp - 0x5c], eax
lea edi, [esi + 0xf8]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x74], 5
mov eax, dword [esi + 0x158]
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.10008e31
mov dword [ebp - 0x70], eax
test eax, eax
je 0x1001dddb
xor eax, eax
mov word [ebp - 0x64], 0x38
mov byte [ebp - 0x63], al
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x63]
push eax
call fcn.10004179
mov ecx, dword [ebp - 0x70]
mov edx, ebx
mov dword [ebp - 4], 7
call fcn.10008e51
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x1001dd2e
cmp dword [eax + 0x3c], 0
je 0x1001dd2e
push ebx
push eax
xor edx, edx
lea ecx, [ebp - 0x58]
call fcn.10008f15
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005f9c
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.1000402e
mov ebx, dword [ebp - 0x70]
jmp 0x1001dd57
push ebx
mov ebx, dword [ebp - 0x70]
lea ecx, [ebp - 0x58]
xor eax, eax
mov edx, ebx
push eax
call fcn.10008f15
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005f9c
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.1000402e
mov ecx, dword [edi]
test ecx, ecx
je 0x1001dd9e
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000b242
mov eax, dword [edi]
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ebp - 0x9c]
mov dword [eax + 0x60], ebx
mov eax, dword [edi]
mov dword [eax + 0x64], ecx
mov eax, dword [edi]
mov dword [eax + 0x68], edx
test ecx, ecx
je 0x1001dd93
movsx ecx, word [ecx + 0x4e]
movsx eax, word [ebx + 0x5e]
add ecx, eax
jmp 0x1001dd97
movsx ecx, word [ebx + 0x5e]
mov eax, dword [edi]
mov dword [eax + 0x6c], ecx
jmp 0x1001dda4
mov edx, dword [ebp - 0x9c]
mov ecx, dword [edi + 4]
call fcn.1000de92
mov ecx, dword [edi + 8]
lea edx, [ebp - 0x28]
call fcn.1000daea
mov ecx, dword [ebp - 0x5c]
xor ebx, ebx
inc ebx
mov dl, bl
mov ecx, dword [ecx]
call fcn.1000d60f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
xor eax, eax
push eax
push ebx
call fcn.1000402e
jmp 0x1001de8f
mov ecx, dword [ebp - 0x5c]
xor dl, dl
mov ecx, dword [ecx]
call fcn.1000d60f
mov ecx, dword [edi + 4]
xor edx, edx
call fcn.1000de92
lea eax, [ebp - 0x67]
mov word [ebp - 0x68], 5
xor ebx, ebx
lea ecx, [ebp - 0xe4]
push eax
mov byte [ebp - 0x67], bl
call fcn.10004179
mov dword [ebp - 4], 8
lea edx, [ebp - 0xe4]
mov ecx, dword [edi + 8]
call fcn.1000daea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push ebx
inc eax
push eax
call fcn.1000402e
cmp dword [edi], ebx
je 0x1001de8f
lea eax, [ebp - 0x6b]
mov word [ebp - 0x6c], 0xd
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 0x6b], bl
call fcn.10004179
mov dword [ebp - 4], 9
lea edx, [ebp - 0xfc]
mov ecx, dword [edi]
add ecx, 4
call fcn.1000b242
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
xor eax, eax
push ebx
inc eax
push eax
call fcn.1000402e
mov eax, dword [edi]
mov dword [eax + 0x60], ebx
mov eax, dword [edi]
mov dword [eax + 0x64], ebx
mov eax, dword [edi]
mov dword [eax + 0x68], ebx
mov eax, dword [edi]
mov dword [eax + 0x6c], ebx
mov ecx, dword [ebp - 0x98]
add edi, 0xc
add dword [ebp - 0x5c], 4
add ecx, 4
sub dword [ebp - 0x74], 1
mov dword [ebp - 0x98], ecx
jne 0x1001dc98
mov ecx, dword [ebp + 8]
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 0x1001d73e
xor ebx, ebx
inc ebx
mov al, bl
jmp 0x1001dedf
xor al, al
call fcn.1003bf4a
ret 8