Function at 0x1001d409
Capabilities:
Encode data using xor

Disassembly:
push 0xf0
mov eax, 0x10073743
call fcn.1003bd50
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov dword [0x10098da8], eax
test ecx, ecx
je 0x1001dc7c
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], ebx
jne 0x1001dc7c
cmp dword [0x10098bc0], 0
je 0x1001dc7c
cmp dword [esi + 4], 0
je 0x1001d45c
cmp ecx, dword [esi + 4]
jne 0x1001d45c
mov ecx, esi
call fcn.1001e443
jmp 0x1001dc78
mov eax, dword [esi + 0x138]
test eax, eax
je 0x1001d47b
cmp ecx, eax
jne 0x1001d47b
mov eax, dword [esi + 0x144]
cmp eax, ebx
jle 0x1001dc78
dec eax
jmp 0x1001d49c
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x1001d4b2
cmp ecx, eax
jne 0x1001d4b2
mov eax, dword [esi + 0x144]
cmp eax, dword [esi + 0x148]
jge 0x1001dc78
inc eax
mov dword [esi + 0x144], eax
mov ecx, esi
movzx eax, al
push eax
call fcn.1001f35b
jmp 0x1001dc78
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 0x1001dc78
push 4
lea eax, [esi + 0x30]
pop edx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
cmp dword [eax], 0
je 0x1001dc5d
cmp ecx, dword [eax]
jne 0x1001dc5d
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 0x1001dc51
mov ecx, dword [esi + 0x158]
add ecx, 0x18
cmp dword [ecx], ebx
je 0x1001d546
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 0x1001d520
jmp 0x1001dc4e
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 0x1001d5f0
movaps xmm0, xmmword [0x100895b0]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0xc0a1702
mov edx, eax
mov word [ebp - 0x14], 0x3e0d
mov byte [ebp - 0x12], al
mov cl, byte [ebp - 0x28]
xor byte [ebp + edx - 0x27], cl
inc edx
cmp edx, 0x15
jb 0x1001d58c
xor eax, eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x27]
push eax
call fcn.1000416d
xor eax, eax
lea edx, [ebp - 0xe4]
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x7c]
call fcn.1000dbc1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push eax
inc eax
push eax
call fcn.10004022
mov ecx, dword [esi + 0x7c]
mov edx, 0xff5cb9fe
call fcn.1000dc07
mov dword [ebp - 0xcc], 0xff808080
jmp 0x1001d684
xor eax, eax
mov dword [ebp - 0xb8], 0x69525c07
mov cl, 7
mov dword [ebp - 0xb4], 0x27756263
mov dword [ebp - 0xb0], 0x5a7e6670
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 0x1001d636
mov cl, byte [ebp - 0xb8]
jmp 0x1001d61a
xor eax, eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 0xac], al
lea eax, [ebp - 0xb7]
push eax
call fcn.1000416d
xor edi, edi
lea edx, [ebp - 0xe4]
inc edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x7c]
call fcn.1000dbc1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push eax
push edi
call fcn.10004022
mov ecx, dword [esi + 0x7c]
mov edx, 0xffc4fc03
call fcn.1000dc07
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 0x1001d9e0
mov cl, 0x17
mov dword [ebp - 0x88], 0x7c794217
mov dword [ebp - 0x84], 0x79607879
mov byte [ebp - 0x80], dl
xor cl, byte [ebp + edx - 0x87]
mov byte [ebp + edx - 0x87], cl
inc edx
cmp edx, 7
jae 0x1001d6f8
mov cl, byte [ebp - 0x88]
jmp 0x1001d6dc
xor eax, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x80], al
lea eax, [ebp - 0x87]
push eax
call fcn.1000416d
xor eax, eax
mov dword [ebp - 4], 2
mov word [ebp - 0x60], 0x22
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x5f], al
lea eax, [ebp - 0x5f]
push eax
call fcn.1000416d
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.10008eac
test eax, eax
je 0x1001d779
add eax, 4
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x1001d75e
push 0xffffffffffffffff
push 0
push eax
call fcn.10003df3
mov ecx, dword [ebx]
xor eax, eax
lea edx, [eax + 1]
call fcn.1000d361
mov ecx, dword [ebx + 4]
xor dl, dl
call fcn.1000d361
jmp 0x1001d87c
mov eax, dword [esi + 0x158]
xor ecx, ecx
inc ecx
cmp word [edi + eax - 0x10], cx
jne 0x1001d87c
cmp byte [0x10098bdb], 0
mov ebx, dword [0x10098bc0]
je 0x1001d7d1
mov ecx, 0x10b8134
call fcn.1000dd00
mov edi, eax
test edi, edi
je 0x1001d7d1
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001d7d1
push 4
add edi, 0x6dc
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001d7d1
mov al, byte [edi]
mov byte [ebx + 0x38], al
mov al, byte [ebx + 0x38]
xor ebx, ebx
inc ebx
cmp al, bl
jne 0x1001d821
xor ebx, ebx
mov dword [ebp - 0xa8], 0x327e5712
mov dl, 0x12
mov dword [ebp - 0xa4], 0x73607d5f
mov word [ebp - 0xa0], 0x76
mov ecx, ebx
xor byte [ebp + ecx - 0xa7], dl
inc ecx
cmp ecx, 8
jae 0x1001d813
mov dl, byte [ebp - 0xa8]
jmp 0x1001d7fe
mov byte [ebp - 0x9f], bl
lea edi, [ebp - 0xa7]
jmp 0x1001d84c
mov dl, bl
mov dword [ebp - 0x7b], 0x7473604a
xor ebx, ebx
mov byte [ebp - 0x7c], dl
mov word [ebp - 0x77], 0x72
mov ecx, ebx
xor byte [ebp + ecx - 0x7b], dl
inc ecx
cmp ecx, 5
jae 0x1001d846
mov dl, byte [ebp - 0x7c]
jmp 0x1001d837
mov byte [ebp - 0x76], bl
lea edi, [ebp - 0x7b]
push edi
call fcn.10004150
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.100040d7
mov ebx, dword [ebp - 0x74]
xor eax, eax
mov ecx, dword [ebx + 4]
lea edx, [eax + 1]
call fcn.1000d361
mov ecx, dword [ebx]
xor dl, dl
call fcn.1000d361
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.1000416d
mov byte [ebp - 4], 4
lea edx, [ebp - 0xe4]
mov ecx, dword [ebx + 8]
call fcn.1000dbc1
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0xe4]
push eax
call fcn.10004022
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebx + 8]
call fcn.1000dc07
mov ecx, dword [esi + 0x158]
mov dl, 0x32
movzx eax, word [edi + ecx]
push eax
movzx eax, word [ecx + edi - 8]
push eax
xor eax, eax
mov dword [ebp - 0x94], 0x12561732
mov dword [ebp - 0x90], 0x5617121d
mov ecx, eax
mov byte [ebp - 0x8c], al
xor byte [ebp + ecx - 0x93], dl
inc ecx
cmp ecx, 7
jae 0x1001d90d
mov dl, byte [ebp - 0x94]
jmp 0x1001d8f8
xor eax, eax
sub esp, 0x18
mov byte [ebp - 0x8c], al
mov ecx, esp
lea eax, [ebp - 0x93]
push eax
call fcn.1000416d
lea eax, [ebp - 0x28]
push eax
call fcn.10003c37
add esp, 0x24
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1001d93e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xe4]
call fcn.1000416d
mov byte [ebp - 4], 6
lea edx, [ebp - 0xe4]
mov ecx, dword [ebx + 0xc]
call fcn.1000dbc1
xor eax, eax
lea ecx, [ebp - 0xe4]
push eax
inc eax
push eax
call fcn.10004022
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.10004022
mov eax, dword [esi + 0x158]
mov ecx, dword [ebx + 0x10]
movzx eax, word [edi + eax]
push eax
call fcn.1000da0f
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.1000da64
mov ecx, dword [ebp - 0x70]
xor eax, eax
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.1000d361
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.10004022
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
xor eax, eax
push eax
inc eax
push eax
call fcn.10004022
jmp 0x1001d9e9
mov ecx, dword [ecx]
xor dl, dl
call fcn.1000d361
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 0x1001d6b0
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.10008e20
mov dword [ebp - 0x70], eax
test eax, eax
je 0x1001db7a
xor eax, eax
mov word [ebp - 0x64], 0x24
mov byte [ebp - 0x63], al
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x63]
push eax
call fcn.1000416d
mov ecx, dword [ebp - 0x70]
mov edx, ebx
mov dword [ebp - 4], 7
call fcn.10008e40
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x1001dacd
cmp dword [eax + 0x3c], 0
je 0x1001dacd
push ebx
push eax
xor edx, edx
lea ecx, [ebp - 0x58]
call fcn.10008f04
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005f8b
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.10004022
mov ebx, dword [ebp - 0x70]
jmp 0x1001daf6
push ebx
mov ebx, dword [ebp - 0x70]
lea ecx, [ebp - 0x58]
xor eax, eax
mov edx, ebx
push eax
call fcn.10008f04
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005f8b
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.10004022
mov ecx, dword [edi]
test ecx, ecx
je 0x1001db3d
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000b234
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 0x1001db32
movsx ecx, word [ecx + 0x4e]
movsx eax, word [ebx + 0x5e]
add ecx, eax
jmp 0x1001db36
movsx ecx, word [ebx + 0x5e]
mov eax, dword [edi]
mov dword [eax + 0x6c], ecx
jmp 0x1001db43
mov edx, dword [ebp - 0x9c]
mov ecx, dword [edi + 4]
call fcn.1000dbe4
mov ecx, dword [edi + 8]
lea edx, [ebp - 0x28]
call fcn.1000d83c
mov ecx, dword [ebp - 0x5c]
xor ebx, ebx
inc ebx
mov dl, bl
mov ecx, dword [ecx]
call fcn.1000d361
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
xor eax, eax
push eax
push ebx
call fcn.10004022
jmp 0x1001dc2e
mov ecx, dword [ebp - 0x5c]
xor dl, dl
mov ecx, dword [ecx]
call fcn.1000d361
mov ecx, dword [edi + 4]
xor edx, edx
call fcn.1000dbe4
lea eax, [ebp - 0x67]
mov word [ebp - 0x68], 0x37
xor ebx, ebx
lea ecx, [ebp - 0xe4]
push eax
mov byte [ebp - 0x67], bl
call fcn.1000416d
mov dword [ebp - 4], 8
lea edx, [ebp - 0xe4]
mov ecx, dword [edi + 8]
call fcn.1000d83c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe4]
xor eax, eax
push ebx
inc eax
push eax
call fcn.10004022
cmp dword [edi], ebx
je 0x1001dc2e
lea eax, [ebp - 0x6b]
mov word [ebp - 0x6c], 0x2c
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 0x6b], bl
call fcn.1000416d
mov dword [ebp - 4], 9
lea edx, [ebp - 0xfc]
mov ecx, dword [edi]
add ecx, 4
call fcn.1000b234
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xfc]
xor eax, eax
push ebx
inc eax
push eax
call fcn.10004022
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 0x1001da37
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 0x1001d4e4
xor ebx, ebx
inc ebx
mov al, bl
jmp 0x1001dc7e
xor al, al
call fcn.1003bcfa
ret 8