joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f190
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c045
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00435da0
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x124]
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0xe4
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xe0]
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x50
push edx
mov eax, dword [ebp + 0x10]
add eax, 0x70
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x30
push edx
mov eax, dword [ebp + 0x10]
add eax, 0xa8
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x88
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x84
push edx
mov eax, dword [ebp + 0x10]
add eax, 0xc0
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str.INSERT_INTO_tImFileLog_sUserID__sUserName__sIDCode_sIDNo__sCardOutNum__sComputerIP__sComputerMac__n_t_t_t_t___sComputerNo__sComputerName__sServiceType_sAccount_dtFileRcvTime_lFileSize_sFilePathName_bHasSent_bHasSent1__n_t_t_t_t___VALUES__.30s___.30s___.3s__.18s___.20s___.15s___.12s___.20s___.20s___04d__.30s__GetDate_____d__.255s_0_0_
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x3c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00402790
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f2a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c061
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00435da0
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
add ecx, 0x104
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0xe4
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x168]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x124]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xe0]
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x128
push edx
mov eax, dword [ebp + 0x10]
add eax, 0x50
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x70
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
mov eax, dword [ebp + 0x10]
add eax, 0x30
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xa8
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x88
push edx
mov eax, dword [ebp + 0x10]
add eax, 0x84
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xc0
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.INSERT_INTO_tImFileLog_sUserID__sUserName__sIDCode__sIDNo__sCardOutNum__sComputerIP__sComputerMac__sComputerNo__sComputerName___n_t_t_t_t_____sPicID__sServiceType__iPicPictureType_dtFileRcvTime__lFileSize__sFilePathName__sSenderAccount__sRecverAccount__bHasSent__bHasSent1__n_t_t_t_t_t_VALUES__.30s___.30s___.3s___.18s___.20s___.39s___.12s___.20s___.20s___.62s___04d___d__GetDate_____d___.255s___.30s___.30s__0__0_
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x48
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00402790
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410f90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c2ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 4
push eax
push str._IF_NOT_EXISTS__SELECT_sTransPolicyID_FROM_tSpecTransPolicy_WHERE_sTransPolicyID_.24s___n
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
push 0x46866c
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
fld qword [eax + 0xa0]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0x1c]
call fcn.00435590
mov ecx, eax
call fcn.00435b50
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 1
push 0x468680
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
fld qword [eax + 0xa8]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0x2c]
call fcn.00435590
mov ecx, eax
call fcn.00435b50
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 2
push 0x468694
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
fld qword [eax + 0xa0]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0x3c]
call fcn.00435590
mov ecx, eax
call fcn.00435b50
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xbc]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb8]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
add eax, 0x84
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x6c
push ecx
mov edx, dword [ebp + 8]
add edx, 0x44
push edx
mov eax, dword [ebp + 8]
add eax, 0x30
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push str.INSERT_INTO_tSpecTransPolicy_sTransPolicyID__sIDNO__sComputerIp__sComputerNo__sComputerName__n_t_t_t_t_tdtFrom_dtTo__lMaxCol__iStatus__dtCurrentTime__nCenterFlag__n_t_t_t_t___VALUES__.24s___.18s___.39s___.20s___.20s___s___s___d__0___s___d_
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::AppendFormat]
add esp, 0x30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.00402790
movzx ecx, al
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4113a0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c321
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x47c9f0]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x9c], ecx
lea ecx, [ebp - 0x78]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 0
push 0x4687e8
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp + 8]
fld qword [ecx + 0x30]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0x88]
call fcn.00435590
mov ecx, eax
call fcn.00435b50
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x2c]
push ecx
push str.UPDATE_tRoom_SET_iClientStatus_d_dtValidEndTime_s__bHasSent0_WHERE_sRoomID_.20s
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x9c]
call fcn.00402790
lea ecx, [ebp - 0x6c]
call fcn.00411590
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
mov ecx, dword [ebp - 0x9c]
call fcn.00411130
test eax, eax
jne 0x4114ac
mov dword [ebp - 0x90], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x90]
jmp 0x411573
push 0x18
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
lea ecx, [ebp - 0x4e]
push ecx
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x2c]
mov byte [ebp - 0x1e], al
mov ecx, dword [ebp + 8]
fld qword [ecx + 0x30]
fstp qword [ebp - 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov edx, dword [0x464860]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x41151e
mov dword [ebp - 0x94], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x94]
jmp 0x411573
mov dword [ebp - 0x74], 0
push 0
lea eax, [ebp - 0x74]
push eax
push 0x58
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x468858
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x98], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00458cfb
mov esp, ebp
pop ebp
ret 4
Function at 0x4116b0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c334
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov eax, dword [0x4648e4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4116f9
xor eax, eax
jmp 0x411778
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.sendalerttoecard__d_n
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x433220
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461c82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00435da0
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x178]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x158]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x50
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x70
push edx
mov eax, dword [ebp + 0x10]
add eax, 0x40
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x30
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0xa8
push edx
mov eax, dword [ebp + 0x10]
add eax, 0x88
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x84
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0xc0
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xe0
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x15c
push edx
push str.INSERT_INTO_tPictureLog_sPolicyID__sSessionID__sUserID__sUserName__sIDCode_sIDNo__sCardOutNum__sComputerIP__sComputerMac__n_t_t_t_t___sComputerNo__sComputerName__iPictureType__dtPictureTime__lPictureSize_sFilePathName_bHasSent_bHasSent1__n_t_t_t_t___VALUES__.20s___.100s___.30s___.30s___.3s__.18s___.20s___.15s___.12s___.20s___.20s___d__GetDate_____d__.255s_0_0_
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00402790
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4391f0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b990
push 0x458f4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0xf00ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x439255
jmp 0x4392a3
push 1
push str.SeDebugPrivilege
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004390e0
test eax, eax
jne 0x43926e
jmp 0x4392a3
mov edx, dword [ebp + 8]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x43928a
jmp 0x4392a3
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x43929c
jmp 0x4392a3
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004392b1
jmp 0x4392d2
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4395d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462427
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x47c9f0]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x13c], 0x128
mov dword [ebp - 0x140], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
jne 0x439654
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x154]
jmp 0x439769
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x43973a
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x150]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x150]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeUpper]
push eax
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeUpper]
push eax
call fcn.00437f20
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4396fc
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x140], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x150]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x43973a
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x150]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x43966d
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x158], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00458cfb
mov esp, ebp
pop ebp
ret 4
Function at 0x439a40
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.00439790
test eax, eax
jne 0x439a60
xor eax, eax
jmp 0x439b0e
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x439a7f
xor eax, eax
jmp 0x439b0e
push 0xf01ff
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x439aaf
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x439b0e
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x439af1
cmp dword [ebp - 0x1c], 2
jne 0x439aed
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x439aef
jmp 0x439af1
jmp 0x439ac8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
cmp dword [ebp - 0x1c], 4
sete al
mov esp, ebp
pop ebp
ret 4
Function at 0x439be0
Capabilities:
Modify service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.00439790
test eax, eax
jne 0x439c00
xor eax, eax
jmp 0x439cde
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x439c1f
xor eax, eax
jmp 0x439cde
push 0xf01ff
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x439c52
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x439cde
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x439cc7
cmp dword [ebp - 0x1c], 2
je 0x439c7d
cmp dword [ebp - 0x1c], 3
je 0x439c7d
cmp dword [ebp - 0x1c], 5
jne 0x439c8a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x439cc5
mov edx, dword [ebp - 0x20]
and edx, 0x100
jne 0x439cc3
mov eax, dword [ebp - 0x20]
or eax, 0x100
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov dword [ebp - 0x24], eax
jmp 0x439cc7
jmp 0x439c59
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 4
Function at 0x439cf0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.00439790
test eax, eax
jne 0x439d19
xor eax, eax
jmp 0x439dd3
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x439d41
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x3e8
xor eax, eax
jmp 0x439dd3
push 0xf01ff
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x439d71
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x439dd3
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x439d9a
cmp dword [ebp - 0x1c], 2
jne 0x439d96
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x439d98
jmp 0x439d9a
jmp 0x439d71
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x1c], 4
je 0x439dc9
cmp dword [ebp - 0x1c], 2
je 0x439dc9
cmp dword [ebp - 0x1c], 5
je 0x439dc9
mov dword [ebp - 0x2c], 0
jmp 0x439dd0
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret 8