joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471e30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push 0x5e754c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x471e74
xor esi, esi
jmp 0x471eb6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
neg eax
mov dword [ebp - 0x20], 1
push 0
sbb eax, eax
push 0
and eax, 2
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x471ec4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00536b66
mov esp, ebp
pop ebp
ret 8

Function at 0x471f10
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [ecx + 0x18], 8
push esi
lea esi, [ecx + 4]
mov eax, esi
jb 0x471f1e
mov eax, dword [esi]
push 0x80
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x471f35
mov esi, dword [esi]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x472f10
Capabilities:
Check os version
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ca08
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x5ffb64]
cmp eax, dword [edx + 4]
jle 0x472fb3
push 0x5ffb64
call fcn.005371fe
add esp, 4
cmp dword [0x5ffb64], 0xffffffff
jne 0x472fb3
push 0x110
lea eax, [ebp - 0x138]
mov dword [ebp - 0x13c], 0x114
push 0
push eax
call fcn.0054ec00
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x138], 6
push 0x5ffb64
sbb eax, eax
neg eax
mov dword [0x5ffb58], eax
call fcn.005371b4
add esp, 4
cmp dword [esi + 0x18], 8
lea edx, [esi + 4]
jb 0x472fbe
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472fd7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044b740
mov dword [ebp - 4], 0
cmp dword [0x5ffb58], 0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
je 0x473079
test ecx, ecx
je 0x4730c8
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x2e
jne 0x473079
cmp ecx, edx
jae 0x47303e
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, esi
mov dword [eax + ecx*2], 0x2e
jmp 0x473056
push 0x2e
mov byte [ebp - 0x140], 0
push dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044d230
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jae 0x4730aa
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 0x5c
jmp 0x4730c2
test ecx, ecx
je 0x4730c8
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4730c8
cmp ecx, edx
jae 0x4730aa
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, esi
mov dword [eax + ecx*2], 0x5c
jmp 0x4730c2
push 0x5c
mov byte [ebp - 0x140], 0
push dword [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044d230
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 8
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 8
jb 0x473127
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47311d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473143
push edx
push ecx
call fcn.00536da7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
call fcn.00552841
int3
Function at 0x473390
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cadb
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [0x5e761c]
mov ebx, eax
mov dword [ebp - 0x18], ecx
mov cx, word [0x5e7620]
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x14], cx
test ebx, ebx
je 0x473583
nop dword [eax + eax]
mov edi, ebx
test bl, 1
je 0x47356e
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0054ec00
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x47356e
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x4734a0
lea eax, [ebp - 0x220]
mov dl, 3
movzx ecx, word [eax]
cmp ecx, 0x5c
jne 0x473453
add dl, 0xff
je 0x47345d
add eax, 2
test cx, cx
jne 0x473446
jmp 0x4734a0
mov ebx, eax
lea ecx, [ebp - 0x220]
sub ebx, ecx
sar ebx, 1
nop dword [eax]
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x473481
cmp ecx, 0x5c
jne 0x473470
movzx edx, word [eax + 2]
lea eax, [eax + 2]
inc bl
movzx ecx, bl
mov word [ebp + ecx*2 - 0x220], dx
test dx, dx
jne 0x473481
mov ebx, dword [ebp - 0x224]
xor eax, eax
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4734c6
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x23c]
call fcn.0044b740
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x5ffb5c
call fcn.00467b80
lea ecx, [ebp - 0x18]
mov edx, eax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473510
sub ecx, esi
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044b740
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x47356e
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473564
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47359f
push edx
push ecx
call fcn.00536da7
add esp, 8
inc word [ebp - 0x18]
shr ebx, 1
mov dword [ebp - 0x224], ebx
cmp edi, 2
jae 0x4733f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
call fcn.00552841
int3
Function at 0x4735b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cb1c
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5ffb54]
cmp eax, dword [ecx + 4]
jle 0x473650
push 0x5ffb54
call fcn.005371fe
add esp, 4
cmp dword [0x5ffb54], 0xffffffff
jne 0x473650
mov dword [ebp - 4], 0
mov dword [0x5ffb5c], 0
mov dword [0x5ffb60], 0
call fcn.00469560
push 0x57fc40
mov dword [0x5ffb5c], eax
call fcn.00537040
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x5ffb54
call fcn.005371b4
add esp, 4
cmp dword [0x5ffb60], 0
jne 0x47365e
call fcn.00473390
cmp dword [edi + 0x10], 0
lea esi, [edi + 0x10]
je 0x4736d6
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x473671
mov eax, dword [edi]
push 0xb
push str.SystemRoot
push eax
call fcn.0055eac2
add esp, 0xc
test eax, eax
jne 0x4736e0
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0054ec00
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4736b5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
push 0xb
push ecx
mov ecx, edi
call fcn.004782a0
mov eax, 1
jmp 0x4737ac
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4736ea
mov eax, dword [edi]
push 4
push 0x5e763c
push eax
call fcn.0055eac2
add esp, 0xc
test eax, eax
jne 0x473732
mov eax, dword [esi]
mov ecx, 4
cmp eax, ecx
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x473712
mov edi, dword [edi]
sub eax, ecx
mov dword [esi], eax
lea eax, [eax*2 + 2]
push eax
lea eax, [edi + ecx*2]
push eax
push edi
call fcn.0054ed60
add esp, 0xc
mov eax, 1
jmp 0x4737ac
mov eax, dword [0x5ffb5c]
mov esi, dword [eax]
cmp esi, eax
je 0x4737aa
nop dword [eax]
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x47374b
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x473755
mov ecx, dword [edi]
push dword [esi + 0x20]
push eax
push ecx
call fcn.0055eac2
add esp, 0xc
test eax, eax
je 0x4737c7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x47378c
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x473788
cmp esi, dword [eax + 8]
jne 0x473788
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x473778
mov esi, eax
jmp 0x4737a2
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4737a2
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x473796
cmp esi, dword [0x5ffb5c]
jne 0x473740
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x20]
add esi, 0x28
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x4737d8
mov esi, dword [esi]
push ecx
push esi
push eax
push ecx
mov ecx, edi
call fcn.004782a0
mov eax, 1
jmp 0x4737ac
Function at 0x475990
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.00478090
push 0
push 2
mov dword [ebp - 0x270], str.spoolsv.exe
mov dword [ebp - 0x26c], str.sihost.exe
mov dword [ebp - 0x268], str.fontdrvhost.exe
mov dword [ebp - 0x264], str.cmd.exe
mov dword [ebp - 0x260], str.dwm.exe
mov dword [ebp - 0x25c], str.LogonUI.exe
mov dword [ebp - 0x258], str.lsass.exe
mov dword [ebp - 0x254], str.csrss.exe
mov dword [ebp - 0x250], str.smss.exe
mov dword [ebp - 0x24c], str.winlogon.exe
mov dword [ebp - 0x248], str.services.exe
mov dword [ebp - 0x244], str.conhost.exe
mov dword [ebp - 0x240], str.everything.exe
mov dword [ebp - 0x23c], 0x5ff3b8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x238], ebx
test ebx, ebx
je 0x475b10
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x475b09
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push esi
nop word [eax + eax]
xor esi, esi
push dword [ebp + esi*4 - 0x270]
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x475a9e
inc esi
cmp esi, 0xe
jl 0x475a82
jmp 0x475af1
push 4
call fcn.00536d77
mov ecx, dword [ebp - 0x228]
add esp, 4
mov dword [ebp - 0x234], eax
mov dword [eax], ecx
lea eax, [ebp - 0x234]
mov esi, dword [0x5ff988]
push eax
mov ebx, dword [esi + 4]
push ebx
push esi
call fcn.0045cb60
mov edx, dword [0x5ff98c]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x475b1f
inc edx
mov dword [0x5ff98c], edx
mov dword [esi + 4], eax
mov dword [ebx], eax
mov ebx, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x475a80
pop esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00536b66
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.00533fbe
int3
Function at 0x475b90
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x106c
call fcn.00537550
mov eax, dword [0x5f6ea4]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push esi
push edi
mov word [esp + 0x12], dx
lea eax, [esp + 0x870]
mov edi, ecx
mov esi, 0x800
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x475bc4
mov ecx, 0x800
lea eax, [esp + 0x70]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x475be0
mov ecx, 0x44
lea eax, [esp + 0x28]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x475bf4
mov ecx, 0x10
lea eax, [esp + 0x14]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x475c10
push edi
lea eax, [esp + 0x874]
mov word [esp + 0x5c], dx
push eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x24]
xor bl, bl
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x475c8a
push dword [esi]
lea eax, [esp + 0x74]
push 0x400
push eax
call fcn.0055a3d6
add esp, 0xc
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp word [esp + 0x70], 0
mov eax, 1
movzx ebx, bl
push esi
cmovne ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x14]
xor ecx, ecx
push eax
lea eax, [esp + 0x2c]
test bl, bl
push eax
lea eax, [esp + 0x78]
cmove eax, ecx
push eax
push ecx
xor eax, eax
mov ecx, 0x8000000
cmp word [esp + 0x22], ax
cmove eax, ecx
push eax
push 0
push 0
push 0
lea eax, [esp + 0x890]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x475d21
push edi
lea eax, [esp + 0x874]
push eax
push str.___Success_run:__s__pid:_i_
call fcn.0046b090
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x475cf8
push dword [ebp + 0xc]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x874]
push eax
push str.___Failed_to_run:__s__Code__lu.
call fcn.0046b090
mov ecx, dword [esp + 0x1080]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
Function at 0x477680
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x4777a4
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x268], esi
test esi, esi
je 0x4777a3
push ebx
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x47779f
push edi
push dword [ebp - 0x25c]
push 0
push 0x100411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x477788
push 0x2c
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_K32GetProcessMemoryInfo]
test eax, eax
je 0x477785
xor eax, eax
cmp eax, dword [ebp + 0xc]
jb 0x477785
ja 0x477721
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x2c], eax
jbe 0x477785
push dword [ebp - 0x25c]
mov dword [ebp - 8], 1
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47775c
mov eax, dword [0x5fdbac]
test eax, eax
je 0x477759
lea ecx, [ebp - 0xc]
push ecx
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1d
push esi
call eax
push esi
call ebx
cmp dword [ebp - 8], 0
jne 0x47777f
lea eax, [ebp - 0x240]
push eax
push str.___Process__high_RAM_:__s
call fcn.0046b090
add esp, 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [ebp - 0x268]
push edi
call ebx
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4776e2
pop edi
push esi
call ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
Function at 0x477b60
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
push 0xf003f
push 0
push 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x477d66
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 3
push 0x30
push ebx
call edi
test eax, eax
jne 0x477d5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x477d5f
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x14]
push eax
push 3
push 0x30
push ebx
call edi
test eax, eax
mov eax, dword [ebp - 0x20]
je 0x477d4f
mov esi, eax
test eax, eax
je 0x477d4f
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jbe 0x477d4c
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
nop dword [eax + eax]
push 0x5e841c
push dword [esi]
call edi
test eax, eax
jne 0x477ca5
push str.backup
push dword [esi]
call edi
test eax, eax
jne 0x477ca5
push str.database
push dword [esi]
call edi
test eax, eax
jne 0x477ca5
push 0x5e841c
push dword [esi + 4]
call edi
test eax, eax
jne 0x477ca5
push str.backup
push dword [esi + 4]
call edi
test eax, eax
jne 0x477ca5
push str.database
push dword [esi + 4]
call edi
test eax, eax
je 0x477d3c
mov edx, dword [esi]
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [eax + 2]
mov dword [ebp - 0x28], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x477cc3
sub eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
push edx
call fcn.0044b740
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], 0
call fcn.0045acf0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x477d2d
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x477d23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x477d82
push edx
push ecx
call fcn.00536da7
add esp, 8
push dword [esi]
push str.___Added_service:__s
call fcn.0046b090
add esp, 8
inc ebx
add esi, 0x24
cmp ebx, dword [ebp - 0x18]
jb 0x477c50
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
call fcn.00552841
int3
Function at 0x477d90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x5f6ea4]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
or eax, 0xffffffff
mov dword [esp + 0x10], 0xffffffff
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x477ddd
call ebx
push eax
push str.____Failed_to_get_activesession_Id._Code__lu
call fcn.0046b090
add esp, 8
push 0
push 2
mov dword [esp + 0x28], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x477e1d
call ebx
push eax
push str.____CreateToolhelp32Snapshot_failed._Code__lu
call fcn.0046b090
add esp, 8
or eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x477e72
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [esp + 0x44]
push eax
push 0x5e856c
call fcn.0055e967
add esp, 8
test eax, eax
jne 0x477e5c
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x477e6a
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x477e33
jmp 0x477e72
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x477ea9
push str.____Couldnt_find_explorer
call fcn.0046b090
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x477efc
mov eax, dword [esp + 0x10]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x477efc
call ebx
push eax
push str.____Failed_to_open_explorer._Code__lu
call fcn.0046b090
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x477f47
lea eax, [esp + 0x14]
push eax
push 2
push 2
push 0
push 0xc
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x477f41
call ebx
push eax
push str.____Failed_to_duplicate_token._Code__lu
call fcn.0046b090
add esp, 8
mov dword [esp + 0x14], 0xffffffff
push dword [esp + 0x18]
call edi
push esi
call edi
mov ecx, dword [esp + 0x254]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
Function at 0x47ad70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x5f6ea4]
xor eax, esp
mov dword [esp + 0x10], eax
mov ecx, dword [0x5fd94c]
mov edx, dword [0x5fd92c]
push ebx
shl ecx, 0xa
push esi
xor esi, esi
shl edx, 0xa
mov eax, ecx
mov ebx, esi
or eax, esi
push edi
mov edi, edx
je 0x47adab
cmp edx, ecx
jae 0x47adab
mov edi, ecx
cmp byte [0x5fd96a], 0
jne 0x47adb8
or edx, esi
jne 0x47adbc
or ecx, esi
je 0x47ae15
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0x2000000
push 3
push 0
push 7
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47ae15
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push esi
movq qword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], ebx
jg 0x47ae15
jl 0x47ae11
cmp dword [esp + 0x10], edi
jae 0x47ae15
xor bl, bl
jmp 0x47ae17
mov bl, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x47ae4d
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47ae43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ae61
push edx
push ecx
call fcn.00536da7
add esp, 8
mov ecx, dword [esp + 0x1c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00536b66
mov esp, ebp
pop ebp
ret
call fcn.00552841
int3