joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cc55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x43f88c
je 0x42cd11
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42ccf9
mov esi, dword [ebx + 4]
jmp 0x42ccf3
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42cce3
cmp dword [ebp - 0xc], 4
jne 0x42cce3
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42ccdb
or dword [eax + 0x9c], ecx
jmp 0x42cce3
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x42cca7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x42cc8a
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x42d0ca
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x430846
call fcn.00414e8c
sub esp, 0x11c
mov eax, dword [0x4402f0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x42d1c3
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x42d197
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.004033f0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0042d0ca
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401190
test bl, bl
jne 0x42d197
or dword [ebp - 4], 0xffffffff
jmp 0x42d108
cmp esi, 0x103
je 0x42d1a7
cmp esi, 0x3f2
jne 0x42d1b7
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00414dee
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42d6ca
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x42d6ff
cmp edi, dword [esi + 0xc]
jge 0x42d6ff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42d6ff
cmp edi, dword [eax + 8]
jge 0x42d6ff
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42d701
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42d805
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42d839
jmp fcn.0042105d
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x42d8aa
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42d9a3
cmp eax, dword [edi + 0xc]
jge 0x42d9a3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42d8fb
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42d98c
cmp dword [ebp + 0xc], ebx
je 0x42d98c
jmp 0x42d925
push 0x10
call fcn.0042d596
cmp eax, ebx
je 0x42d911
mov ecx, eax
call fcn.0042d7fc
mov esi, eax
jmp 0x42d913
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42d93c
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42d94c
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42d95e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042105d
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00414ec0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42d99e
cmp ecx, dword [esi + 8]
jge 0x42d99e
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42d9a4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42da63
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42da91
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42daaf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042d9cd
jmp 0x42daaf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42daaf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042d9cd
test edi, edi
mov eax, edi
jne 0x42da99
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4430a4]
test ecx, ecx
je 0x42db62
jmp 0x42da62
ret 8

Function at 0x4046e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 1
jle 0x4046fb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4046fb
mov eax, dword [esi + 0xc]
jmp 0x4046fd
xor eax, eax
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
setne cl
cmp edi, 3
mov dword [edx], ecx
jl 0x404733
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x404733
mov ecx, dword [esi + 0x18]
pop edi
pop esi
mov dword [ecx], eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret

Function at 0x404770
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esp + 4]
mov dword [edx], eax
ret
Function at 0x401baf
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x429251
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x2c
cmp byte [ecx + 4], 0
push esi
jne 0x401c0b
mov al, byte [ebp + 0xf]
mov esi, dword [str.FileCrypt_ERROR:_Encryption_Decryption_Object_not_Initialized_]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp - 0x38]
push 0x435260
push eax
call sub.MSVCRT.dll__CxxThrowException
xor esi, esi
cmp dword [ecx + 8], esi
jle 0x401c26
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 8]
jl 0x401c19
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x403fa9
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov eax, ecx
mov edx, 0x432440
push 8
sub edx, eax
pop esi
mov edi, dword [edx + ecx]
mov dword [ecx], edi
add ecx, 4
dec esi
jne 0x403fb7
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
pop edi
pop esi
ret

Function at 0x4041f9
Capabilities:
Hash data using sha256

Disassembly:
push esi
push edi
mov edx, 0x432440
push 8
mov eax, ecx
sub edx, ecx
pop esi
mov edi, dword [edx + eax]
mov dword [eax], edi
add eax, 4
dec esi
jne 0x404207
xor eax, eax
pop edi
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov byte [ecx + 0x68], al
pop esi
ret
Function at 0x409144
Capabilities:
Create http request

Disassembly:
mov eax, 0x42a2d1
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call sub.MFC42u.DLL_CString::CString_4
xor edi, edi
lea ecx, [esi + 8]
mov dword [ebp - 4], edi
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_4
push edi
push edi
push edi
push edi
push str.SiteVacuumUpdateAgent
mov dword [esi], vtable.CAutoUpdater.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4096b0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42a3cc
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x218
and word [ebp - 0x224], 0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [0x44df84]
mov edi, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov eax, dword [eax + 0x68c]
mov ecx, dword [edi]
test eax, eax
je 0x409714
mov eax, dword [eax]
jmp 0x409716
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x14]
push str._s_s
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x224]
lea ecx, [ebp - 0x1c]
push eax
call sub.MFC42u.DLL_CString::CString_3
push edi
lea eax, [ebp - 0x18]
push dword [ebp + 8]
mov byte [ebp - 4], 1
push eax
call sub.MFC42u.DLL_operator_1
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
mov byte [ebp - 4], 2
call fcn.0040988f
mov esi, eax
test esi, esi
jne 0x40977c
push dword [ebp - 0x18]
push str.ReplaceFile___Cannot_open_an_internet_session_for_url__s._hSession_is_null_r_n
push dword [0x44df84]
call fcn.00412a83
add esp, 0xc
push 2
pop esi
jmp 0x40981f
lea eax, [ebp - 0x1c]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_operator_2
push dword [ebp - 0x10]
mov ecx, ebx
mov byte [ebp - 4], 3
push esi
call fcn.004099b5
push esi
mov byte [ebp + 0xf], al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp byte [ebp + 0xf], 0
jne 0x4097c3
push dword [ebp - 0x10]
push str.ReplaceFile___Cannot_perform_DownloadFile_on_file__s_r_n
push dword [0x44df84]
call fcn.00412a83
add esp, 0xc
push 3
jmp 0x409812
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_2
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00409aa3
cmp eax, esi
jne 0x409813
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.ReplaceFile___Cannot_switch_the_current_file__s_with_the_updated_file__s_r_n
push dword [0x44df84]
call fcn.00412a83
add esp, 0x10
push 4
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x409856
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
cmp dword [ecx + 0x14], 0
jne 0x409864
push str.InternetOkay___Cannot_proceed_because_m_hInternet_is_null_r_n
jmp 0x40987a
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x40988b
push str.InternetOkay___Cannot_proceed_InternetGetConnectedState_returned_zero_r_n
push dword [0x44df84]
call fcn.00412a83
pop ecx
xor al, al
pop ecx
pop ecx
ret
mov al, 1
pop ecx
ret

Function at 0x4099b5
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00428dc0
push ebx
push esi
xor eax, eax
push edi
push eax
push 0x80
push 2
push eax
push 3
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x409a4f
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 4]
push eax
mov edi, 0x1000
lea eax, [ebp - 0x100c]
push edi
push eax
push dword [ebp + 8]
call esi
mov ebx, dword [ebp - 4]
test eax, eax
je 0x409a46
test ebx, ebx
jbe 0x409a42
lea eax, [ebp - 0xc]
add dword [ebp - 8], ebx
push 0
push eax
lea eax, [ebp - 0x100c]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebx, dword [ebp - 0xc]
jne 0x409a46
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x100c]
push edi
push eax
push dword [ebp + 8]
jmp 0x409a05
test eax, eax
jne 0x409a53
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x409a5e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409aa3
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x42a404
call sub.MSVCRT.dll__EH_prolog
push ecx
push ebx
push esi
push edi
mov bl, byte [ebp + 0x10]
push 0x2e
neg bl
sbb ebx, ebx
lea ecx, [ebp + 8]
and ebx, 2
mov dword [ebp - 4], 1
inc ebx
inc ebx
call sub.MFC42u.DLL_CString::ReverseFind
mov esi, eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0x10]
call sub.MFC42u.DLL_CString::CString_2
lea eax, [esi + 1]
push 0x62
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::SetAt
add esi, 2
push 0x75
push esi
lea ecx, [ebp + 0x10]
call sub.MFC42u.DLL_CString::SetAt
push dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call esi
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x10], eax
jne 0x409b56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Switch___Cannot_switch._Error_is__d_r_n
push dword [0x44df84]
call fcn.00412a83
add esp, 0xc
push dword [ebp + 8]
call edi
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
call esi
xor esi, esi
jmp 0x409b59
push 1
pop esi
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40be26
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x42a804
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
lea esi, [ecx + 0x14c]
mov dword [ebp - 0x10], esp
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edi
mov dword [esi], 1
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, edi
jge 0x40be6b
mov dword [esi], edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov ebx, 0x44e058
push eax
push 0x4424a0
push ebx
mov dword [0x44e0c8], 0x442530
mov dword [0x44deb8], ebx
mov dword [0x44e058], 0x84
mov dword [0x44e0bc], 0x300
call fcn.0040f68c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x44e0dc], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, 0x4431d8
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push eax
movsw word es:[edi], word [esi]
mov ecx, ebx
call fcn.0040a543
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x40bf2c
push str.UnregServer
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40befe
push edi
push edi
push edi
push 0x67
push ebx
call fcn.0040fb2a
push edi
push 1
push ebx
call fcn.0040fab5
jmp 0x40bf33
push str.RegServer
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40bf25
push edi
push edi
push 1
push 0x67
push ebx
call fcn.0040fb2a
push edi
push 1
push ebx
call fcn.0040f93c
jmp 0x40bf33
lea eax, [ebp - 0x20]
push eax
push esi
jmp 0x40bec9
push 1
pop eax
cmp eax, edi
jne 0x40bf44
mov eax, dword [ebp - 0x14]
push ebx
mov dword [eax + 0x14c], edi
call fcn.0040f873
jmp 0x40bf5b
push 1
push 4
push ebx
call fcn.0040f70f
cmp eax, edi
jge 0x40bf66
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x14c], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40be5a
push 1
pop eax
jmp 0x40be5c
Function at 0x411ce8
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x42b264
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x7c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push str.SiteVacuumClient.exe
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004015c5
lea eax, [ebp - 0x1c]
lea ecx, [ebx + 0x68c]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.00409b90
push eax
lea ecx, [ebp - 0x18]
call fcn.00410997
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 4
cmp eax, esi
je 0x411d45
mov eax, dword [eax]
jmp 0x411d47
xor eax, eax
push eax
lea eax, [ebp - 0x14]
push str.__s___LoadWithDelay
push eax
call fcn.004089bb
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0040180d
lea ecx, [ebp - 0x30]
call fcn.0040180d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040180d
push 0x44
lea eax, [ebp - 0x88]
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x44]
push esi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0x18
cmp eax, esi
mov dword [ebp - 0x88], edi
je 0x411da6
mov eax, dword [eax]
jmp 0x411da8
xor eax, eax
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x411dd0
mov ecx, ebx
call fcn.0041ad91
lea ecx, [ebp - 0x14]
call fcn.0040180d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41ad22
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x42c1d4
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.0040164a
test eax, eax
je 0x41ad5c
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ecx
je 0x41ad49
mov eax, dword [eax]
jmp 0x41ad4b
xor eax, eax
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41f2c3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov edi, ecx
mov dword [ebp - 0xc], edi
je 0x41f36b
cmp dword [ebp + 0xc], ebx
je 0x41f36b
mov esi, 0x200
push 0x402
mov dword [ebp - 4], esi
call sub.MFC42u.DLL_operatornew
mov ebx, eax
mov eax, dword [ebp + 0x10]
test eax, eax
pop ecx
jne 0x41f306
mov eax, 0x44deb4
push dword [edi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
inc eax
cmp eax, esi
jb 0x41f367
mov dword [ebp - 8], 0x402
add dword [ebp - 4], esi
add dword [ebp - 8], 0x400
push ebx
call sub.MFC42u.DLL_operatordelete
push dword [ebp - 8]
call sub.MFC42u.DLL_operatornew
mov ebx, eax
mov eax, dword [ebp + 0x10]
pop ecx
test eax, eax
pop ecx
jne 0x41f34e
mov eax, 0x44deb4
mov ecx, dword [ebp - 0xc]
push dword [ecx + 4]
push dword [ebp - 4]
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
inc eax
cmp eax, dword [ebp - 4]
jae 0x41f326
mov eax, ebx
jmp 0x41f3a3
cmp dword [ebp + 0x10], ebx
jne 0x41f37f
push 2
call sub.MFC42u.DLL_operatornew
mov esi, eax
pop ecx
mov word [esi], bx
jmp 0x41f3a1
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call sub.MFC42u.DLL_operatornew
push dword [ebp + 0x10]
mov esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41fd11
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42c964
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x414
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
push esi
push eax
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x41fe10
and word [ebp - 0x420], 0
push edi
mov ecx, 0x101
xor eax, eax
lea edi, [ebp - 0x41e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
pop edi
je 0x41fe10
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x420]
lea ecx, [ebp + 0xc]
push eax
call fcn.004015c5
and dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040164a
test eax, eax
jne 0x41fdd9
call fcn.004083ea
mov esi, dword [ebp + 8]
add eax, 4
mov eax, dword [eax]
test eax, eax
mov dword [esi], eax
je 0x41fdcb
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41fe26
call fcn.0040172d
jmp 0x41fe26
push 0x44ae50
lea ecx, [ebp - 0x10]
call fcn.00401571
lea eax, [ebp - 0x10]
lea ecx, [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
call fcn.00408cba
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41fe02
call fcn.0040172d
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test eax, eax
mov dword [esi], eax
je 0x41fe26
jmp 0x41fdc1
call fcn.004083ea
mov esi, dword [ebp + 8]
add eax, 4
mov ecx, esi
mov eax, dword [eax]
mov dword [esi], eax
call fcn.0040877f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret