Function at 0x630350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b579a
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x831184]
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 ebx, edx
mov edi, ecx
mov dword [ebp - 0x2f8], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x630396
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
call fcn.00465ef0
push eax
lea ecx, [ebp - 0x360]
call fcn.00416320
push 0
push 0
push 0
lea eax, [ebp - 0x35c]
push eax
push 1
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea ecx, [ebp - 0x360]
mov esi, eax
call fcn.00416250
test esi, esi
je 0x63077f
push 0
push 1
lea eax, [ebp - 0x360]
push 0x7d740c
push eax
call fcn.004160c0
add esp, 0x10
lea eax, [ebp - 0x35c]
push 0
push 0
push 0
push eax
push 1
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea ecx, [ebp - 0x360]
mov esi, eax
call fcn.00416250
test esi, esi
je 0x63077f
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x360]
push 0x7d7414
push eax
call fcn.004160c0
add esp, 0x14
lea eax, [ebp - 0x35c]
push 0
push 0
push 0
push eax
push 1
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea ecx, [ebp - 0x360]
mov esi, eax
call fcn.00416250
test esi, esi
je 0x63077f
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x630492
mov eax, dword [edi]
push 0
push 0x2000000
push 3
push 0
push 0
push 0xc0000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x630783
push 0xb0
lea eax, [ebp - 0x2c8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2c8], 0x7d6f90
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x2b8], 0x7d7228
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 - 0x2b0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2f8], 0xf
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 dword [ebp - 4], 1
mov eax, dword [ebp - 0x2c8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2c8], 0x7c81a4
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2cc], eax
lea ecx, [ebp - 0x2b0]
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 - 0x2b0], 0x7c8164
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 4], 2
xor ecx, ecx
mov dword [ebp - 0x2f4], 0x13
mov dword [ebp - 0x2f0], 0xcb00eb
mov dword [ebp - 0x2ec], 0xc700c8
mov dword [ebp - 0x2e8], 0xde00d8
mov dword [ebp - 0x2e4], 0xd6008f
mov dword [ebp - 0x2e0], 0xde00d8
mov dword [ebp - 0x2dc], 0x9400d6
mov dword [ebp - 0x2d8], 0xc100da
mov dword [ebp - 0x2d4], 0xdd00d9
mov dword [ebp - 0x2d0], 0x8000cb
mov dword [ebp - 0x2cc], 0xbc009b
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x2f0], ax
inc ecx
mov eax, dword [ebp - 0x2f4]
cmp ecx, eax
jb 0x6305e1
xor ecx, ecx
mov word [ebp + eax*2 - 0x2f0], cx
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x2b8]
push eax
call fcn.00404740
add esp, 8
mov edx, edi
mov ecx, eax
call fcn.00402db0
call fcn.004345f0
mov edi, eax
lea eax, [ebp - 0x398]
push eax
call fcn.006308f0
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x498]
push eax
call fcn.006307b0
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0x2c8]
push ecx
push esi
push 0x3a
push eax
push 1
mov ecx, edi
call fcn.00469f50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x2c8], 0x7c81a4
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2cc], eax
lea ecx, [ebp - 0x2b0]
call fcn.004073e0
lea ecx, [ebp - 0x2a8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x260]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
push 0
push 1
lea eax, [ebp - 0x360]
push 0x7d740c
push eax
call fcn.004160c0
mov edi, dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_IsValidSid]
test ebx, ebx
je 0x630710
cmp byte [ebp - 0x318], 0
je 0x630710
lea eax, [ebp - 0x35c]
push eax
call esi
test eax, eax
je 0x630710
push 0
push 0
push 0
lea eax, [ebp - 0x35c]
push eax
push 1
push 1
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x360]
call fcn.00416250
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x3f8]
push 0x7d7414
push eax
call fcn.004160c0
add esp, 0x14
test ebx, ebx
je 0x63076d
cmp byte [ebp - 0x3b0], 0
je 0x63076d
lea eax, [ebp - 0x3f4]
push eax
call esi
test eax, eax
je 0x63076d
push 0
push 0
push 0
lea eax, [ebp - 0x3f4]
push eax
push 1
push 1
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x3f8]
call fcn.00416250
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x630788
mov eax, 2
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.0076eb7e
mov esp, ebp
pop ebp
ret