Function at 0x1003d720
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 0x10069f1a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x1007e040]
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 0x1003e185
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 0x1003d7b3
mov edx, dword [ebx + 8]
lea eax, [esi + 0x18]
nop dword [eax + eax]
cmp dword [eax], edx
je 0x1003d889
inc dword [ebp - 0x30]
add eax, 0x68
cmp dword [ebp - 0x30], ecx
jl 0x1003d7a0
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 0x1003e185
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 0x1003e185
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
add eax, esi
mov dword [ebp - 0x80], 0xffc4fc03
push eax
call fcn.10004cb0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 4
mov eax, dword [edi + 0x158]
cmp byte [ecx + eax + 0x65], 2
jne 0x1003dd86
movaps xmm0, xmmword [0x10077530]
xor ecx, ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x766b7e6c
mov dword [ebp - 0x54], 0x427170
nop word [eax + eax]
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x16
jb 0x1003d860
lea eax, [ebp - 0x67]
mov byte [ebp - 0x51], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.100079c0
mov dword [ebp - 0x80], 0xff5cb9fe
jmp 0x1003ddc4
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 0x1003d8b0
mov eax, dword [ebx + 8]
cmp eax, dword [edi + 0x140]
jne 0x1003d7b3
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 0x1003dd6b
push 4
add esi, 0xe5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003dd6b
cmp byte [esi], al
je 0x1003dd6b
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x80]
cmp byte [eax + ecx + 0x65], 2
jne 0x1003da56
movaps xmm0, xmmword [0x10077780]
xor ecx, ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x61677a6f
mov word [ebp - 0x54], 0x5360
mov byte [ebp - 0x52], 0
nop
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x15
jb 0x1003d970
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 0x1003d9a5
sub ecx, edx
lea eax, [ebp - 0x67]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.10005220
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003d9e8
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d9e8
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x10075274]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x1003da29
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003da1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dd80
push ecx
push edx
call fcn.100662c0
add esp, 8
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003da4a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003da4a
push 0xff5cb9fe
mov ecx, esi
call dword [0x1007527c]
mov dword [ebp - 0x4c], 0xff808080
jmp 0x1003db55
mov cl, 0x39
mov dword [ebp - 0x44], 0x576c6239
mov dword [ebp - 0x40], 0x194b5c5d
xor eax, eax
mov dword [ebp - 0x3c], 0x6440584e
mov byte [ebp - 0x38], 0
xor byte [ebp + eax - 0x43], cl
inc eax
cmp eax, 0xb
jae 0x1003da82
mov cl, byte [ebp - 0x44]
jmp 0x1003da73
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 0x1003dab0
sub ecx, edx
lea eax, [ebp - 0x43]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.10005220
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003daf3
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003daf3
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x10075274]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x1003db34
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003db2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dd80
push ecx
push edx
call fcn.100662c0
add esp, 8
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003db55
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003db55
push 0xffc4fc03
mov ecx, esi
call dword [0x1007527c]
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 0x1003db81
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003db81
push dword [ebp - 0x4c]
mov ecx, esi
call dword [0x1007527c]
imul edx, dword [ebp - 0x30], 0x34
xorps xmm0, xmm0
mov ecx, dword [edi + 0x158]
mov byte [ebp - 0x78], 0x7d
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, 0x5d
push eax
mov al, 0x58
mov cl, 0x19
mov dh, al
mov byte [ebp - 0x4d], cl
xor al, byte [ebp - 0x78]
mov ch, dl
mov byte [ebp - 0x77], al
mov ah, 0x52
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 0x1003dc05
sub ecx, esi
lea eax, [ebp - 0x77]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x98]
push eax
call fcn.10004db0
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 0xf
jbe 0x1003dc3a
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 0x1003dc54
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.10005220
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 0x1003dc95
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003dc95
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x10075274]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x1003dccd
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003dcc3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dd80
push ecx
push edx
call fcn.100662c0
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 0x1003dd1c
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003dd12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dd80
push ecx
push edx
call fcn.100662c0
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 0x1003dd6b
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003dd6b
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 [0x10075264]
mov al, byte [ebp - 0x31]
inc al
mov byte [ebp - 0x31], al
cmp al, 4
jb 0x1003d900
jmp 0x1003d7b3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov cl, 0x24
mov dword [ebp - 0x44], 0x717f0424
mov dword [ebp - 0x40], 0x5641404a
xor eax, eax
mov dword [ebp - 0x3c], 0x5d455304
mov word [ebp - 0x38], 0x79
xor byte [ebp + eax - 0x43], cl
inc eax
cmp eax, 0xc
jae 0x1003ddb4
mov cl, byte [ebp - 0x44]
jmp 0x1003dda5
lea eax, [ebp - 0x43]
mov byte [ebp - 0x37], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.100079c0
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 0x1003ddf2
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.10005220
mov esi, dword [ebp - 0x48]
mov byte [ebp - 4], 5
mov esi, dword [esi]
test esi, esi
je 0x1003de31
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003de31
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x10075274]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x1003de6f
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003de65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dd80
push ecx
push edx
call fcn.100662c0
add esp, 8
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
test esi, esi
je 0x1003de90
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003de90
push dword [ebp - 0x80]
mov ecx, esi
call dword [0x1007527c]
mov ecx, dword [edi + 0x158]
mov edx, dword [ebp - 0x30]
movaps xmm0, xmmword [str._sZIZS]
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 0x1003deb2
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 0x1003dee2
sub ecx, esi
lea eax, [ebp - 0x7b]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0xd0]
push eax
call fcn.10004db0
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 0xf
jbe 0x1003df14
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
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003df30
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.10005220
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 7
mov esi, dword [eax - 4]
test esi, esi
je 0x1003df6a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003df6a
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x10075274]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x1003dfa2
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003df98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dd80
push ecx
push edx
call fcn.100662c0
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 0x1003dff2
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003dfe8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dd80
push ecx
push edx
call fcn.100662c0
add esp, 8
mov edx, dword [edi + 0x158]
lea ecx, [ebp - 0xd0]
add edx, dword [ebp - 0x30]
mov dx, word [edx + 0x60]
call fcn.100360d0
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0xf
jbe 0x1003e018
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 0x1003e040
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.10005220
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 9
mov esi, dword [eax + 8]
test esi, esi
je 0x1003e080
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003e080
lea eax, [ebp - 0xb8]
mov ecx, esi
push eax
call dword [0x10075274]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xa4]
cmp ecx, 0xf
jbe 0x1003e0be
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e0b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dd80
push ecx
push edx
call fcn.100662c0
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 0x1003e117
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e10d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dd80
push ecx
push edx
call fcn.100662c0
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 0x1003e16d
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e163
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003dd80
push ecx
push edx
call fcn.100662c0
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 0x1003e185
mov eax, dword [ebp - 0x48]
jmp 0x1003d7e0
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.1006625f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10