Function at 0x10054820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cae0d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
push edi
mov eax, dword [0x100f2040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
cmp dword [esi + 0x144], 0xffffffff
je 0x10054e92
movaps xmm0, xmmword [0x100e9360]
xor ecx, ecx
mov dword [esi + 0x144], 0xffffffff
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0x4d52575f
mov byte [ebp - 0x4c], 0
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x5f]
xor al, byte [ebp - 0x60]
mov byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0x13
jb 0x10054880
xorps xmm0, xmm0
mov byte [ebp - 0x4c], 0
lea ecx, [ebp - 0x5f]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100548b7
sub ecx, edx
lea eax, [ebp - 0x5f]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10003370
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x7c]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10054964
push 4
push eax
call esi
test eax, eax
jne 0x10054964
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
cmova ecx, dword [ebp - 0x40]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054900
sub ecx, edx
mov dword [ebp - 0x1c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
push esi
mov edi, eax
push 0
push edi
call fcn.1008c200
cmp dword [ebp - 0x2c], 0xf
lea edx, [ebp - 0x40]
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x40]
lea esi, [edi + 0x20]
push edx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x1c]
add esp, 0x1c
mov ecx, dword [ebp - 0x28]
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
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x44]
push 8
push eax
mov dword [ebp - 0x44], 0
call fcn.100891b0
mov eax, dword [ebp - 0x24]
add esp, 8
mov edi, dword [eax + 0x7c]
test edi, edi
je 0x100549a8
push 4
push edi
call esi
test eax, eax
jne 0x100549a5
push 0xffffffffffffffff
mov ecx, edi
call dword [0x100e6db8]
mov eax, dword [ebp - 0x24]
lea edi, [eax + 0xb8]
mov dword [ebp - 0x28], 4
add eax, 0x84
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x48], eax
mov edi, dword [eax]
test edi, edi
je 0x100549d8
push 4
push edi
call esi
test eax, eax
jne 0x100549d8
push eax
mov ecx, edi
call dword [0x100e6d54]
xorps xmm0, xmm0
mov word [ebp - 0x10], 0x52
lea ecx, [ebp - 0xf]
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x44], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054a04
sub ecx, edx
lea eax, [ebp - 0xf]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10003370
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 4], 1
mov eax, dword [edi - 8]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10054ab1
push 4
push eax
call esi
test eax, eax
jne 0x10054ab1
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
cmova ecx, dword [ebp - 0x40]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054a50
sub ecx, edx
mov dword [ebp - 0x20], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
push esi
mov edi, eax
push 0
push edi
call fcn.1008c200
cmp dword [ebp - 0x2c], 0xf
lea edx, [ebp - 0x40]
push dword [ebp - 0x20]
cmova edx, dword [ebp - 0x40]
lea esi, [edi + 0x20]
push edx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x20]
add esp, 0x1c
mov ecx, dword [ebp - 0x18]
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 edi, dword [ebp - 0x1c]
add esp, 4
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x44]
push 8
push eax
mov dword [ebp - 0x44], 0
call fcn.100891b0
xorps xmm0, xmm0
mov word [ebp - 0x14], 0x19
lea ecx, [ebp - 0x13]
mov byte [ebp - 0x13], 0
add esp, 8
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054b01
sub ecx, edx
lea eax, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10003370
mov dword [ebp - 4], 2
mov eax, dword [edi - 4]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10054bb7
push 4
push eax
call esi
test eax, eax
jne 0x10054bb7
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
cmova ecx, dword [ebp - 0x40]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054b50
sub ecx, edx
mov dword [ebp - 0x20], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
push esi
mov edi, eax
push 0
push edi
call fcn.1008c200
cmp dword [ebp - 0x2c], 0xf
lea edx, [ebp - 0x40]
push dword [ebp - 0x20]
cmova edx, dword [ebp - 0x40]
lea esi, [edi + 0x20]
push edx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x20]
add esp, 0x1c
mov ecx, dword [ebp - 0x18]
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 edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x44]
push 8
push eax
mov dword [ebp - 0x44], 0
call fcn.100891b0
mov edi, dword [edi]
add esp, 8
test edi, edi
je 0x10054c1c
push 4
push edi
call esi
test eax, eax
jne 0x10054c1c
lea eax, [edi + 0x140]
push 4
push eax
call esi
test eax, eax
jne 0x10054c1c
lea eax, [edi + 0x13c]
push 4
push eax
call esi
test eax, eax
jne 0x10054c1c
mov ecx, edi
mov dword [edi + 0x140], eax
mov dword [edi + 0x13c], eax
call dword [0x100e6d98]
mov edi, dword [ebp - 0x1c]
mov edi, dword [edi]
test edi, edi
je 0x10054c44
push 4
push edi
call esi
test eax, eax
jne 0x10054c44
sub esp, 0xc
mov ecx, edi
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [0x100e6d9c]
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x1c], 0x14
add eax, 4
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x48], eax
jne 0x100549c0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], 5
lea edi, [eax + 0xf8]
add eax, 0x94
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x48], eax
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10054c92
push 4
push eax
call esi
test eax, eax
jne 0x10054c92
mov ecx, dword [ebp - 0x18]
push eax
call dword [0x100e6d54]
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10054caf
push 4
push eax
call esi
test eax, eax
jne 0x10054caf
mov ecx, dword [ebp - 0x18]
push eax
call dword [0x100e6db4]
cmp dword [edi], 0
je 0x10054e79
xorps xmm0, xmm0
mov word [ebp - 0x14], 0x68
lea ecx, [ebp - 0x13]
mov byte [ebp - 0x13], 0
mov dword [ebp - 0x44], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054ce4
sub ecx, edx
lea eax, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10003370
mov dword [ebp - 4], 3
lea edx, [ebp - 0x44]
mov ecx, dword [edi]
add ecx, 4
call fcn.10018220
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x44]
push 8
push eax
mov dword [ebp - 0x44], 0
call fcn.100891b0
mov eax, dword [edi]
add esp, 8
mov dword [eax + 0x50], 0
mov eax, dword [edi]
mov dword [eax + 0x54], 0
mov eax, dword [edi]
mov dword [eax + 0x58], 0
mov eax, dword [edi]
mov dword [eax + 0x5c], 0
mov eax, dword [edi]
cmp dword [eax], 0
je 0x10054e79
xorps xmm0, xmm0
mov word [ebp - 0x10], 0x4e
lea ecx, [ebp - 0xf]
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x7c], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054d90
sub ecx, edx
lea eax, [ebp - 0xf]
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.10003370
mov dword [ebp - 4], 4
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10054e31
push 4
push eax
call esi
test eax, eax
jne 0x10054e31
cmp dword [ebp - 0x64], 0xf
lea ecx, [ebp - 0x78]
cmova ecx, dword [ebp - 0x78]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054dd0
sub ecx, edx
mov dword [ebp - 0x28], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
push esi
mov edi, eax
push 0
push edi
call fcn.1008c200
cmp dword [ebp - 0x64], 0xf
lea edx, [ebp - 0x78]
push dword [ebp - 0x28]
cmova edx, dword [ebp - 0x78]
lea esi, [edi + 0x20]
push edx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x28]
add esp, 0x1c
mov ecx, dword [ebp - 0x18]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100e6d88]
push edi
call fcn.100891b0
mov edi, dword [ebp - 0x20]
add esp, 4
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x7c]
push 8
push eax
mov dword [ebp - 0x7c], 0
call fcn.100891b0
mov eax, dword [edi]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10054e79
push 4
push eax
call esi
test eax, eax
jne 0x10054e79
mov ecx, dword [ebp - 0x18]
push eax
call dword [0x100e6d54]
mov eax, dword [ebp - 0x48]
add edi, 0xc
add eax, 4
mov dword [ebp - 0x20], edi
sub dword [ebp - 0x24], 1
mov dword [ebp - 0x48], eax
jne 0x10054c76
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret