joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e030
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a5ccd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x368
mov eax, dword [0x4cbba0]
xor eax, esp
push esi
mov dword [esp + 0x368], eax
mov esi, ecx
lea ecx, [esp + 0x37c]
mov dword [esp + 0x374], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
cmp eax, 0x104
jle 0x42e08f
lea ecx, [esp + 0x37c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor al, al
jmp 0x42e203
push edi
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x170]
push ecx
lea edx, [esp + 0x274]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x390]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll__splitpath]
add esp, 0x14
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0xc]
call dword [0x4ab700]
lea ecx, [esp + 8]
mov byte [esp + 0x378], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call fcn.0042d2b0
test eax, eax
jne 0x42e11f
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call fcn.0042ce30
test eax, eax
je 0x42e1e9
xor edx, edx
mov dword [esp + 0x14], edx
xor eax, eax
mov dword [esp + 0x18], edx
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x20], edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x380]
mov ecx, dword [0x4cc908]
mov edx, dword [0x4cbdc0]
push eax
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s.exe___s_
push eax
mov byte [esp + 0x38c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x400
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42e1ca
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42e1d5
push eax
call esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x380]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov al, 1
pop edi
mov ecx, dword [esp + 0x36c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x368]
pop esi
xor ecx, esp
call fcn.004a17d1
add esp, 0x374
ret 4
Function at 0x42e3c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a5d25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
mov eax, dword [0x4cbba0]
xor eax, esp
push esi
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0x414], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [0x4ccb50]
push str.PIPIWebPlayer.ocx
add eax, 0x18
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x42c], 0
call fcn.004010a0
add esp, 0xc
lea edx, [esp + 8]
push edx
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, eax
mov byte [esp + 0x42c], 1
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call fcn.0042c860
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x420], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test esi, esi
je 0x42e5ac
mov eax, dword [0x4ccb50]
push str.configconfig.ini
add eax, 0x18
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0
push str.CurVer
push str.WEBPLAYER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, dword [esp + 4]
jbe 0x42e5ac
mov edx, dword [0x4ccb50]
push str.configconfig.ini
add edx, 0x18
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push 0x4acbb2
push 0x4ad2cc
push str.WEBPLAYER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e500
sub eax, edx
mov dword [esp + 0x10], eax
je 0x42e5ac
push 0x848
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x420], 2
je 0x42e53b
mov ecx, eax
call fcn.00429850
mov esi, eax
jmp 0x42e53d
xor esi, esi
lea eax, [esp + 0x14]
lea edx, [esi + 0x48]
mov ecx, eax
mov byte [esp + 0x420], 0
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x42e550
mov edx, dword [0x4ccb50]
push str.PIPIWebPlayer.ocx
add edx, 0x18
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea edx, [esi + 0x448]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x42e584
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 0
push 0
mov ecx, esi
mov dword [esi + 0x44], 1
call sub.MFC71.DLL_CWinThread::CreateThread
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
call fcn.004a17d1
add esp, 0x420
ret
Function at 0x42ecb0
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
push str.config_config.ini
lea eax, [esp + 8]
push 0x4cbdc0
push eax
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.OPERCHAP
push 0x4ac6b4
call esi
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str.config_config.ini
lea edx, [esp + 0x10]
push 0x4cbdc0
push edx
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0
push str.SUBOPERCHAP
push 0x4ac6b4
call esi
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop esi
pop ecx
ret
Function at 0x42ee10
Capabilities:
Enumerate processes
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a5d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x93c
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
push ebp
push esi
mov esi, dword [esp + 0x958]
lea ecx, [esp + 0x10]
mov dword [esp + 0x944], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x950], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push ebx
push 2
mov byte [esp + 0x958], 1
mov dword [esp + 0x1c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, ebx
lea ecx, [esp + 0xc]
jne 0x42ee95
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x42ef95
push edi
push esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
push 0x400
lea eax, [esp + 0x14c]
push eax
mov byte [esp + 0x150], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x148]
push ecx
lea edx, [esp + 0x54c]
push str._spsapi.dll
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push ebp
mov dword [esp + 0x28], 0x128
call sub.KERNEL32.dll_Process32First
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
lea ecx, [esp + 0x10]
mov edi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
cmp esi, ebx
je 0x42ef75
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x18]
push 0x4ad12c
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x1c]
inc bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, bl
je 0x42ef66
inc dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x42ef05
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x18]
pop edi
mov ecx, dword [esp + 0x948]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x93c]
pop ebx
xor ecx, esp
call fcn.004a17d1
add esp, 0x948
ret
Function at 0x42f5f0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [ecx]
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x14]
xor esi, esi
lea edx, [esp + 0xc]
push edx
push esi
push 0x2001f
push esi
push esi
push esi
push eax
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42f622
mov esi, dword [esp + 8]
test eax, eax
mov edi, eax
jne 0x42f648
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
inc eax
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test esi, esi
je 0x42f653
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x430e90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a5ce9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
xor esi, esi
mov ecx, 0x4cbdc0
mov dword [esp + 0x18], esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
mov edi, eax
cmp dword [0x4cc834], esi
je 0x430f8a
push ebp
xor ebp, ebp
jmp 0x430ee0
mov eax, dword [0x4cc834]
mov ecx, dword [esi + eax]
cmp ecx, dword [ebx + 0x30]
je 0x430f23
push edi
mov ecx, 0x4cbdc0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edx, dword [0x4cc834]
push eax
lea eax, [esi + edx + 0xc]
push eax
call dword [sym.imp.MSVCR71.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x430f23
add esi, 0x214
inc ebp
cmp esi, 0x14c8
jl 0x430ee0
jmp 0x430f89
mov ecx, dword [0x4cc834]
mov esi, ebp
imul esi, esi, 0x214
lea edx, [esi + ecx + 0x110]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
test eax, eax
jle 0x430f61
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0xe8]
call sub.MFC71.DLL_CStringList::AddTail
mov edx, dword [0x4cc834]
xor eax, eax
lea edi, [esi + edx + 0x110]
mov ecx, 0x3f
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push eax
push str._nGet_Download_Notify_From_PreTranslateMessage_Para___s_n
call fcn.0049aab0
add esp, 8
pop ebp
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
push 0
push str._uninstall_
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
test eax, eax
jle 0x431003
mov ecx, dword [0x4ccb50]
cmp dword [ecx + 0x840], 4
jne 0x430fbf
mov ecx, ebx
call fcn.0042f660
push 3
push 0
push 0
push 0x12
call fcn.00408d90
add esp, 0x10
mov ecx, ebx
call fcn.00430170
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x430ff2
call fcn.00407f20
mov ecx, dword [ebx + 0x20]
call fcn.00411cb0
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
call dword [edx + 0x68]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x439070
Capabilities:
Access peb ldr_data
Delete file
Encode data using xor
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4a6989
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.0043a720
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call dword [eax + 4]
push 0x4b2dc0
lea ecx, [esp + 0x20]
call fcn.0048b090
push eax
call dword [sym.imp.MSVCR71.dll_strstr]
add esp, 8
test eax, eax
jne 0x4390d0
lea ecx, [esp + 0x1c]
call fcn.0048b090
jmp 0x4390d3
add eax, 2
lea ecx, [esp + 0x1c]
mov esi, eax
xor edi, edi
call fcn.0044c0a0
test eax, eax
jle 0x4390fb
cmp byte [esi], 0x3f
jne 0x4390ec
mov byte [esi], 0x26
inc esi
lea ecx, [esp + 0x1c]
inc edi
call fcn.0044c0a0
cmp edi, eax
jl 0x4390e4
lea ecx, [esp + 0xc]
call fcn.004a1282
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edi, dword [esp + 0x40]
push edi
lea edx, [esp + 0xc]
push str._s.sav
push edx
mov byte [esp + 0x44], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
push 0
push 0x1001
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x18]
call sub.MFC71.DLL_CFile::Open
test eax, eax
je 0x439193
lea ecx, [esp + 0x1c]
call fcn.0048b090
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0044c0a0
mov cl, byte [esp + 0x44]
test cl, cl
je 0x43917f
xor ecx, ecx
test eax, eax
jl 0x43917f
lea esp, [esp]
mov dl, byte [ecx + esi]
xor dl, al
not dl
mov byte [ecx + esi], dl
inc ecx
cmp ecx, eax
jle 0x439170
push eax
push esi
lea ecx, [esp + 0x14]
call sub.MFC71.DLL_CFile::Write
lea ecx, [esp + 0xc]
call sub.MFC71.DLL_CFile::Close
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call sub.MFC71.DLL_CFile::CFile
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0043a740
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x439810
Capabilities:
Access peb ldr_data
Encode data using xor
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4a6a51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push edi
push 0x4cc818
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0xc]
call fcn.004a1282
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov edi, dword [esp + 0x2c]
push 0
push 0
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call sub.MFC71.DLL_CFile::Open
test eax, eax
jne 0x4398d8
push edi
lea eax, [esp + 0xc]
push str._s.sav
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
push 0
push 0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x18]
call sub.MFC71.DLL_CFile::Open
test eax, eax
jne 0x4398d8
push 0x4cc818
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC71.DLL_CFile::CFile
pop edi
xor al, al
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
push ebx
push esi
lea ecx, [esp + 0x14]
call sub.MFC71.DLL_CFile::GetLength
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call sub.MFC71.DLL_operator_new
add esp, 4
mov esi, eax
push ebx
push esi
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CFile::Read
lea ecx, [esp + 0x14]
call sub.MFC71.DLL_CFile::Close
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
test eax, eax
jle 0x439927
push edi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov al, byte [esp + 0x38]
test al, al
je 0x439944
xor eax, eax
test ebx, ebx
jl 0x439944
mov dl, byte [eax + esi]
xor dl, bl
not dl
mov byte [eax + esi], dl
inc eax
cmp eax, ebx
jle 0x439935
push esi
mov ecx, ebp
mov byte [esi + ebx], 0
call fcn.004396e0
test al, al
push esi
jne 0x43999a
call sub.MFC71.DLL_operator_delete
add esp, 4
push 0x4cc818
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC71.DLL_CFile::CFile
pop esi
pop ebx
pop edi
xor al, al
pop ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
call sub.MFC71.DLL_operator_delete
add esp, 4
push 0x4cc818
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC71.DLL_CFile::CFile
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
pop edi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x43a9b0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x104
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x110]
push edi
push 0xf003f
push 0
push 0
mov dword [esp + 0x118], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x43aa26
lea eax, [esp + 0xc]
push 0x100
push eax
call fcn.0043a920
push eax
push esi
push str.Failed_to_install_Service__s____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004a17d1
add esp, 0x104
ret
push 0
push 0
push 0
push 0
push 0
push ebx
push 1
push 2
push 0x110
push 0xf01ff
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x43aa8f
lea ecx, [esp + 0xc]
push 0x100
push ecx
call fcn.0043a920
push eax
push esi
push str.Failed_to_install_Service__s____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x14
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004a17d1
add esp, 0x104
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call ebx
push edi
call ebx
push esi
push str.Succeed_to_install_Service__s_n
call dword [sym.imp.MSVCR71.dll_printf]
mov ecx, dword [esp + 0x114]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004a17d1
add esp, 0x104
ret
Function at 0x43aad0
Capabilities:
Modify service

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x118]
push edi
push 0xf003f
push 0
mov ebx, 1
push 0
mov dword [esp + 0x120], eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x43abed
push ebp
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
je 0x43abc5
mov edi, dword [esp + 0x124]
mov ebx, dword [sym.imp.MSVCR71.dll_printf]
push edi
push esi
push str.Change_Service_Config__s____d.
call ebx
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x43ab90
push edi
push esi
push str._n_s____d_change_service_succeed._n
mov dword [esp + 0x1c], 0
call ebx
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
jmp 0x43ac0b
lea eax, [esp + 0x18]
push 0x100
push eax
call fcn.0043a920
push eax
push edi
push esi
push str._n_s____d_failed_to_change_service:__s_n
call ebx
add esp, 0x18
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
jmp 0x43ac0b
lea ecx, [esp + 0x18]
push 0x100
push ecx
call fcn.0043a920
push eax
push str.OpenService_failed____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
jmp 0x43ac0b
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.0043a920
push eax
push str.OpenSCManager_failed____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x10
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004a17d1
add esp, 0x10c
ret
Function at 0x43ac30
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20bc
call fcn.004a17e0
mov eax, dword [0x4cbba0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
xor eax, ebp
push 0
mov dword [esp + 0x20d0], eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x43adaf
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [esp + 0x18], eax
je 0x43ad71
mov eax, dword [ebx]
push eax
push esi
push str.Change_Service_Config__s____d.
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0xc
xor eax, eax
mov ecx, 0x7e8
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0x1fa0
lea edx, [esp + 0x128]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x43ad24
mov eax, dword [esp + 0x124]
push eax
push esi
push str._n_s____d_change_service_succeed._n
mov dword [ebx], eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20b8]
xor ecx, ebp
call fcn.004a17d1
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push 0x100
push eax
call fcn.0043a920
mov ecx, dword [ebx]
push eax
push ecx
push esi
push str._n_s____d_failed_to_change_service:__s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x18
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20b8]
xor ecx, ebp
call fcn.004a17d1
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x20]
push 0x100
push edx
call fcn.0043a920
push eax
push str.OpenService_failed____s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20b8]
xor ecx, ebp
call fcn.004a17d1
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push 0x100
push eax
call fcn.0043a920
push eax
push str.OpenSCManager_failed____s_n
call dword [sym.imp.MSVCR71.dll_printf]
mov ecx, dword [esp + 0x20d4]
mov eax, dword [esp + 0x20]
add esp, 0x10
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a17d1
mov esp, ebp
pop ebp
ret