Function at 0x100138cc
Capabilities:
Encode data using xor

Disassembly:
push 0x98
mov eax, 0x1003edda
call fcn.1003d7e1
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x70], eax
and dword [ebp - 4], 0
cmp dword [0x10057860], 0
je 0x10013d1f
lea eax, [ebx + 0x10]
push 0xa
mov dword [ebp - 0x44], eax
mov esi, eax
pop eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1001391b
xor dl, dl
call fcn.1000c91c
mov eax, dword [ebp - 0x2c]
add esi, 4
sub eax, 1
mov dword [ebp - 0x2c], eax
jne 0x1001390b
mov ecx, dword [ebx]
call dword [0x1004b6a0]
mov esi, dword [ebp - 0x70]
mov ax, word [edi]
cmp ax, word [esi]
jb 0x10013a64
mov ax, word [edi + 2]
cmp ax, word [esi + 2]
jb 0x10013a64
mov ax, word [edi + 4]
cmp ax, word [esi + 4]
jb 0x10013a64
mov ax, word [edi + 6]
cmp ax, word [esi + 6]
jb 0x10013a64
mov ecx, dword [ebx + 0x10]
call fcn.1000c83a
mov ecx, dword [ebx + 8]
mov edi, edx
call fcn.1000c83a
mov ecx, dword [ebx + 0x10]
mov esi, eax
call fcn.1000c8ad
mov ecx, dword [ebx + 8]
add eax, edi
push eax
mov edx, esi
call fcn.1000c8d3
cmp dword [ebp + 0x28], 0xf
lea eax, [ebp + 0x14]
pop ecx
cmova eax, dword [ebp + 0x14]
mov cl, 9
push eax
mov dword [ebp - 0x2c], 0x7a2c09
xor eax, eax
xor byte [ebp + eax - 0x2b], cl
inc eax
cmp eax, 2
jae 0x100139b7
mov cl, byte [ebp - 0x2c]
jmp 0x100139a8
sub esp, 0x18
mov byte [ebp - 0x29], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10003d9a
lea eax, [ebp - 0x28]
push eax
call fcn.100039e3
add esp, 0x20
mov byte [ebp - 4], 1
mov edx, eax
mov ecx, dword [ebx + 4]
call fcn.1000d186
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10003b98
movaps xmm0, xmmword [0x1004d220]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x424b574a
mov dword [ebp - 0x14], 0x64253
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x16
jb 0x10013a0a
sub esp, 0x18
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10003d9a
lea eax, [ebp - 0x8c]
push eax
call fcn.100039e3
add esp, 0x1c
mov byte [ebp - 4], 2
mov edx, eax
mov ecx, dword [ebx + 0x38]
call fcn.1000d186
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.10003b98
mov ecx, dword [ebx + 0x10]
mov dl, 1
call fcn.1000c91c
jmp 0x10013d15
cmp dword [ebp + 0x28], 0xf
lea eax, [ebp + 0x14]
mov cl, 0x24
mov dword [ebp - 0x2c], 0x570124
cmova eax, dword [ebp + 0x14]
push eax
xor eax, eax
xor byte [ebp + eax - 0x2b], cl
inc eax
cmp eax, 2
jae 0x10013a8a
mov cl, byte [ebp - 0x2c]
jmp 0x10013a7b
sub esp, 0x18
mov byte [ebp - 0x29], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10003d9a
lea eax, [ebp - 0x8c]
push eax
call fcn.100039e3
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [ebx + 4]
call fcn.1000d186
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0
call fcn.10003b98
mov eax, dword [ebp - 0x48]
lea ecx, [ebx + 0x10]
sub esi, eax
mov dword [ebp - 0x74], 4
sub edi, eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x64], edi
movzx edx, word [eax]
test dx, dx
je 0x10013cff
mov ecx, edx
call fcn.10008491
mov dword [ebp - 0x2c], eax
mov cl, 0x13
mov dword [ebp - 0x40], 0x787d4613
xor eax, eax
mov dword [ebp - 0x3c], 0x7d647c7d
mov byte [ebp - 0x38], 0
xor byte [ebp + eax - 0x3f], cl
inc eax
cmp eax, 7
jae 0x10013b1a
mov cl, byte [ebp - 0x40]
jmp 0x10013b0b
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x38], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10003d9a
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10013b46
add eax, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.1000743d
jmp 0x10013c2c
mov ecx, dword [ebp - 0x48]
xor eax, eax
inc eax
cmp word [ecx], ax
jne 0x10013c2c
cmp byte [0x100578dc], 0
mov ecx, dword [0x10057860]
mov dword [ebp - 0x2c], ecx
je 0x10013bb0
mov ecx, 0x10b8134
call fcn.1000d2bd
mov dword [ebp - 0x68], eax
test eax, eax
je 0x10013baa
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10013baa
mov eax, dword [ebp - 0x68]
add eax, 0x6dc
push 4
push eax
mov dword [ebp - 0x68], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [ebp - 0x2c]
test eax, eax
jne 0x10013bad
mov eax, dword [ebp - 0x68]
mov al, byte [eax]
mov byte [ecx + 0x38], al
jmp 0x10013bad
mov ecx, dword [ebp - 0x2c]
xor eax, eax
inc eax
cmp byte [ecx + 0x38], al
jne 0x10013be5
mov cl, 5
mov dword [ebp - 0x54], 0x25694005
mov dword [ebp - 0x50], 0x64776a48
xor eax, eax
mov word [ebp - 0x4c], 0x61
xor byte [ebp + eax - 0x53], cl
inc eax
cmp eax, 8
jae 0x10013bdc
mov cl, byte [ebp - 0x54]
jmp 0x10013bcd
mov byte [ebp - 0x4b], 0
lea edx, [ebp - 0x53]
jmp 0x10013c10
mov cl, 0x3f
mov dword [ebp - 0x34], 0x4d5e743f
mov word [ebp - 0x30], 0x4c4a
xor eax, eax
mov byte [ebp - 0x2e], 0
xor byte [ebp + eax - 0x33], cl
inc eax
cmp eax, 5
jae 0x10013c09
mov cl, byte [ebp - 0x34]
jmp 0x10013bfa
mov byte [ebp - 0x2e], 0
lea edx, [ebp - 0x33]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x68], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013c18
sub ecx, dword [ebp - 0x68]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003b05
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x14], 0xf
mov dword [ebp - 0x60], 0x386b3d18
mov dword [ebp - 0x5c], 0x3d377c3d
movzx edx, word [eax + esi]
movzx ecx, word [edi + eax]
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push edx
push ecx
push eax
mov cl, 0x18
mov word [ebp - 0x58], 0x7c
xor eax, eax
xor byte [ebp + eax - 0x5f], cl
inc eax
cmp eax, 8
jae 0x10013c6c
mov cl, byte [ebp - 0x60]
jmp 0x10013c5d
sub esp, 0x18
mov byte [ebp - 0x57], 0
lea eax, [ebp - 0x5f]
mov ecx, esp
push eax
call fcn.10003d9a
lea eax, [ebp - 0xa4]
push eax
call fcn.100039e3
add esp, 0x28
mov esi, dword [ebp - 0x44]
mov edx, eax
mov byte [ebp - 4], 5
mov ecx, dword [esi + 0x28]
call fcn.1000d186
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.10003b98
mov ecx, dword [esi]
call fcn.1000c83a
mov ecx, dword [ebx + 8]
mov edi, edx
call fcn.1000c83a
mov esi, eax
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call fcn.1000c8ad
mov ecx, dword [ebx + 8]
add eax, edi
push eax
mov edx, esi
call fcn.1000c8d3
mov eax, dword [ebp - 0x44]
mov dl, 1
pop ecx
mov ecx, dword [eax]
call fcn.1000c91c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10003b98
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
add ecx, 4
add eax, 2
sub dword [ebp - 0x74], 1
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
jne 0x10013adf
mov ecx, dword [ebx]
push 1
call dword [0x1004b6a4]
lea ecx, [ebp + 0x14]
call fcn.10003b98
call fcn.1003d79f
ret 0x24