Function at 0x10017370
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 0x1009d66b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x308
mov eax, dword [0x100b7040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100b8f70], 0
jne 0x10017503
push pe_nt_image_headers32
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x218]
push eax
push 3
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.1008824e
add esp, 0x24
test eax, eax
jne 0x10017503
mov ch, 0xf
mov byte [ebp - 0x2d3], 0
mov cl, 0x7c
mov byte [ebp - 0x2d8], ch
mov al, 0x2a
mov byte [ebp - 0x2d3], 0
mov dl, al
mov ah, cl
xor al, ch
xor ah, ch
mov byte [ebp - 0x2d7], al
xor cl, ch
mov byte [ebp - 0x2d4], ah
xor dl, ch
lea eax, [ebp - 0x218]
mov byte [ebp - 0x2d6], cl
push eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 0x2d5], dl
push eax
lea eax, [ebp - 0x2d7]
push eax
lea eax, [ebp - 0x118]
push pe_nt_image_headers32
push eax
call fcn.10017a20
xorps xmm0, xmm0
mov dword [ebp - 0x2f4], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x2f0], 0
add esp, 0x14
lea edx, [ecx + 1]
movups xmmword [ebp - 0x304], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10017494
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x304]
call fcn.10002540
lea ecx, [ebp - 0x304]
mov dword [ebp - 4], 0
call fcn.10016a60
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2f0]
cmp ecx, 0xf
jbe 0x10017503
mov edx, dword [ebp - 0x304]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100174f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100177cd
push ecx
push edx
call fcn.1007fa46
add esp, 8
mov ecx, 0xd79978
call fcn.100184a0
mov esi, eax
test esi, esi
je 0x10017594
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push esi
call edi
test eax, eax
jne 0x10017594
mov eax, dword [esi]
mov esi, dword [eax + 0xa8]
test esi, esi
je 0x10017594
push 4
push esi
call edi
test eax, eax
jne 0x10017594
call fcn.1007e630
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1007eb00
push 0x10017330
push 0x100baa3c
call fcn.1007e340
call fcn.1007e690
push 4
push esi
mov dword [0x100baa3c], esi
call edi
test eax, eax
jne 0x10017594
call fcn.1007e630
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1007eb00
push 0x10017330
push 0x100baa3c
call fcn.1007deb0
call fcn.1007e690
push 0x98
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.10081b50
add esp, 8
lea ecx, [ebp - 0x2d0]
call fcn.100086d0
mov dword [ebp - 4], 1
xor eax, eax
movaps xmm0, xmmword [0x100af9b0]
movups xmmword [ebp - 0x2ec], xmm0
mov dword [ebp - 0x2dc], 0x681347
nop word [eax + eax]
mov cl, byte [ebp - 0x2ec]
xor byte [ebp + eax - 0x2eb], cl
inc eax
cmp eax, 0x12
jb 0x100175e0
lea edx, [ebp - 0x2eb]
mov byte [ebp - 0x2d9], 0
lea ecx, [ebp - 0x2d0]
call fcn.10006800
mov esi, eax
lea eax, [ebp - 0x318]
push 0
push 8
push eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + esi + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + esi + 0x14], ecx
call fcn.1007c569
add esp, 0xc
mov ecx, dword [eax]
push dword [eax + 0xc]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
mov eax, dword [esi]
add esp, 0xc
mov eax, dword [eax + 4]
mov byte [eax + esi + 0x40], 0x30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call fcn.10003fc0
mov dl, 0x15
mov byte [ebp - 0x2d6], 0
mov cl, 0x48
mov byte [ebp - 0x2d8], dl
xor cl, dl
mov byte [ebp - 0x2d6], 0
mov byte [ebp - 0x2d7], cl
lea edx, [ebp - 0x2d7]
mov ecx, eax
call fcn.10006800
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2d0]
call fcn.10006400
cmp dword [ebp - 0x220], 0xf
lea esi, [ebp - 0x234]
push 0x10016bf0
cmova esi, dword [ebp - 0x234]
lea edx, [ebp - 0x234]
cmova edx, dword [ebp - 0x234]
push 0xfffffffffffffffc
push esi
push edx
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [ebp - 0x220]
mov dword [0x100baa40], eax
cmp ecx, 0xf
jbe 0x1001771b
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017711
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100177d2
push ecx
push edx
call fcn.1007fa46
add esp, 8
mov eax, dword [ebp - 0x2d0]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2d4], eax
lea ecx, [ebp - 0x2cc]
call fcn.10008600
mov eax, dword [ebp - 0x2d0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2d4], eax
lea eax, [ebp - 0x280]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.1007c15d
add esp, 4
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.1007f9e5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10084bdf
call fcn.10084bdf
int3