joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b830
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b8210
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x62dc50]
xor eax, esp
mov dword [esp + 0x134], eax
push esi
push edi
mov eax, dword [0x62dc50]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 2
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
je 0x41b8f9
push 0x128
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0058c670
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x1c], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x41b8f2
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00588638
add esp, 8
test eax, eax
jne 0x41b8e2
mov eax, dword [esp + 0x1c]
push eax
push 0
push 0x411
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x41b920
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x41b8b2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.00587964
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41b8fb
Function at 0x420140
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7c7e
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor esi, esi
push 5
push esi
push esi
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xb4], 0xffffffff
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0xc0], ebx
cmp ebx, esi
je 0x4201ee
push esi
push esi
lea edx, [ebp - 0xb0]
push edx
lea eax, [ebp - 0xac]
push eax
push esi
push esi
push 3
push 0x30
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
mov edi, dword [ebp - 0xac]
add edi, 0x2c
push edi
call fcn.0047f7f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4201f6
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
jmp 0x42028f
push edi
push 0
push esi
call fcn.0058c670
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0xb0]
push ecx
lea edx, [ebp - 0xac]
push edx
push edi
push esi
push 3
push 0x30
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
test eax, eax
jne 0x42023c
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call fcn.0047f7fb
add esp, 4
or eax, 0xffffffff
jmp 0x42028f
xor ebx, ebx
mov edi, edi
cmp ebx, dword [ebp - 0xb0]
jae 0x420273
mov eax, dword [ebp - 0xbc]
call fcn.004040f0
mov edi, ebx
imul edi, edi, 0x2c
mov ecx, dword [edi + esi]
push eax
push ecx
call fcn.00588638
add esp, 8
test eax, eax
jne 0x4202ad
mov edx, dword [edi + esi + 0x24]
mov dword [ebp - 0xb4], edx
push esi
call fcn.0047f7fb
mov eax, dword [ebp - 0xc0]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00587964
mov esp, ebp
pop ebp
ret 4
inc ebx
jmp 0x420240
Function at 0x420d60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b7c20
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x62dc50]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [0x62dc50]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
push 0x28
mov dword [esp + 0x14], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x420dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
sete al
jmp 0x420e5a
lea ecx, [esp + 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x420dea
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x420e5a
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
push 0x10
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x24]
push ecx
push 0
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x420e4d
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x420e5a
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00587964
mov esp, ebp
pop ebp
ret
Function at 0x422a80
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7aa2
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
push 0xff
lea ecx, [ebp - 0x117]
push ebx
push ecx
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x364], esi
mov dword [ebp - 0x368], ebx
mov byte [ebp - 0x118], bl
call fcn.0058c670
mov edi, 0xf
add esp, 0xc
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
lea edx, [ebp - 0x338]
push edx
mov dword [ebp - 4], ebx
push 0x101
mov byte [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x422b33
push ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0x5ee295
mov ecx, esi
mov byte [esi], bl
call fcn.004049e0
jmp 0x422d6c
push pe_nt_image_headers32
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x422b7e
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0x5ee295
mov ecx, esi
mov byte [esi], bl
call fcn.004049e0
cmp dword [ebp - 0x120], 0x10
jb 0x422d84
mov edx, dword [ebp - 0x134]
push edx
jmp 0x422d7c
cmp byte [ebp + 0xc], bl
jne 0x422bd1
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x118]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x422ba0
sub eax, edx
push eax
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.004049e0
cmp dword [ebp - 0x120], 0x10
jb 0x422d84
mov ecx, dword [ebp - 0x134]
push ecx
jmp 0x422d7c
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp dword [edx + ecx*4], ebx
je 0x422beb
inc ecx
jmp 0x422be0
mov ecx, dword [edx + ecx*4 - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea edi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x422c00
sub ecx, edi
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.004049e0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 4], ebx
jmp 0x422d55
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x134]
mov byte [esi], bl
call fcn.00404560
cmp dword [ebp - 0x120], 0x10
jb 0x422d84
mov eax, dword [ebp - 0x134]
push eax
call fcn.0047f7fb
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00587964
mov esp, ebp
pop ebp
ret 8
Function at 0x423090
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b79ee
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x128
lea eax, [ebp - 0x1b0]
mov edi, ecx
mov ebx, edx
push 0
push eax
mov dword [ebp - 0x1e0], edi
mov dword [ebp - 0x1d8], ebx
mov dword [ebp - 4], 0
call fcn.0058c670
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x1b0], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x1dc], esi
cmp esi, 0xffffffff
je 0x4233ca
lea ecx, [ebp - 0x1b0]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
mov byte [ebp - 4], 1
test eax, eax
je 0x4233b1
lea eax, [ebp - 0x18c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423148
sub eax, edx
push eax
lea edx, [ebp - 0x18c]
push edx
lea ecx, [ebp - 0x30]
call fcn.004049e0
mov eax, dword [edi + 0xc8b4]
push eax
xor ecx, ecx
lea esi, [ebp - 0x4c]
lea edx, [ebp - 0x30]
call fcn.0040a030
mov ebx, dword [eax + 0x10]
lea edx, [edi + 0xc8a4]
mov edi, 0x10
cmp dword [eax + 0x14], edi
jb 0x42318c
mov ecx, dword [eax]
jmp 0x42318e
mov ecx, eax
mov esi, dword [edx + 0x10]
mov eax, esi
cmp eax, esi
jae 0x423197
mov eax, esi
cmp esi, ebx
jb 0x42319f
mov eax, ebx
cmp dword [edx + 0x14], edi
jb 0x4231a6
mov edx, dword [edx]
call fcn.00401440
test eax, eax
jne 0x4231c1
cmp esi, ebx
jae 0x4231b8
or eax, 0xffffffff
jmp 0x4231bf
xor eax, eax
cmp esi, ebx
setne al
test eax, eax
sete bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], edi
jb 0x4231d9
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0047f7fb
add esp, 4
test bl, bl
je 0x42326b
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffffc
push ecx
xor ecx, ecx
lea esi, [ebp - 0x4c]
lea edx, [ebp - 0x30]
call fcn.0040a030
lea edx, [ebp - 0x1a8]
mov edi, eax
push edx
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.004240c0
add esp, 4
mov esi, dword [ebp - 0x1d8]
mov ecx, eax
mov edx, esi
mov byte [ebp - 4], 4
call fcn.00424530
push eax
lea eax, [ebp - 0x1e8]
push eax
push esi
call fcn.004240f0
mov esi, 0x10
cmp dword [ebp - 0x58], esi
jb 0x423244
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.0047f7fb
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
cmp dword [ebp - 0x38], esi
jb 0x42326b
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0047f7fb
add esp, 4
mov ecx, dword [ebp - 0x1dc]
lea eax, [ebp - 0x1b0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov ebx, dword [ebp - 0x1d8]
mov edi, dword [ebp - 0x1e0]
mov esi, dword [ebp - 0x1dc]
jmp 0x423137
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0x10
jb 0x4233ca
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0047f7fb
add esp, 4
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00587964
mov esp, ebp
pop ebp
ret
Function at 0x425d20
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0198
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0xf003f
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ecx, eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x425ed8
cmp dword [edi + 0xd8], 0x10
lea esi, [edi + 0xc4]
jb 0x425d86
mov eax, dword [esi]
jmp 0x425d88
mov eax, esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
mov dword [ebp - 0x50], ebx
test ebx, ebx
je 0x425ec4
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x425dbb
cmp dword [ebp - 0x48], 4
je 0x425ea1
push 6
push 0x5f0108
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.004049e0
lea eax, [edi + 0xa8]
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x425dee
mov eax, dword [eax]
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x425df3
sub ecx, ebx
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040a410
mov ecx, dword [edi + 0x6c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xe8]
push 0x3e8
lea eax, [ebp - 0x30]
push eax
call edx
cmp dword [esi + 0x14], 0x10
jb 0x425e23
mov esi, dword [esi]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x58], esp
mov byte [ecx], 0
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x425e41
sub eax, ebx
push eax
push esi
call fcn.004049e0
mov ecx, dword [edi + 0x6c]
push 0x1aa
call fcn.00416c40
mov ebx, dword [ebp - 0x50]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 4
call fcn.00425f00
lea ecx, [edi + 0x19c]
call fcn.00439020
mov ecx, edi
mov dword [edi + 0x68], 0
call fcn.00424ad0
cmp dword [ebp - 0x1c], 0x10
jb 0x425e9e
mov eax, dword [ebp - 0x30]
push eax
call fcn.0047f7fb
add esp, 4
mov ebx, dword [ebp - 0x50]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x425ece
mov dword [edi + 0x23c], 1
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00587964
mov esp, ebp
pop ebp
ret
Function at 0x425f00
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7790
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x425f5e
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x28], ecx
je 0x425f7d
push 0x3e8
call edi
add esi, 0x3e8
cmp esi, 0x2710
jb 0x425f32
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00587964
mov esp, ebp
pop ebp
ret 4
mov al, 1
jmp 0x425f60
Function at 0x425f90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0168
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x58], esi
call fcn.00424ad0
cmp eax, 4
jne 0x426155
lea edi, [esi + 0xc4]
mov dword [esi + 0x68], 3
cmp dword [edi + 0x14], 0x10
jb 0x425fe6
mov edi, dword [edi]
sub esp, 0x1c
mov ecx, esp
mov eax, edi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x50], esp
mov byte [ecx], 0
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x426004
sub eax, ebx
push eax
push edi
call fcn.004049e0
mov ecx, dword [esi + 0x6c]
push 0x1ab
call fcn.00416c40
mov eax, dword [ebp + 8]
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00425100
cmp dword [esi + 0x1b0], edi
jne 0x426152
lea ecx, [esi + 0x1b8]
push 0xffffffffffffffff
mov dword [ebp - 0x54], ecx
call fcn.0043d050
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x238], edi
je 0x426140
push 5
push 0x5f0130
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x30], 0
call fcn.004049e0
lea ebx, [esi + 0xa8]
mov byte [ebp - 4], 2
cmp dword [ebx + 0x14], 0x10
jb 0x426091
mov eax, dword [ebx]
jmp 0x426093
mov eax, ebx
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x426098
sub ecx, edi
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040a410
mov ecx, dword [esi + 0x6c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xe8]
push 0x3e8
lea eax, [ebp - 0x30]
push eax
call edx
mov eax, dword [esi + 0x238]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x4c]
push str.Stopping
push edx
call fcn.0040a890
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x6c]
mov edx, dword [ecx]
push 0x3e8
push eax
mov eax, dword [edx + 0xe8]
call eax
mov edi, 0x10
cmp dword [ebp - 0x38], edi
jb 0x42611a
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0047f7fb
add esp, 4
lea ecx, [esi + 0x188]
mov dword [esi + 0x238], 0
call fcn.00439020
cmp dword [ebp - 0x1c], edi
jb 0x426140
mov edx, dword [ebp - 0x30]
push edx
call fcn.0047f7fb
add esp, 4
xor edi, edi
cmp dword [ebp - 0x50], edi
je 0x426152
lea ecx, [esi + 0x1b8]
call fcn.0043d4a0
mov dword [esi + 0x68], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00587964
mov esp, ebp
pop ebp
ret 4
Function at 0x426190
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0128
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0xf003f
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ecx, eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x42632f
cmp dword [edi + 0xd8], 0x10
lea esi, [edi + 0xc4]
jb 0x4261f6
mov eax, dword [esi]
jmp 0x4261f8
mov eax, esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
mov dword [ebp - 0x50], ebx
test ebx, ebx
je 0x426325
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42622b
cmp dword [ebp - 0x48], 1
je 0x42631e
push 5
push 0x5f0130
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.004049e0
lea eax, [edi + 0xa8]
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x42625e
mov eax, dword [eax]
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x426263
sub ecx, ebx
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040a410
mov ecx, dword [edi + 0x6c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xe8]
push 0x3e8
lea eax, [ebp - 0x30]
push eax
call edx
cmp dword [esi + 0x14], 0x10
jb 0x426293
mov esi, dword [esi]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x58], esp
mov byte [ecx], 0
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4262b1
sub eax, ebx
push eax
push esi
call fcn.004049e0
mov ecx, dword [edi + 0x6c]
push 0x1ab
call fcn.00416c40
mov ebx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 1
call fcn.00425f00
lea ecx, [edi + 0x19c]
call fcn.00439020
lea ecx, [edi + 0x188]
call fcn.00439020
mov ecx, edi
mov dword [edi + 0x68], 0
call fcn.00424ad0
cmp dword [ebp - 0x1c], 0x10
jb 0x42631b
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0047f7fb
add esp, 4
mov ebx, dword [ebp - 0x50]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00587964
mov esp, ebp
pop ebp
ret
Function at 0x4277a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4277a9
xor ecx, ecx
jne 0x4277a9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4277ee
mov eax, dword [ebp - 0xc]
jmp 0x427844
cmp dword [ebp - 4], 1
je 0x427801
cmp dword [ebp - 4], 2
je 0x427801
mov eax, 0xd
jmp 0x427844
cmp dword [ebp + 0xc], 0
je 0x42783a
cmp dword [ebp - 8], 0
je 0x427834
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 1
div ecx
test edx, edx
jne 0x42782b
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
movsx eax, byte [edx - 1]
test eax, eax
je 0x427832
mov eax, 0xd
jmp 0x427844
jmp 0x42783a
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4281d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
push 0x5f6a44
lea eax, [ebp + 8]
call fcn.004040f0
push eax
call fcn.00589e5a
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42822f
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x24]
call fcn.00404100
push eax
push 1
mov eax, dword [ebp + 0x24]
call fcn.004040f0
push eax
call fcn.00589ffd
add esp, 0x10
mov ecx, dword [ebp - 8]
push ecx
call fcn.0058a11a
add esp, 4
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
lea ecx, [ebp + 8]
call fcn.004040b0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x428aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
call fcn.004040f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x428ad6
mov eax, 0x10
test eax, eax
je 0x428ad6
cmp dword [ebp - 4], 0
je 0x428ad6
mov dword [ebp - 8], 1
jmp 0x428add
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x428b10
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 0x14], 0
movsx ecx, byte [ebp + 8]
test ecx, ecx
jle 0x428b54
movsx edx, byte [ebp + 8]
add edx, 0x40
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0x5c
mov byte [ebp - 9], 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x428b8d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587964
mov esp, ebp
pop ebp
ret