Function at 0x10030580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093868
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x100bb084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
movaps xmm0, xmmword [0x100afcf0]
xor ecx, ecx
mov dword [ebx + 0x140], 0xffffffff
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x746b6e66
mov byte [ebp - 0x24], 0
nop
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x13
jb 0x100305d0
cmp byte [ebp - 0x37], 0
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jne 0x100305fd
xor ecx, ecx
jmp 0x1003060c
lea ecx, [ebp - 0x37]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10030603
sub ecx, edx
push ecx
lea eax, [ebp - 0x37]
push eax
lea ecx, [ebp - 0x68]
call fcn.10004a40
mov dword [ebp - 4], 0
mov esi, dword [ebx + 0x7c]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test esi, esi
je 0x10030642
push 4
push esi
call edi
test eax, eax
jne 0x10030642
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x100ad8f4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x1003065e
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.100048f0
mov esi, dword [ebx + 0x7c]
test esi, esi
je 0x10030678
push 4
push esi
call edi
test eax, eax
jne 0x10030678
push 0xffffffffffffffff
mov ecx, esi
call dword [0x100ad8fc]
mov eax, dword [ebp - 0x20]
add ebx, 0xb8
add eax, 0x84
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], eax
mov esi, dword [eax]
test esi, esi
je 0x100306a8
push 4
push esi
call edi
test eax, eax
jne 0x100306a8
push eax
mov ecx, esi
call dword [0x100ad890]
push 0
lea eax, [ebp - 0xf]
mov word [ebp - 0x10], 0x4f
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
call fcn.10004a40
mov dword [ebp - 4], 1
mov esi, dword [ebx - 8]
test esi, esi
je 0x100306f5
push 4
push esi
call edi
test eax, eax
jne 0x100306f5
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x100ad8f4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x10030711
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.100048f0
push 0
lea eax, [ebp - 0x13]
mov word [ebp - 0x14], 0x39
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x13], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
call fcn.10004a40
mov dword [ebp - 4], 2
mov esi, dword [ebx - 4]
test esi, esi
je 0x1003075e
push 4
push esi
call edi
test eax, eax
jne 0x1003075e
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x100ad8f4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x1003077a
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.100048f0
mov esi, dword [ebx]
test esi, esi
je 0x100307bb
push 4
push esi
call edi
test eax, eax
jne 0x100307bb
lea eax, [esi + 0x128]
push 4
push eax
call edi
test eax, eax
jne 0x100307bb
lea eax, [esi + 0x124]
push 4
push eax
call edi
test eax, eax
jne 0x100307bb
mov ecx, esi
mov dword [esi + 0x128], eax
mov dword [esi + 0x124], eax
call dword [0x100ad8e0]
mov esi, dword [ebx]
test esi, esi
je 0x100307e0
push 4
push esi
call edi
test eax, eax
jne 0x100307e0
sub esp, 0xc
mov ecx, esi
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [0x100ad8e4]
mov eax, dword [ebp - 0x18]
add ebx, 0x14
add eax, 4
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], eax
jne 0x10030690
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 5
lea esi, [eax + 0xf8]
add eax, 0x94
mov dword [ebp - 0x20], eax
nop
mov ebx, dword [eax]
test ebx, ebx
je 0x10030828
push 4
push ebx
call edi
test eax, eax
jne 0x10030828
push eax
mov ecx, ebx
call dword [0x100ad890]
cmp dword [esi], 0
je 0x100308be
push 0
lea eax, [ebp - 0x13]
mov word [ebp - 0x14], 0x69
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x13], 0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
call fcn.10004a40
mov dword [ebp - 4], 3
mov ebx, dword [esi]
add ebx, 4
je 0x1003087e
push 4
push ebx
call edi
test eax, eax
jne 0x1003087e
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call dword [0x100ad858]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x1003089a
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.100048f0
mov eax, dword [esi]
mov dword [eax + 0x60], 0
mov eax, dword [esi]
mov dword [eax + 0x64], 0
mov eax, dword [esi]
mov dword [eax + 0x68], 0
mov eax, dword [esi]
mov dword [eax + 0x6c], 0
push 0
lea eax, [ebp - 0x17]
mov word [ebp - 0x18], 0xc
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x17], 0
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.10004a40
mov dword [ebp - 4], 4
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x1003090b
push 4
push ebx
call edi
test eax, eax
jne 0x1003090b
lea eax, [ebp - 0x50]
mov ecx, ebx
push eax
call dword [0x100ad8c4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x10030927
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.100048f0
mov eax, dword [ebp - 0x20]
add esi, 0xc
add eax, 4
mov dword [ebp - 0x3c], 0xf
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x20], eax
jne 0x10030810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret