Function at 0x1003dcd0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a448
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x100a8080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
cmp dword [0x100acf38], 0
je 0x1003e4f1
mov ecx, dword [edi + 0x158]
mov edx, dword [edi + 0x15c]
cmp ecx, edx
je 0x1003dd48
push ecx
call fcn.1003f3e0
mov eax, dword [edi + 0x158]
add esp, 4
mov dword [edi + 0x15c], eax
mov esi, dword [edi + 0x14c]
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [edi + 0x150]
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1003ded4
xor edi, edi
cmp word [edi + esi + 0x60], 0
je 0x1003ddf5
cmp byte [0x100acf3f], 0
mov eax, dword [0x100acf38]
mov dword [ebp - 0x30], eax
je 0x1003ddd4
mov ecx, 0x10b8134
call fcn.100114e0
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1003ddd8
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003ddd8
mov eax, dword [ebp - 0x34]
add eax, 0xc88
push 4
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [ebp - 0x30]
test eax, eax
jne 0x1003dddb
mov eax, dword [ebp - 0x34]
mov ax, word [eax]
mov word [ecx + 0x40], ax
jmp 0x1003dddb
mov ecx, eax
jmp 0x1003dddb
mov ecx, dword [ebp - 0x30]
mov ax, word [edi + esi + 0x60]
cmp ax, word [ecx + 0x40]
jne 0x1003dea0
mov edx, dword [ebp - 0x38]
mov esi, dword [edx + 0x14c]
jmp 0x1003ddf8
mov edx, dword [ebp - 0x38]
movzx eax, word [edi + esi + 0x60]
mov ecx, eax
cmp eax, 1
je 0x1003de09
cmp ecx, 2
jne 0x1003de76
cmp byte [0x100acf3f], 0
mov eax, dword [0x100acf38]
mov dword [ebp - 0x30], eax
je 0x1003de62
mov ecx, 0x10b8134
call fcn.100114e0
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1003de5f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003de5f
mov eax, dword [ebp - 0x34]
add eax, 0x6dc
push 4
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003de5f
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov al, byte [eax]
mov byte [ecx + 0x38], al
mov eax, ecx
jmp 0x1003de62
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0x38]
cmp word [edi + esi + 0x60], ax
jne 0x1003dea0
mov edx, dword [ebp - 0x38]
mov esi, dword [edx + 0x14c]
mov eax, dword [edx + 0x15c]
lea ecx, [edi + esi]
lea esi, [edx + 0x158]
push ecx
cmp eax, dword [esi + 8]
je 0x1003de98
mov ecx, eax
call fcn.1003fa50
add dword [esi + 4], 0x68
jmp 0x1003dea0
push eax
mov ecx, esi
call fcn.1003f730
mov eax, dword [ebp - 0x38]
add edi, 0x68
inc dword [ebp - 0x3c]
mov ecx, dword [eax + 0x150]
mov esi, dword [eax + 0x14c]
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x3c], eax
jl 0x1003dd76
mov edi, dword [ebp - 0x38]
mov eax, dword [edi + 0x158]
mov ecx, dword [edi + 0x15c]
cmp eax, ecx
jne 0x1003df50
add edi, 0xc
mov dword [ebp - 0x34], 4
nop
mov esi, dword [edi]
test esi, esi
je 0x1003df0c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003df0c
push eax
mov ecx, esi
call dword [0x1009df64]
add edi, 4
sub dword [ebp - 0x34], 1
jne 0x1003def0
mov esi, dword [ebp - 0x38]
mov edi, dword [esi + 0x144]
mov esi, dword [esi + 0x134]
test esi, esi
je 0x1003df3e
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003df3e
push edi
mov ecx, esi
call dword [0x1009dfcc]
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x148], 1
jmp 0x1003e4f1
sub ecx, eax
sub esp, 8
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1009fdc0]
mulsd xmm0, qword [0x1009f3b8]
movsd qword [ebp - 0x88], xmm0
fld qword [ebp - 0x88]
fstp qword [esp]
call fcn.10083d80
add esp, 8
fstp qword [ebp - 0x88]
movsd xmm0, qword [ebp - 0x88]
call fcn.1003fae0
cvttsd2si eax, xmm0
mov dword [edi + 0x148], eax
cmp dword [edi + 0x144], eax
jle 0x1003dfca
mov dword [edi + 0x144], 1
movzx eax, byte [ebx + 8]
lea ecx, [edi + 8]
shl eax, 2
or edx, 0xffffffff
mov dword [ebp - 0x8c], eax
add eax, 0xfffffffc
mov dword [ebp - 0x34], eax
imul eax, eax, 0x68
mov dword [ebp - 0x40], eax
lea eax, [edi + 0xc]
nop dword [eax]
inc edx
add ecx, 4
add eax, 0x18
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], eax
cmp edx, 4
jg 0x1003e4c0
mov ecx, dword [edi + 0x15c]
mov eax, 0x4ec4ec4f
mov esi, dword [edi + 0x158]
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp dword [ebp - 0x34], eax
jle 0x1003e05d
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ecx]
test esi, esi
je 0x1003e49f
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003e49c
push eax
mov ecx, esi
call dword [0x1009df64]
jmp 0x1003e49c
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
add eax, esi
mov edi, 0xffc4fc03
push eax
call fcn.10004cf0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x158]
cmp byte [ecx + eax + 0x65], 2
jne 0x1003e0c9
movaps xmm0, xmmword [0x1009fc40]
xor ecx, ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x3f223725
mov dword [ebp - 0x54], 0xb3839
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x16
jb 0x1003e0a5
lea eax, [ebp - 0x67]
mov byte [ebp - 0x51], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008580
mov edi, 0xff5cb9fe
jmp 0x1003e107
mov cl, 0x72
mov dword [ebp - 0x50], 0x27295272
mov dword [ebp - 0x4c], 0x17161c
xor eax, eax
mov dword [ebp - 0x48], 0xb130552
mov word [ebp - 0x44], 0x2f
xor byte [ebp + eax - 0x4f], cl
inc eax
cmp eax, 0xc
jae 0x1003e0f7
mov cl, byte [ebp - 0x50]
jmp 0x1003e0e8
lea eax, [ebp - 0x4f]
mov byte [ebp - 0x43], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008580
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
cmova edx, dword [ebp - 0x2c]
mov ecx, edx
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x80], xmm0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003e130
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.10005240
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
mov esi, dword [ecx]
test esi, esi
je 0x1003e169
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003e169
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call dword [0x1009dfc8]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x1003e1a1
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e197
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e511
push ecx
push edx
call fcn.100675d1
add esp, 8
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
test esi, esi
je 0x1003e1c0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003e1c0
push edi
mov ecx, esi
call dword [0x1009dfd0]
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
movaps xmm0, xmmword [0x1009f450]
movups xmmword [ebp - 0x60], xmm0
mov ecx, dword [edi + 0x158]
movzx eax, byte [edx + ecx + 0x64]
push eax
movzx eax, byte [edx + ecx + 0x63]
xor ecx, ecx
push eax
mov al, byte [ebp - 0x60]
xor byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0xe
jb 0x1003e1e5
sub esp, 0x18
mov byte [ebp - 0x51], 0
mov edx, esp
lea ecx, [ebp - 0x5f]
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 0x1003e215
sub ecx, esi
lea eax, [ebp - 0x5f]
push ecx
push eax
mov ecx, edx
call fcn.10005240
lea eax, [ebp - 0xa8]
push eax
call fcn.10004de0
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 0xf
jbe 0x1003e247
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x70], 0
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x80], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003e261
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.10005240
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 3
mov esi, dword [eax - 4]
test esi, esi
je 0x1003e29b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003e29b
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call dword [0x1009dfc8]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x1003e2d3
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e2c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e511
push ecx
push edx
call fcn.100675d1
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x1003e323
mov edx, dword [ebp - 0xa8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e319
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e511
push ecx
push edx
call fcn.100675d1
add esp, 8
mov edx, dword [edi + 0x158]
lea ecx, [ebp - 0x68]
add edx, dword [ebp - 0x40]
mov dx, word [edx + 0x60]
call fcn.10037230
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 0xf
jbe 0x1003e346
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x70], 0
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x80], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003e360
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.10005240
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 5
mov esi, dword [eax + 8]
test esi, esi
je 0x1003e39a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003e39a
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call dword [0x1009dfc8]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x1003e3d2
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e3c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e511
push ecx
push edx
call fcn.100675d1
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x1003e41c
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e412
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e511
push ecx
push edx
call fcn.100675d1
add esp, 8
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov eax, dword [ecx + eax + 0x18]
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x68], 0
mov dword [ecx - 8], eax
mov esi, dword [esi]
test esi, esi
je 0x1003e461
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003e461
push 1
mov ecx, esi
call dword [0x1009df64]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1003e49c
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e492
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e511
push ecx
push edx
call fcn.100675d1
add esp, 8
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x34]
add dword [ebp - 0x40], 0x68
inc esi
mov dword [ebp - 0x34], esi
cmp esi, dword [ebp - 0x8c]
jge 0x1003e4c0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x90]
jmp 0x1003dff0
mov esi, dword [ebp - 0x38]
mov edi, dword [edi + 0x144]
mov esi, dword [esi + 0x134]
test esi, esi
je 0x1003e4e9
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003e4e9
push edi
mov ecx, esi
call dword [0x1009dfcc]
mov ecx, dword [ebp - 0x38]
call fcn.1003d250
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10067570
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1006cd3b
int3