Function at 0x10038840
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 0x100ca12d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x100f2040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x3c], eax
mov edi, dword [0x100f6478]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp edi, 0x1388
ja 0x10038903
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100388d3
push 4
push eax
call esi
test eax, eax
jne 0x100388cd
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x124]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100388cd
push 4
push eax
call esi
test eax, eax
jne 0x100388cd
mov ecx, dword [ebp - 0x18]
push edi
call dword [0x100e6da4]
mov edi, dword [0x100f6478]
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
mov dword ds:[0xbc675c], eax
fild dword ds:[0xbc6758]
mov edx, dword ds:[0xbc675c]
push edx
mov ecx, 0xc20ec0
fstp dword ds:[0xbc7c00]
call dword [0x100e42e0]
mov eax, dword [ebp - 0x3c]
mov edi, dword [0x100f6494]
test edi, edi
js 0x10038bc2
cmp edi, 0x17
jg 0x10038bc2
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10038950
push 4
push eax
call esi
test eax, eax
jne 0x10038950
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x124]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10038950
push 4
push eax
call esi
test eax, eax
jne 0x10038950
mov ecx, dword [ebp - 0x18]
push edi
call dword [0x100e6da4]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.10089110
lea ecx, [ebp - 0x34]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x34], eax
mov dword [eax], ecx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 4], 1
xor ecx, ecx
mov eax, dword [0x100f6494]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
push eax
cmp eax, 0xa
jge 0x10038a19
movaps xmm0, xmmword [0x100e9a70]
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x25252f71
mov byte [ebp - 0x40], cl
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x13
jb 0x100389d0
sub esp, 0x1c
mov byte [ebp - 0x40], 0
mov edx, esp
lea ecx, [ebp - 0x53]
xorps xmm0, xmm0
lea edi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038a10
jmp 0x10038a77
movaps xmm0, xmmword [0x100e97f0]
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x333339
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x12
jb 0x10038a30
sub esp, 0x1c
mov byte [ebp - 0x41], 0
mov edx, esp
lea ecx, [ebp - 0x53]
xorps xmm0, xmm0
lea edi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038a70
sub ecx, edi
lea eax, [ebp - 0x53]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x70]
push eax
call fcn.1000d650
mov edi, eax
add esp, 0x24
lea eax, [ebp - 0x34]
cmp eax, edi
je 0x10038aaa
mov ecx, eax
call fcn.10002f50
push edi
lea ecx, [ebp - 0x34]
call fcn.100082f0
lea ecx, [ebp - 0x70]
call fcn.10002f50
mov eax, dword [ebp - 0x70]
push 8
push eax
mov dword [ebp - 0x70], 0
call fcn.100891b0
mov eax, dword [ebp - 0x3c]
add esp, 8
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x10038b5a
push 4
push eax
call esi
test eax, eax
jne 0x10038b5a
cmp dword [ebp - 0x1c], 0xf
lea ecx, [ebp - 0x30]
cmova ecx, dword [ebp - 0x30]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038af0
sub ecx, edx
mov dword [ebp - 0x18], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1008c200
add esp, 0xc
lea edx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x30]
push dword [ebp - 0x18]
push edx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100e6db0]
push edi
call fcn.100891b0
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add esp, 4
mov eax, dword [0x100f6494]
mov dword [ebp - 0x38], eax
test eax, eax
jle 0x10038b9e
mov ecx, 0xd78c94
call fcn.1001e350
mov edi, eax
test edi, edi
je 0x10038b9e
push 4
push edi
call esi
test eax, eax
jne 0x10038b9e
mov edi, dword [edi + 0x28]
test edi, edi
je 0x10038b9e
push 4
push edi
call esi
test eax, eax
jne 0x10038b9e
push eax
push dword [ebp - 0x38]
mov ecx, edi
push eax
push eax
push eax
call dword [0x100e6e48]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x34]
push 8
push eax
mov dword [ebp - 0x34], 0
call fcn.100891b0
add esp, 8
mov eax, dword [0x100f6498]
mov dword [ebp - 0x38], eax
dec eax
cmp eax, 9
ja 0x10038c71
mov edi, dword [ebp - 0x3c]
mov edi, dword [edi + 0x40]
test edi, edi
je 0x10038c05
push 4
push edi
call esi
test eax, eax
jne 0x10038c05
mov edi, dword [edi + 0x124]
test edi, edi
je 0x10038c05
push 4
push edi
call esi
test eax, eax
jne 0x10038c05
push dword [ebp - 0x38]
mov ecx, edi
call dword [0x100e6da4]
mov edi, dword [ebp - 0x3c]
mov eax, dword [0x100f6498]
mov dword [ebp - 0x38], eax
mov edi, dword [edi + 0x44]
test edi, edi
je 0x10038c2b
push 4
push edi
call esi
test eax, eax
jne 0x10038c2b
push dword [ebp - 0x38]
mov ecx, edi
call dword [0x100e6db4]
movd xmm0, dword [0x100f6498]
mov ecx, 0xd78d28
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x100e87f0]
movss dword [ebp - 0x38], xmm0
movss dword [0x100f2b3c], xmm0
call fcn.1001e350
test eax, eax
je 0x10038c71
lea edi, [eax + 0x1b8]
push 4
push edi
call esi
test eax, eax
jne 0x10038c71
movss xmm0, dword [ebp - 0x38]
movss dword [edi], xmm0
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.10089100
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret