Function at 0x1003cb50
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 0x10069e38
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
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 dword [ebp - 0x38], edi
cmp dword [0x10081800], 0
je 0x1003d373
mov ecx, dword [edi + 0x158]
mov edx, dword [edi + 0x15c]
cmp ecx, edx
je 0x1003cbc8
push ecx
call fcn.1003e270
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 0x1003cd54
xor edi, edi
cmp word [edi + esi + 0x60], 0
je 0x1003cc75
cmp byte [0x1008187c], 0
mov eax, dword [0x10081800]
mov dword [ebp - 0x30], eax
je 0x1003cc54
mov ecx, 0x10b8134
call fcn.10013c90
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1003cc58
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003cc58
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 0x1003cc5b
mov eax, dword [ebp - 0x34]
mov ax, word [eax]
mov word [ecx + 0x40], ax
jmp 0x1003cc5b
mov ecx, eax
jmp 0x1003cc5b
mov ecx, dword [ebp - 0x30]
mov ax, word [edi + esi + 0x60]
cmp ax, word [ecx + 0x40]
jne 0x1003cd20
mov edx, dword [ebp - 0x38]
mov esi, dword [edx + 0x14c]
jmp 0x1003cc78
mov edx, dword [ebp - 0x38]
movzx eax, word [edi + esi + 0x60]
mov ecx, eax
cmp eax, 1
je 0x1003cc89
cmp ecx, 2
jne 0x1003ccf6
cmp byte [0x1008187c], 0
mov eax, dword [0x10081800]
mov dword [ebp - 0x30], eax
je 0x1003cce2
mov ecx, 0x10b8134
call fcn.10013c90
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1003ccdf
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003ccdf
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 0x1003ccdf
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov al, byte [eax]
mov byte [ecx + 0x38], al
mov eax, ecx
jmp 0x1003cce2
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0x38]
cmp word [edi + esi + 0x60], ax
jne 0x1003cd20
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 0x1003cd18
mov ecx, eax
call fcn.1003e8e0
add dword [esi + 4], 0x68
jmp 0x1003cd20
push eax
mov ecx, esi
call fcn.1003e5c0
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 0x1003cbf6
mov edi, dword [ebp - 0x38]
mov eax, dword [edi + 0x158]
mov ecx, dword [edi + 0x15c]
cmp eax, ecx
jne 0x1003cdd0
add edi, 0xc
mov dword [ebp - 0x34], 4
nop
mov esi, dword [edi]
test esi, esi
je 0x1003cd8c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003cd8c
push eax
mov ecx, esi
call dword [0x10075210]
add edi, 4
sub dword [ebp - 0x34], 1
jne 0x1003cd70
mov esi, dword [ebp - 0x38]
mov edi, dword [esi + 0x144]
mov esi, dword [esi + 0x134]
test esi, esi
je 0x1003cdbe
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003cdbe
push edi
mov ecx, esi
call dword [0x10075278]
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x148], 1
jmp 0x1003d373
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 + 0x10077060]
mulsd xmm0, qword [0x10076718]
movsd qword [ebp - 0x88], xmm0
fld qword [ebp - 0x88]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp qword [ebp - 0x88]
movsd xmm0, qword [ebp - 0x88]
call fcn.1003e970
cvttsd2si eax, xmm0
mov dword [edi + 0x148], eax
cmp dword [edi + 0x144], eax
jle 0x1003ce4a
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 0x1003d342
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 0x1003cedd
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ecx]
test esi, esi
je 0x1003d31b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d318
push eax
mov ecx, esi
call dword [0x10075210]
jmp 0x1003d318
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
add eax, esi
mov edi, 0xffc4fc03
push eax
call fcn.10004cb0
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 0x1003cf49
movaps xmm0, xmmword [0x10076ea0]
xor ecx, ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x372a3f2d
mov dword [ebp - 0x54], 0x33031
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x16
jb 0x1003cf25
lea eax, [ebp - 0x67]
mov byte [ebp - 0x51], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.100079c0
mov edi, 0xff5cb9fe
jmp 0x1003cf87
mov cl, 0x5f
mov dword [ebp - 0x50], 0xa047f5f
mov dword [ebp - 0x4c], 0x2d3a3b31
xor eax, eax
mov dword [ebp - 0x48], 0x263e287f
mov word [ebp - 0x44], 2
xor byte [ebp + eax - 0x4f], cl
inc eax
cmp eax, 0xc
jae 0x1003cf77
mov cl, byte [ebp - 0x50]
jmp 0x1003cf68
lea eax, [ebp - 0x4f]
mov byte [ebp - 0x43], 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 - 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 0x1003cfb0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.10005220
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
mov esi, dword [ecx]
test esi, esi
je 0x1003cfe9
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003cfe9
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call dword [0x10075274]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x1003d021
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d017
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d33c
push ecx
push edx
call fcn.100662c0
add esp, 8
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
test esi, esi
je 0x1003d040
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d040
push edi
mov ecx, esi
call dword [0x1007527c]
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
movaps xmm0, xmmword [0x100767d0]
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 0x1003d065
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 0x1003d095
sub ecx, esi
lea eax, [ebp - 0x5f]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0xa8]
push eax
call fcn.10004db0
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 0xf
jbe 0x1003d0c7
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 0x1003d0e1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.10005220
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 3
mov esi, dword [eax - 4]
test esi, esi
je 0x1003d11b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d11b
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call dword [0x10075274]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x1003d153
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d149
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d33c
push ecx
push edx
call fcn.100662c0
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 0x1003d1a3
mov edx, dword [ebp - 0xa8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d199
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d33c
push ecx
push edx
call fcn.100662c0
add esp, 8
mov edx, dword [edi + 0x158]
lea ecx, [ebp - 0x68]
add edx, dword [ebp - 0x40]
mov dx, word [edx + 0x60]
call fcn.100360d0
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 0xf
jbe 0x1003d1c6
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 0x1003d1e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.10005220
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 5
mov esi, dword [eax + 8]
test esi, esi
je 0x1003d21a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d21a
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call dword [0x10075274]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x1003d252
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d248
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d33c
push ecx
push edx
call fcn.100662c0
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 0x1003d29c
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d292
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d33c
push ecx
push edx
call fcn.100662c0
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 0x1003d2e1
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d2e1
push 1
mov ecx, esi
call dword [0x10075210]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1003d318
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d30e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d33c
push ecx
push edx
call fcn.100662c0
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 0x1003d342
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x90]
jmp 0x1003ce70
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov esi, dword [ebp - 0x38]
mov edi, dword [edi + 0x144]
mov esi, dword [esi + 0x134]
test esi, esi
je 0x1003d36b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003d36b
push edi
mov ecx, esi
call dword [0x10075278]
mov ecx, dword [ebp - 0x38]
call fcn.1003c0d0
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 4