joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401830
Capabilities:
Enumerate services

Disassembly:
sub esp, 0xc
push esi
push edi
push 5
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40184d
pop edi
pop esi
add esp, 0xc
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 3
push 0x30
push 0
push edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call ebx
test eax, eax
jne 0x4018ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x401894
cmp eax, 0xea
jne 0x4018f0
mov eax, dword [esp + 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4018f0
mov ecx, dword [esp + 0xc]
push ecx
push 0
push esi
call fcn.0040a180
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
push 3
push 0x30
push 0
push edi
call ebx
test eax, eax
je 0x4018f0
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4018f0
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x401900
Capabilities:
Enumerate services

Disassembly:
sub esp, 0xc
push esi
push edi
push 5
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, esi
jne 0x40191f
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push esi
push ebx
push 0x30
push edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call ebp
test eax, eax
jne 0x40197e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x401964
cmp eax, 0xea
jne 0x4019bb
mov eax, dword [esp + 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4019bb
mov ecx, dword [esp + 0x10]
push ecx
push 0
push esi
call fcn.0040a180
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
push ebx
push 0x30
push edi
call ebp
test eax, eax
je 0x4019bb
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4019bb
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x4019d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4019db
xor al, al
ret
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401a36
cmp esi, 0xffffffff
je 0x401a36
push ebx
push 1
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x401a1d
push str.Kill_The_Process_Successfully_r_n
call fcn.0040a0a0
add esp, 4
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
ret
push str.Fail_To_Kill_The_Process_r_n
call fcn.0040a0a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
ret
push str.Fail_To_Open_Process_r_n
call fcn.0040a0a0
add esp, 4
xor al, al
pop esi
ret

Function at 0x401a80
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push edi
mov edi, dword [esp + 0x218]
mov bl, 0x41
jmp 0x401ab0
push 0x1ff
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1c], 0
call fcn.0040a180
add esp, 0xc
push 0x1ff
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
call esi
test eax, eax
je 0x401afe
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040a38f
add esp, 8
test eax, eax
je 0x401b1f
inc bl
cmp bl, 0x5a
jle 0x401ab0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0040a165
add esp, 0x208
ret
mov ecx, dword [esp + 0x210]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0040a165
add esp, 0x208
ret

Function at 0x401c30
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push edi
mov edi, dword [esp + 0x138]
xor ebx, ebx
push 0x124
lea eax, [esp + 0x10]
push ebx
push eax
mov dword [esp + 0x14], ebx
call fcn.0040a180
add esp, 0xc
cmp edi, ebx
jne 0x401c83
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0040a165
add esp, 0x12c
ret
push esi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401cb1
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x401cd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0040a165
add esp, 0x12c
ret
lea edx, [esp + 0x30]
push edi
push edx
call fcn.0040a38f
add esp, 8
test eax, eax
je 0x401cf3
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401cd0
jmp 0x401cf7
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop esi
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040a165
add esp, 0x12c
ret
Function at 0x402450
Capabilities:
Query service configuration

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x402463
xor al, al
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push 5
xor ebx, ebx
push ebx
push ebx
mov byte [esp + 0x1f], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x402498
push str.Fail_To_Open_SC_Manager_n
call fcn.0040a0a0
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push 1
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4024ba
push str.Fail_To_Open_Service_n
call fcn.0040a0a0
add esp, 4
jmp 0x402546
lea eax, [esp + 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x4024fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x402546
mov ebx, dword [esp + 0x14]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4024fa
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push ebp
call ebx
jmp 0x40253b
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x402520
mov edx, dword [esp + 0x1c]
push edx
push str._s_QueryServiceConfig_Failure_n
call fcn.0040a0a0
add esp, 8
jmp 0x40253b
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push str._s_t___t_s_n
mov byte [esp + 0x1f], 1
call fcn.0040a0a0
add esp, 0xc
test edi, edi
je 0x402546
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x402551
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [esp + 0x13]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x402570
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
jne 0x40257d
xor al, al
pop ebp
ret
push edi
push 2
push 0
push 0
mov byte [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4025ed
push ebx
push esi
push 2
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4025e8
push 0
push 0x41b676
push str..LocalSystem
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x4025e5
push ebp
push str.Change_Service__s_Successfully_n
call fcn.0040a0a0
add esp, 8
mov byte [esp + 0x14], 1
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
mov al, byte [esp + 0xc]
pop edi
pop ebp
ret
Function at 0x402600
Capabilities:
Modify service

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x4026a1
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4026a1
push edi
push 2
push 0
push 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x402699
push esi
push 2
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402691
push 0
push ebx
push str.NT_AUTHORITYNetworkService
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x402677
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_To_Change_Service__d_n
call fcn.0040a0a0
jmp 0x402687
push ebp
push str.Change_Service__s_Successfully_n
call fcn.0040a0a0
mov byte [esp + 0x1c], 1
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov al, byte [esp + 0x10]
pop edi
pop ebp
pop ebx
ret
pop ebp
xor al, al
pop ebx
ret

Function at 0x402700
Capabilities:
Query service configuration

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40270f
xor al, al
pop esi
pop ecx
ret
push ebx
push ebp
push edi
push 5
xor ebx, ebx
push ebx
push ebx
mov byte [esp + 0x24], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4027c1
push 1
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4027ba
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x40277c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4027b3
mov ebx, dword [esp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x40277c
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push ebp
call ebx
jmp 0x4027a8
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x4027a8
mov edx, dword [edi + 0x1c]
push str.LocalSystem
push edx
call fcn.0040a38f
add esp, 8
test eax, eax
jne 0x4027a8
mov byte [esp + 0x18], 1
test edi, edi
je 0x4027b3
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [esp + 0x18]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x402890
Capabilities:
Query service configuration

Disassembly:
push ecx
push ebp
push edi
mov edi, dword [esp + 0x10]
xor ebp, ebp
cmp edi, ebp
jne 0x4028a3
pop edi
xor al, al
pop ebp
pop ecx
ret
push ebx
push esi
push 5
push ebp
push ebp
mov byte [esp + 0x24], 0
xor esi, esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, ebp
je 0x402960
push 1
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x402959
lea eax, [esp + 0x10]
push eax
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x402903
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x402952
mov ebp, dword [esp + 0x10]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x10]
push ecx
push ebp
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x402947
mov edx, dword [esi + 0x20]
push edx
push str.Display_Name_t:__s_n
call fcn.0040a0a0
mov eax, dword [esi + 0xc]
push eax
push str.Image_Path_t:__s_n
call fcn.0040a0a0
mov ecx, dword [esi + 0x1c]
push ecx
push str.Acccount_Name_t:__s_n
call fcn.0040a0a0
add esp, 0x18
mov byte [esp + 0x18], 1
test esi, esi
je 0x402952
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [esp + 0x18]
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
Function at 0x402ba0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x418
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [esp + 0x41c]
mov ecx, dword [esp + 0x424]
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x430]
push edi
push 0x3ff
xor edi, edi
lea edx, [esp + 0x25]
push edi
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
mov byte [esp + 0x2c], 0
call fcn.0040a180
add esp, 0xc
mov byte [esp + 0xf], 0
test ebp, ebp
je 0x402c40
cmp dword [esp + 0x14], edi
je 0x402c40
test esi, esi
je 0x402c40
mov eax, dword [esp + 0x438]
cmp eax, 1
je 0x402c5a
cmp eax, 2
je 0x402c5a
cmp eax, 4
jne 0x402c90
mov edi, eax
lea eax, [esp + 0x20]
push eax
push 0x41b788
push esi
call fcn.0040a57e
add esp, 0xc
cmp eax, 1
je 0x402c90
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0040a165
add esp, 0x418
ret
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c60
push 0x400
lea ecx, [esp + 0x24]
sub eax, edx
push 0
push ecx
lea edi, [eax + 1]
call fcn.0040a180
push 0x3fe
lea edx, [esp + 0x30]
push esi
push edx
call fcn.0040a3f0
add esp, 0x18
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402ceb
mov ecx, dword [esp + 0x438]
mov edx, dword [esp + 0x14]
push edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402ce0
mov byte [esp + 0xf], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x420]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040a165
add esp, 0x418
ret
Function at 0x402d50
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub esp, 0x2c
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x402d8d
push str.CoInitializeEx_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x402eec
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x402db4
push str.CoInitializeSecurity_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x402eec
lea eax, [esp + 0x18]
push eax
push 0x41db70
push 1
push ebx
push 0x41dc40
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x402de2
push str.CoCreateInstance_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x402eec
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTMicrosoftWindowsDefender
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jge 0x402e14
push str.ConnectServer_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x402eec
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x402e3f
push str.CoSetProxyBlanket_Failure_n
call fcn.0040a0a0
add esp, 4
jmp 0x402eec
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0x30
push str.SELECT__FROM_MSFT_MpComputerStatus
push 0x41b828
push eax
call edx
test eax, eax
jl 0x402eec
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402efc
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x10]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x1c], ebx
je 0x402eec
cmp eax, ebx
jl 0x402eec
mov eax, dword [esp + 0xc]
push ebx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push 0x41b804
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x402ec6
or ecx, 0xffffffff
cmp cx, word [esp + 0x2c]
je 0x402ee7
lea edx, [esp + 0x24]
push edx
call esi
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
cmp eax, ebx
jne 0x402e77
jmp 0x402f0c
mov byte [esp + 0xb], 1
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402efc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x402f0c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402f1c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
pop ebx
je 0x402f2e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [esp + 3]
add esp, 0x2c
ret
Function at 0x4034d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Read file via mapping

Disassembly:
sub esp, 0x224
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
mov esi, dword [esp + 0x230]
xor bl, bl
mov byte [esp + 0xb], bl
test esi, esi
je 0x4036ef
push 0xff
lea eax, [esp + 0x12d]
push 0
push eax
mov byte [esp + 0x134], bl
call fcn.0040a180
add esp, 0xc
push 0xfe
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4036ef
push 0xff
lea edx, [esp + 0x2d]
push 0
push edx
mov byte [esp + 0x34], bl
call fcn.0040a180
add esp, 0xc
call fcn.00401000
push esi
test eax, eax
je 0x40356f
lea eax, [esp + 0x12c]
push eax
push str._sSysWOW64_s
push 0xfe
lea ecx, [esp + 0x38]
push ecx
jmp 0x403586
lea edx, [esp + 0x12c]
push edx
push str._sSystem32_s
push 0xfe
lea eax, [esp + 0x38]
push eax
call fcn.00403470
add esp, 0x14
lea ecx, [esp + 0x28]
push ecx
push 0x41b958
call fcn.0040a0a0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4036ef
push 0xc
lea edx, [esp + 0x1c]
xor ecx, ecx
push edx
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x4036ef
push edi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 0xffffffff
je 0x4036ee
test edi, edi
je 0x4036e7
push 0
push 0
push 0
push 0x1000002
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x4036e3
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4036dc
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x3c]
push ebp
add esi, eax
xor ecx, ecx
xor ebp, ebp
cmp cx, word [esi + 6]
jae 0x4036db
lea esp, [esp]
movzx eax, bp
lea edx, [eax + eax*4]
movzx eax, word [esi + 0x14]
add eax, esi
lea edi, [eax + edx*8 + 0x18]
push str..text
push edi
call fcn.0040a38f
add esp, 8
test eax, eax
je 0x40368b
inc ebp
cmp bp, word [esi + 6]
jb 0x403660
jmp 0x4036d7
mov esi, dword [edi + 0xc]
mov ebp, dword [edi + 8]
add esi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x1c]
push ecx
push 0x40
push ebp
push esi
call ebx
test eax, eax
je 0x4036d3
mov edx, dword [edi + 0xc]
add edx, dword [esp + 0x2c]
push ebp
push edx
push esi
call fcn.0040aa40
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
push esi
call ebx
test eax, eax
je 0x4036d3
mov byte [esp + 0x13], 1
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [esp + 0xf]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0x228]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0040a165
add esp, 0x224
ret
Function at 0x4037a0
Capabilities:
Acquire debug privileges
Impersonate user

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 8], ebx
cmp esi, ebx
je 0x4037ee
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x4037ee
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4037ee
lea edx, [esp + 8]
push edx
push ebx
push 3
push ecx
push 0x41bbd0
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x4037f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LogonUserA___d_n
call fcn.0040a0a0
add esp, 8
pop esi
mov al, bl
pop ebx
pop ecx
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x40381d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ImpersonateLoggedOnUser___d_n
call fcn.0040a0a0
add esp, 8
pop esi
mov al, bl
pop ebx
pop ecx
ret
push 1
push str.SeDebugPrivilege
call fcn.00401b40
push esi
call fcn.00402570
add esp, 0xc
pop esi
pop ebx
pop ecx
ret

Function at 0x403b80
Capabilities:
Modify service

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [esp + 0x38]
mov byte [esp + 7], 0
test esi, esi
je 0x403bab
push esi
call fcn.004026b0
add esp, 4
test al, al
jne 0x403bb2
push str.Service_Doesnt_Exist_n
call fcn.0040a0a0
add esp, 4
xor al, al
pop esi
add esp, 0x30
ret
push edi
push 0x12
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x403bdc
push str.Fail_To_Open_SC_Manager_n
call fcn.0040a0a0
mov al, byte [esp + 0xf]
add esp, 4
pop edi
pop esi
add esp, 0x30
ret
push ebx
push 0x12
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x403bfc
push str.Fail_To_Open_Service_n
call fcn.0040a0a0
jmp 0x403c7c
mov eax, 0x3a98
lea ecx, [esp + 0x10]
push ecx
mov ebx, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
push 2
lea eax, [esp + 0x2c]
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x403c6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Set_Service_Auto_Restart_Failure.__d__n
call fcn.0040a0a0
add esp, 8
jmp 0x403c7f
push str.Set_Service_Auto_Restart_Successfully_n
call fcn.0040a0a0
mov byte [esp + 0x13], bl
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x403c8c
push esi
call ebx
push edi
call ebx
mov al, byte [esp + 0xf]
pop ebx
pop edi
pop esi
add esp, 0x30
ret