Function at 0x10022190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d788
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10051014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x48], ebx
mov esi, dword [0x10057c50]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp esi, 0x1388
ja 0x10022236
mov ebx, dword [ebx + 0x34]
test ebx, ebx
je 0x10022206
push 4
push ebx
call edi
test eax, eax
jne 0x10022200
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x10022200
push 4
push ebx
call edi
test eax, eax
jne 0x10022200
push esi
mov ecx, ebx
call dword [0x10047560]
mov esi, dword [0x10057c50]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
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 [0x1004400c]
mov ebx, dword [ebp - 0x48]
mov esi, dword [0x10057c6c]
cmp esi, 0x17
ja 0x100223b1
mov ebx, dword [ebx + 0x38]
test ebx, ebx
je 0x10022277
push 4
push ebx
call edi
test eax, eax
jne 0x10022271
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x10022271
push 4
push ebx
call edi
test eax, eax
jne 0x10022271
push esi
mov ecx, ebx
call dword [0x10047560]
mov esi, dword [0x10057c6c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push esi
cmp esi, 0xa
jge 0x100222fc
movaps xmm0, xmmword [0x10049110]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x6d6d6739
mov byte [ebp - 0x30], cl
nop dword [eax]
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x13
jb 0x100222b0
sub esp, 0x18
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.100028c0
lea eax, [ebp - 0x60]
push eax
call fcn.1000b650
add esp, 0x20
lea ecx, [ebp - 0x2c]
push eax
call fcn.10006540
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x10022368
inc eax
push eax
push dword [ebp - 0x60]
call fcn.100026c0
jmp 0x10022368
movaps xmm0, xmmword [0x10049630]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x20202a
nop
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x12
jb 0x10022310
sub esp, 0x18
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.100028c0
lea eax, [ebp - 0x60]
push eax
call fcn.1000b650
add esp, 0x20
lea ecx, [ebp - 0x2c]
push eax
call fcn.10006540
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x10022356
inc eax
push eax
push dword [ebp - 0x60]
call fcn.100026c0
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
mov ebx, dword [ebp - 0x48]
lea edx, [ebp - 0x2c]
mov ecx, dword [ebx + 0x3c]
call fcn.100123c0
mov eax, dword [0x10057c6c]
test eax, eax
jle 0x10022386
push ecx
push eax
call fcn.10022140
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x1002239f
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.100026c0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov eax, dword [0x10057c70]
mov dword [ebp - 0x14], eax
dec eax
cmp eax, 9
ja 0x1002245a
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x100223f1
push 4
push esi
call edi
test eax, eax
jne 0x100223f1
mov esi, dword [esi + 0x124]
test esi, esi
je 0x100223f1
push 4
push esi
call edi
test eax, eax
jne 0x100223f1
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x10047560]
mov esi, dword [ebx + 0x44]
mov eax, dword [0x10057c70]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10022414
push 4
push esi
call edi
test eax, eax
jne 0x10022414
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x10047568]
movd xmm0, dword [0x10057c70]
mov ecx, 0xd78d28
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x10048b94]
movss dword [ebp - 0x14], xmm0
movss dword [0x10051060], xmm0
call fcn.10012630
test eax, eax
je 0x1002245a
lea esi, [eax + 0x1b8]
push 4
push esi
call edi
test eax, eax
jne 0x1002245a
movss xmm0, dword [ebp - 0x14]
movss dword [esi], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10038745
mov esp, ebp
pop ebp
ret