Function at 0x1003cf40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a237b
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x100bd080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x48], eax
mov esi, dword [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x74], ecx
test esi, esi
je 0x1003d47d
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x1003d47d
push 4
add esi, 0xfc
push esi
call edi
test eax, eax
jne 0x1003d47d
cmp byte [esi], al
je 0x1003d47d
cmp dword [ebp + 8], eax
je 0x1003d47d
cmp dword [0x100c0ac4], eax
je 0x1003d47d
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x1003d47d
mov ecx, 0xd78d1c
call fcn.10019710
mov esi, eax
test esi, esi
je 0x1003d002
push 4
push esi
call edi
test eax, eax
jne 0x1003d002
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x70], ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x6c], ecx
jmp 0x1003d010
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x48]
xor al, al
mov byte [ebp - 0x41], al
nop dword [eax + eax]
movzx eax, al
lea eax, [eax + eax*2]
mov esi, dword [ecx + eax*4 + 8]
lea edi, [ecx + eax*4]
mov dword [ebp - 0x7c], edi
test esi, esi
je 0x1003d46d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d46a
push dword [ebp - 0x6c]
mov eax, dword [0x100b2ecc]
mov ecx, esi
push dword [ebp - 0x70]
call eax
test al, al
je 0x1003d46a
cmp byte [edi + 0x10], 0
je 0x1003d46a
mov eax, dword [0x100c0ac4]
mov edx, dword [edi + 0xc]
push 0x2c
cmp dword [eax + 0x44], edx
jae 0x1003d22e
lea ecx, [ebp - 0x94]
call fcn.100164d0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0xf
jbe 0x1003d09a
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b4610]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x4d4b415a
mov dword [ebp - 0x54], 0xd081208
mov word [ebp - 0x50], 0x5b
nop dword [eax]
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x18
jb 0x1003d0c0
sub esp, 0x18
mov byte [ebp - 0x4f], 0
mov edx, esp
lea ecx, [ebp - 0x67]
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 0x1003d0f0
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10002570
lea eax, [ebp - 0x40]
push eax
call fcn.1000dc10
add esp, 0x20
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x1003d14c
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d142
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d49a
push ecx
push edx
call fcn.1007fa16
add esp, 8
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x84], 0
cmova ecx, dword [ebp - 0x40]
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d172
sub ecx, edx
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007fd43
push esi
mov edi, eax
push 0
push edi
call fcn.10081a90
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
push dword [ebp - 0x4c]
cmova ecx, dword [ebp - 0x40]
lea esi, [edi + 0x20]
push ecx
push esi
call fcn.10081510
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x74]
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
push edi
mov dword [eax], edi
call fcn.1007fd3e
mov eax, dword [ebp - 0x78]
add esp, 0x20
mov edi, dword [ebp + 8]
mov esi, dword [eax + 0x144]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d1ea
push esi
mov ecx, edi
call dword [0x100b2f40]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1003d46a
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d21f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d49a
push ecx
push edx
call fcn.1007fa16
add esp, 8
jmp 0x1003d46a
lea ecx, [ebp - 0xac]
call fcn.100164d0
add esp, 4
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 0xf
jbe 0x1003d24b
mov eax, dword [eax]
movaps xmm0, xmmword [0x100b44b0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x585e544f
mov dword [ebp - 0x54], 0x181d071d
mov word [ebp - 0x50], 0x4e
nop dword [eax]
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x18
jb 0x1003d270
sub esp, 0x18
mov byte [ebp - 0x4f], 0
mov edx, esp
lea ecx, [ebp - 0x67]
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 0x1003d2a0
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10002570
lea eax, [ebp - 0x28]
push eax
call fcn.1000dc10
add esp, 0x20
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x98]
cmp ecx, 0xf
jbe 0x1003d2ff
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d2f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d49a
push ecx
push edx
call fcn.1007fa16
add esp, 8
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x9c], 0
cmova ecx, dword [ebp - 0x28]
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003d328
sub ecx, edx
mov dword [ebp - 0x4c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007fd43
push esi
mov edi, eax
push 0
push edi
call fcn.10081a90
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
push dword [ebp - 0x4c]
cmova ecx, dword [ebp - 0x28]
lea esi, [edi + 0x20]
push ecx
push esi
call fcn.10081510
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x74]
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
push edi
mov dword [eax], edi
call fcn.1007fd3e
mov ecx, dword [ebp - 0x7c]
add esp, 0x20
mov eax, dword [ebp - 0x78]
mov ecx, dword [ecx + 0xc]
mov esi, dword [eax + 0x140]
cmp ecx, 0x3b9aca00
jl 0x1003d39c
mov esi, 0xff00fff6
jmp 0x1003d408
cmp ecx, 0x5f5e100
jl 0x1003d3ab
mov esi, 0xffff00ea
jmp 0x1003d408
cmp ecx, 0x989680
jl 0x1003d3ba
mov esi, 0xfffc9601
jmp 0x1003d408
cmp ecx, 0xf4240
jl 0x1003d3c9
mov esi, 0xff00d939
jmp 0x1003d408
cmp ecx, 0x186a0
jge 0x1003d408
cmp ecx, 0x2710
jl 0x1003d3e0
mov esi, 0xff00fff6
jmp 0x1003d408
cmp ecx, 0x3e8
jl 0x1003d3ef
mov esi, 0xffff00ea
jmp 0x1003d408
cmp ecx, 0x64
jl 0x1003d3fb
mov esi, 0xfffc9601
jmp 0x1003d408
cmp ecx, 0xa
mov eax, 0xff00d939
cmovl eax, esi
mov esi, eax
mov edi, dword [ebp + 8]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d421
push esi
mov ecx, edi
call dword [0x100b2f40]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1003d458
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d44e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d49a
push ecx
push edx
call fcn.1007fa16
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0x48]
mov al, byte [ebp - 0x41]
inc al
mov byte [ebp - 0x41], al
cmp al, 0xc
jb 0x1003d020
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.1007f9b5
mov esp, ebp
pop ebp
ret 8
call fcn.10084b1f
int3