joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49273a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x49276c
push dword [ebp + 8]
call edi
push eax
call fcn.004af707
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x492797
test byte [ebp - 4], 1
je 0x492797
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x492797
push dword [ebp + 8]
call edi
push eax
call fcn.004af707
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x492851
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0049269c
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4927cd
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0049269c
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x4927e3
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0049269c
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x492810
push dword [ebp + 8]
call edi
push eax
call fcn.004af707
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x49283c
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004af707
push ebx
call esi
test eax, eax
jne 0x49284e
push dword [ebp + 8]
call edi
push eax
call fcn.004af707
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x492879
test byte [ebp - 4], 1
jne 0x492879
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x492879
push dword [ebp + 8]
call edi
push eax
call fcn.004af707
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x499786
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4997cd
call fcn.004a5187
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4997cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4997e9
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004992fe
mov esi, eax
test edi, edi
je 0x4997e7
test ebx, ebx
je 0x4997e7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x49eac3
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51b727
call fcn.004dc2bd
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x49eae8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x49eb2e
lea ecx, [ebp - 0x10]
call fcn.0044c620
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00491133
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0044b960
mov eax, esi
call fcn.004dc395
ret 8

Function at 0x4a34c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4a34ed
cmp dword [edi + 0x54], 0
jne 0x4a34ed
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004a5187
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004a348a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4abeae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4abef6
call fcn.004a5187
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4abef6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4abf39
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4abf22
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4abf22
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4abf36
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4b2068
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x51cb11
call fcn.004dc2bd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0044d470
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4b20ca
call fcn.004a458a
cmp eax, 1
jne 0x4b20ca
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00468b70
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0044cdc0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0044b960
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0044b960
mov eax, esi
call fcn.004dc395
ret 0x10

Function at 0x4b20f3
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x51cb3c
call fcn.004dc2bd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0044d470
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4b2155
call fcn.004a458a
cmp eax, 1
jne 0x4b2155
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00468b70
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0044cdc0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0044b960
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0044b960
mov eax, esi
call fcn.004dc395
ret 0x14

Function at 0x4b2181
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x51cb67
call fcn.004dc2bd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0044d470
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4b21e3
call fcn.004a458a
cmp eax, 1
jne 0x4b21e3
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00468b70
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0044cdc0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0044b960
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0044b960
mov eax, esi
call fcn.004dc395
ret 8

Function at 0x4d6555
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56c3c0]
jne 0x4d655f
repz ret
jmp fcn.004e700c
Function at 0x4f2daf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004e0b03
and dword [ebp - 4], 0
cmp dword [0x576454], 0
mov ebx, eax
jne 0x4f2e60
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4f2f11
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4f2f11
push eax
call fcn.004e0a91
mov dword [esp], 0x53613c
push edi
mov dword [0x576454], eax
call esi
push eax
call fcn.004e0a91
mov dword [esp], 0x536128
push edi
mov dword [0x576458], eax
call esi
push eax
call fcn.004e0a91
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x57645c], eax
call esi
push eax
call fcn.004e0a91
pop ecx
mov dword [0x576464], eax
test eax, eax
je 0x4f2e60
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004e0a91
pop ecx
mov dword [0x576460], eax
mov eax, dword [0x576460]
cmp eax, ebx
je 0x4f2eb8
cmp dword [0x576464], ebx
je 0x4f2eb8
push eax
call fcn.004e0b0c
push dword [0x576464]
mov esi, eax
call fcn.004e0b0c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4f2eb8
test edi, edi
je 0x4f2eb8
call esi
test eax, eax
je 0x4f2eaf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4f2eaf
test byte [ebp - 0xc], 1
jne 0x4f2eb8
or dword [ebp + 0x10], 0x200000
jmp 0x4f2ef1
mov eax, dword [0x576458]
cmp eax, ebx
je 0x4f2ef1
push eax
call fcn.004e0b0c
pop ecx
test eax, eax
je 0x4f2ef1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4f2ef1
mov eax, dword [0x57645c]
cmp eax, ebx
je 0x4f2ef1
push eax
call fcn.004e0b0c
pop ecx
test eax, eax
je 0x4f2ef1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x576454]
call fcn.004e0b0c
pop ecx
test eax, eax
je 0x4f2f11
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4f2f13
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x508600
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x50860f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x56d89c]
test eax, eax
je 0x50861d
call fcn.005085a0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x50871f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x5764f4]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x5764f4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x5764f4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x5764f4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x5764f4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x5764f4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x5764f4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x5764f4]
xor eax, ecx
inc esi
dec edi
jne 0x508637
pop edi
test edx, edx
je 0x508741
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x5764f4]
xor eax, ecx
inc esi
dec edx
jne 0x508723
pop ebx
pop esi
not eax
ret 0xc
Function at 0x401c00
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401c6c
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push esi
push esi
lea edx, [esp + 0x10]
push 0x10
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x401c80
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
pop edi
mov ecx, dword [eax]
mov eax, dword [ecx]
add esp, 0x104
ret
Function at 0x4027f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
lea edx, [esp]
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [0x432bd0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.Msg.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x11c]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x114]
call fcn.0041ef82
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x402bb0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x425cc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push 0
push 2
mov dword [esp + 0x140], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 8]
push eax
push ebx
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402c95
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [0x42f3b0]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x148], 1
call fcn.0041f0bf
lea ecx, [esp + 0x10]
call fcn.0041f3fd
lea ecx, [esp + 0x14c]
call fcn.0041f3fd
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00411964
add esp, 8
test eax, eax
jne 0x402c6c
mov edx, dword [esp + 0x1c]
push edx
push eax
push 0x1f0fff
call edi
push 0
push eax
call ebp
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x144], 0
call fcn.0041ef82
test esi, esi
jne 0x402c0c
pop edi
pop esi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x140]
mov dword [esp + 0x138], 0xffffffff
call fcn.0041ef82
mov ecx, dword [esp + 0x130]
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x402cd0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402d3b
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402d3b
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret

Function at 0x402e20
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x432b40]
test eax, eax
jne 0x402e43
push 0
push 0
push 0
push 0x402df0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x432b40], eax
ret

Function at 0x402e50
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x432b38]
test eax, eax
jne 0x402e61
push 0
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x432b40]
test eax, eax
je 0x402e7d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x432b40], 0
ret

Function at 0x4036a0
Capabilities:
Enumerate services

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, ecx
call fcn.00403950
push 4
call fcn.00404ab0
add esp, 4
test eax, eax
je 0x4037ab
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [0x432b74]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push ebx
push ebp
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x403702
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4037a3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4037a3
push esi
push eax
call fcn.004128cd
mov esi, eax
add esp, 4
test esi, esi
jne 0x403734
call fcn.0041e60e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edx
mov edx, dword [0x432b74]
push eax
push ecx
push esi
push ebx
push ebp
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push eax
mov ecx, edi
call fcn.00404850
mov ebx, eax
test ebx, ebx
je 0x40378e
mov eax, dword [esp + 0x18]
mov ecx, edi
push eax
push esi
call fcn.00403980
mov dword [edi + 0x38], 0
mov ecx, dword [edi + 0x14]
push ecx
lea ecx, [edi + 0xc]
call fcn.0041f06f
push esi
call fcn.004127e4
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x4037c0
Capabilities:
Enumerate services

Disassembly:
push 0xffffffffffffffff
push 0x425d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
lea eax, [esp + 8]
push esi
mov esi, ecx
push eax
call fcn.00404400
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.00403950
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00404420
push 8
mov ecx, esi
call fcn.00404880
test eax, eax
je 0x403910
mov ebx, dword [esp + 0x28]
mov ecx, dword [esi + 4]
mov ebp, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push ecx
call ebp
test eax, eax
je 0x403860
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041ef82
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x403908
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403908
push edi
push eax
call fcn.004128cd
mov edi, eax
add esp, 4
test edi, edi
jne 0x403892
call fcn.0041e60e
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edi
push ebx
push edx
call ebp
push eax
mov ecx, esi
call fcn.00404850
mov ebx, eax
test ebx, ebx
je 0x4038d7
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
push edi
call fcn.00403980
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x14]
push ecx
lea ecx, [esi + 0xc]
call fcn.0041f06f
push edi
call fcn.004127e4
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041ef82
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041ef82
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4048d0
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x425e3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x42f3b0]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x30]
mov ebx, 1
test ebp, ebp
mov dword [esp + 0x20], ebx
je 0x404917
mov dword [ebp], 0
push ebx
mov ecx, edi
call fcn.00404880
test eax, eax
jne 0x40493c
mov esi, dword [esp + 0x28]
push 0x432af0
mov ecx, esi
call fcn.0041eff0
mov dword [esp + 0x14], ebx
jmp 0x404a5c
mov edx, dword [edi + 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push edx
call ebx
test eax, eax
jne 0x404a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404a3c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x404a3c
push eax
call fcn.004128cd
mov ecx, dword [esp + 0x34]
mov edx, dword [edi + 4]
add esp, 4
mov esi, eax
lea eax, [esp + 0x30]
push eax
push ecx
push esi
push edx
call ebx
push eax
mov ecx, edi
call fcn.00404850
test eax, eax
je case.default.0x4049aa
mov eax, dword [esp + 0x2c]
dec eax
cmp eax, 8
ja case.default.0x4049aa
jmp dword [eax*4 + 0x404a84]
mov ecx, dword [esi + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041f0bf
jmp case.default.0x4049aa
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x10]
push edx
call fcn.0041f0bf
jmp case.default.0x4049aa
mov eax, dword [esi + 0x18]
mov ecx, edi
push eax
call fcn.00404b00
mov ecx, dword [esi + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041f0bf
jmp case.default.0x4049aa
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.0041f0bf
jmp case.default.0x4049aa
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x10]
push eax
call fcn.0041f0bf
jmp case.default.0x4049aa
mov ecx, dword [esi]
jmp 0x404a1e
mov edx, dword [esi + 4]
mov dword [ebp], edx
jmp case.default.0x4049aa
mov eax, dword [esi + 8]
mov dword [ebp], eax
jmp case.default.0x4049aa
mov ecx, dword [esi + 0x14]
mov dword [ebp], ecx
push esi
call fcn.004127e4
mov esi, dword [esp + 0x2c]
add esp, 4
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0041ecf7
jmp 0x404a54
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x28]
push 0x432af0
mov ecx, esi
call fcn.0041eff0
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.0041ef82
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x404bc0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov esi, eax
test esi, esi
je 0x404bf0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 8]
push edx
call fcn.0041f0bf
mov eax, esi
pop esi
add esp, 0x14
ret 4