joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a3e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0xc], eax
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42a426
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 8]
je 0x42a436
mov eax, dword [0x4b9f78]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
jmp 0x42a43b
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x42a730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x488fdc]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x1c]
push ecx
push str.c:medent_binFaxServiceDebug_d.log
push 0x491f38
call fcn.00445608
add esp, 0xc
push 0x46db18
push 0x491f38
call fcn.00448c8e
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42a7af
cmp dword [0x4b9f8c], 0
je 0x42a78e
mov dword [ebp - 0x24], str.No_Debug_Errors_To_Report_
jmp 0x42a795
mov dword [ebp - 0x24], str.No_Debug_Errors_To_Report___Debug_Mode_Is_OFF_
push 0
push str.Current_Debug_Log_Is_Empty
mov edx, dword [ebp - 0x24]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x42a899
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00448b56
add esp, 0xc
test eax, eax
jne 0x42a7d4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00448ecd
add esp, 4
mov dword [ebp - 8], eax
jmp 0x42a7fb
push 0
push 0x46db84
push str.Debug_Log_Is_Corrupt
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0xc]
push edx
call fcn.004484c1
add esp, 4
xor eax, eax
jmp 0x42a899
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00448b56
add esp, 0xc
cmp dword [ebp - 8], 0x4e20
jle 0x42a833
push 0
mov ecx, dword [ebp - 8]
sub ecx, 0x4e20
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00448b56
add esp, 0xc
mov dword [ebp - 8], 0x4e20
mov eax, dword [ebp - 8]
push eax
call fcn.00448ca5
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.004456b0
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call fcn.00448aaf
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
push 0x42a8b0
push 0
push 0x70
push 0
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004485b5
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call fcn.004484c1
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044545a
mov esp, ebp
pop ebp
ret
Function at 0x42a940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x488fdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x46a51f]
mov byte [ebp - 0x110], al
push 0x104
push 0
lea ecx, [ebp - 0x10f]
push ecx
call fcn.004456b0
add esp, 0xc
mov dl, byte [0x46a583]
mov byte [ebp - 0x218], dl
push 0x104
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.004456b0
add esp, 0xc
mov dword [ebp - 0x21c], 0
push str.c:medent_binServicesErrorLogsFaxService_old.log
lea ecx, [ebp - 0x110]
push ecx
call fcn.00445608
add esp, 8
push 0x46e6a0
lea edx, [ebp - 0x218]
push edx
call fcn.00445608
add esp, 8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x42a9fc
push 3
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.0041a8c0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044545a
mov esp, ebp
pop ebp
ret
Function at 0x42b0e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x488fdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x42b160
cmp dword [ebp - 0x9c], 6
jb 0x42b160
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [ebp - 0xa4], 0
jne 0x42b160
mov eax, 1
jmp 0x42b162
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044545a
mov esp, ebp
pop ebp
ret

Function at 0x42b210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x488fdc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x80
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea eax, [ebp - 0xd8]
push eax
call fcn.00445510
add esp, 8
lea ecx, [ebp - 4]
push ecx
push 1
push 0
lea edx, [ebp - 0xd8]
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42b276
push 0x46e8c0
mov eax, dword [ebp + 8]
push eax
call fcn.00445510
add esp, 8
xor eax, eax
jmp 0x42b2b7
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0x46e8cc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42b2ab
push str.Windows__
mov ecx, dword [ebp + 8]
push ecx
call fcn.00445510
add esp, 8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044545a
mov esp, ebp
pop ebp
ret
Function at 0x42b5e0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x488fdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x46a5bf]
mov byte [ebp - 0x70], al
push 0x63
push 0
lea ecx, [ebp - 0x6f]
push ecx
call fcn.004456b0
add esp, 0xc
mov dword [ebp - 0xb0], 0x40
lea edx, [ebp - 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push 0
push 0x3b9aca00
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.0044a060
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
cmp dword [ebp - 0xb4], 0
ja 0x42b65a
cmp dword [ebp - 0xb8], 0
jbe 0x42b6b9
push 0
push 0x3b9aca00
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xa8]
push eax
call fcn.0044a060
push edx
push eax
push str.Physical_Memory:__ld_Gigabyte_s_
mov ecx, dword [ebp + 8]
push ecx
call fcn.00445608
add esp, 0x10
push 0
push 0x3b9aca00
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xa8]
push eax
call fcn.0044a060
push edx
push eax
push str._ld_Gigabyte_s_
lea ecx, [ebp - 0x70]
push ecx
call fcn.00445608
add esp, 0x10
jmp 0x42b822
push 0
push 0x100000
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xa8]
push eax
call fcn.0044a060
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
cmp dword [ebp - 0xbc], 0
ja 0x42b6f1
cmp dword [ebp - 0xc0], 0
jbe 0x42b750
push 0
push 0x100000
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call fcn.0044a060
push edx
push eax
push str.Physical_Memory:__ld_Megabytes
mov eax, dword [ebp + 8]
push eax
call fcn.00445608
add esp, 0x10
push 0
push 0x100000
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call fcn.0044a060
push edx
push eax
push str._ld_Megabytes
lea eax, [ebp - 0x70]
push eax
call fcn.00445608
add esp, 0x10
jmp 0x42b822
push 0
push 0x400
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
call fcn.0044a060
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], edx
cmp dword [ebp - 0xc4], 0
ja 0x42b788
cmp dword [ebp - 0xc8], 0
jbe 0x42b7e4
push 0
push 0x400
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.0044a060
push edx
push eax
push str.Physical_Memory:__ld_Kilobytes
mov edx, dword [ebp + 8]
push edx
call fcn.00445608
add esp, 0x10
push 0
push 0x400
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.0044a060
push edx
push eax
push str._ld_Kilobytes
lea edx, [ebp - 0x70]
push edx
call fcn.00445608
add esp, 0x10
jmp 0x42b822
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
push str.Physical_Memory:__ld_Bytes
mov edx, dword [ebp + 8]
push edx
call fcn.00445608
add esp, 0x10
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
push str._ld_Bytes
lea edx, [ebp - 0x70]
push edx
call fcn.00445608
add esp, 0x10
mov eax, dword [ebp + 0xc]
and eax, 1
je 0x42b83a
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00445510
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044545a
mov esp, ebp
pop ebp
ret
Function at 0x42b850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x42b8c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42b89e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartRecvNotifyNamedPipeThread___CreateThread___FAILED_ERROR:_d
call fcn.00428bf0
add esp, 8
xor eax, eax
jmp 0x42b8ad
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x42bd50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x42bdc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42bd9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartSendNotifyNamedPipeThread___CreateThread___FAILED_ERROR:_d
call fcn.00428bf0
add esp, 8
xor eax, eax
jmp 0x42bdad
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x42ee80
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x488fdc]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x4ba3ac], 0
jne 0x42ef1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4ba3a8], eax
push 0x46ee90
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebp - 4], eax
mov eax, dword [0x4ba3a8]
push eax
push 0x46eea4
push str._s_error:__d
lea ecx, [ebp - 0x108]
push ecx
call fcn.00445608
add esp, 0x10
lea edx, [ebp - 0x108]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 4], 0
je 0x42ef1a
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044545a
mov esp, ebp
pop ebp
ret
Function at 0x42ef30
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x488fdc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ef9e
push 0x100
push 0x4ba120
call fcn.0042f510
add esp, 8
push eax
push 0x46eec8
push str.Unable_to_install__s____s
push 0x4ba240
call fcn.00445608
add esp, 0x10
push 0x4ba240
mov ecx, dword [0x490014]
push ecx
call fcn.004216e0
add esp, 8
jmp 0x42f0c2
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x42f089
push 0
push 0
push 0x46eef8
push 0
push 0
lea edx, [ebp - 0x208]
push edx
push 1
push 2
push 0x110
push 0xf01ff
push 0x46ef08
push 0x46ef1c
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x42f042
push 0x46ef30
push str._s_installed.
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
mov ecx, dword [0x490014]
push ecx
call fcn.004216e0
add esp, 8
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42f07a
push 0x100
push 0x4ba120
call fcn.0042f510
add esp, 8
push eax
push str.CreateService_failed____s
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
mov eax, dword [0x490014]
push eax
call fcn.004216e0
add esp, 8
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42f0c2
push 0x100
push 0x4ba120
call fcn.0042f510
add esp, 8
push eax
push 0x46ef70
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
mov edx, dword [0x490014]
push edx
call fcn.004216e0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044545a
mov esp, ebp
pop ebp
ret
Function at 0x42f0d0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42f2c2
push 0xf01ff
push 0x46ef8c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42f27d
push 0x4ba224
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42f1fd
push 0x46efa0
push 0x46efb4
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
mov edx, dword [0x490014]
push edx
call fcn.004216e0
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4ba224
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42f19c
cmp dword [0x4ba228], 3
jne 0x42f198
push 0x46efc4
call fcn.0044a202
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42f19a
jmp 0x42f19c
jmp 0x42f162
cmp dword [0x4ba228], 1
jne 0x42f1d2
push 0x46efc8
push 0x46efdc
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
mov ecx, dword [0x490014]
push ecx
call fcn.004216e0
add esp, 8
jmp 0x42f1fd
push 0x46efe8
push 0x46effc
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
mov edx, dword [0x490014]
push edx
call fcn.004216e0
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x42f238
push 0x46f010
push str._s_removed.
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
mov ecx, dword [0x490014]
push ecx
call fcn.004216e0
add esp, 8
jmp 0x42f271
push 0x100
push 0x4ba120
call fcn.0042f510
add esp, 8
push eax
push str.DeleteService_failed____s
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
mov edx, dword [0x490014]
push edx
call fcn.004216e0
add esp, 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42f2b6
push 0x100
push 0x4ba120
call fcn.0042f510
add esp, 8
push eax
push 0x46f04c
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
mov ecx, dword [0x490014]
push ecx
call fcn.004216e0
add esp, 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42f2fa
push 0x100
push 0x4ba120
call fcn.0042f510
add esp, 8
push eax
push 0x46f064
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
mov eax, dword [0x490014]
push eax
call fcn.004216e0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x42f300
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42f471
push 0xf01ff
push str.MedentFaxService
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42f433
push 0x4ba224
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42f41a
push 0x46f094
push str.Stopping__s.
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
call fcn.0042aa10
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4ba224
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42f3c5
cmp dword [0x4ba228], 3
jne 0x42f3c1
push 0x46f0b8
call fcn.0044a202
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42f3c3
jmp 0x42f3c5
jmp 0x42f38b
cmp dword [0x4ba228], 1
jne 0x42f3f4
push 0x46f0bc
push str._s_stopped.
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
call fcn.0042aa10
add esp, 4
jmp 0x42f418
push 0x46f0dc
push str._s_failed_to_stop.
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
call fcn.0042aa10
add esp, 4
jmp 0x42f427
push 0x46f104
call fcn.0042aa10
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42f465
push 0x100
push 0x4ba120
call fcn.0042f510
add esp, 8
push eax
push str.OpenService_failed____s
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
call fcn.0042aa10
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42f4a3
push 0x100
push 0x4ba120
call fcn.0042f510
add esp, 8
push eax
push str.OpenSCManager_failed____s
push 0x4ba240
call fcn.00445608
add esp, 0xc
push 0x4ba240
call fcn.0042aa10
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4300c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0x46f21c
mov eax, dword [ebp + 8]
push eax
call fcn.00448c8e
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4300fb
mov ecx, dword [ebp - 4]
push ecx
call fcn.004484c1
add esp, 4
mov edx, dword [ebp + 0xc]
and edx, 1
jne 0x4300fb
xor al, al
jmp 0x43013f
push 0x46f220
mov eax, dword [ebp + 8]
push eax
call fcn.00448c8e
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43013d
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
push 1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call fcn.004463bd
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.004484c1
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x43e9a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464967
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x488fdc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x43e9ee
mov dword [ebx], 0x467128
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
call fcn.00413220
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.004139e0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x43ea3a
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.0040b9f0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00413320
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x48b6f4]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43f7b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x488fdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], 0x10
lea edx, [ebp - 0x28]
push edx
call edi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
push ecx
call ebx
movzx eax, word [ebp - 0x1a]
mov edx, dword [ebp - 0x30]
movzx ecx, word [ebp - 0x1c]
push edx
movzx edx, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push ecx
movzx ecx, word [ebp - 0x28]
push edx
movzx edx, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x26]
push ecx
push edx
mov edx, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
push str._s_s__d__d__d__d__d__d__d._s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x30
mov ecx, esi
mov eax, 0x4ba938
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x43f860
test dl, dl
je 0x43f85c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x43f860
add eax, 2
add ecx, 2
test dl, dl
jne 0x43f840
xor eax, eax
jmp 0x43f865
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x43f876
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43f7e5
mov edx, 0x4ba938
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43f880
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044545a
mov esp, ebp
pop ebp
ret