joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e25
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x32
push 1
mov ebx, 0x184
call fcn.0043a640
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404e6a
push ebx
call fcn.00438be2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x404e81
mov eax, 0x46c300
push eax
push 1
mov ebx, 0x130
call fcn.0043a140
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x404ebd
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x404eeb
mov eax, dword [ebp - 4]
test eax, eax
je 0x404ee6
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00438bd6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x404ef5
mov eax, 0x46c300
jmp 0x404ef5
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404f06
push ebx
call fcn.00438be2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x4052a4
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x1c
call fcn.00438bd6
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
push SysReAllocString
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40530d
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4053d5
mov dword [ebp - 0x14], esp
push SysReAllocString
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x405346
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4053b3
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x405378
push 6
call fcn.00438bca
add esp, 4
test eax, eax
je 0x405391
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4053b3
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4053d5
push 6
call fcn.00438bca
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x4053dd
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00438be2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x405945
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x405960
call fcn.004059d0
mov dword [ebp + 8], eax
mov dword [ebp - 4], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
nop
nop
cmp dword [ebp - 4], esp
je 0x40598c
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4059b6
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x4059ca
mov esp, ebp
pop ebp
ret 8
Function at 0x405cc2
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405d0e
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405ee0
mov dword [ebp - 0x10], esp
push 0xf01ff
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405d47
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405ebe
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push 0xffffffff
push 0xffffffff
push 0xffffffff
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x405e43
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405e56
push ebx
call fcn.00438be2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405e66
push ebx
call fcn.00438be2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x405e76
push ebx
call fcn.00438be2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x405e86
push ebx
call fcn.00438be2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x405e96
push ebx
call fcn.00438be2
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405ebe
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405ee0
push 6
call fcn.00438bca
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x405ee8
mov esp, ebp
pop ebp
ret 8
Function at 0x405eee
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405f3a
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405ff3
mov dword [ebp - 0x10], esp
push 0x10
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405f73
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405fd1
mov dword [ebp - 0x10], esp
push 0
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405fac
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405fd1
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405ff3
push 6
call fcn.00438bca
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x405ffb
mov esp, ebp
pop ebp
ret 4
Function at 0x406001
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x28], 0
mov eax, 0
sete al
test eax, eax
je 0x406036
mov eax, 0x10
jmp 0x406039
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
test eax, eax
je 0x40605a
mov eax, 3
jmp 0x40605d
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x2c], eax
mov dword [ebp - 0xc], esp
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40608e
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4061bb
cmp dword [ebp + 0x1c], 0
je 0x4060d0
push 0x80000301
push 0
push pe_nt_image_headers32
push 0x80000301
push 0
push dword [ebp + 0x24]
push 2
mov ebx, 0xc8
call fcn.00439fa0
add esp, 0x1c
mov dword [ebp + 0x24], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x44]
push dword [ebx]
mov ebx, dword [ebp + 0x3c]
push dword [ebx]
mov ebx, dword [ebp + 0x34]
push dword [ebx]
push 0
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 1
push dword [ebp + 0x2c]
push dword [ebp + 0x24]
push 0xf01ff
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x406149
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40615c
push ebx
call fcn.00438be2
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406177
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004061d2
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x406199
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4061bb
push 6
call fcn.00438bca
add esp, 4
cmp dword [ebp - 8], 0
mov eax, 0
setne al
jmp 0x4061cc
mov esp, ebp
pop ebp
ret 0x44
Function at 0x4061d2
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
push 0x20000000
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x406225
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40630e
mov dword [ebp - 0x14], esp
push 2
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40625e
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4062ec
mov dword [ebp - 0x14], esp
push 0
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyn]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x406299
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esp
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4062c7
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4062ec
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40630e
push 6
call fcn.00438bca
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x406316
mov esp, ebp
pop ebp
ret 8
Function at 0x40c3e0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x1c
call fcn.00438bd6
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], esp
push 1
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40c449
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c500
mov dword [ebp - 0x14], esp
push 0x20
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40c482
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x40c4de
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
push 1
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40c4b9
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40c4de
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40c500
push 6
call fcn.00438bca
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x40c508
push eax
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00438be2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41766c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4176a9
push 6
call fcn.00438bca
add esp, 4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x4176b4
mov esp, ebp
pop ebp
ret 4

Function at 0x4176ba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4176f5
push 6
call fcn.00438bca
add esp, 4
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x1bc
call fcn.00439f70
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x417728
push ebx
call fcn.00438be2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41774c
add eax, 8
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41776c
push 6
call fcn.00438bca
add esp, 4
push 0x80000301
push 0
push dword [ebp - 8]
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x417789
mov eax, 0x46c399
push eax
push 2
mov ebx, 0x1a0
call fcn.0043a1b0
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4177b3
push ebx
call fcn.00438be2
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4177d1
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00438bd6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4177d6
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4177e7
push ebx
call fcn.00438be2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41af1f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x28
call fcn.00438bd6
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
nop
nop
cmp dword [ebp - 8], esp
je 0x41af67
push 6
call fcn.00438bca
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
jmp 0x41af7a
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.00438be2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x41bcd4
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41bd20
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41be06
push 0x80000301
push 0
push 0x10000
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push 0x10
push 3
mov ebx, 0xc8
call fcn.00439fa0
add esp, 0x28
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41bd90
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41bde4
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41bdbf
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41bde4
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41be06
push 6
call fcn.00438bca
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x41be0e
mov esp, ebp
pop ebp
ret 4
Function at 0x434429
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0xf003f
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x434475
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x434674
mov dword [ebp - 0x10], esp
push 0xf01ff
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4344ae
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x434652
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043a680
add esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0xffffffff
push dword [ebp + 0xc]
push 0xffffffff
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4345c7
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4345da
push ebx
call fcn.00438be2
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4345ea
push ebx
call fcn.00438be2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4345fa
push ebx
call fcn.00438be2
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x43460a
push ebx
call fcn.00438be2
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x43461a
push ebx
call fcn.00438be2
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x43462a
push ebx
call fcn.00438be2
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x434652
push 6
call fcn.00438bca
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x434674
push 6
call fcn.00438bca
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x43467c
mov esp, ebp
pop ebp
ret 8

Function at 0x439580
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret
Function at 0x439820
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
add esp, 0xc
ret

Function at 0x439870
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x4398b1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x4398b1.2
jmp dword [eax*4 + 0x43993c]
mov word [esp + 0x48], di
jmp 0x4398ea
mov word [esp + 0x48], 2
jmp 0x4398ea
mov word [esp + 0x48], 3
jmp 0x4398ea
mov word [esp + 0x48], 4
jmp 0x4398ea
mov word [esp + 0x48], 7
jmp 0x4398ea
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x439934
cmp dword [esp + 0x70], edi
je 0x439920
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x43a750
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43a7b9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00439310
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret