joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497850
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edi
push 0x228
lea edx, [ebp - 0x22c]
push 0
push edx
mov dword [ebp - 0x660], eax
mov dword [ebp - 0x65c], ecx
mov dword [ebp - 0x230], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4978cc
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4978dd
test edi, edi
je 0x4978cc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00584870
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov ecx, dword [ebp - 0x228]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4978ff
push eax
call ebx
jmp 0x497974
lea edx, [ebp - 0x658]
push edx
push esi
mov dword [ebp - 0x658], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x497967
lea ebx, [ebx]
mov eax, dword [ebp - 0x660]
push eax
lea ecx, [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x497955
lea edx, [ebp - 0x658]
push edx
push esi
mov dword [ebp - 0x658], 0x428
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x497920
jmp 0x497967
mov ecx, dword [ebp - 0x65c]
lea eax, [ebp - 0x650]
push eax
call fcn.004977e0
push esi
call ebx
mov dword [ebp - 0x230], 0x22c
lea ecx, [ebp - 0x230]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4978e5
test edi, edi
pop esi
je 0x497991
push edi
call ebx
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00584870
mov esp, ebp
pop ebp
ret
Function at 0x497d30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5df1e8
push 0x584834
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x610304]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x63c], esi
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x640], esi
mov word [ebp - 0x634], si
push 0x206
push esi
lea eax, [ebp - 0x632]
push eax
call sub.MSVCR80.dll_memset
mov word [ebp - 0x224], si
push 0x206
push esi
lea ecx, [ebp - 0x222]
push ecx
call sub.MSVCR80.dll_memset
mov edi, 0x104
mov dword [ebp - 0x650], edi
mov dword [ebp - 0x648], edi
mov word [ebp - 0x42c], si
push 0x206
push esi
lea edx, [ebp - 0x42a]
push edx
call sub.MSVCR80.dll_memset
add esp, 0x24
mov dword [ebp - 0x64c], edi
xor edi, edi
mov dword [ebp - 0x644], edi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x63c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x497e12
mov dword [ebp - 0x638], esi
jmp 0x497f1c
lea ecx, [ebp - 0x640]
push ecx
mov edx, dword [ebp - 0x640]
push edx
push esi
push 1
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x497e3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x497e07
mov dword [ebp - 0x644], esi
mov ecx, dword [ebp - 0x640]
push ecx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x644], edi
cmp edi, esi
je 0x497e07
lea edx, [ebp - 0x640]
push edx
mov eax, dword [ebp - 0x640]
push eax
push edi
push 1
mov ecx, dword [ebp - 0x63c]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x497e07
lea edx, [ebp - 0x654]
push edx
lea eax, [ebp - 0x650]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x648]
push edx
lea eax, [ebp - 0x634]
push eax
mov ecx, dword [edi]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x497f1c
lea edx, [ebp - 0x64c]
push edx
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x497f03
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x497f03
lea eax, [ebp - 0x224]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x5d13ac
mov ecx, ebx
call dword [0x5a3464]
lea ecx, [ebp - 0x634]
push ecx
mov ecx, ebx
call dword [0x5a3464]
mov dword [ebp - 0x638], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00497f52
mov eax, dword [ebp - 0x638]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00584870
mov esp, ebp
pop ebp
ret
Function at 0x497f90
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x110
lea eax, [ebp - 0x158]
push ebx
push eax
mov dword [ebp - 0x16c], 1
xor esi, esi
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x15c], 0x114
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x164]
push ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4980d2
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4980d2
cmp dword [ebp - 0x158], 6
jb 0x498072
mov edx, dword [ebp - 0x164]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x168]
push eax
push 4
lea ecx, [ebp - 0x170]
push ecx
push 0x12
push edx
call edi
test eax, eax
je 0x4980d2
cmp dword [ebp - 0x170], 3
jne 0x498072
mov edx, dword [ebp - 0x164]
lea eax, [ebp - 0x168]
push eax
push 4
lea ecx, [ebp - 0x160]
push ecx
push 0x13
push edx
call edi
test eax, eax
je 0x4980d2
cmp dword [ebp - 0x160], ebx
jne 0x498094
mov ecx, dword [ebp - 0x164]
lea eax, [ebp - 0x160]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x4980d2
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x48]
push eax
push ebx
push 0x1a
mov dword [ebp - 0x168], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x4980d2
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x16c]
push ecx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4980da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x164]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4980f3
push eax
call edi
mov dword [ebp - 0x164], ebx
mov eax, dword [ebp - 0x160]
cmp eax, ebx
je 0x498106
push eax
call edi
mov dword [ebp - 0x160], ebx
cmp esi, ebx
je 0x49813a
push esi
push str.Util::ACL::IsUserAdmin_Failed:_d_n
push 0x5b0010
push 2
push str.Util::ACL::IsUserAdmin
push 0x1f4
push str.E:_txupdatecoding_baseutilfunutilacl.cpp
call fcn.00452950
push esi
push str.Util::ACL::IsUserAdmin_Failed:_d_n
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0x24
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x16c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00584870
mov esp, ebp
pop ebp
ret
Function at 0x498160
Capabilities:
List groups for user account

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f0c2
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x610304]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push ebx
call sub.NETAPI32.dll_NetUserGetLocalGroups
cmp eax, ebx
jne 0x49821b
mov esi, dword [ebp - 0x14]
cmp esi, ebx
mov dword [ebp - 0x18], 1
je 0x498228
xor edi, edi
cmp dword [ebp - 0x10], ebx
jbe 0x49821e
lea esp, [esp]
cmp esi, ebx
je 0x49821b
mov eax, dword [esi]
cmp eax, ebx
je 0x498210
push eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00449970
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add edi, 1
add esi, 4
cmp edi, dword [ebp - 0x10]
jb 0x4981e0
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x498228
push esi
call sub.NETAPI32.dll_NetApiBufferFree
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x498660
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, esi
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
je 0x498698
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00584870
mov esp, ebp
pop ebp
ret
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
mov word [ebp - 0x20c], 0
call sub.MSVCR80.dll_memset
lea ecx, [ebp - 0x210]
push ecx
call fcn.004985d0
add esp, 0x10
mov ecx, eax
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push 0x103
lea edx, [ebp - 0x20c]
push edx
push str.lyh_____
mov ecx, esi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push str.TXUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x210]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x20c]
mov eax, str.lyh_____
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49872b
test dx, dx
je 0x498727
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49872b
add eax, 4
add ecx, 4
test dx, dx
jne 0x498705
xor eax, eax
jmp 0x498730
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x498686
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [edi], eax
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00584870
mov esp, ebp
pop ebp
ret
Function at 0x498890
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, esi
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
je 0x4988c8
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00584870
mov esp, ebp
pop ebp
ret
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
mov word [ebp - 0x20c], 0
call sub.MSVCR80.dll_memset
lea ecx, [ebp - 0x210]
push ecx
call fcn.004985d0
add esp, 0x10
mov ecx, eax
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push 0x103
lea edx, [ebp - 0x20c]
push edx
push str.lyh_____
mov ecx, esi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push str.TXUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x210]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x20c]
mov eax, str.lyh_____
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49895b
test dx, dx
je 0x498957
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49895b
add eax, 4
add ecx, 4
test dx, dx
jne 0x498935
xor eax, eax
jmp 0x498960
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4988b6
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00584870
mov esp, ebp
pop ebp
ret
Function at 0x498a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f1f3
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x216]
push ebx
mov dword [ebp - 0x224], ebx
push eax
mov dword [ebp - 0x22c], esi
mov word [ebp - 0x218], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push 1
push 0x1a
lea ecx, [ebp - 0x218]
push ecx
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x498af3
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
je 0x498b22
push 0x5b03e0
lea ecx, [ebp - 0x220]
call fcn.0049f071
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
jmp 0x498b7b
push 1
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
push 0x5d13ac
push eax
mov byte [ebp - 4], 3
call fcn.004a063e
add esp, 8
lea ecx, [ebp - 0x228]
mov bl, al
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
je 0x498b6d
push 0x5d13ac
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__
lea edx, [ebp - 0x21c]
push edx
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 1
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00584870
mov esp, ebp
pop ebp
ret
Function at 0x498bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f263
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x216]
push ebx
mov dword [ebp - 0x224], ebx
push eax
mov dword [ebp - 0x22c], esi
mov word [ebp - 0x218], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push 1
push 0x2b
lea ecx, [ebp - 0x218]
push ecx
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x498c63
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
je 0x498c92
push 0x5b03e0
lea ecx, [ebp - 0x220]
call fcn.0049f071
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
jmp 0x498ceb
push 1
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
push 0x5d13ac
push eax
mov byte [ebp - 4], 3
call fcn.004a063e
add esp, 8
lea ecx, [ebp - 0x228]
mov bl, al
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
je 0x498cdd
push 0x5d13ac
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__
lea edx, [ebp - 0x21c]
push edx
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 1
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00584870
mov esp, ebp
pop ebp
ret
Function at 0x498d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f2d3
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x216]
push ebx
mov dword [ebp - 0x224], ebx
push eax
mov dword [ebp - 0x22c], esi
mov word [ebp - 0x218], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push 1
push 0x25
lea ecx, [ebp - 0x218]
push ecx
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x498dd3
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
je 0x498e02
push 0x5b03e0
lea ecx, [ebp - 0x220]
call fcn.0049f071
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
jmp 0x498e5b
push 1
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
push 0x5d13ac
push eax
mov byte [ebp - 4], 3
call fcn.004a063e
add esp, 8
lea ecx, [ebp - 0x228]
mov bl, al
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
je 0x498e4d
push 0x5d13ac
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__
lea edx, [ebp - 0x21c]
push edx
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 1
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00584870
mov esp, ebp
pop ebp
ret
Function at 0x498f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f383
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x216]
push ebx
mov dword [ebp - 0x224], ebx
push eax
mov dword [ebp - 0x22c], esi
mov word [ebp - 0x218], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push 1
push 0x1c
lea ecx, [ebp - 0x218]
push ecx
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x498fc3
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
je 0x498ff2
push 0x5b03e0
lea ecx, [ebp - 0x220]
call fcn.0049f071
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
jmp 0x49904b
push 1
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_
push 0x5d13ac
push eax
mov byte [ebp - 4], 3
call fcn.004a063e
add esp, 8
lea ecx, [ebp - 0x228]
mov bl, al
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
je 0x49903d
push 0x5d13ac
lea ecx, [ebp - 0x21c]
call sym.txupd.exe_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__
lea edx, [ebp - 0x21c]
push edx
mov ecx, esi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 1
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00584870
mov esp, ebp
pop ebp
ret

Function at 0x499290
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4992eb
push esi
call fcn.00499220
add esp, 4
test eax, eax
je 0x4992eb
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4992be
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4992e4
mov eax, 1
pop esi
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebp
ret