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

Disassembly:
push 0xffffffffffffffff
push 0x522908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d4
push ebp
xor ebp, ebp
cmp word [0x58a108], bp
push esi
mov dword [esp + 0xc], ebp
jne 0x4a7bcc
push 0x58a108
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [0x58a310], bp
jne 0x4a7bed
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x103
push eax
push 0x58a310
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 0x569a10
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 0x4a7c8f
push 0x5658d4
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 0x4a7cd0
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 0x5711d0
call esi
add esp, 4
lea ecx, [esp + 0x18]
push eax
push 0x5711d0
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 0x4a7d08
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 0x4a7d27
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 0x4a7d59
push 0x5658d4
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 0x4a7d9c
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 0x5711d0
call esi
add esp, 4
lea ecx, [esp + 0x18]
push eax
push 0x5711d0
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 0x4a7dd4
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 0x4a7dec
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 0x58a108
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 0x4a7e29
mov eax, dword [esi + 4]
push edi
push 0x58a108
push eax
call fcn.0049da60
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 0x569a00
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 0x5658d4
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 0x5658d4
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 0x58a310
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 0x5658d4
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 0x53c460
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 0x4a802f
mov cl, byte [eax - 1]
test cl, cl
je 0x4a8023
cmp cl, 0xff
je 0x4a8023
dec cl
mov byte [eax - 1], cl
jmp 0x4a802f
add eax, 0xfffffffe
push eax
call fcn.0051e1fa
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 0x4a8061
mov al, byte [ecx - 1]
test al, al
je 0x4a8055
cmp al, 0xff
je 0x4a8055
dec al
mov byte [ecx - 1], al
jmp 0x4a8061
lea eax, [ecx - 2]
push eax
call fcn.0051e1fa
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 0x4a8093
mov al, byte [ecx - 1]
test al, al
je 0x4a8087
cmp al, 0xff
je 0x4a8087
dec al
mov byte [ecx - 1], al
jmp 0x4a8093
lea eax, [ecx - 2]
push eax
call fcn.0051e1fa
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 0x4a80d0
mov al, byte [ecx - 1]
test al, al
je 0x4a80c4
cmp al, 0xff
je 0x4a80c4
dec al
mov byte [ecx - 1], al
jmp 0x4a80d0
add ecx, 0xfffffffe
push ecx
call fcn.0051e1fa
add esp, 4
mov esi, dword [esi + 4]
cmp esi, ebp
jne 0x4a80dd
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.0043fb20
mov ecx, dword [esp + 0x3c]
add esp, 4
cmp ecx, ebp
mov esi, eax
je 0x4a810e
mov al, byte [ecx - 1]
test al, al
je 0x4a8102
cmp al, 0xff
je 0x4a8102
dec al
mov byte [ecx - 1], al
jmp 0x4a810e
add ecx, 0xfffffffe
push ecx
call fcn.0051e1fa
add esp, 4
mov ecx, dword [esp + 0x2dc]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2e0
ret