joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4883c6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f76c2
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x2c]
push eax
call fcn.00496958
and dword [esp + 0x68], 0
lea esi, [esp + 0x20]
call fcn.0047597d
xor ebx, ebx
inc ebx
mov byte [esp + 0x68], bl
push dword [edi + 0x18]
mov ecx, esi
call fcn.00496d8b
cmp dword [esp + 0x2c], 0
pop ecx
jne 0x488453
mov esi, ebx
lea eax, [esp + 0x20]
mov byte [esp + 0x68], 0
call fcn.004759a0
lea edi, [esp + 0x2c]
call fcn.004969a8
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x20]
cmp eax, dword [esp + 0x18]
je 0x48847d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x1c]
je 0x4884d0
lea esi, [esp + 0x18]
call fcn.004bebcc
push dword [eax]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4884b3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4884c1
cmp dword [esp + 0x14], 0
jne 0x4884c1
and dword [esp + 0x14], 0
jmp 0x4884c5
mov dword [esp + 0x14], ebx
lea esi, [esp + 0x18]
call fcn.004c9d7f
jmp 0x488469
mov esi, dword [esp + 0x14]
jmp 0x488427
Function at 0x48a5bc
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1d0]
sub esp, 0x250
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x1cc], eax
mov eax, dword [ebp + 0x1d8]
push edi
xor edi, edi
push 0x228
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x5c]
push edi
push eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x60], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 2
mov dword [ebp - 0x78], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x6c], eax
jne 0x48a61b
xor eax, eax
jmp 0x48a72f
push esi
lea ecx, [ebp - 0x60]
push ecx
push eax
mov dword [ebp - 0x60], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x48a719
push ebx
cmp dword [ebp - 0x68], edi
je 0x48a649
push dword [ebp - 0x68]
call esi
mov dword [ebp - 0x68], edi
cmp dword [ebp - 0x64], edi
je 0x48a656
push dword [ebp - 0x64]
call esi
mov dword [ebp - 0x64], edi
lea eax, [ebp - 0x3c]
push str.explorer.exe
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x48a6e2
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x48a6e2
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x1dc]
jne 0x48a6e2
push dword [ebp - 0x58]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x68], eax
je 0x48a6e2
lea eax, [ebp - 0x64]
push eax
push 0xf01ff
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x48a6e2
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x64]
lea ebx, [ebp - 0x74]
mov dword [ebp - 0x74], edi
call fcn.0048a49a
test eax, eax
pop ecx
pop ecx
je 0x48a6e2
mov ebx, dword [ebp - 0x74]
push dword [ebx]
call fcn.0048a409
test eax, eax
pop ecx
push ebx
je 0x48a6f8
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x6c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48a63c
jmp 0x48a70e
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx], eax
mov dword [ebp - 0x70], 1
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
cmp dword [ebp - 0x68], edi
pop ebx
je 0x48a719
push dword [ebp - 0x68]
call esi
cmp dword [ebp - 0x64], edi
je 0x48a726
push dword [ebp - 0x64]
call esi
mov dword [ebp - 0x64], edi
push dword [ebp - 0x6c]
call esi
mov eax, dword [ebp - 0x70]
pop esi
mov ecx, dword [ebp + 0x1cc]
xor ecx, ebp
pop edi
call fcn.004d0736
add ebp, 0x1d0
leave
ret
Function at 0x48a745
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ecx, ecx
cmp dword [ebp + 8], ecx
push esi
push edi
je 0x48a79a
cmp dword [ebp + 0xc], ecx
je 0x48a79a
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp dword [ebp + 0xc], ecx
jbe 0x48a79a
push 0x5851f42d
push 0x4c957f2d
push ecx
push eax
call fcn.004e3c40
add eax, 1
adc edx, 0
mov ecx, edx
mov ebx, eax
mov edi, ecx
shrd ebx, edi, 0x13
mov edx, esi
and edx, 3
xor bl, byte [ebp + edx + 0x10]
shr edi, 0x13
mov edi, dword [ebp + 8]
xor byte [esi + edi], bl
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x48a761
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x48b195
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x4eca48
call fcn.004d1298
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402d09
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48b1d5
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004012f9
mov eax, esi
call fcn.004d1370
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x48b1bf
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x48b1bf
lea ecx, [ebp - 0x10]
call fcn.0048b14c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x48b20c
xor esi, esi
jmp 0x48b1c2
push eax
call fcn.0048b195
test eax, eax
pop ecx
je 0x48b208
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x48b1bf
call edi
cmp eax, ebx
jne 0x48b208
jmp 0x48b1bf
Function at 0x48b5a6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48b5bd
test al, 0x10
jne 0x48b5bd
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x48c7c2
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 0x48c85a
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 0x48c850
cmp edi, 0x200000
ja 0x48c850
lea eax, [edi + 2]
push esi
push eax
call fcn.004cfd86
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 0x48c84f
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x48c84f
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 0x48c862
Capabilities:
Check if file exists

Disassembly:
push 0x114
mov eax, 0x4f5d17
call fcn.004d1298
mov eax, dword [0x550310]
and dword [ebp - 0x14], 0
and dword [ebp - 0x1c], 0
mov edi, ecx
mov ecx, 0x550310
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 0x48c8cd
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48c8cd
test edi, edi
jne 0x48c8b1
mov edi, 0x80070057
jmp 0x48c8b9
push edi
call fcn.0048d46a
mov edi, eax
lea eax, [esi - 0x10]
call fcn.004012f9
xor eax, eax
test edi, edi
setge al
jmp 0x48c99f
lea edi, [ebx + 8]
call fcn.004612e6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.0048c7c2
test eax, eax
mov edi, dword [ebp - 0x1c]
je 0x48c989
test edi, edi
je 0x48c994
mov eax, dword [ebp + 8]
dec eax
je 0x48c962
dec eax
je 0x48c910
dec eax
jne 0x48c96c
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.00402a1b
jmp 0x48c96c
lea eax, [ebp - 0x11c]
push 0xfde9
mov dword [ebp - 0x120], eax
push edi
lea eax, [ebp - 0x120]
push eax
call fcn.00405fd8
mov byte [ebp - 4], 1
push dword [ebp - 0x120]
lea eax, [ebp - 0x10]
push eax
call fcn.00402d46
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x120], eax
je 0x48c96c
push dword [ebp - 0x120]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
jmp 0x48c96c
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0040c1ec
push 0xa
push 0xd
lea eax, [ebp - 0x10]
call fcn.0040736d
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 0x48c994
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.004d1370
ret 8
Function at 0x48c9a7
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f5ce9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x54b0c4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov eax, dword [0x550310]
and dword [esp + 0x1c], 0
mov ecx, 0x550310
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 0x48ca70
and dword [esp + 0x18], 0
lea esi, [esp + 0x14]
call fcn.00402b3f
push 0xa
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x48ca36
push ebx
mov eax, esi
push eax
call fcn.00402a1b
mov dword [esp + 0x18], 1
jmp 0x48ca46
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
lea eax, [esp + 0x1c]
call fcn.00402a3f
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.0048ca95
test eax, eax
je 0x48ca70
cmp dword [esp + 0x18], 0
je 0x48ca0a
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 0x48d216
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x4ea0d8
call fcn.004d1301
mov ebx, ecx
mov eax, dword [0x550310]
xor edi, edi
mov esi, 0x550310
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 [0x550310]
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 0x48d2fa
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call dword [eax + 4]
call dword [0x54b0a4]
mov ebx, eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 0x28], eax
je 0x48d2a5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x48d2a9
xor eax, eax
jmp 0x48d2c1
lea esi, [eax + eax]
mov eax, esi
call fcn.004e3df0
mov eax, esp
push ebx
push esi
push dword [ebp - 0x28]
mov esi, eax
call fcn.0048c723
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004053c6
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 0x48d2f1
cmp dword [ebp - 0x18], ebx
jne 0x48d2f1
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.004d1384
ret 4
Function at 0x48d46a
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x4e57c8
call fcn.004d1301
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 0x48d55c
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 0x48d4c2
mov eax, dword [eax + 4]
jmp 0x48d4c5
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 0x48d513
cmp esi, 0x50
je 0x48d513
cmp esi, 0xb7
je 0x48d513
cmp esi, edi
jle 0x48d4fa
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.004d1384
ret 4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x48d51f
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 0x48d553
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x48d54f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x48d4fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48d4fc
mov edi, 0x80070057
jmp 0x48d4fc
Function at 0x48e66b
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 0x48e6e6
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 0x48e6df
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 0x48e6c5
cmp dword [ebp - 0x2c], 3
je 0x48e6dc
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 0x48f254
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.0048f3ba
lea eax, [esp + 4]
call fcn.0048f438
cmp eax, 4
je 0x48f293
push dword [esp + 4]
push 0
push str.PermanentClose
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
je 0x48f293
xor esi, esi
jmp 0x48f296
xor esi, esi
inc esi
mov eax, dword [esp + 4]
add eax, 0xfffffff0
call fcn.004012f9
test esi, esi
je 0x48f2ab
xor eax, eax
inc eax
jmp 0x48f2f5
lea eax, [esp + 4]
push eax
call fcn.0048f3ba
call fcn.0048f438
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 0x48f2df
push 0x1e
call fcn.0048f338
test eax, eax
jne 0x48f2a6
call fcn.0048f2fa
test eax, eax
je 0x48f2f3
push 7
call fcn.0048f338
test eax, eax
jne 0x48f2a6
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x491ece
Capabilities:
Read .ini file

Disassembly:
push ecx
push ecx
push esi
push edi
push dword [eax]
push 0
push 0x50f90c
push 0x517534
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 0x491efe
xor al, al
jmp 0x491f13
sub eax, esi
sbb edx, edi
mov dword [esp + 0xc], edx
js 0x491f11
jg 0x491efa
cmp eax, 0x15180
ja 0x491efa
mov al, 1
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x49230b
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 4
mov eax, 0x4ec69e
call fcn.004d1298
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 0x492369
push 0x5031a8
push edi
call fcn.00402d09
jmp 0x492393
push str.kingsoftminisitehotpop_
lea eax, [ebp - 0x10]
push eax
call fcn.00402d09
lea ecx, [ebp]
push ecx
push edi
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.004542b2
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.004d0736
add ebp, 0x210
leave
ret

Function at 0x492dd8
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x4ec630
call fcn.004d1298
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov ecx, 0x550310
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call fcn.00405085
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 0x492e5a
push edi
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
push esi
call fcn.00402d46
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.004d0736
add ebp, 0x210
leave
ret

Function at 0x492e7f
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x54b0c4]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x4ec5ef
call fcn.004d1298
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov ecx, 0x550310
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call fcn.00405085
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 0x492f01
push edi
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
push esi
call fcn.00402d46
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.004d0736
add ebp, 0x210
leave
ret
Function at 0x492f8b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x54b0c4]
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 0x5031a8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x492fe2
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.004d0736
leave
ret

Function at 0x492ff5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x54b0c4]
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 0x5031a8
push str.recommend
push str.upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x49304a
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.004d0736
leave
ret

Function at 0x49305a
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4ec5bb
call fcn.004d1298
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x550310
mov dword [ebp - 0x10], edi
call fcn.00405085
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.004cfd86
mov edi, eax
test edi, edi
pop ecx
je 0x4930d9
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 0x5031a8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push esi
call fcn.00402d46
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x4930e4
push 0x5031a8
push esi
call fcn.00402d46
mov eax, esi
call fcn.004d1370
ret 0x10