joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401116
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x43305c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0x42a320
push esi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], esi
call fcn.00405ccd
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x401279
push ebx
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00405bbd
add esp, 0x14
lea eax, [ebp - 0xc]
push 2
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x401173
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov si, word [eax]
add eax, ebx
test si, si
jne 0x40118c
sub eax, edx
sar eax, 1
lea eax, [eax + ecx + 1]
xor ecx, ecx
mov edx, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040592a
mov edi, eax
lea eax, [ebp - 0xc]
pop ecx
mov edx, edi
mov ecx, eax
mov dword [ebp - 0x218], edi
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebx
test cx, cx
jne 0x4011c3
lea eax, [ebp - 0x20c]
mov edx, eax
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4011d9
sub eax, edx
dec edi
dec edi
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x4011e7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x218]
mov ecx, 0x42a31c
mov eax, esi
pop ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401236
test dx, dx
je 0x401232
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401236
add eax, 4
add ecx, 4
test dx, dx
jne 0x401210
xor eax, eax
jmp 0x40123b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401254
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401254
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x42a320
push dword [ebp - 0x214]
call fcn.00405ccd
test esi, esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
je 0x401279
push esi
call fcn.004058c7
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405d30
leave
ret 4
Function at 0x4013e1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40140b
call fcn.004012a7
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call edi
push dword [ebp - 4]
call fcn.004055d1
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x401435
call fcn.004012a7
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40144d
call fcn.004012a7
call fcn.0040132b
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ebx, [esi + eax*8 + 4]
lea edi, [esi + 4]
jmp 0x401472
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401476
add edi, 8
cmp ebx, edi
jne 0x401460
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.00404f43
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, edi
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x401a9b
Capabilities:
Connect network resource

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x43305c]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
push ebx
mov ebx, dword [ebp + 0x1b8]
push esi
push edi
mov edi, dword [ebp + 0x1b4]
push str.EstablishConnection_Starts_n
mov esi, 0x42a310
push esi
push dword [0x4341fc]
call fcn.004010f4
push ebx
push edi
lea eax, [ebp - 0x60]
push str._s_s
push eax
call fcn.0040661c
lea eax, [ebp - 0x60]
push eax
push str.Remote_Resource_Name_to_establish_connection_is__ws_n
push esi
push dword [0x4341fc]
call fcn.004010f4
xor ebx, ebx
add esp, 0x2c
cmp dword [ebp + 0x1bc], ebx
je 0x401c23
push ebx
push dword [0x436f24]
lea eax, [ebp - 0x60]
push dword [0x436f20]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
push edi
mov ebx, str.WNetAddConnection2_Connect__returned_::__d_n
push ebx
push esi
push dword [0x4341fc]
call fcn.004010f4
mov eax, edi
add esp, 0x10
sub eax, 5
je 0x401b6a
sub eax, 0x51
je 0x401b6a
sub eax, 0x46d
je 0x401b6a
sub eax, 0x6b
jne 0x401c04
cmp dword [0x436f24], 0
je 0x401c04
cmp dword [0x436f20], 0
jne 0x401c04
push str.Invalid_password_n_n
mov edi, 0x42a378
push edi
call fcn.00405d9e
add eax, 0x20
push eax
call fcn.004051ab
call fcn.00405d9e
add eax, 0x20
push eax
call fcn.0040514f
push 1
call fcn.00401a2c
add esp, 0x14
push str.Connecting_to_remote_service_...
push edi
call fcn.00405d9e
add eax, 0x20
push eax
call fcn.004051ab
call fcn.00405d9e
add eax, 0x20
push eax
call fcn.0040514f
add esp, 0x10
push 0
push dword [0x436f24]
lea eax, [ebp - 0x80]
push dword [0x436f20]
push eax
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
push edi
push ebx
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
xor ebx, ebx
push str.EstablishConnection_Ends_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0xc
cmp edi, ebx
jne 0x401c7a
xor eax, eax
inc eax
jmp 0x401c83
push str.Disconnect_RemoteResource_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
call sub.MPR.dll_WNetCancelConnection2W
mov edi, eax
push edi
push str.WNetCancelConnection2_Disconnect__returned_::__d_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
cmp edi, ebx
je 0x401c06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_Code_::__d_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
jmp 0x401c06
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp + 0x1a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405d30
add ebp, 0x1ac
leave
ret
Function at 0x401c9b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x43305c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.CopyBinaryToRemoteSystem_Starts_n
mov esi, 0x42a310
push esi
push dword [0x4341fc]
call fcn.004010f4
push 0x42aa38
call fcn.00401642
add esp, 0x10
test eax, eax
jne 0x401cdc
inc eax
jmp 0x401dab
push edi
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [0x436f2c]
call fcn.00405bbd
push dword [0x436f2c]
push str.File_To_be_copied_:__ws_n
push esi
push dword [0x4341fc]
call fcn.004010f4
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [0x436f30]
lea eax, [ebp - 0x214]
push dword [0x434604]
push str._sADMIN__s_s_s
push eax
call fcn.0040661c
lea eax, [ebp - 0x214]
push eax
push str.Remote_Location_to_copy_file_:__ws_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x4c
push 0
lea eax, [ebp - 0x214]
push eax
push dword [0x436f2c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
test edi, edi
jne 0x401d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyFile_Failed::Error_code_:__d_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
push str.CopyBinaryToRemoteSystem_Ends_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0xc
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405d30
leave
ret

Function at 0x401db8
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ProcComs
mov esi, eax
push 0x66
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x401df8
xor eax, eax
jmp 0x401e63
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, 0x436d18
push esi
push 0x104
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.ProcComs.bin
push esi
push str._s_s
push esi
call fcn.0040661c
add esp, 0x10
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401df4
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e68
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x43305c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
push str.CopyServiceToRemoteMachine_Starts_n
mov esi, 0x42a310
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0xc
xor ebp, ebp
push ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RemComSVC
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, ebp
jne 0x401ed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindResource_RemComSvc__::__d_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x401f02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadResource_RemComSvc__::__d_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x401f36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadResource_RemComSvc__::__d_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
xor eax, eax
jmp 0x40202e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push str.SIZE_of_RemComSvc_::__d_n
push esi
push dword [0x4341fc]
call fcn.004010f4
push str.RemComSvc.exe
push dword [0x436f30]
lea eax, [esp + 0x30]
push dword [0x434604]
push str._sADMIN__s_s
push eax
call fcn.0040661c
lea eax, [esp + 0x3c]
push eax
push str.RemComSvc.exe_absolute_path_::__ws_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x34
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401fc5
push str.Failed_at_CreateFile_RemComSvc__n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0xc
jmp 0x401f2f
push ebp
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401ff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFile_RemComSvc.exe__Failed_::__d_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
push str.WriteFile_of_RemComSvc.exe__completed_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CopyServiceToRemoteMachine_Ends_n
push esi
push dword [0x4341fc]
call fcn.004010f4
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x14], edi
sete al
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405d30
add esp, 0x214
ret
Function at 0x402047
Capabilities:
Create service
Start service

Disassembly:
push ecx
push edi
push str.InstallAndStartRemoteService_Starts_n
mov edi, 0x42a310
push edi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0xc
push 0xf003f
push 0
push dword [0x434604]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [esp + 4], eax
jne 0x40209f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_in_OpenSCManager_::__d_n
push edi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
xor eax, eax
jmp 0x40222c
push ebx
push ebp
push esi
push 0xf01ff
push 0x42b018
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push dword [0x436f30]
mov ebp, eax
call fcn.004064cf
mov esi, eax
mov dword [esp], str.RemComSvc.exe
call fcn.004064cf
add esi, eax
mov dword [esp], 0x42b014
call fcn.004064cf
mov ebx, str._SystemRoot__
push ebx
add esi, eax
call fcn.004064cf
xor ecx, ecx
push 2
lea eax, [eax + esi + 1]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040592a
mov esi, eax
push ebx
push esi
call fcn.0040650f
push dword [0x436f30]
push esi
call fcn.004064e5
push 0x42b014
push esi
call fcn.004064e5
push str.RemComSvc.exe
push esi
call fcn.004064e5
xor ebx, ebx
add esp, 0x2c
cmp ebp, ebx
jne 0x40219b
push str.CreateService_RemComSvc_is_getting_called._n
push edi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push 1
push 3
push 0x10
push 0xf01ff
push str.RemCom_Service
push 0x42b018
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebp, eax
cmp ebp, ebx
jne 0x40219b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_Failed_::__d_n
push edi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4021ee
push esi
call fcn.004058c7
mov dword [esp], str.StartService_RemComSvc__is_getting_called_n
push edi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0xc
push ebx
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4021f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_Failed_::__d__n
push edi
push dword [0x4341fc]
call fcn.004010f4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x10
push ebp
call esi
push dword [esp + 0x10]
call esi
xor eax, eax
jmp 0x402229
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
push dword [esp + 0x10]
call esi
push str.RemComSvc_service_started.__n
push edi
push dword [0x4341fc]
call fcn.004010f4
push str.InstallAndStartRemoteService_Ends_n
push edi
push dword [0x4341fc]
call fcn.004010f4
xor eax, eax
add esp, 0x18
inc eax
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
Function at 0x4023c2
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
mov eax, dword [0x43305c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push str.BuildMessageStructure_Starts_n
mov esi, 0x42a310
push esi
push dword [0x4341fc]
call fcn.004010f4
push 0x42b5b4
call fcn.00401690
push eax
push str.Working_Dir_Set_::__ws_n
push esi
push dword [0x4341fc]
mov dword [ebp - 0x610], eax
call fcn.004010f4
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x220c], eax
lea eax, [edi + 0x2210]
push 0x434200
push eax
call fcn.0040650f
push 0x42aa38
call fcn.00401642
add esp, 0xc
test eax, eax
jne 0x402485
push str.IsCmdLineParameter__T__c___is_false_n
push esi
push dword [0x4341fc]
call fcn.004010f4
push dword [0x434600]
push dword [0x436f2c]
push str._s__s
push edi
call fcn.0040661c
push edi
push str.The_Command_to_RemComCOMM_::__ws_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x2c
jmp 0x402542
push ebx
push str.IsCmdLineParameter__T__c___is_true_n
push esi
push dword [0x4341fc]
call fcn.004010f4
push dword [0x436f30]
call fcn.004064cf
push str._SystemRoot__
mov ebx, eax
call fcn.004064cf
xor ecx, ecx
push 2
lea eax, [ebx + eax + 1]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040592a
mov ebx, eax
push str._SystemRoot__
push ebx
call fcn.0040650f
push dword [0x436f30]
push ebx
call fcn.004064e5
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [0x436f2c]
call fcn.00405bbd
push dword [0x434600]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push str._s_s_s__s
push edi
call fcn.0040661c
add esp, 0x54
push edi
push str.The_Command_to_RemComCOMM_::__ws_n
push esi
push dword [0x4341fc]
call fcn.004010f4
push ebx
call fcn.004058c7
add esp, 0x14
pop ebx
push str.realtime
call fcn.00401642
test eax, eax
pop ecx
je 0x40255d
mov dword [edi + 0x2208], 0x100
jmp 0x402593
push str.high
call fcn.00401642
test eax, eax
pop ecx
je 0x402578
mov dword [edi + 0x2208], 0x80
jmp 0x402593
push str.idle
call fcn.00401642
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
pop ecx
mov dword [edi + 0x2208], eax
push str.nowait
call fcn.00401642
cmp dword [ebp - 0x610], 0
pop ecx
mov dword [edi + 0x2418], eax
je 0x4025c1
push dword [ebp - 0x610]
lea eax, [edi + 0x2000]
push eax
call fcn.0040650f
pop ecx
pop ecx
push edi
push dword [0x434604]
mov edi, 0x434608
push str._s_:__s
push edi
call fcn.0040661c
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push str.BuildMessageStructure_Ends_n
push esi
push dword [0x4341fc]
call fcn.004010f4
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.00405d30
leave
ret
Function at 0x402950
Capabilities:
Create thread

Disassembly:
push esi
push edi
push str.ListenToRemoteNamedPipes_Starts_n
mov esi, 0x42a310
push esi
push dword [0x4341fc]
call fcn.004010f4
xor edi, edi
push edi
push edi
push 0x402607
call fcn.00406948
push edi
push edi
push 0x40276a
call fcn.00406948
push edi
push edi
push 0x40286b
call fcn.00406948
push str.ListenToRemoteNamedPipes_Ends_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x3c
pop edi
pop esi
ret

Function at 0x402d03
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x23ac]
mov eax, 0x242c
call fcn.00406b20
mov eax, dword [0x43305c]
xor eax, ebp
mov dword [ebp + 0x23a8], eax
push ebx
push esi
push edi
push str.ExecuteRemoteCommand_Starts_n
mov esi, 0x42a310
push esi
push dword [0x4341fc]
call fcn.004010f4
mov edi, 0x241c
xor ebx, ebx
push edi
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.004067d0
push 8
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.004067d0
lea eax, [ebp - 0x74]
push eax
call fcn.004023c2
add esp, 0x28
push ebx
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x74]
push eax
push dword [0x43300c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x402d9f
call edi
push eax
push str.WriteFile_on_RemComCOMM_Failed_::__d_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
push 0x3e8
push 5
call fcn.004029a5
test eax, eax
pop ecx
pop ecx
je 0x402e1f
push str.ConnectToRemotePipes_Success_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0xc
push str.Ok_n_n
push 0x42a378
call fcn.00405d9e
add eax, 0x20
push eax
call fcn.004051ab
call fcn.00405d9e
add eax, 0x20
push eax
call fcn.0040514f
add esp, 0x10
push ebx
lea eax, [ebp - 0x80]
push eax
push 8
lea eax, [ebp - 0x7c]
push eax
push dword [0x43300c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402e5f
call edi
push eax
push str.ReadFile_Failed_::__d_n
push esi
push dword [0x4341fc]
call fcn.004010f4
jmp 0x402e5c
call edi
push eax
push str.ConnectToRemotePipes_Failed_::__d_n
push esi
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x10
push str.Failed_n_n
push 0x42a378
call fcn.00405d9e
add eax, 0x20
push eax
call fcn.004051ab
call fcn.00405d9e
add eax, 0x20
push eax
call fcn.0040514f
add esp, 0x10
cmp dword [ebp - 0x7c], ebx
jne 0x402e81
push dword [ebp - 0x78]
push dword [ebp - 0x78]
push str._nRemote_command_returned__d_0x_X__n
call fcn.004069ff
push dword [ebp - 0x78]
push dword [ebp - 0x78]
push str.Remote_Command_Returned__d_0x_X__n
jmp 0x402e9c
push dword [ebp - 0x7c]
push dword [ebp - 0x7c]
push str._nRemote_command_failed_to_start._Returned_error_code_is__d_0x_X__n
call fcn.004069ff
push dword [ebp - 0x78]
push dword [ebp - 0x78]
push str.Remote_command_Failed_to_start_::__d_0x_X__n
push 0x42a574
push dword [0x4341fc]
call fcn.004010f4
add esp, 0x20
push str.ExecuteRemoteCommand_Ends_n
push esi
push dword [0x4341fc]
call fcn.004010f4
mov ecx, dword [ebp + 0x23a8]
add esp, 0xc
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00405d30
add ebp, 0x23ac
leave
ret
Function at 0x403be8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push 0xc
xor esi, esi
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.004067d0
push 0x44
lea eax, [ebp - 0x60]
push esi
push eax
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
call fcn.004067d0
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x60], 0x44
call fcn.004067d0
mov eax, dword [0x433014]
add esp, 0x24
mov dword [ebp - 0x28], eax
mov eax, dword [0x433010]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403c65
call fcn.004012a7
xor eax, eax
jmp 0x403c83
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x403dbd
Capabilities:
Query service status
Start service

Disassembly:
push ecx
push ecx
push edi
push 0xf003f
xor edi, edi
push edi
push dword [0x434604]
mov dword [esp + 0x10], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [esp + 8], eax
je 0x403e5d
push esi
push 0xf01ff
push dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
je 0x403e52
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x403e4b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebp
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebp, 0x4341e0
jmp 0x403e30
cmp dword [0x4341e4], 2
jne 0x403e38
push 0x3e8
call edi
push ebp
push esi
call ebx
test eax, eax
jne 0x403e20
cmp dword [0x4341e4], 4
pop ebp
pop ebx
jne 0x403e4b
mov dword [esp + 8], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, dword [esp + 4]
pop edi
pop ecx
pop ecx
ret

Function at 0x403e65
Capabilities:
Query service status
Stop service

Disassembly:
push ecx
push 0xf003f
push 0
push dword [0x434604]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [esp], eax
je 0x403eef
push edi
push 0xf01ff
push dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x403ee4
push esi
mov esi, 0x4341e0
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403edc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x3e8
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x403ed2
cmp dword [0x4341e4], 3
jne 0x403eda
push 0x3e8
call ebx
push esi
push edi
call ebp
test eax, eax
jne 0x403ec2
pop ebp
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ecx
ret