joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2da1040
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [0x2da3034]
push eax
push 0x2da13d0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x2da3028], eax
cmp dword [0x2da3028], 0
je 0x2da1076
mov ecx, dword [ebp + 8]
mov dword [section..JOE], ecx
mov eax, 1
jmp 0x2da1078
xor eax, eax
pop ebp
ret 4

Function at 0x2da10a0
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [0x2da3034]
push eax
push 0x2da16f0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x2da3020], eax
cmp dword [0x2da3020], 0
je 0x2da10d6
mov ecx, dword [ebp + 8]
mov dword [section..JOE], ecx
mov eax, 1
jmp 0x2da10d8
xor eax, eax
pop ebp
ret 4

Function at 0x2da1140
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0x80008000
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x2da15e0
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x10f
je 0x2da15fd
jmp 0x2da16dd
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
and eax, 0x800
je 0x2da16dd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call sub.IMM32.dll_ImmGetContext
mov dword [ebp - 4], eax
push 0
push 0
push 0x800
mov eax, dword [ebp - 4]
push eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
push ecx
call fcn.02da1000
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
add edx, 2
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0x800
mov ecx, dword [ebp - 4]
push ecx
call sub.IMM32.dll_ImmGetCompositionStringW
mov edx, dword [ebp - 8]
shr edx, 1
mov dword [ebp - 8], edx
xor eax, eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call sub.IMM32.dll_ImmReleaseContext
mov dword [ebp - 0x10], 0
jmp 0x2da1691
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 8]
jge 0x2da16d1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + edx*2]
and ecx, 0xffff
movzx edx, cx
shl edx, 0x10
or edx, 1
mov dword [ebp - 0x14], edx
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x2da3030]
push ecx
mov edx, dword [section..JOE]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x2da1688
mov eax, dword [ebp - 0xc]
push eax
call fcn.02da1020
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4121b0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + 0x41122c], 0xd
inc eax
cmp eax, 0xc00
jl 0x4121b2
xor eax, eax
ret

Function at 0x4132de
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [fcn.00401060]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [fcn.0040102c]
test eax, eax
je 0x41333b
lea eax, [ebp - 0x10]
push esi
push eax
xor esi, esi
push 0x412140
push esi
call dword [fcn.00401004]
test eax, eax
je 0x413331
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [fcn.00401008]
push dword [ebp - 4]
call dword [fcn.004010b0]
pop esi
leave
ret
Function at 0x403370
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x2c
push 1
mov ebx, 0x1bc
call fcn.0042d8d0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4033bc
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x4033cd
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetNativeSystemInfo]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4033f4
push 0x36
push 0x40101bc
push 6
call fcn.0042c74f
add esp, 0xc
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x403419
mov eax, 0x4503f8
push eax
push 3
mov ebx, 0x19c
call fcn.0042d730
add esp, 0x28
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp ecx, 0x80000101
jne 0x40344d
and eax, 0xff
jmp 0x4034a2
cmp ecx, 0x80000201
jne 0x403458
cwde
jmp 0x4034a2
cmp ecx, 0x80000301
je 0x4034a2
cmp ecx, 0x80000401
je 0x4034a2
mov dword [ebp - 0x1c], eax
cmp ecx, 0x80000501
je 0x403492
cmp ecx, 0x80000601
je 0x403497
push 0x69
push 0x40101bc
push 2
call fcn.0042c74f
add esp, 0xc
fld dword [ebp - 0x1c]
jmp 0x40349d
mov dword [ebp - 0x18], edx
fld qword [ebp - 0x1c]
call fcn.00403126
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 6
je 0x4034bd
cmp dword [ebp - 8], 9
je 0x4034bd
xor eax, eax
jmp 0x4034c2
mov eax, 1
jmp 0x4034c7
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4034d8
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x403948
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.0042daf0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40398d
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4039a4
mov eax, 0x45035b
push eax
push 1
mov ebx, 0x130
call fcn.0042da90
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 0x4039ea
push 0x73
push 0x401045c
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x403a18
mov eax, dword [ebp - 4]
test eax, eax
je 0x403a13
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0042c743
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403a22
mov eax, 0x45035b
jmp 0x403a22
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403a33
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x40b52f
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0xf0000000
push 0x18
push 0x45035b
push 0x45035b
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40b587
push 0x24
push 0x40103aa
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b5ec
mov dword [ebp - 0xc], esp
push 0
push 0x18
push 0x45035b
push 0x45035b
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40b5d5
push 0x7d
push 0x40103aa
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b5ec
mov eax, 0x4503f8
jmp 0x40b665
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0040b67d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b611
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40b646
push 0x120
push 0x40103aa
push 6
call fcn.0042c74f
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x40b660
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0042c743
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40b665
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b676
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x40d2e2
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.0042c743
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 0x40d355
push 0x1b
push 0x401006a
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d434
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 0x40d398
push 0x9c
push 0x401006a
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x40d408
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 0x40d3d9
push 0x139
push 0x401006a
push 6
call fcn.0042c74f
add esp, 0xc
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 0x40d408
push 0x164
push 0x401006a
push 6
call fcn.0042c74f
add esp, 0xc
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 0x40d434
push 0x180
push 0x401006a
push 6
call fcn.0042c74f
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x40d43c
push eax
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40d450
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 0x40d4a6
push 0x19
push 0x401006b
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d5b4
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.0042d900
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 0x40d520
push 0xbe
push 0x401006b
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40d588
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 0x40d559
push 0x13d
push 0x401006b
push 6
call fcn.0042c74f
add esp, 0xc
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 0x40d588
push 0x158
push 0x401006b
push 6
call fcn.0042c74f
add esp, 0xc
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 0x40d5b4
push 0x174
push 0x401006b
push 6
call fcn.0042c74f
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x40d5bc
mov esp, ebp
pop ebp
ret 4
Function at 0x410787
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.0042c743
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 closesocket
push 0
push 0
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4107fa
push 0x19
push 0x4010057
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4108ea
mov dword [ebp - 0x14], esp
push closesocket
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 0x41083d
push 0x93
push 0x4010057
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4108be
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 0x410879
push 0x102
push 0x4010057
push 6
call fcn.0042c74f
add esp, 0xc
test eax, eax
je 0x410892
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 0x4108be
push 0x150
push 0x4010057
push 6
call fcn.0042c74f
add esp, 0xc
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 0x4108ea
push 0x16c
push 0x4010057
push 6
call fcn.0042c74f
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x4108f2
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41130e
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 0x411364
push 0x19
push 0x4010069
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41155e
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 0x4113a7
push 0x97
push 0x4010069
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x411532
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0042e880
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0042e880
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0042e880
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0042e880
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0042e880
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 0x4114ad
push 0x1c5
push 0x4010069
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4114c0
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4114d0
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4114e0
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4114f0
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x411500
push ebx
call fcn.0042c749
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 0x411532
push 0x1e3
push 0x4010069
push 6
call fcn.0042c74f
add esp, 0xc
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 0x41155e
push 0x1ff
push 0x4010069
push 6
call fcn.0042c74f
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x411566
mov esp, ebp
pop ebp
ret 8
Function at 0x41156c
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 0x4115c2
push 0x19
push 0x4010066
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4116a3
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 0x411605
push 0x97
push 0x4010066
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x411677
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 0x411648
push 0x10d
push 0x4010066
push 6
call fcn.0042c74f
add esp, 0xc
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 0x411677
push 0x13a
push 0x4010066
push 6
call fcn.0042c74f
add esp, 0xc
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 0x4116a3
push 0x156
push 0x4010066
push 6
call fcn.0042c74f
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x4116ab
mov esp, ebp
pop ebp
ret 4
Function at 0x4116b1
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 0x4116e6
mov eax, 0x10
jmp 0x4116e9
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
test eax, eax
je 0x41170a
mov eax, 3
jmp 0x41170d
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 0x411748
push 0xc7
push 0x4010065
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411893
cmp dword [ebp + 0x1c], 0
je 0x41178a
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push dword [ebp + 0x24]
push 2
mov ebx, 0xc8
call fcn.0042d900
add esp, 0x1c
mov dword [ebp + 0x24], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0042e880
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 0x41180d
push 0x1e0
push 0x4010065
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x411820
push ebx
call fcn.0042c749
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41183b
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004118aa
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 0x411867
push 0x275
push 0x4010065
push 6
call fcn.0042c74f
add esp, 0xc
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 0x411893
push 0x28f
push 0x4010065
push 6
call fcn.0042c74f
add esp, 0xc
cmp dword [ebp - 8], 0
mov eax, 0
setne al
jmp 0x4118a4
mov esp, ebp
pop ebp
ret 0x44
Function at 0x4118aa
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 0x411907
push 0x19
push 0x4010068
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411a22
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 0x41194a
push 0x93
push 0x4010068
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4119f6
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 0x41198f
push 0x109
push 0x4010068
push 6
call fcn.0042c74f
add esp, 0xc
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 0x4119c7
push 0x14d
push 0x4010068
push 6
call fcn.0042c74f
add esp, 0xc
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 0x4119f6
push 0x178
push 0x4010068
push 6
call fcn.0042c74f
add esp, 0xc
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 0x411a22
push 0x194
push 0x4010068
push 6
call fcn.0042c74f
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x411a2a
mov esp, ebp
pop ebp
ret 8