joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10022388
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x1001c58d
cmp byte [edi + 0x49], 0
je 0x1001c58d
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x1001c581
lea esi, [ebp - 0x2c]
call fcn.1001bd00
mov dword [ebp - 4], 0
lea ebx, [edi + 0x4c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
lea ebx, [ebx]
mov ecx, eax
cmp edx, 0x10
jae 0x1001c4fc
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x1001c521
dec eax
je 0x1001c525
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x1001c57c
jmp 0x1001c588
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x1001c535
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x1001c55f
cmp edx, 0x10
jae 0x1001c544
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1001c579
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x1001c585
test esi, esi
jne 0x1001c4f0
push esi
push 8
lea esi, [ebp - 0x2c]
call fcn.1001bdd0
jmp 0x1001c4e4
lea ecx, [ebp - 0x2c]
call fcn.1001a390
xor al, al
jmp 0x1001c58f
lea ecx, [ebp - 0x2c]
call fcn.1001a390
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10021450
mov esp, ebp
pop ebp
ret

Function at 0x1001f430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x1001f440
mov al, byte [edi + ecx + 0x430e1834]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001f45d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xb
jl 0x1001f440
mov byte [esi + 0xb], 0
mov eax, esi
ret

Function at 0x1001f470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0xcd
xor ecx, ecx
jmp 0x1001f480
mov al, byte [edi + ecx - 0x48c4e783]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001f49d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x1001f480
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x1001f4f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x9c
xor ecx, ecx
jmp 0x1001f500
mov al, byte [edi + ecx - 0x43f25fd6]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001f51d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x1001f500
mov byte [esi + 0xc], 0
mov eax, esi
ret
Function at 0x1001fbf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x8a
xor ecx, ecx
jmp 0x1001fc00
mov al, byte [edi + ecx - 0x33cb387a]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001fc1d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x1001fc00
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x1001fee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x6f
xor ecx, ecx
jmp 0x1001fef0
mov al, byte [edi + ecx + 0x57c2b695]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001ff0d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x1001fef0
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x100212d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023238
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x10021332
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.10021090
mov ecx, esi
call fcn.10021140
mov eax, esi
push eax
mov ecx, edi
call fcn.10021220
cmp dword [ebp + 0x1c], 0x10
jb 0x10021362
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10021450
mov esp, ebp
pop ebp
ret

Function at 0x10021450
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002d018]
jne 0x1002145a
repz ret
jmp fcn.10021a29
Function at 0x401cdf
Capabilities:
Encode data using xor

Disassembly:
call fcn.00401c08
xor ecx, ecx
sub ecx, 0xffffff84
call 0x401cdf
rcr byte [esi - 0x7f], 0x76
push cs
add eax, 0x83023472
out dx, al
cld
invalid
xor dword [esi + 0xe], 0x2347205
sub esi, 0xfffffffc
loop 0x401ce2
stc
leave
sahf
aaa
popal
jle 0x401cd4
fisttp word [esi]
push cs
pop ebx
and al, 5
sbb al, 0xa8
jae 0x401cf4
xchg ebp, eax
pop es
ret
Function at 0x4030c3
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.004355a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40310f
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x403120
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetNativeSystemInfo]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40313d
push 6
call fcn.00434227
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x403162
mov eax, 0x4683a1
push eax
push 3
mov ebx, 0x19c
call fcn.00435400
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 0x403196
and eax, 0xff
jmp 0x4031e1
cmp ecx, 0x80000201
jne 0x4031a1
cwde
jmp 0x4031e1
cmp ecx, 0x80000301
je 0x4031e1
cmp ecx, 0x80000401
je 0x4031e1
mov dword [ebp - 0x1c], eax
cmp ecx, 0x80000501
je 0x4031d1
cmp ecx, 0x80000601
je 0x4031d6
push 2
call fcn.00434227
add esp, 4
fld dword [ebp - 0x1c]
jmp 0x4031dc
mov dword [ebp - 0x18], edx
fld qword [ebp - 0x1c]
call fcn.00402e79
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 6
je 0x4031fc
cmp dword [ebp - 8], 9
je 0x4031fc
xor eax, eax
jmp 0x403201
mov eax, 1
jmp 0x403206
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403217
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x4037aa
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 0x468304
push 0x468304
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4037f8
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403853
mov dword [ebp - 0xc], esp
push 0
push 0x18
push 0x468304
push 0x468304
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40383c
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403853
mov eax, 0x4683a1
jmp 0x4038c2
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.004038da
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403878
push ebx
call fcn.0043423f
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 0x4038a3
push 6
call fcn.00434227
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4038bd
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00434233
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4038c2
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4038d3
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x404dc7
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.00435c70
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404e0c
push ebx
call fcn.0043423f
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 0x404e23
mov eax, 0x468304
push eax
push 1
mov ebx, 0x130
call fcn.00435770
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 0x404e5f
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x404e8d
mov eax, dword [ebp - 4]
test eax, eax
je 0x404e88
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00434233
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x404e97
mov eax, 0x468304
jmp 0x404e97
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404ea8
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x405246
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.00434233
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 0x4052af
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405377
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 0x4052e8
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405355
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 0x40531a
push 6
call fcn.00434227
add esp, 4
test eax, eax
je 0x405333
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 0x405355
push 6
call fcn.00434227
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 0x405377
push 6
call fcn.00434227
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x40537f
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4058e7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x405902
call fcn.00405972
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 0x40592e
push 6
call fcn.00434227
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 0x405958
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x40596c
mov esp, ebp
pop ebp
ret 8
Function at 0x405c64
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 0x405cb0
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405e82
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 0x405ce9
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405e60
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
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 0x405de5
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405df8
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405e08
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x405e18
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x405e28
push ebx
call fcn.0043423f
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x405e38
push ebx
call fcn.0043423f
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 0x405e60
push 6
call fcn.00434227
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 0x405e82
push 6
call fcn.00434227
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x405e8a
mov esp, ebp
pop ebp
ret 8
Function at 0x405e90
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 0x405edc
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405f95
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 0x405f15
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405f73
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 0x405f4e
push 6
call fcn.00434227
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 0x405f73
push 6
call fcn.00434227
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 0x405f95
push 6
call fcn.00434227
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x405f9d
mov esp, ebp
pop ebp
ret 4
Function at 0x405fa3
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 0x405fd8
mov eax, 0x10
jmp 0x405fdb
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x24], eax
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
test eax, eax
je 0x405ffc
mov eax, 3
jmp 0x405fff
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 0x406030
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40615d
cmp dword [ebp + 0x1c], 0
je 0x406072
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push dword [ebp + 0x24]
push 2
mov ebx, 0xc8
call fcn.004355d0
add esp, 0x1c
mov dword [ebp + 0x24], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00435cb0
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 0x4060eb
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4060fe
push ebx
call fcn.0043423f
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406119
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00406174
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 0x40613b
push 6
call fcn.00434227
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 0x40615d
push 6
call fcn.00434227
add esp, 4
cmp dword [ebp - 8], 0
mov eax, 0
setne al
jmp 0x40616e
mov esp, ebp
pop ebp
ret 0x44
Function at 0x406174
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 0x4061c7
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4062b0
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 0x406200
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40628e
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 0x40623b
push 6
call fcn.00434227
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 0x406269
push 6
call fcn.00434227
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 0x40628e
push 6
call fcn.00434227
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 0x4062b0
push 6
call fcn.00434227
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x4062b8
mov esp, ebp
pop ebp
ret 8
Function at 0x40b1a6
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.00434233
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 0x40b20f
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b2c6
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 0x40b248
push 6
call fcn.00434227
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x40b2a4
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 0x40b27f
push 6
call fcn.00434227
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 0x40b2a4
push 6
call fcn.00434227
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 0x40b2c6
push 6
call fcn.00434227
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x40b2ce
push eax
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0043423f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4