joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59b5cc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004077dc
mov eax, dword [ebp - 8]
call fcn.004077dc
xor eax, eax
push ebp
push 0x59b7df
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 5
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00421378
test al, al
je 0x59b7b5
xor eax, eax
push ebp
push 0x59b7a9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 0x10], 0
je 0x59b6cd
lea eax, [ebp - 0x49]
xor ecx, ecx
mov edx, 0x3c
call fcn.00405028
xor eax, eax
mov dword [ebp - 0x41], eax
mov dword [ebp - 0x49], 0x3c
mov eax, dword [ebp - 4]
call fcn.00408344
mov dword [ebp - 0x39], eax
mov eax, dword [ebp - 8]
call fcn.00408344
mov dword [ebp - 0x35], eax
mov eax, 0x59b7f4
mov dword [ebp - 0x3d], eax
cmp byte [ebp + 0x14], 0
je 0x59b679
xor eax, eax
mov dword [ebp - 0x2d], eax
lea eax, [ebp - 0x49]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x59b79f
mov byte [ebp - 0xd], 0
cmp dword [ebp - 0xc], 0
je 0x59b79f
cmp dword [ebp - 0x11], 0
je 0x59b79f
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x11]
mov dword [eax], edx
cmp byte [ebp + 0xc], 0
je 0x59b79f
push 0xffffffffffffffff
mov eax, dword [ebp - 0x11]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x11]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x59b79f
lea eax, [ebp - 0x90]
xor ecx, ecx
mov edx, 0x44
call fcn.00405028
mov dword [ebp - 0x90], 0x44
cmp byte [ebp + 0x14], 0
je 0x59b6fc
mov dword [ebp - 0x64], 1
mov word [ebp - 0x60], 0
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push 0x59b80c
push dword [ebp - 4]
push 0x59b81c
push dword [ebp - 8]
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.00408628
mov eax, dword [ebp - 0xa4]
call fcn.00408344
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x59b79b
mov byte [ebp - 0xd], 0
cmp byte [ebp + 0xc], 0
je 0x59b780
push 0xffffffffffffffff
mov eax, dword [ebp - 0xa0]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0xa0]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x9c]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp + 8], 0
je 0x59b79f
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xa0]
mov ecx, 0x10
call fcn.0040486c
jmp 0x59b79f
mov byte [ebp - 0xd], 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59b7b9
mov byte [ebp - 0xd], 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59b7e6
lea eax, [ebp - 0xa4]
call fcn.004076f8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407758
ret
Function at 0x5a4eac
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x5a4eb4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x5a5123
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov al, byte [ebp - 1]
sub al, 2
jae 0x5a50f8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x78]
mov edx, 0x5a5140
call fcn.004085a0
mov eax, dword [ebp - 0x78]
call fcn.00599620
cmp byte [ebp - 1], 0
jne 0x5a4f1f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x7c]
mov edx, 0x5a5178
call fcn.004085a0
mov eax, dword [ebp - 0x7c]
call fcn.00599620
jmp 0x5a4f3a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x80]
mov edx, 0x5a51b0
call fcn.004085a0
mov eax, dword [ebp - 0x80]
call fcn.00599620
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x5a4f59
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x10]
mov edx, dword [0x649b38]
call fcn.004085a0
jmp 0x5a4f77
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push 0x5a51e4
mov eax, dword [ebp - 8]
push dword [eax + 4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00408628
cmp byte [ebp - 1], 1
jne 0x5a4f8c
lea eax, [ebp - 0x14]
mov edx, 0x5a51f4
call fcn.00407b20
jmp 0x5a4f99
lea eax, [ebp - 0x14]
mov edx, 0x5a5224
call fcn.00407b20
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.00421378
test al, al
je 0x5a50da
xor eax, eax
push ebp
push 0x5a5090
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.00405028
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 0x101
mov word [ebp - 0x34], 0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0x5a5258
push dword [ebp - 0x14]
lea eax, [ebp - 0x84]
mov edx, 3
call fcn.00408628
mov eax, dword [ebp - 0x84]
call fcn.00408344
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x5a5048
push 0xffffffffffffffff
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 9], 1
jmp 0x5a5086
push 0x5a5268
push dword [ebp - 0x10]
push 0x5a5258
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x8c]
call fcn.0042677c
push dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.00408628
mov eax, dword [ebp - 0x88]
call fcn.00599620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a50f8
lea eax, [ebp - 0x98]
mov ecx, dword [ebp - 0x10]
mov edx, 0x5a52f8
call fcn.004085a0
mov eax, dword [ebp - 0x98]
call fcn.00599620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a512a
lea eax, [ebp - 0x98]
mov edx, 9
call fcn.00407758
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407758
ret
Function at 0x5a5320
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x5a5328
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x5a5548
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov al, byte [ebp - 1]
add al, 0xfe
sub al, 2
jae 0x5a552d
cmp byte [ebp - 1], 2
jne 0x5a5377
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x40]
mov edx, 0x5a5564
call fcn.004085a0
mov eax, dword [ebp - 0x40]
call fcn.00599620
jmp 0x5a5392
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x44]
mov edx, 0x5a55a0
call fcn.004085a0
mov eax, dword [ebp - 0x44]
call fcn.00599620
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x5a5404
push 0x5a55dc
call sub.kernel32.dll_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.00420c0c
push dword [ebp - 0x4c]
push 0x5a561c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x50]
call fcn.0042677c
push dword [ebp - 0x50]
push 0x5a561c
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push 0x5a561c
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
lea eax, [ebp - 0x48]
mov edx, 8
call fcn.00408628
mov eax, dword [ebp - 0x48]
call fcn.00599620
jmp 0x5a552d
cmp byte [ebp - 1], 2
jne 0x5a5413
mov dword [ebp - 0x18], 0x10
jmp 0x5a541a
mov dword [ebp - 0x18], 0x20
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
call fcn.00408344
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a548f
push 0x5a562c
call sub.kernel32.dll_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x58]
call fcn.00420c0c
push dword [ebp - 0x58]
push 0x5a561c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x5c]
call fcn.0042677c
push dword [ebp - 0x5c]
push 0x5a561c
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
lea eax, [ebp - 0x54]
mov edx, 6
call fcn.00408628
mov eax, dword [ebp - 0x54]
call fcn.00599620
jmp 0x5a5524
cmp byte [ebp - 1], 2
jne 0x5a54af
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045a604
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
jmp 0x5a54c7
lea eax, [ebp - 0x38]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045a5ac
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x5a551b
push 0x5a55dc
call sub.kernel32.dll_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x64]
call fcn.00420c0c
push dword [ebp - 0x64]
push 0x5a561c
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x68]
call fcn.0042677c
push dword [ebp - 0x68]
push 0x5a561c
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
lea eax, [ebp - 0x60]
mov edx, 6
call fcn.00408628
mov eax, dword [ebp - 0x60]
call fcn.00599620
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045a5a4
mov eax, dword [ebp - 0x14]
push eax
call fcn.0045a5a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a554f
lea eax, [ebp - 0x68]
mov edx, 0xb
call fcn.00407758
ret
Function at 0x5a5678
Capabilities:
Modify service
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a588a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 5
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5a56fc
mov byte [ebp - 5], 6
push 0x5a58a8
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x5a58e8
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x38]
call fcn.0042677c
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00408628
mov eax, dword [ebp - 0x34]
call fcn.00599620
jmp 0x5a586f
xor eax, eax
push ebp
push 0x5a585c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00408344
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a5774
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x424
jne 0x5a573a
mov byte [ebp - 5], 0
push 0x5a5908
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x5a58e8
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x40]
call fcn.0042677c
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.00408628
mov eax, dword [ebp - 0x3c]
call fcn.00599620
jmp 0x5a5852
mov byte [ebp - 5], 1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045a5e4
test eax, eax
je 0x5a57cc
cmp dword [ebp - 0x2c], 4
jne 0x5a5795
mov byte [ebp - 5], 2
jmp 0x5a57cc
push 0x5a5944
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x5a5974
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.00420c0c
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00408628
mov eax, dword [ebp - 0x44]
call fcn.00599620
cmp byte [ebp - 5], 1
jne 0x5a5849
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00408344
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5a5804
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x424
jne 0x5a5849
mov byte [ebp - 5], 0
jmp 0x5a5849
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ChangeServiceConfigW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x5a5840
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x430
jne 0x5a5840
mov byte [ebp - 5], 4
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045a5a4
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045a5a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a5866
mov eax, dword [ebp - 0xc]
push eax
call fcn.0045a5a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a5891
lea eax, [ebp - 0x48]
mov edx, 6
call fcn.00407758
ret
Function at 0x5a7bf8
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a7d05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004076f8
mov dl, 1
mov eax, dword [0x4626ec]
call fcn.00463838
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5a7cce
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.00463920
mov edx, 0x5a7d1c
mov eax, dword [ebp - 8]
call fcn.00464d4c
test al, al
je 0x5a7cae
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0x20019
mov edx, 0x5a7d1c
mov eax, dword [ebp - 8]
call fcn.00463bac
test al, al
je 0x5a7c87
mov ecx, dword [ebp - 4]
mov edx, 0x5a7d94
mov eax, dword [ebp - 8]
call fcn.00464434
jmp 0x5a7cb8
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x18]
call fcn.0042677c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x5a7dac
call fcn.004085a0
mov eax, dword [ebp - 0x14]
call fcn.00599620
jmp 0x5a7cb8
mov eax, 0x5a7e0c
call fcn.00599620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a7cd5
mov eax, dword [ebp - 8]
call fcn.00405a54
ret

Function at 0x5ab1ac
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004077dc
xor eax, eax
push ebp
push 0x5ab23a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00408344
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x5ab1fe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00408344
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceW
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
mov ax, word [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.advapi32.dll_ReportEventW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ab241
lea eax, [ebp - 8]
call fcn.004076f8
ret
Function at 0x5ac668
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5ac84c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00404a88
mov eax, dword [ebp - 4]
cmp word [eax + 0xaa], 0
je 0x5ac6b9
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x5ac6d3
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x5ac6d8
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x88], 0
jne 0x5ac6eb
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x5ac6fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
call fcn.00408344
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00408344
push eax
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.005abb94
mov eax, dword [ebp - 0x24]
call fcn.00408344
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.00408344
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00408344
push eax
mov eax, dword [ebp - 4]
call fcn.005abd60
push eax
mov eax, dword [ebp - 4]
call fcn.005abd1c
push eax
mov eax, dword [ebp - 4]
call fcn.005abcb4
push eax
push 0xf01ff
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.005ab958
mov eax, dword [ebp - 0x28]
call fcn.00408344
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00408344
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0045a5b4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x98], edx
cmp dword [ebp - 0x18], 0
jne 0x5ac79f
call fcn.00429980
xor eax, eax
push ebp
push 0x5ac822
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5ac7e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x5ac7da
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5ac80b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ac829
mov eax, dword [ebp - 0x18]
push eax
call fcn.0045a5a4
ret
Function at 0x5ac85c
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xba], 0
je 0x5ac888
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00408344
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0045a5d4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5ac8b0
call fcn.00429980
xor eax, eax
push ebp
push 0x5ac8e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call fcn.0045a5bc
test eax, eax
jne 0x5ac8d0
call fcn.00429980
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ac8ee
mov eax, dword [ebp - 0xc]
push eax
call fcn.0045a5a4
ret

Function at 0x5ad7a8
Capabilities:
Get session integrity level

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5ad8b2
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.shell32.dll_IsUserAnAdmin
test eax, eax
je 0x5ad83b
mov dl, 1
mov eax, dword [0x5ad5b0]
call fcn.005ada68
mov dword [ebp - 8], 0x553e5bd6
mov eax, dword [0x5c1e5c]
mov eax, dword [eax]
xor edx, edx
call fcn.00595db8
test al, al
jne 0x5ad894
mov eax, 0x5ad8cc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x5c1e5c]
mov eax, dword [eax]
xor ecx, ecx
mov dx, 0x36
call fcn.00595d70
mov eax, dword [ebp - 0xc]
mov ecx, 0x42
mov edx, 0x5ad920
call fcn.00407540
jmp 0x5ad894
mov dword [ebp - 8], 0x65cbb912
mov eax, dword [0x5c1e5c]
mov eax, dword [eax]
xor edx, edx
call fcn.00595db8
test al, al
jne 0x5ad894
mov eax, 0x5ada10
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x5c1e5c]
mov eax, dword [eax]
xor ecx, ecx
mov dx, 0x36
call fcn.00595d70
mov eax, dword [ebp - 0x18]
mov ecx, 0x49
mov edx, 0x5ad920
call fcn.00407540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ad8b9
lea eax, [ebp - 0x18]
call fcn.004076f8
lea eax, [ebp - 0xc]
call fcn.004076f8
ret
Function at 0x405830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x677012
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x71a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 7
mov word [edi + 4], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], al
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 0xf
mov byte [edi + 0x34], al
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0xf
mov byte [edi + 0x4c], al
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 0xf
mov byte [edi + 0x64], al
mov dword [edi + 0x8c], eax
mov dword [edi + 0x90], 0xf
mov byte [edi + 0x7c], al
lea esi, [edi + 0x94]
mov byte [ebp - 4], 5
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0042eb71
add esp, 4
cmp dword [ebp + 8], 0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
setne al
mov byte [edi], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40c5e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c639
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c639
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40c62a
cmp esi, edx
jae 0x40c639
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40c618
cmp esi, edx
jae 0x40c639
cmp word [esi], 0
je 0x40c639
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40d870
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6777e2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x71a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
call fcn.00429320
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x40d908
push eax
push esi
call fcn.0042974c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
lea ecx, [ebp - 0x1c]
call fcn.0040d830
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040d7d0
int3
Function at 0x411920
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6771a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x71a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042eb71
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00429645
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret