joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2770
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4f27b9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4f2c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5284d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004f27e0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004f2860
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004f2860
lea ecx, [esi + 0xc]
call fcn.005152be
lea ecx, [esi + 0x10]
call fcn.005152be
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004f3df0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004f3df0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004f3df0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00515333
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00515333
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4f7ef0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4f7f3a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4f7f69
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4f7fab
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x516179
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005205ae
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5161aa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.005161bd
pop edi
pop esi
pop ebx
ret 8

Function at 0x517794
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5177cc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005157da
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005157b2
jmp 0x5177d8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x519080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5190c2
call fcn.005205ae
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5190c2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5190b9
xor eax, eax
jmp 0x5190ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005190d0
pop edi
pop esi
pop ebx
ret 4

Function at 0x520ade
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x520b0c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x520b2a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00520a44
jmp 0x520b2a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x520b2a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00520a44
test edi, edi
mov eax, edi
jne 0x520b14
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4a9bd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x84000]
push edi
or ebp, 0xffffffff
jmp 0x4a9bf2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a9bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a9be8
mov eax, 1
add ebx, ebx
jne 0x4a9c0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a9c1c
jne 0x4a9c2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a9c2c
dec eax
add ebx, ebx
jne 0x4a9c28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a9c00
xor ecx, ecx
sub eax, 3
jb 0x4a9c44
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a9cb6
sar eax, 1
mov ebp, eax
jmp 0x4a9c4f
add ebx, ebx
jne 0x4a9c4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4a9c5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4a9c80
inc ecx
add ebx, ebx
jne 0x4a9c6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a9c61
jne 0x4a9c7d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a9c61
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a9ca0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a9c91
jmp 0x4a9bee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a9ca0
add edi, ecx
jmp 0x4a9bee
pop esi
mov edi, esi
mov ecx, 0x3aa5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a9cbe
cmp byte [edi], 0x28
jne 0x4a9cbe
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4a9cc3
lea edi, [esi + 0xa6000]
mov eax, dword [edi]
or eax, eax
je 0x4a9d32
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xaa034]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xaa110]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a9cf0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xaa114]
or eax, eax
je 0x4a9d2c
mov dword [ebx], eax
add ebx, 4
jmp 0x4a9d0d
call dword [esi + 0xaa118]
popal
jmp 0x46bd58
Function at 0x403121
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.0043b2b0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40316d
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x40317e
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetNativeSystemInfo]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40319b
push 6
call fcn.00439f3a
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 0x4031c0
mov eax, 0x46e39f
push eax
push 3
mov ebx, 0x19c
call fcn.0043b110
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 0x4031f4
and eax, 0xff
jmp 0x40323f
cmp ecx, 0x80000201
jne 0x4031ff
cwde
jmp 0x40323f
cmp ecx, 0x80000301
je 0x40323f
cmp ecx, 0x80000401
je 0x40323f
mov dword [ebp - 0x1c], eax
cmp ecx, 0x80000501
je 0x40322f
cmp ecx, 0x80000601
je 0x403234
push 2
call fcn.00439f3a
add esp, 4
fld dword [ebp - 0x1c]
jmp 0x40323a
mov dword [ebp - 0x18], edx
fld qword [ebp - 0x1c]
call fcn.00402ed7
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 6
je 0x40325a
cmp dword [ebp - 8], 9
je 0x40325a
xor eax, eax
jmp 0x40325f
mov eax, 1
jmp 0x403264
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403275
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x403808
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 0x46e300
push 0x46e300
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x403856
push 6
call fcn.00439f3a
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4038b1
mov dword [ebp - 0xc], esp
push 0
push 0x18
push 0x46e300
push 0x46e300
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40389a
push 6
call fcn.00439f3a
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4038b1
mov eax, 0x46e39f
jmp 0x403920
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00403938
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4038d6
push ebx
call fcn.00439f52
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 0x403901
push 6
call fcn.00439f3a
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x40391b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00439f46
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403920
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403931
push ebx
call fcn.00439f52
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
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.0043b980
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.00439f52
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, 0x46e300
push eax
push 1
mov ebx, 0x130
call fcn.0043b480
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.00439f3a
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.00439f46
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x404ef5
mov eax, 0x46e300
jmp 0x404ef5
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404f06
push ebx
call fcn.00439f52
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.00439f46
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x4053dd
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00439f52
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
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.0043b9c0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043b9c0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043b9c0
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043b9c0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043b9c0
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.00439f3a
add esp, 4
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405e56
push ebx
call fcn.00439f52
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405e66
push ebx
call fcn.00439f52
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x405e76
push ebx
call fcn.00439f52
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x405e86
push ebx
call fcn.00439f52
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x405e96
push ebx
call fcn.00439f52
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
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 0x100
push 0x80000301
push 0
push dword [ebp + 0x24]
push 2
mov ebx, 0xc8
call fcn.0043b2e0
add esp, 0x1c
mov dword [ebp + 0x24], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0043b9c0
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.00439f3a
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40615c
push ebx
call fcn.00439f52
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
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.00439f3a
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x406316
mov esp, ebp
pop ebp
ret 8