Function at 0x72f790
Capabilities:
Check mutex on windows
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7bb9c4
mov eax, dword fs:[0]
push eax
sub esp, 0x7bc
mov eax, dword [0x82f184]
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, dword [ebp + 8]
mov dword [ebp - 0x14], 0
cmp byte [esi], 0
je 0x72f7db
push esi
call fcn.0072a3b0
add esp, 4
jmp 0x72fdd9
cmp byte [esi + 0x34], 0
je 0x72f7ef
push esi
call fcn.00731060
add esp, 4
jmp 0x72fdd9
cmp byte [esi + 0x36], 0
je 0x72f7ff
call fcn.00727610
jmp 0x72fdd9
cmp byte [esi + 0x37], 0
je 0x72f90d
call fcn.00764950
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x5ac]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.00420e80
mov eax, dword [ebp - 0x590]
mov byte [ebp - 4], 1
test al, al
js 0x72f85d
movsx eax, al
lea ecx, [ebp - 0x585]
push ecx
lea ecx, [ebp - 0x5ac]
mov byte [ebp - 0x585], 0
push ecx
mov eax, dword [eax*4 + 0x7d56d8]
call eax
add esp, 8
lea eax, [ebp - 0x5d8]
mov byte [ebp - 4], 0
push eax
call fcn.006604c0
add esp, 4
push eax
lea eax, [ebp - 0x5ac]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.00421030
mov al, byte [ebp - 0x590]
mov byte [ebp - 4], 3
test al, al
js 0x72f8b6
movsx eax, al
lea ecx, [ebp - 0x585]
push ecx
lea ecx, [ebp - 0x5ac]
mov byte [ebp - 0x585], 0
push ecx
mov eax, dword [eax*4 + 0x7d56d8]
call eax
add esp, 8
mov edx, dword [ebp - 0x5c4]
mov byte [ebp - 0x590], 0xff
cmp edx, 8
jb 0x72f8ff
mov ecx, dword [ebp - 0x5d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x72f8f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x72f8f5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x72fdd9
cmp byte [esi + 0x38], 0
je 0x72f91d
call fcn.0072c930
jmp 0x72fdd9
lea eax, [ebp - 0x5c0]
push eax
lea ecx, [ebp - 0x585]
call fcn.007256d0
mov ebx, eax
xor ecx, ecx
mov edx, dword [ebx]
lea edi, [ebx + 4]
test edx, edx
je 0x72f951
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [ebx]
cmp ecx, edx
jb 0x72f940
push edi
xor eax, eax
push 1
push eax
mov word [edi + edx*2], ax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x72fb28
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x72fb28
push 0x410
lea eax, [ebp - 0x584]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x584]
call fcn.0071d100
push esi
lea ecx, [ebp - 0x584]
mov dword [ebp - 4], 0xa
call fcn.0072d7e0
push ebx
mov dword [ebp - 0x58c], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x72fb12
push 0xb0
push eax
lea eax, [ebp - 0x174]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x174], 0x7d4f80
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x164], 0x7d5218
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x14], 4
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov eax, dword [ebp - 0x174]
mov dword [ebp - 4], 0xc
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x178], eax
lea ecx, [ebp - 0x15c]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0x15c], 0x7c6164
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
lea eax, [ebp - 0x620]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x585]
call fcn.00723d20
mov ecx, eax
call fcn.00403e20
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.00404740
add esp, 8
mov esi, eax
call edi
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
call fcn.00434600
mov edi, eax
lea ecx, [ebp - 0x585]
lea eax, [ebp - 0x7c8]
push eax
call fcn.00724f80
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea ecx, [ebp - 0x585]
lea eax, [ebp - 0x744]
push eax
call fcn.00720290
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0x174]
push ecx
push esi
push 0x2e2
push eax
push 0
mov ecx, edi
call fcn.00469240
lea ecx, [ebp - 0x174]
call fcn.00406480
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x584]
call fcn.0071f370
mov eax, dword [ebp - 0x58c]
jmp 0x72fddb
push 0xb0
lea eax, [ebp - 0xc4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc4], 0x7d4f80
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xb4], 0x7d5218
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0xac]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x14], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable..7.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc8], eax
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xac], 0x7c6164
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x624]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0x585]
call fcn.007261b0
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
test edx, edx
je 0x72fc11
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x72fc00
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0xb4]
push edi
push eax
call fcn.00404740
add esp, 8
call fcn.00434600
mov edi, eax
lea ecx, [ebp - 0x585]
lea eax, [ebp - 0x6d0]
push eax
call fcn.00720470
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea ecx, [ebp - 0x585]
lea eax, [ebp - 0x64c]
push eax
call fcn.00720290
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0xc4]
push ecx
push esi
push 0x2d4
push eax
push 1
mov ecx, edi
call fcn.00469240
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 0xffffffff
call fcn.00406480
call fcn.00767a10
test al, al
je 0x72fdd9
push 0xb0
lea eax, [ebp - 0xc4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc4], 0x7d4f80
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xb4], 0x7d5218
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0xac]
mov dword [ebp - 4], 7
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x14], 3
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 4], 8
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable..7.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc8], eax
lea ecx, [ebp - 0xac]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xac], 0x7c6164
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x620]
mov dword [ebp - 4], 9
push eax
lea ecx, [ebp - 0x585]
call fcn.00723c90
mov ecx, eax
call fcn.00403e20
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00404740
add esp, 8
call fcn.00434600
mov edi, eax
lea ecx, [ebp - 0x585]
lea eax, [ebp - 0x6d0]
push eax
call fcn.00721000
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea ecx, [ebp - 0x585]
lea eax, [ebp - 0x64c]
push eax
call fcn.00720290
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0xc4]
push ecx
push esi
push 0x2d7
push eax
push 1
mov ecx, edi
call fcn.00469240
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 0xffffffff
call fcn.00406480
call fcn.00763e50
xor eax, eax
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.0076d59e
mov esp, ebp
pop ebp
ret