joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454e30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x475908]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax]
and edx, 0xff
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
add edx, dword [ecx + eax]
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], edx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
imul ecx, dword [eax + edx], 0x8088405
add ecx, 1
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 1
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
shl ecx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
shr ecx, 8
xor ecx, dword [edx*4 + 0x475908]
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
pop ebp
ret
Function at 0x401030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401045
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401084
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401080
lea ebx, [ebx]
cmp esi, edx
jae 0x401084
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401070
cmp esi, edx
jb 0x401089
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x401fb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x401ff9
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push 0
push esi
call fcn.0040b43b
test eax, eax
jne 0x401fec
push 0x4392dc
call fcn.0041ab46
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop esi
pop ebp
jmp fcn.00401d70
push 0x439308
call fcn.0041ab46
add esp, 4
mov eax, 1
pop esi
pop ebp
ret

Function at 0x4030b0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x445230]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0xfe
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14d]
push 0
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x154], 0
call fcn.0041deb0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14c]
push eax
mov dword [esp + 0x20], 0xff
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00402fc0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40320c
test esi, esi
je 0x40320c
push 0x128
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0041deb0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x28], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x403194
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push 0x4394a4
push 0xf4
push 0x4394c4
jmp 0x403225
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea ecx, [ecx]
lea eax, [esp + 0x44]
push 0x4394d8
push eax
call fcn.0041b00a
add esp, 8
test eax, eax
jne 0x4031cf
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4031f1
cmp edi, dword [esp + 0x10]
je 0x4031e3
lea eax, [esp + 0x20]
push eax
push esi
call ebx
cmp eax, 1
je 0x4031a0
mov edi, 0x490
jmp 0x40322d
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
xor edi, edi
jmp 0x40322d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push 0x4394e8
push 0xff
push 0x439510
jmp 0x403225
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push edi
push 0x439464
push 0xea
push 0x439490
call fcn.004064b0
add esp, 0x14
cmp esi, 0xffffffff
je 0x40323d
test esi, esi
je 0x40323d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 8
Function at 0x404560
Capabilities:
Receive http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x445230]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push 0x9d8
mov esi, ecx
push 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0x9d8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x4045d7
push 8
push str.not_enough_memory__d_
push 0x48d
push 0x43a338
call fcn.004064b0
add esp, 0x10
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret
push 0x9d8
xorps xmm0, xmm0
push 0
push edi
movlpd qword [esp + 0x1c], xmm0
call fcn.0041deb0
add esp, 0xc
lea eax, [esp + 0x20]
push 0
push eax
push 0x9d8
push edi
push 0
push 0
push 0
push dword [esi + 0x54]
call dword [sym.imp.HTTPAPI.dll_HttpReceiveHttpRequest]
mov ecx, dword [esp + 0x18]
mov esi, eax
cmp dword [ecx + 0x58], 1
je 0x404714
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
test esi, esi
jne 0x40463b
push dword [esp + 0xc]
mov ecx, dword [ecx + 0x54]
mov edx, edi
call fcn.00404ff0
add esp, 4
jmp 0x4046b8
cmp esi, 0xea
jne 0x4046a8
mov esi, dword [edi + 0x14]
mov ebx, dword [edi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
mov dword [esp + 0x24], esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x20]
push eax
push 0
mov dword [esp + 0x14], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x4046cd
lea esi, [eax + 8]
push esi
push str.not_enough_memory_error__d_
push 0x4c1
push 0x43a3b4
call fcn.004064b0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret
cmp esi, 0x4cd
jne 0x40471d
test ebx, ebx
jne 0x4046b8
test eax, eax
je 0x40471d
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
push dword [esp + 0xc]
push 0
push edi
call fcn.0041deb0
add esp, 0xc
lea eax, [esp + 0x20]
push 0
push eax
push dword [esp + 0x14]
push edi
push 0
push esi
mov esi, dword [esp + 0x30]
push ebx
push dword [esi + 0x54]
call dword [sym.imp.HTTPAPI.dll_HttpReceiveHttpRequest]
mov ecx, dword [esp + 0x18]
mov esi, eax
cmp dword [ecx + 0x58], 1
je 0x40470e
mov eax, dword [esp + 0x1c]
jmp 0x404624
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ecx + 0x58], 0
jmp 0x404723
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret
Function at 0x405ef0
Capabilities:
Receive http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004068f0
push 0x400
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xc], 0
call fcn.00404ad0
mov edi, eax
test edi, edi
jne 0x406038
mov ebx, dword [ebp - 0x30]
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
push ebx
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.HTTPAPI.dll_HttpReceiveRequestEntityBody]
mov edi, eax
test edi, edi
jne 0x40601b
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x405fec
cmp dword [esi + 4], 0
jne 0x405fa0
push edi
mov ecx, esi
call fcn.00404ad0
test eax, eax
jne 0x405fec
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
add eax, edi
cmp eax, ecx
jbe 0x405fd8
lea eax, [ecx + 0x5000]
push eax
push dword [esi + 4]
mov dword [esi + 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
jne 0x405fd5
add dword [esi + 0xc], 0xfffffc00
jmp 0x405fec
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
push edi
push ebx
push eax
call fcn.004231d0
add esp, 0xc
add dword [esi + 8], edi
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
push ebx
push 0
push dword [eax + 0x14]
mov dword [ebp - 0xc], 0
push dword [eax + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.HTTPAPI.dll_HttpReceiveRequestEntityBody]
mov edi, eax
test edi, edi
je 0x405f87
cmp edi, 0x26
jne 0x406034
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406030
push eax
push ebx
mov ecx, esi
call fcn.00404b60
xor edi, edi
jmp 0x406051
test edi, edi
je 0x406051
push edi
push edi
push str.readReqPostdata_error__d__0x_X_
push 0x2f1
push 0x43b53c
call fcn.004064b0
add esp, 0x14
lea ecx, [ebp - 0x34]
call fcn.004069b0
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406070
Capabilities:
Send http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
push 0x120
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x164]
push 0
push eax
mov dword [ebp - 0x24], 0
call fcn.0041deb0
mov ax, word [ebp + 0x10]
add esp, 0xc
mov word [ebp - 0x15c], ax
mov dword [ebp - 0x158], esi
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4060d0
sub esi, ecx
mov word [ebp - 0x15a], si
mov eax, 1
test edi, edi
je 0x406189
push dword [edi + 8]
mov word [ebp - 0x154], ax
lea eax, [ebp - 0x20]
push 0x43b56c
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x14]
push 0xb
push eax
mov dword [ebp - 0x1c], 0x43b54c
mov dword [ebp - 0x20], 0x1001b
mov dword [ebp - 0x18], 0x43b568
call fcn.0041b24c
lea eax, [ebp - 0x14]
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0xe8], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406136
mov eax, 0x10
mov word [ebp - 0xe4], ax
mov eax, 8
mov word [ebp - 0x144], ax
mov eax, 0x23
sub ecx, edx
mov word [ebp - 0x7c], ax
mov word [ebp - 0xec], cx
mov dword [ebp - 0xe0], 0x43b570
mov dword [ebp - 0x140], 0x43b584
mov dword [ebp - 0x78], 0x43b590
mov eax, 2
jmp 0x40619a
mov dword [ebp - 0xe8], 0x43b5b4
mov word [ebp - 0xec], ax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0
lea ecx, [ebp - 0x164]
push ecx
push eax
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebp - 0x168]
call dword [sym.imp.HTTPAPI.dll_HttpSendHttpResponse]
mov esi, eax
test esi, esi
jne 0x4061ff
test edi, edi
je 0x406218
push esi
push esi
push esi
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 4]
push esi
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 8]
push esi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x44]
push eax
push 1
push esi
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebp - 0x168]
call dword [sym.imp.HTTPAPI.dll_HttpSendResponseEntityBody]
mov esi, eax
test esi, esi
je 0x406218
push esi
push esi
push 0x43b5b8
push 0x363
push 0x43b5e0
call fcn.004064b0
add esp, 0x14
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 0x14
Function at 0x406600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431eeb
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x104
call fcn.0041deb0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push str.path
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4066ce
mov eax, dword [ebp - 0x118]
dec eax
push eax
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00406230
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00402110
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x11c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4066cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.0041a1d7
mov esp, ebp
pop ebp
ret 8

Function at 0x4066f0
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x40674f
push 0x104
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0041deb0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x406749
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x108]
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406755
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push 0x43ba50
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 4
Function at 0x406ff0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
mov edi, dword [ebp + 8]
je 0x407027
mov eax, 0xb7
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 4
push 0x104
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0041deb0
add esp, 0xc
lea eax, [ebp - 0x120]
push edi
push str..pipe_s
push 0x104
push eax
call fcn.0041db7f
add esp, 0x10
lea eax, [ebp - 0x18]
push 1
push eax
mov dword [ebp - 0x12c], 0xc
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x128], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x12c]
push eax
push 0
push 0x400
push 0x400
push 1
push 0
push 3
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x4070ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push esi
push str.CreateNamedPipe_error__d__0x_X_
push 0x52
push 0x43bdec
call fcn.004064b0
add esp, 0x14
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 4

Function at 0x407250
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
call fcn.0041deb0
add esp, 0xc
lea eax, [ebp - 0x10f]
push 0x103
push eax
push 0
mov byte [ebp - 0x110], 0x22
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [ebp - 0x110]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4072a0
mov ax, word [0x43c1a4]
push 2
push 0
push 0
mov word [edi], ax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4072cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x407313
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x43c23c
push 0x43c230
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x40730a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x407313
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x40731e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret
Function at 0x407520
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov edi, 0x1e
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x28], ebx
call fcn.00407480
mov esi, eax
test esi, esi
jne 0x4075f4
cmp dword [ebp - 0x20], 4
je 0x4075f2
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40758b
lea esi, [edi - 0x18]
jmp 0x4075f4
push 0x14
push 0x43c39c
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4075b7
call esi
mov esi, eax
test esi, esi
jne 0x4075f4
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4075cc
call esi
mov esi, eax
jmp 0x4075f4
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
call fcn.00407480
cmp dword [ebp - 0x20], 4
je 0x4075f2
push 0x3e8
call esi
dec edi
jne 0x4075d2
mov esi, 0x102
jmp 0x4075f4
xor esi, esi
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x407604
push eax
call edi
test ebx, ebx
je 0x40760b
push ebx
call edi
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 4
Function at 0x407620
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xorps xmm0, xmm0
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
mov edi, 0x1e
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x24], ebx
call fcn.00407480
mov esi, eax
test esi, esi
jne 0x4076ee
cmp dword [ebp - 0x1c], 1
je 0x4076ec
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x407687
lea esi, [edi - 0x18]
jmp 0x4076ee
push 0xf01ff
push 0x43c3d0
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4076b6
call esi
mov esi, eax
test esi, esi
jne 0x4076ee
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4076cd
call esi
mov esi, eax
jmp 0x4076ee
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
call fcn.00407480
cmp dword [ebp - 0x1c], 1
je 0x4076ec
push 0x3e8
call esi
dec edi
jne 0x4076d3
xor esi, esi
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4076fe
push eax
call edi
test ebx, ebx
je 0x407705
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 8
Function at 0x407720
Capabilities:
Pause service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x445230]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov edi, 0x1e
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x28], ebx
call fcn.00407480
mov esi, eax
test esi, esi
jne 0x4077ee
cmp dword [ebp - 0x20], 7
je 0x4077ec
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x407787
lea esi, [edi - 0x18]
jmp 0x4077ee
push 0xf01ff
push 0x43c438
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4077b6
call esi
mov esi, eax
test esi, esi
jne 0x4077ee
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x24]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4077cd
call esi
mov esi, eax
jmp 0x4077ee
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
call fcn.00407480
cmp dword [ebp - 0x20], 7
je 0x4077ec
push 0x3e8
call esi
dec edi
jne 0x4077d3
xor esi, esi
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4077fe
push eax
call edi
test ebx, ebx
je 0x407805
push ebx
call edi
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a1d7
mov esp, ebp
pop ebp
ret 4