joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f4b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00429c60
test eax, eax
je 0x42f59f
mov ecx, edi
call fcn.00429c60
mov ecx, eax
call fcn.004271e0
test eax, eax
jne 0x42f59f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42f59f
mov eax, dword [0x56f648]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42f512
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00429c60
mov ecx, eax
call fcn.00427410
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42f59f
cmp ebx, eax
jne 0x42f59f
cmp dword [esp + 0x10], eax
jne 0x42f585
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4321e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x471e68
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x432219
inc eax
mov dword [esi + 0x10], eax
jmp 0x43232c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43222d
mov eax, 0xffffffc7
jmp 0x43232e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43223e
cmp dword [esi + 8], eax
jne 0x43222d
cmp dword [esi + 8], eax
jne 0x432257
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x432257
mov eax, 0xffffffc7
jmp 0x43232e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43226b
push eax
mov ecx, ebx
call fcn.00431a10
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004034d0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43229c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004034f0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00431180
test eax, eax
mov dword [esp + 0x38], eax
je 0x4322cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53e718
call fcn.004036d0
mov eax, dword [esp + 0x38]
jmp 0x43232e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00432040
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x432313
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00432060
mov esi, eax
test esi, esi
jne 0x432343
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00432040
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4322e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53e718
call fcn.004036d0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53e718
call fcn.004036d0
mov eax, esi
jmp 0x43232e

Function at 0x435460
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4354c0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4354c0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4354c0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4354c0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x435500
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43a9c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046b206
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043a360
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046b134
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004679fd
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004679fd
push 1
push 0
push 0
mov ecx, esi
call fcn.004679a5
push 1
push 0
push 1
mov ecx, esi
call fcn.004679a5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046b278
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ab40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4724b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046b206
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043a360
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046b134
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ac04
cmp dword [esp + 0x40], 1
jne 0x43ac02
cmp ecx, eax
jge 0x43ac04
mov eax, ecx
cmp eax, 0xc8
jge 0x43ac10
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043a9c0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046b278
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43b380
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472523
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00465e15
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046b4ae
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046c9ca
test eax, eax
je 0x43b49c
mov ecx, dword [esp + 0x3c]
call fcn.0046b4db
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b460
push edi
mov ecx, esi
call fcn.00468b44
mov ecx, esi
call fcn.0043b600
cmp dword [esp + 0x38], 1
jne 0x43b495
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00468c7f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43ded0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43df03
push esi
call fcn.00440fc0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43defc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43df89
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43df72
mov eax, dword [esi + 8]
test eax, eax
je 0x43df27
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43df6e
cmp eax, 2
je 0x43df72
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43df1a
cmp eax, 3
je 0x43df4d
cmp eax, 1
jne 0x43df1a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43df1a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43df1a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043dfb0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43df98
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043dfb0
add esp, 4
pop esi
ret
Function at 0x44f600
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x44f64c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x44f64c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x44f636
push eax
call ebp
test ax, ax
jl 0x44f644
inc esi
add edi, 4
cmp esi, 6
jb 0x44f628
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0044f300
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x466c0b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466c43
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.00464cc2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464c9a
jmp 0x466c4f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x468301
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 0x468343
call fcn.0046df40
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x468343
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46833a
xor eax, eax
jmp 0x46834b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00468351
pop edi
pop esi
pop ebx
ret 4

Function at 0x46e470
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 0x46e49e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e4bc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e3d6
jmp 0x46e4bc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e4bc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046e3d6
test edi, edi
mov eax, edi
jne 0x46e4a6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402530
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41d945
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
lea eax, [esp + 8]
push esi
push eax
push 0x104
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 3
jge 0x40257e
mov esi, dword [esp + 0x128]
push 0x425e50
mov ecx, esi
call fcn.0041777e
jmp 0x4025f0
mov dl, byte [esp + eax + 0xb]
lea ecx, [esp + eax + 0xc]
cmp dl, 0x5c
jne 0x402590
mov byte [ecx], 0
jmp 0x402598
mov byte [ecx], 0x5c
mov byte [esp + eax + 0xd], 0
mov ecx, dword [0x4237c4]
mov dword [esp + 4], ecx
lea edx, [esp + 0xc]
lea eax, [esp + 4]
push edx
push 0x42318c
push eax
mov dword [esp + 0x12c], 1
call fcn.00416f67
mov esi, dword [esp + 0x134]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00417485
lea ecx, [esp + 4]
mov dword [esp + 8], 1
mov byte [esp + 0x120], 0
call fcn.00417710
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x402610
Capabilities:
Access peb ldr_data
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x41d978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 1
call fcn.0041b703
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x41e410
mov byte [esp + 0x38], 3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.004187e7
mov esi, eax
lea eax, [esp + 0x10]
push eax
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0041b7a5
mov esi, eax
test esi, esi
je 0x402685
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call fcn.0041b7ba
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esi + 4]
sub ecx, edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0xc]
call fcn.0041bd34
lea ecx, [esp + 8]
test ecx, ecx
je 0x4026dc
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4026dc
mov edx, dword [esp + 0x24]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x18]
sub ecx, edx
test esi, esi
jne 0x4026f8
xor edx, edx
jmp 0x4026fb
mov edx, dword [esi + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [esp + 0x38]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax - 8]
push ecx
push eax
push 0xa
push 0xa
lea ecx, [esp + 0x30]
call dword [edx + 0x5c]
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 8], esp
push eax
call fcn.00417485
lea ecx, [esp + 0xc]
push ecx
call fcn.00402370
add esp, 8
mov ecx, esi
call fcn.0041b822
lea ecx, [esp + 0x20]
call fcn.0041b822
lea ecx, [esp + 8]
call fcn.0041bd8b
mov dword [esp + 8], vtable.CGdiObject.0
lea ecx, [esp + 8]
mov byte [esp + 0x38], 4
call fcn.0041bd8b
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.0041b838
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0
call fcn.00417710
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call fcn.00417710
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x402e10
Capabilities:
Stop service

Disassembly:
sub esp, 0x98
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x402e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x2c]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.004045fe
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x98
ret
mov ecx, dword [esp + 0xa8]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x402e9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x2c]
push str.OpenService_failed__error_code___d_n
push edx
call fcn.004045fe
add esp, 0xc
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x98
ret
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402ec8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x98
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x2c]
push str.ControlService_failed__error_code___d_n
push ecx
call fcn.004045fe
add esp, 0xc
push esi
call ebx
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x98
ret

Function at 0x402f00
Capabilities:
Start service

Disassembly:
sub esp, 0x7c
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x402f3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.004045fe
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x8c]
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x402f82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.OpenService_failed__error_code___d_n
push edx
call fcn.004045fe
add esp, 0xc
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x402fb5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x7c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.StartService_failed__error_code___d_n
push edx
call fcn.004045fe
lea eax, [esp + 0x18]
push eax
push 0x426478
call fcn.00402e00
add esp, 0x14
push esi
call ebx
push edi
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x7c
ret
Function at 0x403220
Capabilities:
Delete service

Disassembly:
sub esp, 0x7c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x403266
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.004045fe
lea ecx, [esp + 0x10]
push ecx
push 0x426478
call fcn.00402e00
add esp, 0x14
pop edi
add esp, 0x7c
ret
push ebx
mov ebx, dword [esp + 0x88]
push ebp
push esi
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x4032bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x14]
push str.OpenService_failed__error_code___d_n
push edx
call fcn.004045fe
lea eax, [esp + 0x1c]
push eax
push 0x426478
call fcn.00402e00
add esp, 0x14
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x7c
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push ebx
jne 0x4032de
lea ecx, [esp + 0x14]
push str.Failed_to_delete_service__s_n
push ecx
call fcn.004045fe
lea edx, [esp + 0x1c]
push edx
jmp 0x4032f2
lea eax, [esp + 0x14]
push str.Service__s_removed_n
push eax
call fcn.004045fe
lea ecx, [esp + 0x1c]
push ecx
push 0x426478
call fcn.00402e00
add esp, 0x14
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x7c
ret

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

Disassembly:
sub esp, 0x7c
push ebx
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x403353
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.004045fe
lea ecx, [esp + 0x10]
push ecx
push 0x426478
call fcn.00402e00
add esp, 0x14
pop ebx
add esp, 0x7c
ret
mov edx, dword [esp + 0x84]
push ebp
push esi
push edi
push 0
mov esi, dword [esp + 0x98]
push 0
push 0
push 0
push 0
push edx
push 1
push 2
push 0x110
push 0xf01ff
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x4033c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [esp + 0x18]
push str.Failed_to_create_service__s__error_code___d_n
push eax
call fcn.004045fe
lea ecx, [esp + 0x20]
push ecx
push 0x426478
call fcn.00402e00
add esp, 0x18
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
push esi
lea edx, [esp + 0x14]
push str.Service__s_installed_n
push edx
call fcn.004045fe
lea eax, [esp + 0x1c]
push eax
push 0x426478
call fcn.00402e00
add esp, 0x14
push edi
call ebp
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x403400
Capabilities:
Modify service

Disassembly:
sub esp, 0x80
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x403450
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.004045fe
lea ecx, [esp + 0x1c]
push ecx
push 0x426478
call fcn.00402e00
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0x80
ret
mov ebx, dword [esp + 0x90]
push 2
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x4034a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
lea edx, [esp + 0x18]
push str.OpenService_failed__s__error_code___d_n
push edx
call fcn.004045fe
lea eax, [esp + 0x20]
push eax
push 0x426478
call fcn.00402e00
add esp, 0x18
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
add esp, 0x80
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], str.This_is_a_test_description
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x4034d1
lea edx, [esp + 0x10]
push str.ChangeServiceConfig2_failed
push edx
call fcn.004045fe
lea eax, [esp + 0x18]
push eax
jmp 0x4034e5
lea ecx, [esp + 0x10]
push str.Service_description_updated_successfully.
push ecx
call fcn.004045fe
lea edx, [esp + 0x18]
push edx
push 0x426478
call fcn.00402e00
add esp, 0x10
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x80
ret