Function at 0x1003c950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066e96
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x10078014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x80], ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [0x1007a4fc], eax
test edi, edi
je 0x1003d496
cmp dword [ebp + 0xc], 1
jne 0x1003d496
cmp dword [0x1007a234], 0
je 0x1003d496
mov eax, dword [ebx + 4]
test eax, eax
je 0x1003c9c3
cmp edi, eax
jne 0x1003c9c3
call fcn.1003dfd0
mov al, 1
jmp 0x1003d498
mov eax, dword [ebx + 0x138]
test eax, eax
je 0x1003c9e3
cmp edi, eax
jne 0x1003c9e3
mov eax, dword [ebx + 0x148]
cmp eax, 1
jbe 0x1003d492
dec eax
jmp 0x1003ca04
mov eax, dword [ebx + 0x13c]
test eax, eax
je 0x1003ca1a
cmp edi, eax
jne 0x1003ca1a
mov eax, dword [ebx + 0x148]
cmp eax, dword [ebx + 0x14c]
jae 0x1003d492
inc eax
mov dword [ebx + 0x148], eax
movzx eax, al
push eax
call fcn.1003f840
mov al, 1
jmp 0x1003d498
mov ecx, dword [ebx + 0x160]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebx + 0x15c]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1003d492
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
xor al, al
mov byte [ebp - 0x61], al
nop dword [eax + eax]
movzx ecx, al
lea eax, [ecx + ecx*2]
mov eax, dword [ebx + eax*8 + 0x30]
test eax, eax
je 0x1003d482
cmp edi, eax
jne 0x1003d482
lea eax, [ecx + ecx*2]
mov ecx, dword [ebx + 0x160]
mov eax, dword [ebx + eax*8 + 0x1c]
sub ecx, dword [ebx + 0x15c]
mov dword [ebp - 0x68], eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1003d482
xor edi, edi
mov ecx, edi
nop dword [eax]
mov eax, dword [ebx + 0x15c]
mov edx, dword [ebp - 0x68]
cmp dword [edi + eax + 0x18], edx
je 0x1003cadb
inc ecx
add edi, 0x68
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebx + 0x160]
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
mov ecx, dword [ebp - 0x60]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x1003caa0
jmp 0x1003d47f
imul ecx, ecx, 0x68
mov dword [ebx + 0x144], edx
mov dword [ebp - 0x84], 0xffffffff
mov dword [ebp - 0x68], ecx
cmp byte [eax + ecx + 0x64], 2
jne 0x1003cb96
movaps xmm0, xmmword [0x1006f180]
xor ecx, ecx
movups xmmword [ebp - 0xdc], xmm0
mov dword [ebp - 0xcc], 0x1c1a0712
mov word [ebp - 0xc8], 0x2e1d
mov byte [ebp - 0xc6], 0
nop word [eax + eax]
mov al, byte [ebp - 0xdc]
xor byte [ebp + ecx - 0xdb], al
inc ecx
cmp ecx, 0x15
jb 0x1003cb30
lea eax, [ebp - 0xdb]
mov byte [ebp - 0xc6], 0
push eax
lea ecx, [ebp - 0x40]
call fcn.100029c0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x40]
mov ecx, dword [ebx + 0x7c]
call fcn.10014f70
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10002380
mov ecx, dword [ebx + 0x7c]
mov edx, 0xff5cb9fe
call fcn.10015040
mov dword [ebp - 0x84], 0xff808080
jmp 0x1003cc19
mov cl, 0xe
mov dword [ebp - 0xa4], 0x605b550e
mov dword [ebp - 0xa0], 0x2e7c6b6a
xor eax, eax
mov dword [ebp - 0x9c], 0x53776f79
mov byte [ebp - 0x98], 0
nop
xor byte [ebp + eax - 0xa3], cl
inc eax
cmp eax, 0xb
jae 0x1003cbd5
mov cl, byte [ebp - 0xa4]
jmp 0x1003cbc0
lea eax, [ebp - 0xa3]
mov byte [ebp - 0x98], 0
push eax
lea ecx, [ebp - 0x40]
call fcn.100029c0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, dword [ebx + 0x7c]
call fcn.10014f70
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10002380
mov ecx, dword [ebx + 0x7c]
mov edx, 0xffc4fc03
call fcn.10015040
mov eax, dword [ebp - 0x68]
lea edx, [ebx + 0x84]
add eax, 0x48
mov dword [ebp - 0x60], edx
lea edi, [ebx + 0xa8]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x88], 4
nop dword [eax + eax]
mov eax, dword [ebx + 0x15c]
mov ecx, dword [ebp - 0x7c]
cmp word [ecx + eax], 0
je 0x1003d0e4
mov bh, 0x6f
xor ah, ah
mov cl, 1
mov byte [ebp - 0xb0], ah
mov bl, cl
mov byte [ebp - 0xb8], bh
mov al, 0x3a
mov byte [ebp - 0xb0], 0
xor al, bh
xor ah, bh
mov ch, 0x18
mov byte [ebp - 0xb7], al
mov dh, bl
mov byte [ebp - 0xb3], ah
xor cl, bh
lea eax, [ebp - 0xb7]
xor ch, bh
mov byte [ebp - 0xb6], cl
mov dl, 4
mov byte [ebp - 0xb2], ch
xor dl, bh
lea ecx, [ebp - 0x58]
xor dh, bh
mov byte [ebp - 0xb5], dl
xor bl, bh
mov byte [ebp - 0xb1], dh
push eax
mov byte [ebp - 0xb4], bl
call fcn.100029c0
lea eax, [ebp - 0x6b]
mov dword [ebp - 4], 2
mov word [ebp - 0x6c], 0x13
lea ecx, [ebp - 0x40]
push eax
mov byte [ebp - 0x6b], 0
call fcn.100029c0
mov ebx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov byte [ebp - 4], 3
mov eax, dword [ebx + 0x15c]
movzx ecx, word [eax + ecx]
call fcn.10007d20
test eax, eax
je 0x1003cd53
add eax, 4
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x1003cd0c
push 0xffffffffffffffff
push 0
push eax
call fcn.10002480
mov eax, dword [edi]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1003cd29
push 4
push eax
call esi
test eax, eax
jne 0x1003cd29
mov ecx, dword [ebp - 0x5c]
push 1
call dword [0x1006ebec]
mov eax, dword [edi + 4]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1003ce98
push 4
push eax
call esi
test eax, eax
jne 0x1003ce98
mov ecx, dword [ebp - 0x5c]
push eax
call dword [0x1006ebec]
jmp 0x1003ce98
mov eax, dword [ebx + 0x15c]
mov ecx, dword [ebp - 0x7c]
cmp word [ecx + eax], 1
jne 0x1003ce98
cmp byte [0x1007a242], 0
mov eax, dword [0x1007a234]
mov dword [ebp - 0x5c], eax
je 0x1003cdaf
mov ecx, 0xd78c9c
call fcn.10015280
mov ebx, eax
test ebx, ebx
je 0x1003cdac
push 4
push ebx
call esi
test eax, eax
jne 0x1003cdac
push 4
add ebx, 0x6a0
push ebx
call esi
test eax, eax
jne 0x1003cdac
mov ecx, dword [ebp - 0x5c]
mov al, byte [ebx]
mov byte [ecx + 0x34], al
mov eax, ecx
jmp 0x1003cdaf
mov eax, dword [ebp - 0x5c]
mov al, byte [eax + 0x34]
mov cl, 0x56
cmp al, 1
jne 0x1003ce2d
mov al, 0x7f
mov byte [ebp - 0x94], 0x3a
xor al, byte [ebp - 0x94]
mov ah, 0x55
mov byte [ebp - 0x93], al
mov dl, 0x1a
mov al, byte [ebp - 0x94]
mov bl, 0x77
mov ch, 0x48
mov byte [ebp - 0x8b], 0
mov dh, 0x5b
mov byte [ebp - 0x8b], 0
xor cl, al
xor dl, al
xor bl, al
mov byte [ebp - 0x92], cl
xor ah, al
mov byte [ebp - 0x91], dl
xor ch, al
mov byte [ebp - 0x8f], ah
xor dh, al
mov byte [ebp - 0x90], bl
mov bh, 0x5e
mov byte [ebp - 0x8e], ch
xor bh, al
mov byte [ebp - 0x8d], dh
mov byte [ebp - 0x8c], bh
lea eax, [ebp - 0x93]
jmp 0x1003ce79
mov ch, 0x37
mov byte [ebp - 0xa6], 0
mov al, 0x7c
mov byte [ebp - 0xac], ch
mov dl, 0x45
mov byte [ebp - 0xa6], 0
mov bl, 0x42
mov ah, 0x44
xor al, ch
xor cl, ch
xor dl, ch
mov byte [ebp - 0xab], al
xor bl, ch
mov byte [ebp - 0xaa], cl
xor ah, ch
mov byte [ebp - 0xa9], dl
mov byte [ebp - 0xa7], ah
lea eax, [ebp - 0xab]
mov byte [ebp - 0xa8], bl
push eax
lea ecx, [ebp - 0x58]
call fcn.100060a0
mov ecx, dword [edi + 4]
mov dl, 1
call fcn.100147e0
mov ecx, dword [edi]
xor dl, dl
call fcn.100147e0
mov ebx, dword [ebp - 0x80]
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0xdc]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.100029c0
mov byte [ebp - 4], 4
lea edx, [ebp - 0xdc]
mov ecx, dword [edi + 8]
call fcn.10014f70
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xc8]
cmp edx, 0x10
jb 0x1003cee1
mov ecx, dword [ebp - 0xdc]
inc edx
push 1
call fcn.10002790
add esp, 4
mov eax, dword [edi + 8]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1003cf03
push 4
push eax
call esi
test eax, eax
jne 0x1003cf03
push dword [ebp - 0x84]
mov ecx, dword [ebp - 0x5c]
call dword [0x1006ec54]
mov eax, dword [ebx + 0x15c]
mov dl, 0x1c
mov esi, dword [ebp - 0x7c]
mov cl, 0x58
mov dh, cl
movzx eax, word [eax + esi + 0x10]
push eax
mov eax, dword [ebx + 0x15c]
mov bh, 0x3c
xor cl, bh
mov bl, 0x13
xor dh, bh
xor bl, bh
movzx eax, word [eax + esi + 8]
push eax
mov al, 0x19
mov byte [ebp - 0xc2], cl
mov ah, dl
mov byte [ebp - 0xbc], 0
mov ch, al
mov byte [ebp - 0xc4], bh
xor al, bh
mov byte [ebp - 0xc0], bl
xor ah, bh
mov byte [ebp - 0xc3], al
sub esp, 0x18
mov byte [ebp - 0xbf], ah
xor ch, bh
mov byte [ebp - 0xbd], dh
mov byte [ebp - 0xbe], ch
lea eax, [ebp - 0xc3]
xor dl, bh
mov byte [ebp - 0xbc], 0
mov ecx, esp
mov byte [ebp - 0xc1], dl
push eax
call fcn.100029c0
lea eax, [ebp - 0xf4]
push eax
call fcn.100061b0
add esp, 0x24
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1003cfa6
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xdc]
call fcn.100029c0
mov byte [ebp - 4], 6
lea edx, [ebp - 0xdc]
mov ecx, dword [edi + 0xc]
call fcn.10014f70
mov edx, dword [ebp - 0xc8]
cmp edx, 0x10
jb 0x1003cfe0
mov ecx, dword [ebp - 0xdc]
inc edx
push 1
call fcn.10002790
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xc8], 0xf
mov dword [ebp - 0xcc], 0
mov byte [ebp - 0xdc], 0
cmp edx, 0x10
jb 0x1003d01b
mov ecx, dword [ebp - 0xf4]
inc edx
push 1
call fcn.10002790
add esp, 4
mov ebx, dword [ebp - 0x80]
mov ecx, dword [edi + 0x10]
mov eax, dword [ebx + 0x15c]
movzx eax, word [esi + eax + 0x10]
push eax
call fcn.10014da0
mov eax, dword [ebx + 0x15c]
add esp, 4
movzx esi, word [eax + esi + 8]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1003d077
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d077
mov ecx, dword [ebp - 0x5c]
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 [0x1006ec38]
mov eax, dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1003d09d
push 4
push eax
call esi
test eax, eax
jne 0x1003d09d
mov ecx, dword [ebp - 0x5c]
push 1
call dword [0x1006ebec]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x1003d0b3
mov ecx, dword [ebp - 0x40]
inc edx
push 1
call fcn.10002790
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x1003d100
mov ecx, dword [ebp - 0x58]
inc edx
push 1
call fcn.10002790
add esp, 4
jmp 0x1003d100
mov eax, dword [edx]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1003d100
push 4
push eax
call esi
test eax, eax
jne 0x1003d100
mov ecx, dword [ebp - 0x5c]
push eax
call dword [0x1006ebec]
add dword [ebp - 0x60], 4
add edi, 0x14
add dword [ebp - 0x7c], 2
sub dword [ebp - 0x88], 1
mov edx, dword [ebp - 0x60]
jne 0x1003cc40
mov edx, dword [ebp - 0x68]
lea ecx, [ebx + 0x94]
add edx, 0x34
mov dword [ebp - 0x60], ecx
lea esi, [ebx + 0xf8]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], 5
mov eax, dword [ebx + 0x15c]
mov edi, dword [eax + edx - 0x14]
mov eax, dword [edx + eax]
mov dword [ebp - 0x68], eax
lea eax, [edi - 1]
cmp eax, 0x5f5e0fe
ja 0x1003d1f8
mov edi, 0x35a4f8a0
mov eax, 0x10624dd3
mov ecx, 0xd78ae8
mul edi
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10015280
mov ecx, eax
call dword [0x1006eb98]
mov ecx, dword [ebp - 0x60]
mov ebx, eax
test ebx, ebx
je 0x1003d346
push 0
lea eax, [ebp - 0x6f]
mov word [ebp - 0x70], 0x74
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x6f], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100028c0
mov dword [ebp - 4], 7
mov edx, edi
mov cl, byte [ebx + 4]
call fcn.10007cb0
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1003d204
cmp dword [eax + 0x48], 0
je 0x1003d204
push edi
push eax
xor edx, edx
lea ecx, [ebp - 0xf4]
call fcn.10007f50
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000b810
jmp 0x1003d255
test edi, edi
jne 0x1003d163
xor ebx, ebx
jmp 0x1003d18b
push edi
push 0
mov edx, ebx
lea ecx, [ebp - 0xf4]
call fcn.10007f50
add esp, 8
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x1003d251
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1003d236
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.10002790
add esp, 4
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10003730
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xe0]
cmp edx, 0x10
jb 0x1003d271
mov ecx, dword [ebp - 0xf4]
inc edx
push 1
call fcn.10002790
add esp, 4
mov ecx, dword [esi]
test ecx, ecx
je 0x1003d2e3
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.1000e460
mov eax, dword [esi]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x50], ebx
mov eax, dword [esi]
mov dword [eax + 0x54], ecx
mov eax, dword [esi]
mov dword [eax + 0x58], edx
test ecx, ecx
je 0x1003d2a7
movsx ecx, word [ecx + 0x56]
movsx eax, word [ebx + 0x66]
add ecx, eax
jmp 0x1003d2ab
movsx ecx, word [ebx + 0x66]
mov eax, dword [esi]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi]
mov ecx, dword [eax]
test ecx, ecx
je 0x1003d2e3
lea edx, [ebp - 0x28]
call fcn.10014c60
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edi, dword [eax]
test edi, edi
je 0x1003d2e9
push 4
push edi
call ebx
test eax, eax
jne 0x1003d2e9
push 1
mov ecx, edi
call dword [0x1006ebec]
jmp 0x1003d2e9
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edi, dword [esi + 4]
test edi, edi
je 0x1003d304
push 4
push edi
call ebx
test eax, eax
jne 0x1003d304
push dword [ebp - 0x68]
mov ecx, edi
call dword [0x1006ec50]
mov edi, dword [ebp - 0x60]
mov edi, dword [edi]
test edi, edi
je 0x1003d320
push 4
push edi
call ebx
test eax, eax
jne 0x1003d320
push 1
mov ecx, edi
call dword [0x1006ebec]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1003d44e
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.10002790
add esp, 4
jmp 0x1003d44e
mov edi, dword [ecx]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x1003d364
push 4
push edi
call ebx
test eax, eax
jne 0x1003d364
push eax
mov ecx, edi
call dword [0x1006ebec]
mov edi, dword [esi + 4]
test edi, edi
je 0x1003d37d
push 4
push edi
call ebx
test eax, eax
jne 0x1003d37d
push eax
mov ecx, edi
call dword [0x1006ec50]
cmp dword [esi], 0
je 0x1003d44e
lea eax, [ebp - 0x73]
mov word [ebp - 0x74], 2
push eax
lea ecx, [ebp - 0xf4]
mov byte [ebp - 0x73], 0
call fcn.100029c0
mov dword [ebp - 4], 9
lea edx, [ebp - 0xf4]
mov ecx, dword [esi]
add ecx, 4
call fcn.1000e460
lea ecx, [ebp - 0xf4]
mov dword [ebp - 4], 0xffffffff
call fcn.10002380
mov eax, dword [esi]
mov dword [eax + 0x50], 0
mov eax, dword [esi]
mov dword [eax + 0x54], 0
mov eax, dword [esi]
mov dword [eax + 0x58], 0
mov eax, dword [esi]
mov dword [eax + 0x5c], 0
mov eax, dword [esi]
cmp dword [eax], 0
je 0x1003d44e
lea eax, [ebp - 0x77]
mov word [ebp - 0x78], 0x26
push eax
lea ecx, [ebp - 0x10c]
mov byte [ebp - 0x77], 0
call fcn.100029c0
mov dword [ebp - 4], 0xa
lea edx, [ebp - 0x10c]
mov ecx, dword [esi]
mov ecx, dword [ecx]
call fcn.10014c60
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], 0xffffffff
call fcn.10002380
mov eax, dword [esi]
mov edi, dword [eax]
test edi, edi
je 0x1003d44e
push 4
push edi
call ebx
test eax, eax
jne 0x1003d44e
push eax
mov ecx, edi
call dword [0x1006ebec]
mov edx, dword [ebp - 0x88]
add esi, 0xc
mov ecx, dword [ebp - 0x60]
add edx, 4
mov ebx, dword [ebp - 0x80]
add ecx, 4
sub dword [ebp - 0x84], 1
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x60], ecx
jne 0x1003d140
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edi, dword [ebp + 8]
mov al, byte [ebp - 0x61]
add al, 1
mov byte [ebp - 0x61], al
cmp al, 4
jb 0x1003ca50
mov al, 1
jmp 0x1003d498
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10063065
mov esp, ebp
pop ebp
ret 8