Function at 0x1003e890
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 0x1008a52a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
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 ecx, dword [edi + 0x15c]
mov esi, dword [edi + 0x158]
cmp esi, ecx
je 0x1003f2f1
sub ecx, esi
mov dword [ebp - 0x30], 0
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test ecx, ecx
jle 0x1003e923
mov edx, dword [ebx + 8]
lea eax, [esi + 0x18]
nop dword [eax + eax]
cmp dword [eax], edx
je 0x1003e9f9
inc dword [ebp - 0x30]
add eax, 0x68
cmp dword [ebp - 0x30], ecx
jl 0x1003e910
mov ecx, dword [edi + 0x144]
shl ecx, 2
mov dword [ebp - 0x6c], ecx
lea eax, [ecx - 4]
mov dword [ebp - 0x4c], eax
cmp eax, ecx
jge 0x1003f2f1
imul eax, eax, 0x68
mov dword [ebp - 0x30], eax
lea eax, [edi + 0xc]
nop word [eax + eax]
mov ecx, dword [edi + 0x15c]
add eax, 0x18
mov esi, dword [edi + 0x158]
sub ecx, esi
mov dword [ebp - 0x48], eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp dword [ebp - 0x4c], eax
jg 0x1003f2f1
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
add eax, esi
mov dword [ebp - 0x80], 0xffc4fc03
push eax
call fcn.10004cf0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 4
mov eax, dword [edi + 0x158]
cmp byte [ecx + eax + 0x65], 2
jne 0x1003eef4
movaps xmm0, xmmword [0x1009fcc0]
xor ecx, ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x3b263321
mov dword [ebp - 0x54], 0xf3c3d
nop word [eax + eax]
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x16
jb 0x1003e9d0
lea eax, [ebp - 0x67]
mov byte [ebp - 0x51], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008580
mov dword [ebp - 0x80], 0xff5cb9fe
jmp 0x1003ef32
imul ecx, dword [ebp - 0x30], 0x68
mov al, byte [ebx + 0xc]
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x80], ecx
mov byte [ecx + esi + 0x65], al
lea esi, [ecx + 0x58]
mov eax, dword [ebx + 0x10]
sub eax, edx
mov dword [ebx + 0x10], eax
nop dword [eax]
sub dword [ebp - 0x4c], 1
lea edx, [edx + 2]
mov ecx, dword [edi + 0x158]
lea esi, [esi + 2]
movzx eax, word [eax + edx - 2]
mov word [ecx + esi - 0xa], ax
mov ecx, dword [edi + 0x158]
movzx eax, word [edx - 2]
mov word [esi + ecx - 2], ax
mov eax, dword [ebx + 0x10]
jne 0x1003ea20
mov eax, dword [ebx + 8]
cmp eax, dword [edi + 0x140]
jne 0x1003e923
xor al, al
mov dword [ebp - 0x4c], 0xffffffff
mov byte [ebp - 0x31], al
nop dword [eax]
movzx eax, al
push 4
mov dword [ebp - 0x48], eax
mov esi, dword [edi + eax*4 + 0x84]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003eedf
push 4
add esi, 0xe5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003eedf
cmp byte [esi], al
je 0x1003eedf
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x80]
cmp byte [eax + ecx + 0x65], 2
jne 0x1003ebc6
movaps xmm0, xmmword [0x1009f860]
xor ecx, ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0xa0c1104
mov word [ebp - 0x54], 0x380b
mov byte [ebp - 0x52], 0
nop
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x15
jb 0x1003eae0
xorps xmm0, xmm0
mov byte [ebp - 0x52], 0
lea ecx, [ebp - 0x67]
mov dword [ebp - 0x88], 0
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x84], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003eb15
sub ecx, edx
lea eax, [ebp - 0x67]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.10005240
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003eb58
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003eb58
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x1009dfc8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x1003eb99
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003eb8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f311
push ecx
push edx
call fcn.100675d1
add esp, 8
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003ebba
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003ebba
push 0xff5cb9fe
mov ecx, esi
call dword [0x1009dfd0]
mov dword [ebp - 0x4c], 0xff808080
jmp 0x1003ecc5
mov cl, 0x10
mov dword [ebp - 0x44], 0x7e454b10
mov dword [ebp - 0x40], 0x30627574
xor eax, eax
mov dword [ebp - 0x3c], 0x4d697167
mov byte [ebp - 0x38], 0
xor byte [ebp + eax - 0x43], cl
inc eax
cmp eax, 0xb
jae 0x1003ebf2
mov cl, byte [ebp - 0x44]
jmp 0x1003ebe3
xorps xmm0, xmm0
mov byte [ebp - 0x38], 0
lea ecx, [ebp - 0x43]
mov dword [ebp - 0x88], 0
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x84], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ec20
sub ecx, edx
lea eax, [ebp - 0x43]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.10005240
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003ec63
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003ec63
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x1009dfc8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x1003eca4
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ec9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f311
push ecx
push edx
call fcn.100675d1
add esp, 8
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003ecc5
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003ecc5
push 0xffc4fc03
mov ecx, esi
call dword [0x1009dfd0]
mov eax, dword [ebp - 0x48]
lea eax, [eax + eax*4]
mov esi, dword [edi + eax*4 + 0xb0]
mov dword [ebp - 0x6c], eax
test esi, esi
je 0x1003ecf1
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003ecf1
push dword [ebp - 0x4c]
mov ecx, esi
call dword [0x1009dfd0]
imul edx, dword [ebp - 0x30], 0x34
xorps xmm0, xmm0
mov ecx, dword [edi + 0x158]
mov byte [ebp - 0x78], 0x1d
mov byte [ebp - 0x70], 0
mov byte [ebp - 0x70], 0
add edx, dword [ebp - 0x48]
mov dword [ebp - 0x9c], edx
movzx eax, word [ecx + edx*2 + 0x58]
push eax
movzx eax, word [ecx + edx*2 + 0x50]
mov dl, 0x3d
push eax
mov al, 0x38
mov cl, 0x79
mov dh, al
mov byte [ebp - 0x4d], cl
xor al, byte [ebp - 0x78]
mov ch, dl
mov byte [ebp - 0x77], al
mov ah, 0x32
mov al, byte [ebp - 0x78]
xor cl, al
xor dl, al
xor ch, al
mov byte [ebp - 0x75], dl
xor dh, al
mov byte [ebp - 0x76], cl
xor ah, al
mov byte [ebp - 0x72], dh
mov al, byte [ebp - 0x4d]
xor al, byte [ebp - 0x78]
sub esp, 0x18
mov edx, esp
mov byte [ebp - 0x73], ch
lea ecx, [ebp - 0x77]
mov byte [ebp - 0x74], ah
mov byte [ebp - 0x71], al
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 0x1003ed75
sub ecx, esi
lea eax, [ebp - 0x77]
push ecx
push eax
mov ecx, edx
call fcn.10005240
lea eax, [ebp - 0x98]
push eax
call fcn.10004de0
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 0xf
jbe 0x1003edaa
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x68], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003edc4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.10005240
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 3
lea eax, [eax + eax*4]
mov esi, dword [edi + eax*4 + 0xb4]
test esi, esi
je 0x1003ee05
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003ee05
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x1009dfc8]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x1003ee3d
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ee33
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f311
push ecx
push edx
call fcn.100675d1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp ecx, 0xf
jbe 0x1003ee90
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ee86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f311
push ecx
push edx
call fcn.100675d1
add esp, 8
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x9c]
movzx esi, word [eax + ecx*2 + 0x50]
mov eax, dword [ebp - 0x6c]
mov eax, dword [edi + eax*4 + 0xb8]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x1003eedf
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003eedf
mov ecx, dword [ebp - 0x6c]
sub esp, 0xc
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x1009dfb8]
mov al, byte [ebp - 0x31]
inc al
mov byte [ebp - 0x31], al
cmp al, 4
jb 0x1003ea70
jmp 0x1003e923
mov cl, 0x41
mov dword [ebp - 0x44], 0x141a6141
mov dword [ebp - 0x40], 0x3324252f
xor eax, eax
mov dword [ebp - 0x3c], 0x38203661
mov word [ebp - 0x38], 0x1c
xor byte [ebp + eax - 0x43], cl
inc eax
cmp eax, 0xc
jae 0x1003ef22
mov cl, byte [ebp - 0x44]
jmp 0x1003ef13
lea eax, [ebp - 0x43]
mov byte [ebp - 0x37], 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 - 0x88], 0
cmova edx, dword [ebp - 0x2c]
mov ecx, edx
mov dword [ebp - 0x84], 0
movups xmmword [ebp - 0x98], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ef60
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.10005240
mov esi, dword [ebp - 0x48]
mov byte [ebp - 4], 5
mov esi, dword [esi]
test esi, esi
je 0x1003ef9f
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003ef9f
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x1009dfc8]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x1003efdd
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003efd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f311
push ecx
push edx
call fcn.100675d1
add esp, 8
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
test esi, esi
je 0x1003effe
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003effe
push dword [ebp - 0x80]
mov ecx, esi
call dword [0x1009dfd0]
mov ecx, dword [edi + 0x158]
mov edx, dword [ebp - 0x30]
movaps xmm0, xmmword [str._mDWDM]
movups xmmword [ebp - 0x7c], xmm0
movzx eax, byte [edx + ecx + 0x64]
push eax
movzx eax, byte [edx + ecx + 0x63]
xor ecx, ecx
push eax
mov al, byte [ebp - 0x7c]
xor byte [ebp + ecx - 0x7b], al
inc ecx
cmp ecx, 0xe
jb 0x1003f020
sub esp, 0x18
mov byte [ebp - 0x6d], 0
mov edx, esp
lea ecx, [ebp - 0x7b]
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 0x1003f050
sub ecx, esi
lea eax, [ebp - 0x7b]
push ecx
push eax
mov ecx, edx
call fcn.10005240
lea eax, [ebp - 0xd0]
push eax
call fcn.10004de0
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 0xf
jbe 0x1003f082
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x68], xmm0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003f0a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.10005240
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 7
mov esi, dword [eax - 4]
test esi, esi
je 0x1003f0da
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003f0da
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x1009dfc8]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x1003f112
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f108
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f311
push ecx
push edx
call fcn.100675d1
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp ecx, 0xf
jbe 0x1003f162
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f158
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f311
push ecx
push edx
call fcn.100675d1
add esp, 8
mov edx, dword [edi + 0x158]
lea ecx, [ebp - 0xd0]
add edx, dword [ebp - 0x30]
mov dx, word [edx + 0x60]
call fcn.10037230
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0xf
jbe 0x1003f188
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0xa8], 0
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 0
movups xmmword [ebp - 0xb8], xmm0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003f1b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.10005240
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 9
mov esi, dword [eax + 8]
test esi, esi
je 0x1003f1f0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003f1f0
lea eax, [ebp - 0xb8]
mov ecx, esi
push eax
call dword [0x1009dfc8]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xa4]
cmp ecx, 0xf
jbe 0x1003f22e
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f224
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f311
push ecx
push edx
call fcn.100675d1
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
cmp ecx, 0xf
jbe 0x1003f287
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f27d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f311
push ecx
push edx
call fcn.100675d1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], 0
cmp ecx, 0xf
jbe 0x1003f2d9
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f2cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f311
push ecx
push edx
call fcn.100675d1
add esp, 8
mov eax, dword [ebp - 0x4c]
add dword [ebp - 0x30], 0x68
inc eax
mov dword [ebp - 0x4c], eax
cmp eax, dword [ebp - 0x6c]
jge 0x1003f2f1
mov eax, dword [ebp - 0x48]
jmp 0x1003e950
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 0x10
call fcn.1006cd3b
int3