joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4074ab
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
jne 0x4074d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4074ed
inc edi
jmp 0x4074ed
push 0x4b494c4c
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4074e6
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40759a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x49c44c], 0
je 0x4075e2
push edi
push dword [ebp + 8]
call fcn.00483b26
mov edi, eax
pop ecx
test edi, edi
je 0x4075e1
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x407581
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4075da
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4075e1
push edi
call fcn.0046e0df
pop ecx
pop edi
xor eax, eax
leave
ret

Function at 0x40766a
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor edi, edi
mov esi, 0xf003f
push esi
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x4076cc
push ebx
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
cmp ebx, edi
jne 0x4076d3
cmp eax, 0x7b
je 0x4076b2
cmp eax, 0x424
jne 0x4076b9
mov dword [ebp - 4], 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x4076c6
push ebx
call esi
push dword [ebp - 0xc]
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x28]
push eax
push ebx
call edi
mov dword [ebp - 8], eax
call esi
cmp dword [ebp - 8], 0
je 0x4076b9
cmp dword [ebp - 0x24], 4
je 0x4076b2
cmp dword [ebp - 0x24], 2
je 0x4076b2
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 8], eax
call esi
cmp dword [ebp - 8], 0
jne 0x407714
cmp eax, 0x420
jmp 0x4076b0
xor esi, esi
inc esi
cmp dword [ebp + 0xc], 0
je 0x407739
lea eax, [ebp - 0x28]
push eax
push ebx
call edi
test eax, eax
je 0x4076b9
cmp dword [ebp - 0x24], 4
je 0x407739
push esi
push 0x14
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x40771d
mov dword [ebp - 4], esi
jmp 0x4076b9

Function at 0x40776e
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
cmp dword [0x49c44c], esi
je 0x407799
lea eax, [esp + 4]
push eax
push esi
push esi
push 0x407741
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x407799
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
Function at 0x40781c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0046e1eb
add esp, 0xc
push str.K7RTScan
lea eax, [ebp - 0x104]
xor esi, esi
push esi
mov dword [ebp - 0x108], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, esi
je 0x407885
push esi
lea eax, [ebp - 0x108]
push eax
push esi
push 1
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046c1d2
leave
ret

Function at 0x407893
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xa4
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0x7c]
push SysReAllocString
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x4079df
push 0x1000
call fcn.0046e254
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x4079d6
push esi
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x24]
xor edi, edi
or edi, eax
lea eax, [ebp - 0xc]
xor ecx, ecx
push eax
or esi, ecx
call fcn.00469c5d
and dword [ebp - 0x28], ebx
pop ecx
test esi, esi
jb 0x407987
ja 0x407923
test edi, edi
jbe 0x407987
mov eax, edi
sub eax, ebx
mov ecx, esi
sbb ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
jne 0x407938
cmp eax, 0x1000
jbe 0x40793f
mov eax, 0x1000
jmp 0x407943
mov eax, edi
sub eax, ebx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407987
cmp dword [ebp - 0x18], 0
je 0x407987
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push dword [ebp - 0x10]
push eax
call fcn.00469cac
add esp, 0xc
add ebx, dword [ebp - 0x18]
adc dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], esi
jb 0x407923
ja 0x407987
cmp ebx, edi
jb 0x407923
cmp ebx, edi
jne 0x4079cb
cmp dword [ebp - 0x28], esi
jne 0x4079cb
mov ebx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00469cf2
mov edi, dword [ebp - 0x30]
pop ecx
pop ecx
test edi, edi
je 0x4079c4
xor esi, esi
movzx eax, byte [ebx + esi]
push eax
push str._02X
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc esi
inc edi
inc edi
cmp esi, 0x14
jl 0x4079a8
mov dword [ebp - 0x20], 1
push dword [ebp - 0x10]
call fcn.0046e0df
pop ecx
pop edi
pop esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop ebx
call fcn.0046c1d2
add ebp, 0x70
leave
ret
Function at 0x4079f2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x9c
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x7c]
push SysReAllocString
push eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x407b3e
push 0x1000
call fcn.0046e254
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x407b35
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x1c]
xor edi, edi
or edi, eax
lea eax, [ebp - 4]
xor ecx, ecx
push eax
or esi, ecx
call fcn.00469f97
and dword [ebp - 0x20], ebx
pop ecx
test esi, esi
jb 0x407ae6
ja 0x407a82
test edi, edi
jbe 0x407ae6
mov eax, edi
sub eax, ebx
mov ecx, esi
sbb ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
jne 0x407a97
cmp eax, 0x1000
jbe 0x407a9e
mov eax, 0x1000
jmp 0x407aa2
mov eax, edi
sub eax, ebx
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407ae6
cmp dword [ebp - 0x10], 0
je 0x407ae6
push dword [ebp - 0x10]
lea eax, [ebp - 4]
push dword [ebp - 8]
push eax
call fcn.00469fdf
add esp, 0xc
add ebx, dword [ebp - 0x10]
adc dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], esi
jb 0x407a82
ja 0x407ae6
cmp ebx, edi
jb 0x407a82
cmp ebx, edi
jne 0x407b2a
cmp dword [ebp - 0x20], esi
jne 0x407b2a
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
push ebx
push eax
call fcn.0046a025
mov edi, dword [ebp - 0x28]
pop ecx
pop ecx
test edi, edi
je 0x407b23
xor esi, esi
movzx eax, byte [ebx + esi]
push eax
push str._02X
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
inc esi
inc edi
inc edi
cmp esi, 0x20
jl 0x407b07
mov dword [ebp - 0x18], 1
push dword [ebp - 8]
call fcn.0046e0df
pop ecx
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
pop ebx
call fcn.0046c1d2
add ebp, 0x70
leave
ret
Function at 0x407d94
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push eax
call fcn.00403bc5
cmp word [ebp - 0x414], 0
pop ecx
je 0x407e76
push esi
push edi
push 0x4856f0
lea eax, [ebp - 0x414]
push eax
mov esi, 0x4856e4
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00407d7e
add esp, 0x10
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407e74
test byte [ebp - 0x664], 0x10
jne 0x407e5b
push 0x2e
pop eax
cmp ax, word [ebp - 0x638]
je 0x407e5b
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00407d7e
add esp, 0x10
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407e09
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c1d2
leave
ret
Function at 0x407e82
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
call fcn.004012a0
test byte [ebp + 8], 8
pop ecx
je 0x407eab
cmp eax, 1
jne 0x407eab
cmp dword [ebp - 4], 0xffffffff
je 0x407eab
xor al, al
jmp 0x407ead
mov al, 1
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp + 8], ebx
test al, al
jne 0x407f44
push dword [ebp + 0xc]
push dword [ebp - 4]
push str._nK7RTScan:Execing_task_on_station__lu___s_
call fcn.004193ae
push str._n_______________________________________________
call fcn.004193ae
mov edi, 0x510
push edi
mov dword [ebp - 8], 4
call fcn.0046e4c4
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x407f44
push dword [ebp + 0xc]
lea eax, [esi + 0xc]
mov dword [esi + 8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
mov dword [esi], edi
call ebx
push dword [ebp + 0x10]
lea eax, [esi + 0x40c]
push eax
call ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x10007
push dword [ebp - 4]
call fcn.004012d0
xor edi, edi
inc edi
add esp, 0x18
cmp eax, edi
jne 0x407f36
mov dword [ebp + 8], edi
push esi
call fcn.0046c1c7
pop ecx
cmp dword [ebp + 8], edi
je 0x407fb8
xor ebx, ebx
push dword [ebp + 0xc]
push str._nK7RTScan:Execing_task_locally__s_
call fcn.004193ae
push 0x44
pop edi
push edi
call fcn.0046e4c4
push 0x10
mov esi, eax
call fcn.0046e4c4
add esp, 0x10
mov dword [ebp - 8], eax
cmp esi, ebx
je 0x407faa
cmp eax, ebx
je 0x407fa3
push edi
push ebx
push esi
call fcn.0046e3e0
add esp, 0xc
push dword [ebp - 8]
mov dword [esi], edi
push esi
push dword [ebp + 0x10]
push ebx
push 0x40
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x407fa3
mov dword [ebp + 8], 1
push esi
call fcn.0046c1c7
pop ecx
cmp dword [ebp - 8], ebx
je 0x407fb8
push dword [ebp - 8]
call fcn.0046c1c7
pop ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4083ac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp byte [0x49c4c8], bl
je 0x4083c2
xor eax, eax
inc eax
jmp 0x408417
push 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0046e3e0
add esp, 0xc
push 1
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x408310
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop ebx
leave
ret
Function at 0x408f21
Capabilities:
Check os version
Delete service
Stop service

Disassembly:
sub esp, 0xb4
mov eax, dword [0x49ab28]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
lea eax, [esp + 0x20]
push eax
mov ebx, ecx
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 5
jne 0x408f6a
cmp dword [esp + 0x28], 0
jne 0x408f6a
cmp byte [0x49c494], 1
jne 0x408f6a
xor eax, eax
inc eax
jmp 0x40902b
push ebp
push esi
push edi
mov edi, str.K7Sentry
push edi
call fcn.0046ade0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x408fb7
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x408fb7
push 0x10000
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x408fb4
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call esi
push ebp
call esi
add ebx, 0x34
push ebx
call fcn.0046ade0
test eax, eax
jne 0x408fc7
inc eax
jmp 0x409028
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x409000
push 0x10020
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x409004
push ebp
call esi
push edi
push ebx
push str.Couldnt_open_service
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x409028
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov ebx, eax
call esi
push ebp
call esi
xor eax, eax
test ebx, ebx
setne al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xb4]
pop ebx
xor ecx, esp
call fcn.0046c1d2
add esp, 0xb4
ret
Function at 0x40910f
Capabilities:
Modify service
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
mov esi, 0xf003f
push esi
push edi
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x4091e8
push esi
push str.K7Sentry
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x4091df
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [ebp - 4]
push ecx
push edi
push edi
push eax
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x4091d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4091d5
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x20
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4091d5
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x4091c8
push str.K7AntiVirus_MiniFilter_Driver
push edi
push edi
push str.FltMgr
push edi
push str.FSFilter_Infrastructure
push edi
xor ebx, ebx
inc ebx
push ebx
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x4091c8
mov dword [ebp - 0xc], ebx
push dword [ebp - 0x10]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

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

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x409244
push edi
push edi
push str.FltMgr
push edi
push str.FSFilter_Infrastructure
push dword [esp + 0x2c]
push 1
push edi
push 2
push 0xf01ff
push str.K7AntiVirus_MiniFilter_Driver
push str.K7Sentry
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, edi
je 0x40924f
inc ebx
jmp 0x409248
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40924f
push eax
call ebp
cmp esi, edi
je 0x409256
push esi
call ebp
cmp ebx, 1
je 0x409260
call fcn.0040910f
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x4093ee
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x30], bl
jne 0x409463
cmp byte [esi + 0x32], bl
je 0x409463
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.0046e1eb
add esp, 0xc
add esi, 0x34
push esi
lea eax, [ebp - 0x104]
push ebx
mov dword [ebp - 0x108], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
cmp esi, ebx
je 0x409463
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
push 1
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c1d2
leave
ret

Function at 0x409767
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x409780
push 0x80004005
call fcn.0040952e
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x4097cf
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x4097cd
cmp dword [ebp + 0x10], ebx
jbe 0x4097ca
cmp dword [ebp + 0x10], 2
jbe 0x4097d6
cmp dword [ebp + 0x10], 7
jne 0x4097ca
cmp ecx, 1
jb 0x4097ca
lea edx, [ecx + esi]
cmp byte [edx - 1], bl
jne 0x4097ca
cmp ecx, 1
jbe 0x4097cf
cmp byte [edx - 2], bl
je 0x4097cf
push 0xd
pop eax
mov byte [esi], bl
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp byte [ecx + esi - 1], bl
jmp 0x4097c8

Function at 0x40a2e9
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x40a337
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x40a348
push 0xd
pop eax
jmp 0x40a372
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40a34b
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40a88a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00409726
mov ebx, eax
cmp ebx, esi
je 0x40a8fa
lea ecx, [ebp - 0x70]
call fcn.0040970b
mov eax, ebx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c1d2
add ebp, 0x9c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40a912
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040a88a
cmp eax, esi
jne 0x40a944
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], pe_nt_image_headers32
call ebx
test eax, eax
je 0x40a902
lea ecx, [ebp - 0x70]
call fcn.0040970b
push dword [ebp - 0x78]
mov ecx, edi
call fcn.004096b0
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040970b
mov eax, esi
jmp 0x40a8e0
Function at 0x40d552
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
mov eax, dword [eax]
push esi
mov dword [ebp - 0x7c], eax
mov eax, 0x104
push eax
lea ecx, [ebp + 0x8c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
xor esi, esi
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40d5bc
push str.NTFS
lea eax, [ebp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40d5bc
inc esi
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046c1d2
add ebp, 0x194
leave
ret

Function at 0x40d5d4
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x4cc]
sub esp, 0x54c
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp + 0x4c8], eax
and dword [ebp - 0x7c], 0
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push 0x486104
push ebx
mov edi, 0x4946f4
lea eax, [ebp + 0xc8]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x40d684
cmp byte [ebp - 0x4c], 0x2e
je 0x40d663
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp + 0xc8]
push edi
push eax
call esi
add esp, 0x10
push 0x80
lea eax, [ebp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d62c
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x4c8]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop esi
call fcn.0046c1d2
add ebp, 0x4cc
leave
ret