Function at 0x100512a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad3b3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100d6084]
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 esi, ecx
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xa8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xac]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xb0]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xb4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xb8]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0xbc]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0xc0]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0xc4]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0xc8]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0xcc]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0xd0]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0xd4]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0xd8]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0xdc]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0xe0]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0xe4]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0xe8]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0xec]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0xf0]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100519b0
movzx eax, word [esi + 0xfa]
xor ecx, ecx
movaps xmm0, xmmword [0x100c8c20]
push eax
movzx eax, word [esi + 0xf8]
push eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x430208
nop dword [eax]
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x100513c0
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x100513ee
mov eax, dword [edx]
jmp 0x100513f0
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x3b], 0
jne 0x100513fd
xor ecx, ecx
jmp 0x1005140c
lea ecx, [ebp - 0x3b]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051403
sub ecx, edi
push ecx
lea eax, [ebp - 0x3b]
mov ecx, edx
push eax
call fcn.10002840
lea eax, [ebp - 0x28]
push eax
call fcn.1000f620
add esp, 0x24
mov dword [ebp - 4], 0
mov edx, eax
mov ecx, dword [esi + 0x50]
call fcn.1001c1c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10051451
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002720
movzx eax, word [esi + 0xfc]
test ax, ax
jne 0x100514b2
mov cl, 0x40
mov byte [ebp - 0x66], 0
mov al, 0x6d
mov byte [ebp - 0x68], cl
xor al, cl
mov byte [ebp - 0x66], 0
mov byte [ebp - 0x67], al
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x10051489
xor ecx, ecx
jmp 0x10051499
lea ecx, [ebp - 0x67]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051490
sub ecx, edx
push ecx
lea eax, [ebp - 0x67]
push eax
lea ecx, [ebp - 0x28]
call fcn.10002840
mov dword [ebp - 4], 1
lea edx, [ebp - 0x28]
jmp 0x10051531
mov bl, 0x68
mov byte [ebp - 0x6c], 0
push eax
mov dl, 0xc
mov byte [ebp - 0x70], bl
xor dl, bl
mov byte [ebp - 0x6c], 0
mov byte [ebp - 0x6d], dl
sub esp, 0x18
mov edx, esp
mov al, 0x4b
mov cl, 0x4d
xor al, bl
xor cl, bl
mov byte [ebp - 0x6f], al
mov byte [ebp - 0x6e], cl
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x100514f2
mov eax, dword [edx]
jmp 0x100514f4
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x6f], 0
jne 0x10051501
xor ecx, ecx
jmp 0x10051510
lea ecx, [ebp - 0x6f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051507
sub ecx, edi
push ecx
lea eax, [ebp - 0x6f]
mov ecx, edx
push eax
call fcn.10002840
lea eax, [ebp - 0x28]
push eax
call fcn.1000f620
add esp, 0x20
mov dword [ebp - 4], 2
mov edx, eax
mov ecx, dword [esi + 0x54]
call fcn.1001c1c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10051555
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002720
movzx eax, word [esi + 0xf8]
movss xmm1, dword [0x100c7e88]
test ax, ax
je 0x10051574
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
mov dh, 0xb
mov byte [ebp - 0x71], 0
mov al, 0x2e
mov byte [ebp - 0x78], dh
mov ah, al
mov byte [ebp - 0x71], 0
mov dl, 0x39
sub esp, 0x20
xor dl, dh
mov ch, ah
mov byte [ebp - 0x75], dl
mov cl, 0x25
mov bl, 0x6d
xor al, dh
xor cl, dh
mov byte [ebp - 0x77], al
xor bl, dh
mov byte [ebp - 0x76], cl
xor ah, dh
mov byte [ebp - 0x74], bl
xor ch, dh
mov byte [ebp - 0x73], ah
mov edx, esp
mov byte [ebp - 0x72], ch
cvtps2pd xmm0, xmm1
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
movsd qword [esp + 0x18], xmm0
jb 0x100515d1
mov eax, dword [edx]
jmp 0x100515d3
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x77], 0
jne 0x100515e0
xor ecx, ecx
jmp 0x100515ef
lea ecx, [ebp - 0x77]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100515e6
sub ecx, edi
push ecx
lea eax, [ebp - 0x77]
mov ecx, edx
push eax
call fcn.10002840
lea eax, [ebp - 0x90]
push eax
call fcn.1000f620
add esp, 0x24
mov dword [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0x58]
call fcn.1001c1c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x1005163d
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.10002720
mov ecx, esi
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
mov byte [esi + 0xa0], 1
call fcn.10050ac0
mov esi, dword [esi]
test esi, esi
je 0x1005167d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005167d
push 1
mov ecx, esi
call dword [0x100c681c]
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.1006e1c5
mov esp, ebp
pop ebp
ret