Function at 0x4a7710
Capabilities:
Contain obfuscated stackstrings
Get common file path
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x521318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d4
push ebp
xor ebp, ebp
cmp word [0x587108], bp
push esi
mov dword [esp + 0xc], ebp
jne 0x4a774c
push 0x587108
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [0x587310], bp
jne 0x4a776d
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x103
push eax
push 0x587310
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xde]
mov word [esp + 0xdc], bp
mov edx, dword [esp + 0x308]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30c]
stosw word es:[edi], ax
mov eax, dword [esp + 0x304]
push ecx
push edx
push eax
push 0x566a10
lea ecx, [esp + 0xec]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov dl, byte [esp + 0x2b]
add esp, 0x18
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], dl
push ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [esp + 0x2fc]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov dword [esp + 0x2ec], ebp
mov eax, dword [ecx + 8]
cmp eax, ebp
je 0x4a780f
push 0x5628d4
lea eax, [esp + 0x2c]
push ecx
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
mov ebx, 1
add esp, 0xc
mov dword [esp + 0x14], ebx
mov byte [esp + 0x2ec], bl
jmp 0x4a7850
mov cl, byte [esp + 0x13]
push ebp
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 0x56e1d0
call esi
add esp, 4
lea ecx, [esp + 0x18]
push eax
push 0x56e1d0
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ebx, 2
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x2ec], ebx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov ecx, dword [edx]
push ecx
push ebp
push eax
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
test bl, 2
mov dword [esp + 0x2ec], 1
je 0x4a7888
and ebx, 0xfffffffd
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
test bl, 1
mov dword [esp + 0x2ec], ebp
je 0x4a78a7
and ebx, 0xfffffffe
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0x300]
mov ecx, dword [eax + 8]
cmp ecx, ebp
je 0x4a78d9
push 0x5628d4
lea edx, [esp + 0x2c]
push eax
push edx
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
add esp, 0xc
or ebx, 4
mov dword [esp + 0x14], ebx
mov byte [esp + 0x2ec], 3
jmp 0x4a791c
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 0x56e1d0
call esi
add esp, 4
lea ecx, [esp + 0x18]
push eax
push 0x56e1d0
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
or ebx, 8
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x2ec], 4
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0x3c]
push edx
push ebp
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
test bl, 8
mov dword [esp + 0x2ec], 3
je 0x4a7954
and ebx, 0xfffffff7
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
test bl, 4
mov dword [esp + 0x2ec], ebp
je 0x4a796c
push 1
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 0x587108
call esi
mov esi, dword [esp + 0x318]
add esp, 4
mov edi, eax
mov ecx, esi
push 1
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x4a79a9
mov eax, dword [esi + 4]
push edi
push 0x587108
push eax
call fcn.0049d830
add esp, 0xc
mov ecx, esi
push edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
push 0x566a00
lea eax, [esp + 0xc0]
push esi
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
mov ecx, dword [esp + 0x300]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov byte [esp + 0x304], 5
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
push 0x5628d4
push eax
lea eax, [esp + 0x6c]
mov byte [esp + 0x30c], 6
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
mov ecx, dword [esp + 0x31c]
lea edx, [esp + 0x3c]
push ecx
push eax
push edx
mov byte [esp + 0x31c], 7
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
push 0x5628d4
push eax
lea eax, [esp + 0xd4]
mov byte [esp + 0x324], 8
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
push 0x587310
lea ecx, [esp + 0xbc]
push eax
push ecx
mov byte [esp + 0x334], 9
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
add esp, 0x48
push 0x5628d4
lea edx, [esp + 0x70]
push eax
push edx
mov byte [esp + 0x2f8], 0xa
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
lea ecx, [esp + 0x48]
lea edx, [esp + 0xd8]
push ecx
push eax
push edx
mov byte [esp + 0x304], 0xb
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
lea ecx, [esp + 0xf4]
lea edx, [esp + 0xa4]
push ecx
push eax
push edx
mov byte [esp + 0x310], 0xc
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
push 0x539460
push eax
lea eax, [esp + 0xd8]
mov byte [esp + 0x318], 0xd
push eax
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__
mov ecx, dword [esp + 0x340]
mov bl, 0xe
push ecx
lea edx, [esp + 0x90]
push eax
mov byte [esp + 0x324], bl
push edx
call sub.MSVCP60.dll_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__
add esp, 0x3c
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [esp + 0x2ec], 0xf
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebp
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x2f0], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0x2f0], 0xd
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x90]
mov byte [esp + 0x2f0], 0xc
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x2f0], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x2f0], 0xa
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x2f0], 9
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0x2f0], 8
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0x1c]
pop edi
cmp eax, ebp
pop ebx
je 0x4a7baf
mov cl, byte [eax - 1]
test cl, cl
je 0x4a7ba3
cmp cl, 0xff
je 0x4a7ba3
dec cl
mov byte [eax - 1], cl
jmp 0x4a7baf
add eax, 0xfffffffe
push eax
call fcn.0051d79a
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], ebp
cmp ecx, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
je 0x4a7be1
mov al, byte [ecx - 1]
test al, al
je 0x4a7bd5
cmp al, 0xff
je 0x4a7bd5
dec al
mov byte [ecx - 1], al
jmp 0x4a7be1
lea eax, [ecx - 2]
push eax
call fcn.0051d79a
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x48], ebp
cmp ecx, ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
je 0x4a7c13
mov al, byte [ecx - 1]
test al, al
je 0x4a7c07
cmp al, 0xff
je 0x4a7c07
dec al
mov byte [ecx - 1], al
jmp 0x4a7c13
lea eax, [ecx - 2]
push eax
call fcn.0051d79a
add esp, 4
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x24], ebp
cmp ecx, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x2e4], 0
je 0x4a7c50
mov al, byte [ecx - 1]
test al, al
je 0x4a7c44
cmp al, 0xff
je 0x4a7c44
dec al
mov byte [ecx - 1], al
jmp 0x4a7c50
add ecx, 0xfffffffe
push ecx
call fcn.0051d79a
add esp, 4
mov esi, dword [esi + 4]
cmp esi, ebp
jne 0x4a7c5d
mov esi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
call fcn.0043fa40
mov ecx, dword [esp + 0x3c]
add esp, 4
cmp ecx, ebp
mov esi, eax
je 0x4a7c8e
mov al, byte [ecx - 1]
test al, al
je 0x4a7c82
cmp al, 0xff
je 0x4a7c82
dec al
mov byte [ecx - 1], al
jmp 0x4a7c8e
add ecx, 0xfffffffe
push ecx
call fcn.0051d79a
add esp, 4
mov ecx, dword [esp + 0x2dc]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2e0
ret