Function at 0x100504e0
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 0x100a2b9e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x100bd080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x38], esi
cmp dword [0x100c0ac4], 0
je 0x10050dee
mov ecx, dword [esi + 0x15c]
lea edi, [esi + 0x15c]
mov edx, dword [edi + 4]
cmp ecx, edx
je 0x10050554
push ecx
call fcn.10051f60
mov eax, dword [edi]
add esp, 4
mov dword [edi + 4], eax
mov eax, dword [esi + 0x150]
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov ecx, dword [esi + 0x154]
sub ecx, eax
mov dword [ebp - 0x34], eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x100506d3
xor esi, esi
mov eax, dword [ebp - 0x34]
cmp byte [esi + eax + 0x63], 0
je 0x100505f7
cmp byte [0x100c0b3c], 0
mov ecx, dword [0x100c0ac4]
mov dword [ebp - 0x30], ecx
je 0x100505ea
mov ecx, 0xd78c9c
call fcn.10019710
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x100505e4
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100505e4
mov eax, dword [ebp - 0x3c]
add eax, 0xb7c
push 4
push eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [ebp - 0x30]
test eax, eax
jne 0x100505e7
mov eax, dword [ebp - 0x3c]
mov al, byte [eax]
mov byte [ecx + 0x3a], al
jmp 0x100505e7
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov al, byte [esi + eax + 0x63]
cmp al, byte [ecx + 0x3a]
jne 0x1005069f
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x150]
mov dword [ebp - 0x30], eax
cmp byte [eax + esi + 0x63], 1
je 0x10050611
cmp byte [esi + eax + 0x63], 2
jne 0x1005067b
cmp byte [0x100c0b3c], 0
mov ecx, dword [0x100c0ac4]
mov dword [ebp - 0x40], ecx
je 0x10050672
mov ecx, 0xd78c9c
call fcn.10019710
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10050669
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10050669
mov eax, dword [ebp - 0x3c]
add eax, 0x6a0
push 4
push eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x38]
test eax, eax
jne 0x1005066f
mov eax, dword [ebp - 0x3c]
mov al, byte [eax]
mov byte [ecx + 0x34], al
jmp 0x1005066f
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov al, byte [eax + esi + 0x63]
cmp al, byte [ecx + 0x34]
jne 0x1005069f
mov eax, dword [edx + 0x150]
mov ecx, dword [edi + 4]
add eax, esi
push eax
cmp ecx, dword [edi + 8]
je 0x10050697
call fcn.100525d0
add dword [edi + 4], 0x68
jmp 0x1005069f
push ecx
mov ecx, edi
call fcn.100522b0
mov ecx, dword [ebp - 0x38]
add esi, 0x68
inc dword [ebp - 0x44]
mov eax, dword [ecx + 0x150]
mov ecx, dword [ecx + 0x154]
sub ecx, eax
mov dword [ebp - 0x34], eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x44], eax
jl 0x10050585
mov edi, dword [ebp - 0x38]
mov eax, dword [edi + 0x15c]
mov ecx, dword [edi + 0x160]
cmp eax, ecx
jne 0x10050750
add edi, 0xc
mov dword [ebp - 0x44], 4
mov esi, dword [edi]
test esi, esi
je 0x1005070c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005070c
push eax
mov ecx, esi
call dword [0x100b2edc]
add edi, 4
sub dword [ebp - 0x44], 1
jne 0x100506f0
mov esi, dword [ebp - 0x38]
mov edi, dword [esi + 0x148]
mov esi, dword [esi + 0x134]
test esi, esi
je 0x1005073e
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005073e
push edi
mov ecx, esi
call dword [0x100b2f3c]
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x14c], 1
jmp 0x10050dee
sub ecx, eax
sub esp, 8
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100b3ec0]
mulsd xmm0, qword [0x100b3520]
movsd qword [ebp - 0x80], xmm0
fld qword [ebp - 0x80]
fstp qword [esp]
call fcn.1009b8f0
add esp, 8
fstp qword [ebp - 0x80]
movsd xmm0, qword [ebp - 0x80]
call fcn.10052660
cvttsd2si eax, xmm0
mov dword [edi + 0x14c], eax
cmp dword [edi + 0x148], eax
jbe 0x100507be
mov dword [edi + 0x148], 1
movzx eax, byte [ebx + 8]
lea ecx, [edi + 8]
shl eax, 2
or edx, 0xffffffff
mov dword [ebp - 0x9c], eax
add eax, 0xfffffffc
mov dword [ebp - 0x44], eax
imul eax, eax, 0x68
mov dword [ebp - 0x34], eax
lea eax, [edi + 0xc]
inc edx
add ecx, 4
add eax, 0x18
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], eax
cmp edx, 4
jg 0x10050dbd
mov ecx, dword [edi + 0x160]
mov eax, 0x4ec4ec4f
mov esi, dword [edi + 0x15c]
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp dword [ebp - 0x44], eax
jle 0x1005084a
mov ecx, dword [ebp - 0x40]
mov esi, dword [ecx]
test esi, esi
je 0x10050d9f
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10050d9c
push eax
mov ecx, esi
call dword [0x100b2edc]
jmp 0x10050d9c
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
add eax, esi
mov dword [ebp - 0x3c], 0xffc4fc03
push eax
call fcn.10007e80
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x15c]
cmp byte [ecx + eax + 0x64], 2
jne 0x100508c7
movaps xmm0, xmmword [0x100b3ff0]
xor ecx, ecx
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0x405d485a
mov dword [ebp - 0x48], 0x744746
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x16
jb 0x10050891
lea ecx, [ebp - 0x5b]
mov byte [ebp - 0x45], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100508a8
sub ecx, edx
lea eax, [ebp - 0x5b]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10007d10
mov dword [ebp - 0x3c], 0xff5cb9fe
jmp 0x10050916
mov cl, 0x25
mov dword [ebp - 0x70], 0x707e0525
mov dword [ebp - 0x6c], 0x5740414b
xor eax, eax
mov dword [ebp - 0x68], 0x5c445205
mov word [ebp - 0x64], 0x78
xor byte [ebp + eax - 0x6f], cl
inc eax
cmp eax, 0xc
jae 0x100508f5
mov cl, byte [ebp - 0x70]
jmp 0x100508e6
lea ecx, [ebp - 0x6f]
mov byte [ebp - 0x63], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050900
sub ecx, edx
lea eax, [ebp - 0x6f]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10007d10
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
cmova edx, dword [ebp - 0x2c]
mov ecx, edx
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x5c], xmm0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050940
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10002570
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x60], esi
mov eax, dword [ecx]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x100509fa
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100509fa
cmp dword [ebp - 0x48], 0xf
lea ecx, [ebp - 0x5c]
cmova ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050990
sub ecx, edx
mov dword [ebp - 0x78], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007fd43
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10081a90
add esp, 0xc
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xf
lea esi, [edi + 0x20]
cmova ecx, dword [ebp - 0x60]
push dword [ebp - 0x78]
push ecx
push esi
call fcn.10081510
mov eax, dword [ebp - 0x78]
add esp, 0xc
mov ecx, dword [ebp - 0x74]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100b2f38]
push edi
call fcn.1007fd3e
mov esi, dword [ebp - 0x60]
add esp, 4
mov edi, dword [ebp - 0x38]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x48]
cmp eax, 0xf
jbe 0x10050a31
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10050a27
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050e0e
push ecx
push esi
call fcn.1007fa16
add esp, 8
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
test esi, esi
je 0x10050a52
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10050a52
push dword [ebp - 0x3c]
mov ecx, esi
call dword [0x100b2f40]
mov eax, dword [edi + 0x15c]
mov edx, dword [ebp - 0x34]
movaps xmm0, xmmword [0x100b3680]
movups xmmword [ebp - 0x54], xmm0
movzx ecx, byte [edx + eax + 0x62]
movzx eax, byte [edx + eax + 0x61]
push ecx
push eax
xor ecx, ecx
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x10050a74
sub esp, 0x18
mov byte [ebp - 0x45], 0
mov edx, esp
lea ecx, [ebp - 0x53]
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 0x10050aa4
sub ecx, esi
lea eax, [ebp - 0x53]
push ecx
push eax
mov ecx, edx
call fcn.10002570
lea eax, [ebp - 0xb4]
push eax
call fcn.1000dc10
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 0xf
jbe 0x10050ad6
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x88], 0
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0
movups xmmword [ebp - 0x98], xmm0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050b00
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.10002570
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x98]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 4]
call fcn.10019550
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10050b69
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10050b5f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050e0e
push ecx
push edx
call fcn.1007fa16
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xa0]
cmp ecx, 0xf
jbe 0x10050ba7
mov edx, dword [ebp - 0xb4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10050b9d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050e0e
push ecx
push edx
call fcn.1007fa16
add esp, 8
mov eax, dword [edi + 0x15c]
mov ecx, dword [ebp - 0x34]
movzx edx, byte [eax + ecx + 0x63]
lea ecx, [ebp - 0x98]
call fcn.10048280
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 0xf
jbe 0x10050bce
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x5c], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050be8
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10002570
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x60], esi
mov eax, dword [eax + 8]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x10050c9e
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10050c9e
cmp dword [ebp - 0x48], 0xf
lea ecx, [ebp - 0x5c]
cmova ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050c34
sub ecx, edx
mov dword [ebp - 0x3c], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007fd43
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10081a90
add esp, 0xc
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xf
lea esi, [edi + 0x20]
cmova ecx, dword [ebp - 0x60]
push dword [ebp - 0x3c]
push ecx
push esi
call fcn.10081510
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov ecx, dword [ebp - 0x74]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100b2f38]
push edi
call fcn.1007fd3e
mov esi, dword [ebp - 0x60]
add esp, 4
mov edi, dword [ebp - 0x38]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
cmp eax, 0xf
jbe 0x10050cd5
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10050ccb
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050e0e
push ecx
push esi
call fcn.1007fa16
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10050d13
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10050d09
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050e0e
push ecx
push edx
call fcn.1007fa16
add esp, 8
mov eax, dword [edi + 0x15c]
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov eax, dword [ecx + eax + 0x18]
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x98], 0
mov dword [ecx - 8], eax
mov esi, dword [esi]
test esi, esi
je 0x10050d61
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10050d61
push 1
mov ecx, esi
call dword [0x100b2edc]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10050d9c
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10050d92
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050e0e
push ecx
push edx
call fcn.1007fa16
add esp, 8
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
add dword [ebp - 0x34], 0x68
inc esi
mov dword [ebp - 0x44], esi
cmp esi, dword [ebp - 0x9c]
jge 0x10050dbd
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x7c]
jmp 0x100507e0
mov esi, dword [ebp - 0x38]
mov edi, dword [edi + 0x148]
mov esi, dword [esi + 0x134]
test esi, esi
je 0x10050de6
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10050de6
push edi
mov ecx, esi
call dword [0x100b2f3c]
mov ecx, dword [ebp - 0x38]
call fcn.1004fac0
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.1007f9b5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.10084b1f
int3