Function at 0x1003e3c0
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 0x10067f50
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
push esi
push edi
mov eax, dword [0x1007c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
movzx edx, word [edi + 0xf6]
xor ecx, ecx
movzx eax, word [edi + 0xf4]
movaps xmm0, xmmword [0x10075560]
push edx
push eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x66272d
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x12
jb 0x1003e421
sub esp, 0x18
mov byte [ebp - 0x15], 0
mov edx, esp
lea ecx, [ebp - 0x27]
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 0x1003e451
sub ecx, esi
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.100051a0
lea eax, [ebp - 0x70]
push eax
call fcn.10004d30
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0xf
jbe 0x1003e483
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003e4a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.100051a0
mov byte [ebp - 4], 1
mov esi, dword [edi + 0x50]
test esi, esi
je 0x1003e4d7
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003e4d7
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call dword [0x10073638]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1003e50b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e501
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e54a
push ecx
push edx
call fcn.100641c5
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0xf
jbe 0x1003e55a
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e550
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003e550
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100641c5
add esp, 8
movzx eax, word [edi + 0xf8]
test ax, ax
jne 0x1003e61d
mov cl, 0x52
mov byte [ebp - 0x12], 0
mov al, 0x7f
mov byte [ebp - 0x14], cl
xor al, cl
mov byte [ebp - 0x12], 0
xorps xmm0, xmm0
mov byte [ebp - 0x13], al
lea ecx, [ebp - 0x13]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003e5a0
sub ecx, edx
lea eax, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.100051a0
mov dword [ebp - 4], 2
mov esi, dword [edi + 0x54]
test esi, esi
je 0x1003e5de
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call eax
test eax, eax
jne 0x1003e5de
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call dword [0x10073638]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1003e77b
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e771
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003e771
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push eax
mov cl, 0x63
mov dword [ebp - 0x24], 0xa3763
mov dword [ebp - 0x20], 0x59170608
xor eax, eax
mov dword [ebp - 0x1c], 0x7464043
mov byte [ebp - 0x18], 0
nop dword [eax + eax]
xor byte [ebp + eax - 0x23], cl
inc eax
cmp eax, 0xb
jae 0x1003e64f
mov cl, byte [ebp - 0x24]
jmp 0x1003e640
sub esp, 0x18
mov byte [ebp - 0x18], 0
mov edx, esp
lea ecx, [ebp - 0x23]
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 0x1003e672
sub ecx, esi
lea eax, [ebp - 0x23]
push ecx
push eax
mov ecx, edx
call fcn.100051a0
lea eax, [ebp - 0x70]
push eax
call fcn.10004d30
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 3
cmp dword [edx + 0x14], 0xf
jbe 0x1003e6a4
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003e6c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.100051a0
mov byte [ebp - 4], 4
mov esi, dword [edi + 0x54]
test esi, esi
je 0x1003e6f8
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call eax
test eax, eax
jne 0x1003e6f8
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call dword [0x10073638]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1003e72c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e722
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e76b
push ecx
push edx
call fcn.100641c5
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0xf
jbe 0x1003e77b
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e771
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003e771
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100641c5
add esp, 8
movzx eax, word [edi + 0xf4]
sub esp, 8
movss xmm1, dword [0x10074730]
xor ecx, ecx
mov byte [ebp - 0x18], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
movaps xmm0, xmmword [0x100751b0]
movups xmmword [ebp - 0x28], xmm0
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0xf
jb 0x1003e7b1
sub esp, 0x18
mov byte [ebp - 0x18], 0
mov edx, esp
lea ecx, [ebp - 0x27]
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 0x1003e7e1
sub ecx, esi
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.100051a0
lea eax, [ebp - 0x88]
push eax
call fcn.10004d30
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 5
cmp dword [edx + 0x14], 0xf
jbe 0x1003e816
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003e830
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.100051a0
mov byte [ebp - 4], 6
mov esi, dword [edi + 0x58]
test esi, esi
je 0x1003e867
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003e867
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call dword [0x10073638]
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1003e897
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e88d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e8d2
push ecx
push edx
call fcn.100641c5
add esp, 8
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x1003e8e2
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003e8d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003e8d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100641c5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret