joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492041
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4920d9
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], ebx
mov edi, eax
jne 0x4920cf
cmp edi, 0x200000
ja 0x4920cf
lea eax, [edi + 2]
push esi
push eax
call fcn.004d64b6
pop ecx
push ebx
mov esi, eax
lea eax, [ebp + 8]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4920ce
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4920ce
mov byte [eax + esi], bl
mov eax, dword [ebp + 8]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp - 0xc], 1
pop esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret 0xc

Function at 0x4920e1
Capabilities:
Check if file exists

Disassembly:
push 0x114
mov eax, 0x4fcc23
call fcn.004d766c
mov eax, dword [0x55a320]
and dword [ebp - 0x14], 0
and dword [ebp - 0x1c], 0
mov edi, ecx
mov ecx, 0x55a320
mov dword [ebp - 0x18], edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x49214c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49214c
test edi, edi
jne 0x492130
mov edi, 0x80070057
jmp 0x492138
push edi
call fcn.00492d32
mov edi, eax
lea eax, [esi - 0x10]
call fcn.004012f9
xor eax, eax
test edi, edi
setge al
jmp 0x49221e
lea edi, [ebx + 8]
call fcn.0046300d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.00492041
test eax, eax
mov edi, dword [ebp - 0x1c]
je 0x492208
test edi, edi
je 0x492213
mov eax, dword [ebp + 8]
dec eax
je 0x4921e1
dec eax
je 0x49218f
dec eax
jne 0x4921eb
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.004029d7
jmp 0x4921eb
lea eax, [ebp - 0x11c]
push 0xfde9
mov dword [ebp - 0x120], eax
push edi
lea eax, [ebp - 0x120]
push eax
call fcn.004062ed
mov byte [ebp - 4], 1
push dword [ebp - 0x120]
lea eax, [ebp - 0x10]
push eax
call fcn.00402d02
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x120], eax
je 0x4921eb
push dword [ebp - 0x120]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
jmp 0x4921eb
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0040c519
push 0xa
push 0xd
lea eax, [ebp - 0x10]
call fcn.00407683
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax]
mov dword [ebp - 0x14], 1
test edi, edi
je 0x492213
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
lea eax, [esi - 0x10]
call fcn.004012f9
mov eax, dword [ebp - 0x14]
call fcn.004d7744
ret 8
Function at 0x492226
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fcbf5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5550ec]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov eax, dword [0x55a320]
and dword [esp + 0x1c], 0
mov ecx, 0x55a320
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
and dword [esp + 0x30], 0
mov edi, dword [sym.imp.MSVCR80.dll_wcschr]
push 0x5b
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x4922ef
and dword [esp + 0x18], 0
lea esi, [esp + 0x14]
call fcn.00402afb
push 0xa
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x4922b5
push ebx
mov eax, esi
push eax
call fcn.004029d7
mov dword [esp + 0x18], 1
jmp 0x4922c5
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
lea eax, [esp + 0x1c]
call fcn.004029fb
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
push dword [esp + 0x20]
lea ecx, [esp + 0x18]
lea ebx, [ebx + eax*2]
call fcn.00492314
test eax, eax
je 0x4922ef
cmp dword [esp + 0x18], 0
je 0x492289
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x492ade
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x4f3428
call fcn.004d76d5
mov ebx, ecx
mov eax, dword [0x55a320]
xor edi, edi
mov esi, 0x55a320
mov ecx, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
mov eax, dword [0x55a320]
mov ecx, esi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x492bc2
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call dword [eax + 4]
call dword [0x5550c4]
mov ebx, eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 0x28], eax
je 0x492b6d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x492b71
xor eax, eax
jmp 0x492b89
lea esi, [eax + eax]
mov eax, esi
call fcn.004ea550
mov eax, esp
push ebx
push esi
push dword [ebp - 0x28]
mov esi, eax
call fcn.00491fa2
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004058e5
mov esi, dword [ebp - 0x24]
mov ebx, dword [esi - 0xc]
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x492bb9
cmp dword [ebp - 0x18], ebx
jne 0x492bb9
mov dword [ebp - 0x20], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
call fcn.004012f9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0x38]
call fcn.004d7758
ret 4
Function at 0x492d32
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x4ec209
call fcn.004d76d5
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
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__]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x2c]
push 0x5c
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
je 0x492e24
push eax
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
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__::substr_unsigned_int__unsigned_int_]
cmp dword [eax + 0x18], 8
jb 0x492d8a
mov eax, dword [eax + 4]
jmp 0x492d8d
add eax, 4
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x48]
mov esi, eax
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_]
cmp esi, edi
je 0x492ddb
cmp esi, 0x50
je 0x492ddb
cmp esi, 0xb7
je 0x492ddb
cmp esi, edi
jle 0x492dc2
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
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, edi
call fcn.004d7758
ret 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x492de7
lea eax, [ebp - 0x28]
push edi
push 0x80
push 1
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x492e1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x492e17
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x492dc4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x492dc4
mov edi, 0x80070057
jmp 0x492dc4
Function at 0x493f23
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x493f9e
push ebx
push edi
push 2
push str.seclogon
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, esi
je 0x493f97
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x493f7d
cmp dword [ebp - 0x2c], 3
je 0x493f94
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 4], eax
push edi
call ebx
push dword [ebp - 0xc]
call ebx
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x494b0c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
lea eax, [esp + 4]
push eax
call fcn.00494c72
lea eax, [esp + 4]
call fcn.00494cf0
cmp eax, 4
je 0x494b4b
push dword [esp + 4]
push 0
push str.PermanentClose
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
je 0x494b4b
xor esi, esi
jmp 0x494b4e
xor esi, esi
inc esi
mov eax, dword [esp + 4]
add eax, 0xfffffff0
call fcn.004012f9
test esi, esi
je 0x494b63
xor eax, eax
inc eax
jmp 0x494bad
lea eax, [esp + 4]
push eax
call fcn.00494c72
call fcn.00494cf0
mov esi, eax
mov eax, dword [esp + 4]
sub esi, 3
neg esi
sbb esi, esi
add eax, 0xfffffff0
inc esi
call fcn.004012f9
test esi, esi
je 0x494b97
push 0x1e
call fcn.00494bf0
test eax, eax
jne 0x494b5e
call fcn.00494bb2
test eax, eax
je 0x494bab
push 7
call fcn.00494bf0
test eax, eax
jne 0x494b5e
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x497745
Capabilities:
Read .ini file

Disassembly:
push ecx
push ecx
push esi
push edi
push dword [eax]
push 0
push 0x51809c
push 0x520604
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cdq
push 0
mov esi, eax
mov edi, edx
call dword [sym.imp.MSVCR80.dll__time64]
pop ecx
mov ecx, esi
or ecx, edi
jne 0x497775
xor al, al
jmp 0x49778a
sub eax, esi
sbb edx, edi
mov dword [esp + 0xc], edx
js 0x497788
jg 0x497771
cmp eax, 0x15180
ja 0x497771
mov al, 1
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x497b82
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x5550ec]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 4
mov eax, 0x4f3269
call fcn.004d766c
xor esi, esi
push 0x208
lea eax, [ebp + 2]
push esi
mov dword [ebp - 0x10], esi
push eax
mov word [ebp], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x23
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x497be0
push 0x50b288
push edi
call fcn.00402cc5
jmp 0x497c0a
push str.kingsoftminisitehotpop_
lea eax, [ebp - 0x10]
push eax
call fcn.00402cc5
lea ecx, [ebp]
push ecx
push edi
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00455c73
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004012f9
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004d6e66
add ebp, 0x210
leave
ret

Function at 0x49864f
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x5550ec]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x4f31fb
call fcn.004d766c
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov ecx, 0x55a320
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call fcn.00401a7f
push 0x208
lea eax, [ebp + 2]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 0x19
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, edi
je 0x4986d1
push edi
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
push esi
call fcn.00402d02
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004d6e66
add ebp, 0x210
leave
ret

Function at 0x4986f6
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x5550ec]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x4f31ba
call fcn.004d766c
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov ecx, 0x55a320
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call fcn.00401a7f
push 0x208
lea eax, [ebp + 2]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 0x10
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, edi
je 0x498778
push edi
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
push esi
call fcn.00402d02
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004d6e66
add ebp, 0x210
leave
ret
Function at 0x498802
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5550ec]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 9
pop ecx
push dword [edx]
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
push 0x14
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push eax
push 0x50b288
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x498859
push 0xa
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.MSVCR80.dll__wcstoi64]
add esp, 0xc
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
xor ecx, ebp
pop edi
call fcn.004d6e66
leave
ret

Function at 0x49886c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5550ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ecx]
xor eax, eax
xor esi, esi
mov word [ebp - 0x1c], si
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xb
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push 0x50b288
push str.recommend
push str.upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x4988c1
push 0xa
lea eax, [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcstoul]
add esp, 0xc
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d6e66
leave
ret

Function at 0x4988d1
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4f3186
call fcn.004d766c
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x55a320
mov dword [ebp - 0x10], edi
call fcn.00401a7f
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
neg ecx
or ecx, eax
push ecx
call fcn.004d64b6
mov edi, eax
test edi, edi
pop ecx
je 0x498950
lea eax, [ebx + ebx]
push eax
push 0
push edi
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
push dword [eax]
push ebx
push edi
push 0x50b288
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push esi
call fcn.00402d02
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x49895b
push 0x50b288
push esi
call fcn.00402d02
mov eax, esi
call fcn.004d7744
ret 0x10
Function at 0x498965
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x4ec1db
call fcn.004d76d5
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
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__]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x2c]
push 0x5c
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
je 0x498a57
push eax
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
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__::substr_unsigned_int__unsigned_int_]
cmp dword [eax + 0x18], 8
jb 0x4989bd
mov eax, dword [eax + 4]
jmp 0x4989c0
add eax, 4
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x48]
mov esi, eax
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_]
cmp esi, edi
je 0x498a0e
cmp esi, 0x50
je 0x498a0e
cmp esi, 0xb7
je 0x498a0e
cmp esi, edi
jle 0x4989f5
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
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, edi
call fcn.004d7758
ret 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x498a1a
lea eax, [ebp - 0x28]
push edi
push 0x80
push 1
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x498a4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x498a4a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x4989f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4989f7
mov edi, 0x80070057
jmp 0x4989f7
Function at 0x498e0a
Capabilities:
Get file attributes

Disassembly:
push 8
mov eax, 0x4f8884
call fcn.004d766c
mov esi, ecx
call fcn.00402afb
and dword [ebx], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00490a3b
pop ecx
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x498e4c
xor esi, esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
call fcn.004d7744
ret
lea eax, [ebp - 0x14]
push str.datakbootnf.dat
push eax
lea ecx, [ebp - 0x10]
call fcn.004065f0
pop ecx
pop ecx
mov edi, esi
mov byte [ebp - 4], 1
call fcn.00402a4c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
xor esi, esi
not eax
inc esi
and eax, esi
mov dword [ebx], eax
jmp 0x498e39

Function at 0x499f3e
Capabilities:
Read .ini file

Disassembly:
push 0x10
mov eax, 0x4f8836
call fcn.004d766c
lea eax, [ebp - 0x10]
push eax
call fcn.00490a3b
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
mov dword [esp], str.securityksdedeconfig.ini
push ecx
mov ecx, eax
call fcn.004065f0
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
lea eax, [ebp - 0x10]
call fcn.0049879d
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x14]
push edi
lea ebx, [ebp - 0x10]
call fcn.004987ae
test eax, eax
je 0x49a03e
mov esi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push edi
push str.qdtg
push str.tgmisc
call ebx
cmp eax, 1
jne 0x499fbb
lea eax, [esi - 0x10]
jmp 0x49a044
push esi
push edi
push str.dev_excep
mov esi, str.deviceinfo
push esi
call ebx
cmp eax, edi
mov dword [ebp - 0x18], eax
jle 0x49a03e
mov ebx, str.dev_time
lea edx, [ebp - 0x10]
call fcn.00498802
push edi
mov ebx, eax
mov esi, edx
call dword [sym.imp.MSVCR80.dll__time64]
cmp edx, esi
pop ecx
jl 0x49a03e
jg 0x499ff4
cmp eax, ebx
jb 0x49a03e
sub eax, ebx
sbb edx, esi
cmp edx, edi
jg 0x49a03e
jl 0x49a005
cmp eax, 0x15180
ja 0x49a03e
push dword [ebp + 8]
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
push 0x5208ec
push 0x25
call fcn.0049a05e
mov eax, dword [ebp + 8]
call fcn.0049a4dc
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
jmp 0x49a056
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004012f9
xor eax, eax
call fcn.004d7744
ret 4
Function at 0x49bfd0
Capabilities:
Get disk information

Disassembly:
push 0x2f8
mov eax, 0x4fc8b5
call fcn.004d76d5
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0xd2
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0xe6]
push ebx
push eax
mov word [ebp - 0xe8], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xe8]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x49c020
xor eax, eax
jmp 0x49c107
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2f6]
push ebx
push eax
sar edi, 2
mov word [ebp - 0x2f8], bx
call sub.MSVCR80.dll_memset
mov word [ebp - 0xf0], bx
mov ebx, dword [ebp - 0x2fc]
add esp, 0xc
add ebx, 4
lea esi, [ebp - 0xe8]
call fcn.00402909
test edi, edi
jle 0x49c104
mov dword [ebp - 0x2fc], edi
and word [esi + 4], 0
push 0x104
lea eax, [ebp - 0x2f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x49c0f5
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00402cc5
and dword [ebp - 4], 0
lea eax, [ebp - 0x304]
push eax
mov edi, ebx
call fcn.00441fa9
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x304]
add eax, 0xfffffff0
call fcn.004012f9
push esi
lea eax, [ebp - 0x300]
push eax
call fcn.00402cc5
lea eax, [ebp - 0x300]
push eax
mov dword [ebp - 4], 1
call fcn.00441fa9
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x300]
add eax, 0xfffffff0
call fcn.004012f9
add esi, 8
dec dword [ebp - 0x2fc]
jne 0x49c070
xor eax, eax
inc eax
call fcn.004d7758
ret 4

Function at 0x49c135
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x49c1b6
push 0x520964
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x49c1b6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push 0x5209b0
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x49c1b1
cmp dword [esi + 4], ebx
je 0x49c1b1
cmp dword [esi + 8], ebx
je 0x49c1b1
cmp dword [esi + 0xc], ebx
je 0x49c1b1
cmp eax, ebx
je 0x49c1b1
xor eax, eax
inc eax
jmp 0x49c1b3
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret