joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52da30
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004076f8
xor eax, eax
push ebp
push 0x52dc10
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0052c350
test al, al
je 0x52daab
mov eax, dword [ebp - 8]
call fcn.00408224
mov dword [ebp - 0x10], 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
xor eax, eax
mov al, byte [ebp - 9]
mov ax, word [eax*4 + 0x558674]
push eax
mov eax, dword [ebp - 4]
call fcn.0052d944
push eax
call sub.advapi32.dll_ReportEventW
jmp 0x52dbe5
mov eax, dword [ebp - 4]
call fcn.0052d944
cmp eax, 0xffffffff
je 0x52dbe5
lea eax, [ebp - 0x14]
mov edx, 0x52dc2c
call fcn.00407a3c
xor eax, eax
mov al, byte [ebp - 9]
cmp eax, 4
ja case.default.0x52dad3
jmp dword [eax*4 + 0x52dada]
lea eax, [ebp - 0x14]
mov edx, 0x52dc80
call fcn.00408410
jmp 0x52db46
lea eax, [ebp - 0x14]
mov edx, 0x52dc98
call fcn.00408410
jmp 0x52db46
lea eax, [ebp - 0x14]
mov edx, 0x52dcb4
call fcn.00408410
jmp 0x52db46
lea eax, [ebp - 0x14]
mov edx, 0x52dcd8
call fcn.00408410
jmp 0x52db46
lea eax, [ebp - 0x14]
mov edx, 0x52dd00
call fcn.00408410
jmp 0x52db46
lea eax, [ebp - 0x14]
mov edx, 0x52dd28
call fcn.00408410
push dword [ebp - 0x14]
push 0x52dd44
push 0x52dd58
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 0xc]
call fcn.0041f1e8
push dword [ebp - 0x24]
push 0x52dd44
push 0x52dd7c
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
call fcn.0041f1e8
push dword [ebp - 0x28]
push 0x52dd44
push 0x52dd94
push dword [ebp - 8]
push 0x52dd44
push 0x52ddb8
lea eax, [ebp - 0x14]
mov edx, 0xc
call fcn.004084f0
lea eax, [ebp - 0x14]
call fcn.00407bcc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x52dbbf
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_FlushFileBuffers
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52dc17
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00407674
lea eax, [ebp - 0x14]
call fcn.00407614
lea eax, [ebp - 8]
call fcn.00407614
ret
Function at 0x52de70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb64
xor eax, eax
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x494], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x490]
mov edx, dword [0x41936c]
call fcn.004089cc
xor eax, eax
push ebp
push 0x52dfee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x104
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
je 0x52dfb2
mov eax, 0x558688
lea edx, [ebp - 0x21c]
mov ecx, 0x106
call fcn.004082b8
call fcn.00421fcc
fsub dword [0x52dffc]
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x494]
call fcn.0052d74c
mov eax, dword [ebp - 0x494]
lea edx, [ebp - 0xc]
call fcn.0041e588
lea eax, [ebp - 8]
mov ecx, 0x52e00c
mov edx, dword [0x558688]
call fcn.00408468
lea ecx, [ebp - 0x490]
mov edx, 0x1ef
mov eax, dword [ebp - 8]
call fcn.0041faac
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x52dfb2
lea edx, [ebp - 0x498]
mov eax, dword [ebp - 0x47c]
call fcn.0041e588
mov eax, dword [ebp - 0x498]
mov edx, dword [ebp - 0xc]
call fcn.004085a0
jae 0x52df8d
push dword [0x558688]
push 0x52e044
push dword [ebp - 0x47c]
lea eax, [ebp - 0x49c]
mov edx, 3
call fcn.004084f0
mov eax, dword [ebp - 0x49c]
call fcn.0041fb3c
lea eax, [ebp - 0x490]
call fcn.0041fafc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x52dfac
lea eax, [ebp - 0x490]
call fcn.0041fb20
cmp dword [ebp - 0x10], 0
je 0x52df40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52dff5
lea eax, [ebp - 0x49c]
mov edx, 3
call fcn.00407674
lea eax, [ebp - 0x490]
mov edx, dword [0x41936c]
call fcn.00408aa4
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00407674
ret

Function at 0x530c04
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [0x558690]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x146]
push eax
call sub.user32.dll_PostThreadMessageW
mov eax, dword [ebp + 8]
cmp byte [eax + 0x145], 0
je 0x530c47
mov eax, dword [ebp + 8]
mov byte [eax + 0x145], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14a]
push eax
call sub.kernel32.dll_ResumeThread
pop ebp
ret 8

Function at 0x53171c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x88]
mov byte [ebp - 5], al
mov dl, 5
mov eax, dword [ebp - 4]
call fcn.005308d0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x54]
test al, al
je 0x531771
mov dl, 6
mov eax, dword [ebp - 4]
call fcn.005308d0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x62], 0
je 0x53177c
mov eax, dword [ebp - 4]
mov byte [eax + 0x145], 1
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SuspendThread
jmp 0x53177c
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
call fcn.005308d0
pop ecx
pop ecx
pop ebp
ret
Function at 0x535758
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x114], 6
setae byte [ebp - 1]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x537c2c
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.004076f8
mov eax, dword [ebp - 8]
call fcn.004076f8
xor eax, eax
push ebp
push 0x537e3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 5
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0041f98c
test al, al
je 0x537e15
xor eax, eax
push ebp
push 0x537e09
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 0x10], 0
je 0x537d2d
lea eax, [ebp - 0x49]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404f60
xor eax, eax
mov dword [ebp - 0x41], eax
mov dword [ebp - 0x49], 0x3c
mov eax, dword [ebp - 4]
call fcn.00408224
mov dword [ebp - 0x39], eax
mov eax, dword [ebp - 8]
call fcn.00408224
mov dword [ebp - 0x35], eax
mov eax, 0x537e54
mov dword [ebp - 0x3d], eax
cmp byte [ebp + 0x14], 0
je 0x537cd9
xor eax, eax
mov dword [ebp - 0x2d], eax
lea eax, [ebp - 0x49]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x537dff
mov byte [ebp - 0xd], 0
cmp dword [ebp - 0xc], 0
je 0x537dff
cmp dword [ebp - 0x11], 0
je 0x537dff
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x11]
mov dword [eax], edx
cmp byte [ebp + 0xc], 0
je 0x537dff
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 0x537dff
lea eax, [ebp - 0x90]
xor ecx, ecx
mov edx, 0x44
call fcn.00404f60
mov dword [ebp - 0x90], 0x44
cmp byte [ebp + 0x14], 0
je 0x537d5c
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 0x537e6c
push dword [ebp - 4]
push 0x537e7c
push dword [ebp - 8]
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0xa4]
call fcn.00408224
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x537dfb
mov byte [ebp - 0xd], 0
cmp byte [ebp + 0xc], 0
je 0x537de0
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 0x537dff
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xa0]
mov ecx, 0x10
call fcn.004046f8
jmp 0x537dff
mov byte [ebp - 0xd], 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x537e19
mov byte [ebp - 0xd], 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x537e46
lea eax, [ebp - 0xa4]
call fcn.00407614
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407674
ret
Function at 0x541118
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 0x541120
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x54138f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov al, byte [ebp - 1]
sub al, 2
jae 0x541364
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x78]
mov edx, 0x5413ac
call fcn.00408468
mov eax, dword [ebp - 0x78]
call fcn.00535d94
cmp byte [ebp - 1], 0
jne 0x54118b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x7c]
mov edx, 0x5413e4
call fcn.00408468
mov eax, dword [ebp - 0x7c]
call fcn.00535d94
jmp 0x5411a6
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x80]
mov edx, 0x54141c
call fcn.00408468
mov eax, dword [ebp - 0x80]
call fcn.00535d94
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x5411c5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x10]
mov edx, dword [0x55e4e8]
call fcn.00408468
jmp 0x5411e3
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push 0x541450
mov eax, dword [ebp - 8]
push dword [eax + 4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004084f0
cmp byte [ebp - 1], 1
jne 0x5411f8
lea eax, [ebp - 0x14]
mov edx, 0x541460
call fcn.00407a3c
jmp 0x541205
lea eax, [ebp - 0x14]
mov edx, 0x541490
call fcn.00407a3c
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.0041f98c
test al, al
je 0x541346
xor eax, eax
push ebp
push 0x5412fc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.00404f60
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 0x5414c4
push dword [ebp - 0x14]
lea eax, [ebp - 0x84]
mov edx, 3
call fcn.004084f0
mov eax, dword [ebp - 0x84]
call fcn.00408224
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x5412b4
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 0x5412f2
push 0x5414d4
push dword [ebp - 0x10]
push 0x5414c4
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x8c]
call fcn.00423a20
push dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0x88]
call fcn.00535d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x541364
lea eax, [ebp - 0x98]
mov ecx, dword [ebp - 0x10]
mov edx, 0x541564
call fcn.00408468
mov eax, dword [ebp - 0x98]
call fcn.00535d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541396
lea eax, [ebp - 0x98]
mov edx, 9
call fcn.00407674
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407674
ret
Function at 0x54158c
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x541594
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x5417b4
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 0x541799
cmp byte [ebp - 1], 2
jne 0x5415e3
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x40]
mov edx, 0x5417d0
call fcn.00408468
mov eax, dword [ebp - 0x40]
call fcn.00535d94
jmp 0x5415fe
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x44]
mov edx, 0x54180c
call fcn.00408468
mov eax, dword [ebp - 0x44]
call fcn.00535d94
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x541670
push 0x541848
call sub.kernel32.dll_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.0041f210
push dword [ebp - 0x4c]
push 0x541888
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x50]
call fcn.00423a20
push dword [ebp - 0x50]
push 0x541888
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push 0x541888
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
lea eax, [ebp - 0x48]
mov edx, 8
call fcn.004084f0
mov eax, dword [ebp - 0x48]
call fcn.00535d94
jmp 0x541799
cmp byte [ebp - 1], 2
jne 0x54167f
mov dword [ebp - 0x18], 0x10
jmp 0x541686
mov dword [ebp - 0x18], 0x20
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
call fcn.00408224
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 0x5416fb
push 0x541898
call sub.kernel32.dll_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x58]
call fcn.0041f210
push dword [ebp - 0x58]
push 0x541888
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x5c]
call fcn.00423a20
push dword [ebp - 0x5c]
push 0x541888
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
lea eax, [ebp - 0x54]
mov edx, 6
call fcn.004084f0
mov eax, dword [ebp - 0x54]
call fcn.00535d94
jmp 0x541790
cmp byte [ebp - 1], 2
jne 0x54171b
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00456194
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
jmp 0x541733
lea eax, [ebp - 0x38]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045613c
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x541787
push 0x541848
call sub.kernel32.dll_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x64]
call fcn.0041f210
push dword [ebp - 0x64]
push 0x541888
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x68]
call fcn.00423a20
push dword [ebp - 0x68]
push 0x541888
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
lea eax, [ebp - 0x60]
mov edx, 6
call fcn.004084f0
mov eax, dword [ebp - 0x60]
call fcn.00535d94
mov eax, dword [ebp - 0x10]
push eax
call fcn.00456134
mov eax, dword [ebp - 0x14]
push eax
call fcn.00456134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5417bb
lea eax, [ebp - 0x68]
mov edx, 0xb
call fcn.00407674
ret
Function at 0x5418e4
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 0x541af6
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 0x541968
mov byte [ebp - 5], 6
push 0x541b14
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x541b54
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x38]
call fcn.00423a20
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0x34]
call fcn.00535d94
jmp 0x541adb
xor eax, eax
push ebp
push 0x541ac8
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00408224
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 0x5419e0
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x424
jne 0x5419a6
mov byte [ebp - 5], 0
push 0x541b74
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x541b54
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x40]
call fcn.00423a20
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0x3c]
call fcn.00535d94
jmp 0x541abe
mov byte [ebp - 5], 1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00456174
test eax, eax
je 0x541a38
cmp dword [ebp - 0x2c], 4
jne 0x541a01
mov byte [ebp - 5], 2
jmp 0x541a38
push 0x541bb0
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0x541be0
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.0041f210
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.004084f0
mov eax, dword [ebp - 0x44]
call fcn.00535d94
cmp byte [ebp - 5], 1
jne 0x541ab5
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00408224
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 0x541a70
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x424
jne 0x541ab5
mov byte [ebp - 5], 0
jmp 0x541ab5
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 0x541aac
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x430
jne 0x541aac
mov byte [ebp - 5], 4
mov eax, dword [ebp - 0x10]
push eax
call fcn.00456134
mov eax, dword [ebp - 0x10]
push eax
call fcn.00456134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x541ad2
mov eax, dword [ebp - 0xc]
push eax
call fcn.00456134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541afd
lea eax, [ebp - 0x48]
mov edx, 6
call fcn.00407674
ret
Function at 0x5442a0
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 0x5443ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407614
mov dl, 1
mov eax, dword [0x45b72c]
call fcn.0045c878
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x544376
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.0045c960
mov edx, 0x5443c4
mov eax, dword [ebp - 8]
call fcn.0045dd8c
test al, al
je 0x544356
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0x20019
mov edx, 0x5443c4
mov eax, dword [ebp - 8]
call fcn.0045cbec
test al, al
je 0x54432f
mov ecx, dword [ebp - 4]
mov edx, 0x54443c
mov eax, dword [ebp - 8]
call fcn.0045d474
jmp 0x544360
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x18]
call fcn.00423a20
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x544454
call fcn.00408468
mov eax, dword [ebp - 0x14]
call fcn.00535d94
jmp 0x544360
mov eax, 0x5444b4
call fcn.00535d94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54437d
mov eax, dword [ebp - 8]
call fcn.0040598c
ret

Function at 0x547854
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.004076f8
xor eax, eax
push ebp
push 0x5478e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00408224
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x5478a6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00408224
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 0x5478e9
lea eax, [ebp - 8]
call fcn.00407614
ret
Function at 0x548d10
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 0x548ef4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00404914
mov eax, dword [ebp - 4]
cmp word [eax + 0xaa], 0
je 0x548d61
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 0x548d7b
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x548d80
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x88], 0
jne 0x548d93
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x548da4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
call fcn.00408224
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00408224
push eax
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0054823c
mov eax, dword [ebp - 0x24]
call fcn.00408224
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.00408224
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00408224
push eax
mov eax, dword [ebp - 4]
call fcn.00548408
push eax
mov eax, dword [ebp - 4]
call fcn.005483c4
push eax
mov eax, dword [ebp - 4]
call fcn.0054835c
push eax
push 0xf01ff
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00548000
mov eax, dword [ebp - 0x28]
call fcn.00408224
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00408224
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00456144
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 0x548e47
call fcn.00426710
xor eax, eax
push ebp
push 0x548eca
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x548e8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x548e82
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 0x548eb3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548ed1
mov eax, dword [ebp - 0x18]
push eax
call fcn.00456134
ret
Function at 0x548f04
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 0x548f30
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.00408224
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00456164
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x548f58
call fcn.00426710
xor eax, eax
push ebp
push 0x548f8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call fcn.0045614c
test eax, eax
jne 0x548f78
call fcn.00426710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x548f96
mov eax, dword [ebp - 0xc]
push eax
call fcn.00456134
ret