joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
lea esp, [esp - 0x48]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov edx, dword [eax + 0x3c]
mov ecx, dword [esp + 0x3c]
lea eax, [edx + ecx]
mov eax, dword [eax + 0x78]
mov edx, dword [esp + 0x3c]
lea esi, [eax + edx]
mov edi, esp
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x34], 0
call fcn.00409cc0
mov dword [esp + 0x28], eax
call fcn.00409cf0
mov ebp, eax
mov eax, dword [esp + 0x18]
sub eax, 1
mov edi, eax
mov esi, 0
cmp edi, esi
jb 0x40a10a
sub esi, 1
nop
add esi, 1
mov eax, esi
shl eax, 2
add eax, dword [esp + 0x30]
mov eax, dword [eax]
add eax, dword [esp + 0x3c]
mov ebx, eax
mov edx, ebx
mov eax, ebp
call fcn.00409f50
test al, al
je 0x40a0cc
mov eax, esi
shl eax, 1
add eax, dword [esp + 0x2c]
movzx eax, word [eax]
shl eax, 2
add eax, dword [esp + 0x38]
mov eax, dword [eax]
mov edx, dword [esp + 0x40]
mov dword [edx], eax
mov al, byte [esp + 0x34]
test al, al
jne 0x40a10a
mov byte [esp + 0x34], 1
mov edx, ebx
mov eax, dword [esp + 0x28]
call fcn.00409f50
test al, al
je 0x40a102
mov eax, esi
shl eax, 1
add eax, dword [esp + 0x2c]
movzx eax, word [eax]
shl eax, 2
add eax, dword [esp + 0x38]
mov eax, dword [eax]
mov edx, dword [esp + 0x44]
mov dword [edx], eax
mov al, byte [esp + 0x34]
test al, al
jne 0x40a10a
mov byte [esp + 0x34], 1
cmp edi, esi
ja 0x40a084
lea esp, [esp + 0x48]
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40a540
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x7c]
push ebx
push esi
push edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x40
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
mov edx, dword [eax + 0x30]
mov eax, dword [ecx + 0x3c]
lea eax, [edx + eax]
movzx edx, word [eax + 6]
add eax, 0xf8
mov dword [ebp - 0x74], eax
lea eax, [edx - 1]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jb 0x40a6c5
sub dword [ebp - 0x6c], 1
lea esi, [esi]
add dword [ebp - 0x6c], 1
imul eax, dword [ebp - 0x6c], 0x28
mov edx, dword [ebp - 0x74]
lea esi, [eax + edx]
lea edi, [ebp - 0x4c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x7c]
or edx, eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
test dword [ebp - 0x50], 0xffffffff
je 0x40a6b9
mov ebx, dword [ebp - 0x28]
mov eax, ebx
and eax, 0x2000000
je 0x40a61c
push 0x4000
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 8]
jmp 0x40a6b9
mov eax, ebx
and eax, 0x20000000
je 0x40a62e
mov dword [ebp - 0x68], 1
jmp 0x40a635
mov dword [ebp - 0x68], 0
mov eax, ebx
and eax, 0x40000000
je 0x40a647
mov dword [ebp - 0x64], 1
jmp 0x40a64e
mov dword [ebp - 0x64], 0
mov eax, ebx
and eax, 0x80000000
je 0x40a660
mov dword [ebp - 0x60], 1
jmp 0x40a667
mov dword [ebp - 0x60], 0
mov eax, ebx
and eax, 0x4000000
je 0x40a679
mov dword [ebp - 0x5c], 1
jmp 0x40a680
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x68]
shl eax, 4
lea eax, [ebp + eax - 0x24]
mov edx, dword [ebp - 0x64]
lea ecx, [eax + edx*8]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x5c], 1
jne 0x40a6a6
or dword [ebp - 0x54], 0x200
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 4]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
ja 0x40a5c4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x5c]
push ebx
push esi
push edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov eax, 1
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x10]
call fcn.00404a80
call fcn.00405cd0
push eax
test eax, eax
jne 0x40e9a2
mov edx, dword [ebp - 0x54]
mov eax, dword [edx]
call fcn.0040c850
mov edx, dword [eax]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
call fcn.0040c9b0
mov edx, dword [ebp - 0x54]
add eax, dword [edx]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
call fcn.0040ca40
lea ebx, [eax + 8]
push 0
lea edx, [ebp - 0x40]
call fcn.0040b200
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.0040b200
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov eax, str.KERNEL32.dll
mov dword [ebp - 0x34], eax
mov eax, str.VirtualAlloc
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x3c]
lea eax, [ebp - 4]
mov ecx, 3
call fcn.00403280
mov eax, dword [ebp - 0x54]
call fcn.0040e490
mov edx, eax
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
call fcn.0040c9b0
sub eax, 0x21
mov dword [ebp - 0x50], eax
lea edx, [eax - 0x1f4]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x50]
call fcn.0040ac50
lea eax, [ebp - 0x48]
call fcn.004027d0
mov dword [ebp - 0x58], 0
sub dword [ebp - 0x58], 1
mov esi, esi
add dword [ebp - 0x58], 1
mov eax, dword [ebp - 0x54]
call fcn.00402810
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0x54]
mov ebx, dword [eax]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
lea esi, [edx + eax]
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
lea edx, [edi + eax]
mov al, byte [ebx + esi - 1]
mov dl, byte [ebx + edx - 1]
xor dl, al
mov eax, dword [ebp - 0x5c]
mov byte [eax + ecx - 1], dl
cmp dword [ebp - 0x58], 0x21
jb 0x40e95c
call fcn.00404d00
lea eax, [ebp - 0x48]
call fcn.004027d0
lea eax, [ebp - 0x44]
call fcn.004027d0
lea eax, [ebp - 0x40]
call fcn.004027d0
lea eax, [ebp - 4]
call fcn.004027d0
pop eax
test eax, eax
je 0x40e9d1
call fcn.00404dc0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40eb00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
call sub.kernel32.dll_GetConsoleWindow
push eax
call sub.user32.dll_ShowWindow
leave
ret
Function at 0x401fb4
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.00427600
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402000
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x402011
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetNativeSystemInfo]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402038
push 0x36
push 0x40101bc
push 6
call fcn.004268b5
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 0x40205d
mov eax, 0x45134f
push eax
push 3
mov ebx, 0x19c
call fcn.00427730
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 0x402091
and eax, 0xff
jmp 0x4020e6
cmp ecx, 0x80000201
jne 0x40209c
cwde
jmp 0x4020e6
cmp ecx, 0x80000301
je 0x4020e6
cmp ecx, 0x80000401
je 0x4020e6
mov dword [ebp - 0x1c], eax
cmp ecx, 0x80000501
je 0x4020d6
cmp ecx, 0x80000601
je 0x4020db
push 0x69
push 0x40101bc
push 2
call fcn.004268b5
add esp, 0xc
fld dword [ebp - 0x1c]
jmp 0x4020e1
mov dword [ebp - 0x18], edx
fld qword [ebp - 0x1c]
call fcn.00401f8d
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 6
je 0x402101
cmp dword [ebp - 8], 9
je 0x402101
xor eax, eax
jmp 0x402106
mov eax, 1
jmp 0x40210b
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40211c
push ebx
call fcn.004268af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x402d5d
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.00427ac0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402da2
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402db9
mov eax, 0x45131a
push eax
push 1
mov ebx, 0x130
call fcn.00427a60
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 0x402dff
push 0x73
push 0x401045c
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402e2d
mov eax, dword [ebp - 4]
test eax, eax
je 0x402e28
push eax
mov ebx, eax
call fcn.0040109d
inc eax
push eax
call fcn.004268a9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402e37
mov eax, 0x45131a
jmp 0x402e37
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402e48
push ebx
call fcn.004268af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x4078dc
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 0x45131a
push 0x45131a
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x407934
push 0x24
push 0x40103aa
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x407999
mov dword [ebp - 0xc], esp
push 0
push 0x18
push 0x45131a
push 0x45131a
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x407982
push 0x7d
push 0x40103aa
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x407999
mov eax, 0x45134f
jmp 0x407a12
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00407a2a
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4079be
push ebx
call fcn.004268af
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 0x4079f3
push 0x120
push 0x40103aa
push 6
call fcn.004268b5
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x407a0d
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004268a9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x407a12
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407a23
push ebx
call fcn.004268af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41065e
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.004268a9
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 0x4106d1
push 0x19
push 0x4010057
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4107c1
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 0x410714
push 0x93
push 0x4010057
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410795
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 0x410750
push 0x102
push 0x4010057
push 6
call fcn.004268b5
add esp, 0xc
test eax, eax
je 0x410769
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 0x410795
push 0x150
push 0x4010057
push 6
call fcn.004268b5
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 0x4107c1
push 0x16c
push 0x4010057
push 6
call fcn.004268b5
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x4107c9
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004268af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41359a
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 0x4135f0
push 0x19
push 0x401006b
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4136fe
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.004278d0
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 0x41366a
push 0xbe
push 0x401006b
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4136d2
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 0x4136a3
push 0x13d
push 0x401006b
push 6
call fcn.004268b5
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 0x4136d2
push 0x158
push 0x401006b
push 6
call fcn.004268b5
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 0x4136fe
push 0x174
push 0x401006b
push 6
call fcn.004268b5
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x413706
mov esp, ebp
pop ebp
ret 4
Function at 0x4139f5
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 0x413a4b
push 0x19
push 0x4010069
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413c45
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 0x413a8e
push 0x97
push 0x4010069
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x413c19
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00428a30
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00428a30
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00428a30
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00428a30
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00428a30
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 0x413b94
push 0x1c5
push 0x4010069
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x413ba7
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x413bb7
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x413bc7
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x413bd7
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x413be7
push ebx
call fcn.004268af
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 0x413c19
push 0x1e3
push 0x4010069
push 6
call fcn.004268b5
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 0x413c45
push 0x1ff
push 0x4010069
push 6
call fcn.004268b5
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x413c4d
mov esp, ebp
pop ebp
ret 8
Function at 0x413c53
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 0x413ca9
push 0x19
push 0x4010066
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413d8a
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 0x413cec
push 0x97
push 0x4010066
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x413d5e
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 0x413d2f
push 0x10d
push 0x4010066
push 6
call fcn.004268b5
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 0x413d5e
push 0x13a
push 0x4010066
push 6
call fcn.004268b5
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 0x413d8a
push 0x156
push 0x4010066
push 6
call fcn.004268b5
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x413d92
mov esp, ebp
pop ebp
ret 4
Function at 0x413d98
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 0x413dcd
mov eax, 0x10
jmp 0x413dd0
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
test eax, eax
je 0x413df1
mov eax, 3
jmp 0x413df4
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 0x413e2f
push 0xc7
push 0x4010065
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413f7a
cmp dword [ebp + 0x1c], 0
je 0x413e71
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push dword [ebp + 0x24]
push 2
mov ebx, 0xc8
call fcn.004278d0
add esp, 0x1c
mov dword [ebp + 0x24], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00428a30
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 0x413ef4
push 0x1e0
push 0x4010065
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x413f07
push ebx
call fcn.004268af
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x413f22
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00413f91
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 0x413f4e
push 0x275
push 0x4010065
push 6
call fcn.004268b5
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 0x413f7a
push 0x28f
push 0x4010065
push 6
call fcn.004268b5
add esp, 0xc
cmp dword [ebp - 8], 0
mov eax, 0
setne al
jmp 0x413f8b
mov esp, ebp
pop ebp
ret 0x44
Function at 0x413f91
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 0x413fee
push 0x19
push 0x4010068
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414109
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 0x414031
push 0x93
push 0x4010068
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4140dd
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 0x414076
push 0x109
push 0x4010068
push 6
call fcn.004268b5
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 0x4140ae
push 0x14d
push 0x4010068
push 6
call fcn.004268b5
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 0x4140dd
push 0x178
push 0x4010068
push 6
call fcn.004268b5
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 0x414109
push 0x194
push 0x4010068
push 6
call fcn.004268b5
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x414111
mov esp, ebp
pop ebp
ret 8