joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510228
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x510230
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x5103de
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, 0x5103f4
call fcn.00404ab8
mov eax, dword [edi + 0x2f8]
call fcn.0047a8e4
mov eax, dword [edi + 0x310]
mov eax, dword [eax + 0x22c]
call fcn.004512c4
mov ebx, 1
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + ebx - 1]
call fcn.00404c08
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov ecx, 0x510418
call fcn.00404d2c
mov eax, dword [ebp - 0x14]
call fcn.00404ee0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x5103b9
mov eax, ebx
call fcn.00409df4
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, ebx
call fcn.00409dc0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x5102da
cmp dword [ebp - 0x10], 0
jbe 0x5103b9
jmp 0x5102e0
jle 0x5103b9
cmp dword [ebp - 4], 0
jne 0x5102f2
cmp dword [ebp - 8], 0
jbe 0x5103b9
jmp 0x5102f8
jle 0x5103b9
mov eax, dword [edi + 0x310]
mov eax, dword [eax + 0x22c]
call fcn.00451168
mov esi, eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + ebx - 1]
call fcn.00404c08
lea eax, [ebp - 0x24]
mov edx, 0x510418
call fcn.00404ce8
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov eax, edi
call fcn.00510d30
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.00450c08
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.0057b9a0
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
call fcn.0057b9a0
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov dl, byte [edx + ebx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x38]
call fcn.00403138
mov edx, 0x51041c
lea eax, [ebp - 0x38]
mov cl, 2
call fcn.00403108
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x30]
call fcn.00404c84
mov edx, dword [ebp - 0x30]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov dl, 1
mov eax, esi
call fcn.00450ba0
inc ebx
cmp ebx, 0x1b
jne 0x510278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5103e5
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.00404a44
ret
Function at 0x510d30
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404ed0
xor eax, eax
push ebp
push 0x510dc3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x300
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404ee0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebx + 0x2f8]
call fcn.0047a1d0
mov edx, dword [ebp - 0x164]
call fcn.0042f95c
mov eax, dword [ebp - 0x164]
push eax
call sub.user32.dll_DestroyIcon
mov eax, esi
lea edx, [ebp - 0x158]
mov ecx, 0x104
call fcn.00404c90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510dca
lea eax, [ebp - 4]
call fcn.00404a20
ret
Function at 0x51300c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51307c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push ebx
lea edx, [ebp - 0x104]
lea eax, [ebp - 0x100]
call fcn.0040a030
mov eax, dword [ebp - 0x104]
mov ecx, 3
xor edx, edx
call fcn.00404f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513083
lea eax, [ebp - 0x104]
call fcn.00404a20
ret

Function at 0x513088
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x51320c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x418888]
call fcn.00403bbc
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x441474]
call fcn.00441574
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5131dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.00441614
xor ecx, ecx
mov edx, 0x513224
mov eax, dword [ebp - 4]
call fcn.0044167c
test al, al
je 0x513109
lea ecx, [ebp - 8]
mov edx, 0x513258
mov eax, dword [ebp - 4]
call fcn.00441bf8
mov eax, dword [ebp - 4]
call fcn.004415e4
xor ecx, ecx
mov edx, 0x51326c
mov eax, dword [ebp - 4]
call fcn.0044167c
test al, al
je 0x5131bf
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00441e2c
test al, al
je 0x51313f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00441918
jmp 0x5131bf
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00441a68
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5131bf
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00441ba8
dec eax
sub al, 2
jae 0x5131bb
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00441bf8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00405024
test eax, eax
jle 0x5131bb
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00441918
inc ebx
dec esi
jne 0x51315c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5131e4
mov eax, dword [ebp - 4]
call fcn.00403bec
mov eax, dword [ebp - 0x10]
call fcn.00403bec
ret
Function at 0x51329c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x5132a4
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x513418
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x441474]
call fcn.00441574
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x418888]
call fcn.00403bbc
mov esi, eax
xor eax, eax
push ebp
push 0x5133ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.00441614
mov cl, 1
mov edx, 0x513430
mov eax, dword [ebp - 4]
call fcn.0044167c
test al, al
je 0x5133d8
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00441a68
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5133d8
inc eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00441ba8
dec eax
sub al, 2
jae 0x5133ce
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00441bf8
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00408fc0
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x513468
call fcn.00408fc0
mov eax, dword [ebp - 0x1c]
pop edx
call fcn.00405024
test eax, eax
jg 0x5133b7
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00408fc0
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, 0x51347c
call fcn.00408fc0
mov eax, dword [ebp - 0x24]
pop edx
call fcn.00405024
test eax, eax
jle 0x5133ce
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00441918
inc ebx
dec dword [ebp - 0xc]
jne 0x51332b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5133f5
mov eax, dword [ebp - 4]
call fcn.00403bec
ret
Function at 0x517178
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x517180
push ebx
mov ebx, edx
xor eax, eax
push ebp
push 0x51725d
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040b5ec
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 4]
mov eax, 0x517274
call fcn.0040c2f0
lea edx, [ebp - 0x14]
mov eax, dword [0x581040]
mov eax, dword [eax]
call fcn.0048e074
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00409b98
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x51728c
call fcn.00404d2c
mov eax, dword [ebp - 8]
call fcn.004099c4
test al, al
jne 0x5171ef
mov eax, dword [ebp - 8]
call fcn.00409e28
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x5172a0
call fcn.0040a520
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00404a74
mov ecx, dword [ebx]
lea eax, [ebp - 0xc]
mov edx, 0x5172bc
call fcn.00404d2c
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ee0
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517264
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00404a44
ret
Function at 0x5172c8
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x51743f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi + 0x328]
mov eax, dword [eax + 0x22c]
call fcn.004512c4
lea edx, [ebp - 0x14c]
mov eax, dword [0x581040]
mov eax, dword [eax]
call fcn.0048e074
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.00409b98
mov edx, dword [ebp - 0x148]
lea eax, [ebp - 4]
mov ecx, 0x517458
call fcn.00404d2c
mov eax, dword [ebp - 4]
call fcn.00404ee0
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [ebp - 0x144]
push eax
push 0x517464
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x517413
mov eax, dword [edi + 0x328]
mov eax, dword [eax + 0x22c]
call fcn.00451168
mov ebx, eax
lea eax, [ebp - 0x140]
call fcn.00579cc0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x150]
call fcn.0057afdc
mov edx, dword [ebp - 0x150]
mov eax, ebx
call fcn.00450c08
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00404c90
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404d2c
mov edx, dword [ebp - 0x154]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00450dc0
lea eax, [ebp - 0x144]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x517378
push esi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517446
lea eax, [ebp - 0x158]
mov edx, 5
call fcn.00404a44
lea eax, [ebp - 4]
call fcn.00404a20
ret
Function at 0x5175b4
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x517751
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x310]
mov eax, dword [eax + 0x22c]
call fcn.004512c4
lea edx, [ebp - 0x14c]
mov eax, dword [0x581040]
mov eax, dword [eax]
call fcn.0048e074
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.00409b98
mov edx, dword [ebp - 0x148]
lea eax, [ebp - 4]
mov ecx, 0x517768
call fcn.00404d2c
mov eax, dword [ebp - 4]
call fcn.00404ee0
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
test eax, eax
je 0x51770d
lea eax, [ebp - 0x144]
push eax
push 0x517778
call sub.kernel32.dll_FindFirstFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x517707
mov eax, dword [ebx + 0x310]
mov eax, dword [eax + 0x22c]
call fcn.00451168
mov esi, eax
lea eax, [ebp - 0x140]
call fcn.00579cc0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x150]
call fcn.0057afdc
mov edx, dword [ebp - 0x150]
mov eax, esi
call fcn.00450c08
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00404c90
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404d2c
mov edx, dword [ebp - 0x154]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00450dc0
lea eax, [ebp - 0x144]
push eax
push edi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x51766c
push edi
call sub.kernel32.dll_FindClose_1
xor edx, edx
mov eax, dword [ebx + 0x310]
call fcn.0045489c
mov edx, dword [ebx + 0x310]
mov edx, dword [edx + 0x48]
sub edx, 0x14
call fcn.004502f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517758
lea eax, [ebp - 0x158]
mov edx, 5
call fcn.00404a44
lea eax, [ebp - 4]
call fcn.00404a20
ret
Function at 0x5182e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
call fcn.00404ed0
xor eax, eax
push ebp
push 0x518507
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
push eax
mov edx, dword [ebp + 0x10]
mov eax, 0x518520
call fcn.00405024
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp + 0x10]
call fcn.00404f40
mov eax, dword [ebp - 0x34]
call fcn.00404ce0
cmp eax, 0x16
jg 0x5184d9
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp + 0x10]
call fcn.00404ee0
push eax
mov eax, dword [ebp + 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5184d0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
mov dword [ebp - 0x10], 0x3e8
cmp dword [ebp - 0x18], 0
jne 0x5183c8
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
call fcn.00517dcc
mov ebx, dword [ebp - 0x18]
dec ebx
test ebx, ebx
jl 0x5184d0
inc ebx
xor esi, esi
mov eax, dword [0x580cd8]
cmp byte [eax], 2
je 0x5184d0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x234]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
cmp dword [ebp + 0x10], 0
jne 0x518433
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 6
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x51852c
call fcn.0040a520
jmp 0x51847a
push dword [ebp + 0x10]
push 0x518520
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x238], 6
lea edx, [ebp - 0x23c]
xor ecx, ecx
mov eax, 0x51852c
call fcn.0040a520
push dword [ebp - 0x240]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404da0
mov edx, dword [ebp - 0x30]
mov eax, edi
call fcn.0046cef4
call fcn.0057b47c
mov eax, dword [ebp - 0x30]
mov edx, 0x518538
call fcn.00404e2c
je 0x5184b5
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.005182e0
mov dword [ebp - 0x10], 0x3e8
mov eax, dword [0x581040]
mov eax, dword [eax]
call fcn.0048d8b8
inc esi
dec ebx
jne 0x5183d7
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51850e
lea eax, [ebp - 0x240]
call fcn.00404a20
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404a44
lea eax, [ebp + 0x10]
call fcn.00404a20
ret
Function at 0x51b6dc
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x51b848
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi + 0x33c]
mov eax, dword [eax + 0x22c]
call fcn.004512c4
lea edx, [ebp - 0x14c]
mov eax, dword [0x581040]
mov eax, dword [eax]
call fcn.0048e074
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.00409b98
mov edx, dword [ebp - 0x148]
lea eax, [ebp - 4]
mov ecx, 0x51b860
call fcn.00404d2c
mov eax, dword [ebp - 4]
call fcn.00404ee0
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [ebp - 0x144]
push eax
push 0x51b86c
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x51b81c
mov eax, dword [edi + 0x33c]
mov eax, dword [eax + 0x22c]
call fcn.00451168
mov ebx, eax
lea eax, [ebp - 0x140]
call fcn.00579cc0
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x150]
call fcn.0040c2dc
mov edx, dword [ebp - 0x150]
mov eax, ebx
call fcn.00450c08
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00404c90
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404d2c
mov edx, dword [ebp - 0x154]
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x144]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x51b78c
push esi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51b84f
lea eax, [ebp - 0x158]
mov edx, 5
call fcn.00404a44
lea eax, [ebp - 4]
call fcn.00404a20
ret

Function at 0x51ce88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51cf09
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 4]
lea eax, [ebp - 0x109]
call fcn.0040a030
lea eax, [ebp - 4]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404f40
lea eax, [ebp - 4]
mov edx, 0x51cf20
call fcn.00404ce8
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404a74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51cf10
lea eax, [ebp - 4]
call fcn.00404a20
ret
Function at 0x522d64
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, eax
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x522e12
push 0xf01ff
mov eax, ebx
call fcn.00404ee0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x522e12
xor eax, eax
push ebp
push 0x522def
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x522e12
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x522e1c
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, eax
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x522eca
push 0xf01ff
mov eax, ebx
call fcn.00404ee0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x522eca
xor eax, eax
push ebp
push 0x522ea7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x522eca
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5352b8
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 4], 0xffffffff
push 0xf003f
push 0x535368
push 0x535378
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x535357
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x14
push 0x53537c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x535339
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x535322
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x535340
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x535a98
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404ed0
xor eax, eax
push ebp
push 0x535b2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0xb
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x535b44
call fcn.0040a520
push 0
mov eax, dword [ebp - 8]
call fcn.00404ee0
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebx + 0x344]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.00451200
mov eax, dword [eax + 8]
mov ecx, 0x535b60
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x20]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x535b33
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a44
ret