Function at 0x47f6e0
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 0x4debfb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x15c
mov eax, dword [0x509040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movaps xmm0, xmmword [0x4feef0]
xor ecx, ecx
movups xmmword [ebp - 0x150], xmm0
mov word [ebp - 0x130], 0xb39
movaps xmm0, xmmword [0x4ff3e0]
movups xmmword [ebp - 0x140], xmm0
mov byte [ebp - 0x12e], 0
nop
mov al, byte [ebp - 0x150]
xor byte [ebp + ecx - 0x14f], al
inc ecx
cmp ecx, 0x21
jb 0x47f750
xorps xmm0, xmm0
mov byte [ebp - 0x12e], 0
lea ecx, [ebp - 0x14f]
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47f788
sub ecx, edx
lea eax, [ebp - 0x14f]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.0045c380
push 1
lea edx, [ebp - 0x5c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.004614a0
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x47f7f2
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47f7e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47f7e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00487522
add esp, 8
push 0xb0
lea eax, [ebp - 0x128]
mov dword [ebp - 0x4c], 0
push 0
push eax
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x128]
push eax
call fcn.00482a30
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004605e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x128]
mov eax, dword [ebp - 0x128]
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x128]
call fcn.004865d0
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
je 0x47f900
nop
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmova eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
mov edx, dword [ebp - 0x1c]
cmova ecx, dword [ebp - 0x2c]
push eax
push 0
call fcn.0045c260
add esp, 0xc
cmp eax, 0xffffffff
jne 0x47f8fb
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x128]
call fcn.004865d0
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
jne 0x47f890
jmp 0x47f900
call fcn.00472c50
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmp esi, 0xf
cmova eax, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 0xf
push eax
cmova ecx, dword [ebp - 0x2c]
push 0
call fcn.0045c260
add esp, 0xc
cmp eax, 0xffffffff
jne 0x47fa04
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 1
movups xmmword [ecx], xmm0
push 0x4fdf10
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0045c380
xor cl, cl
call fcn.0047ace0
add esp, 0x18
cmp byte [0x588847], 0
jne 0x47f970
call dword [sym.imp.KERNEL32.dll_FreeConsole]
lea ecx, [ebp - 0x168]
call fcn.004607a0
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
call fcn.00463d00
mov ecx, dword [ebp - 0x154]
cmp ecx, 0xf
jbe 0x47f9c5
mov edx, dword [ebp - 0x168]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47f9bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47f9bb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00487522
add esp, 8
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x47fa01
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47f9f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fafd
push ecx
push edx
call fcn.00487522
add esp, 8
mov esi, dword [ebp - 0x30]
cmp esi, 0xf
jbe 0x47fa35
mov ecx, dword [ebp - 0x44]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x47fa2b
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fafd
push esi
push ecx
call fcn.00487522
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0xf
jbe 0x47fa7b
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47fa71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fafd
push ecx
push edx
call fcn.00487522
add esp, 8
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x12c], eax
lea ecx, [ebp - 0x110]
call fcn.00482980
lea ecx, [ebp - 0x108]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x47fb0d
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47fb03
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47fb03
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00487522
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004870f9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret