joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be10c
Capabilities:
Get system firmware table

Disassembly:
push 0x90
mov eax, 0x66436a
call fcn.005b47af
mov dword [ebp - 0x98], ecx
mov esi, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
mov dword [ebp - 0x90], eax
mov ebx, dword [sym.imp.KERNEL32.DLL_GetSystemFirmwareTable]
push 0x52534d42
mov dword [ebp - 0x9c], esi
call ebx
push eax
mov dword [ebp - 0x94], eax
call fcn.00611950
xor edx, edx
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov edi, eax
pop ecx
mov dword [esi + 0x10], edx
jb 0x4be167
mov eax, dword [esi]
jmp 0x4be169
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], edx
mov dword [ebp - 0x90], 1
test edi, edi
je 0x4be258
push dword [ebp - 0x94]
push edi
push edx
push 0x52534d42
call ebx
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.004be653
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
je 0x4be244
mov ebx, str.E6A23A08432E47E1
push ebx
call fcn.005ff18e
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040c73d
lea ecx, [ebp - 0x44]
call fcn.004bdd40
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00410890
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 3
push ebx
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x44]
call fcn.004bf366
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
call fcn.00410293
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.0040c133
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.00409de7
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.00409d92
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.00409d92
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00409d92
jmp 0x4be246
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00409de7
push edi
call fcn.005ff296
pop ecx
mov eax, esi
call fcn.005b4759
ret 4
Function at 0x4bf3cd
Capabilities:
Hash data via wincrypt

Disassembly:
push 0x6c
mov eax, 0x66472a
call fcn.005b47af
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push 0x686090
call fcn.00407874
and dword [ebp - 4], 0
lea eax, [ebp - 0x44]
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.0040784e
mov eax, dword [ebp - 0x2c]
lea edi, [esi + 4]
mov dword [esi], eax
mov ecx, edi
lea eax, [ebp - 0x28]
push eax
call fcn.0040d976
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00409d92
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
push 0
push 1
call fcn.00409d92
cmp dword [esi + 0x1c], 0
je 0x4bf49d
cmp dword [esi + 0x20], 0
je 0x4bf49d
push 0
push dword [ebp + 0xc]
push ebx
push dword [esi + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4bf499
push str.Updating_hash_failed_
lea ecx, [ebp - 0x78]
call fcn.00407874
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x5c]
lea eax, [ebp - 0x78]
push eax
call fcn.0040784e
mov eax, dword [ebp - 0x60]
mov ecx, edi
mov dword [esi], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040d976
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.00409d92
push 0
lea ecx, [ebp - 0x78]
jmp 0x4bf4e1
mov al, 1
jmp 0x4bf4ea
push str.Cryptographic_provider_not_acquired_
lea ecx, [ebp - 0x44]
call fcn.00407874
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 1
xor ebx, ebx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], ebx
call fcn.0040784e
mov eax, dword [ebp - 0x2c]
mov ecx, edi
mov dword [esi], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d976
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00409d92
push ebx
lea ecx, [ebp - 0x44]
push 1
call fcn.00409d92
xor al, al
call fcn.005b4759
ret 8
Function at 0x4bf8f2
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x664862
mov eax, dword fs:[0]
push eax
mov eax, 0x29c0
call fcn.005b4b80
mov eax, dword [0x72232c]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x2918]
push eax
lea eax, [ebp - 0x28b4]
mov dword [ebp - 0x2918], 0x2880
xor ebx, ebx
push eax
mov dword [ebp - 0x291c], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x4bf9c2
push 1
push 3
lea ecx, [ebp - 0x29cc]
call fcn.004078ff
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x29bc]
push str.GetAdaptersInfo_error
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0x29cc]
push eax
push str.MacAddress::create
push 0x17
push str.D:_build6c589d3ff8507062_src_systemMacAddress.cpp
push ebx
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x29cc]
call fcn.0040843a
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
jmp 0x4bfad6
mov eax, ebx
mov dword [ebp - 0x28b8], 7
xor ecx, ecx
mov dword [ebp - 0x28bc], eax
mov word [ebp - 0x28cc], cx
mov dword [ebp - 4], 1
lea edi, [ebp - 0x28b4]
test eax, eax
jne 0x4bfab0
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
lea eax, [ebp - 0x34]
push str._02x__02x__02x__02x__02x__02x
push eax
call fcn.004bf8d3
push dword [edi + 0x1a0]
lea eax, [ebp - 0x2914]
push eax
call fcn.00425396
push 0x694418
push eax
lea eax, [ebp - 0x28fc]
mov byte [ebp - 4], 2
push eax
call fcn.0040bca5
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x28e4]
push eax
call fcn.0040bca5
add esp, 0x40
lea ecx, [ebp - 0x28cc]
push eax
call fcn.0040c133
push ebx
push 1
lea ecx, [ebp - 0x28e4]
call fcn.00409de7
push ebx
push 1
lea ecx, [ebp - 0x28fc]
call fcn.00409de7
push ebx
push 1
lea ecx, [ebp - 0x2914]
mov byte [ebp - 4], 1
call fcn.00409de7
mov eax, dword [ebp - 0x28bc]
mov edi, dword [edi]
test edi, edi
jne 0x4bf9ea
lea eax, [ebp - 0x28cc]
mov ecx, esi
push eax
call fcn.0040bd4b
push ebx
push 1
lea ecx, [ebp - 0x28cc]
call fcn.00409de7
mov eax, esi
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.005b4733
mov esp, ebp
pop ebp
ret
Function at 0x4c008f
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push 0x4b8
mov eax, 0x664a2a
call fcn.005b47af
mov dword [ebp - 0x4b8], ecx
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x4b4], ebx
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4c02b4
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x4b0], 0x22c
push eax
push esi
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x4c02a5
push dword [ebp - 0x4a8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x4c0298
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005f3980
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x4c0150
lea eax, [ebp - 0x218]
push eax
call fcn.005ff18e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a315
mov ecx, dword [ebp - 0x4b8]
lea eax, [ebp - 0x230]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.004c1e9f
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.00411307
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.00409de7
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.00409de7
push 0x40
call fcn.005b430b
pop ecx
mov dword [ebp - 0x4c4], eax
test eax, eax
je 0x4c0208
and dword [ebp - 0x238], 0
xor ecx, ecx
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], cx
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x26c]
or ebx, 1
push ecx
push dword [ebp - 0x4a8]
mov ecx, eax
mov dword [ebp - 0x4b4], ebx
call fcn.004bfc7b
jmp 0x4c020a
xor eax, eax
and dword [ebp - 0x4c0], 0
lea ecx, [ebp - 0x4c0]
and dword [ebp - 0x4bc], 0
push eax
mov dword [ebp - 4], 7
call fcn.004bfc0e
mov dword [ebp - 4], 9
test bl, 1
je 0x4c024f
push 0
and ebx, 0xfffffffe
lea ecx, [ebp - 0x248]
push 1
mov dword [ebp - 0x4b4], ebx
call fcn.00409de7
mov ecx, dword [ebp - 0x4b8]
lea eax, [ebp - 0x4c0]
push eax
lea ecx, [ecx + 4]
call fcn.004c1b45
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x4bc]
test ecx, ecx
je 0x4c027a
call fcn.00418cb4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.00409ec4
push 0
push 1
lea ecx, [ebp - 0x26c]
call fcn.00409de7
lea eax, [ebp - 0x4b0]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4c00db
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.005b4759
ret
Function at 0x4c02ba
Capabilities:
Get process image filename

Disassembly:
push 0x290
mov eax, 0x664ab0
call fcn.005b47af
mov esi, ecx
mov dword [ebp - 0x288], esi
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
cmp dword [esi + 0x10], ebx
jne 0x4c0300
push str.NtQuerySystemInformation
push str.ntdll.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esi + 0x10], eax
test eax, eax
je 0x4c0529
push 4
push 0x3000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
je 0x4c0529
mov eax, dword [ebp - 0x288]
mov edi, esi
push 0
push 0x100000
push esi
push 5
call dword [eax + 0x10]
test eax, eax
js 0x4c051b
cmp dword [esi], ebx
je 0x4c051b
mov esi, dword [ebp - 0x288]
push dword [edi + 0x44]
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x288], eax
test eax, eax
je 0x4c050a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005f3980
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0x288]
call sub.PSAPI.DLL_GetProcessImageFileNameW
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x4c03ca
lea eax, [ebp - 0x218]
push eax
call fcn.005ff18e
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a315
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x284]
mov ecx, esi
push eax
call fcn.004c1e9f
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.00411307
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.00409de7
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.00409de7
push 0x40
call fcn.005b430b
pop ecx
mov dword [ebp - 0x29c], eax
test eax, eax
je 0x4c047b
and dword [ebp - 0x238], 0
xor ecx, ecx
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], cx
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x26c]
or ebx, 1
push ecx
push dword [edi + 0x44]
mov ecx, eax
mov dword [ebp - 0x28c], ebx
call fcn.004bfc7b
jmp 0x4c047d
xor eax, eax
and dword [ebp - 0x294], 0
lea ecx, [ebp - 0x294]
and dword [ebp - 0x290], 0
push eax
mov dword [ebp - 4], 7
call fcn.004bfc0e
mov dword [ebp - 4], 9
test bl, 1
je 0x4c04c2
push 0
and ebx, 0xfffffffe
lea ecx, [ebp - 0x248]
push 1
mov dword [ebp - 0x28c], ebx
call fcn.00409de7
lea eax, [ebp - 0x294]
push eax
lea ecx, [esi + 4]
call fcn.004c1b45
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x290]
test ecx, ecx
je 0x4c04ec
call fcn.00418cb4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.00409ec4
push 0
push 1
lea ecx, [ebp - 0x26c]
call fcn.00409de7
add edi, dword [edi]
cmp dword [edi], 0
jne 0x4c034f
mov esi, dword [ebp - 0x298]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
call fcn.005b4759
ret
Function at 0x4c1e9f
Capabilities:
Get disk information

Disassembly:
push 0x248
mov eax, 0x66511b
call fcn.005b47af
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x254], 0
push 0x41
pop esi
push 0x3a
pop eax
mov word [ebp - 0x16], ax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x220]
push eax
mov word [ebp - 0x18], si
call fcn.005f3980
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 0x4c1f2e
cmp word [ebp - 0x220], 0
jne 0x4c1f0c
xor eax, eax
jmp 0x4c1f19
lea eax, [ebp - 0x220]
push eax
call fcn.005ff18e
pop ecx
push eax
push 0
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call fcn.0042509f
test eax, eax
je 0x4c1f4b
inc esi
cmp si, 0x5a
jbe 0x4c1ebe
push 0x684590
mov ecx, edi
call fcn.004078a3
mov eax, edi
call fcn.005b4759
ret 8
push 0xffffffffffffffff
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
lea eax, [ebp - 0x250]
mov ecx, ebx
push eax
call fcn.0041210e
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x224], 7
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], ax
cmp word [ebp - 0x18], ax
je 0x4c1f99
lea eax, [ebp - 0x18]
push eax
call fcn.005ff18e
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040a315
push esi
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 1
push eax
push edi
call fcn.00417c9a
add esp, 0xc
lea ecx, [ebp - 0x238]
push ebx
push 1
call fcn.00409de7
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00409de7
jmp 0x4c1f41

Function at 0x4c27db
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x4c27f4
cmp dword [edi], 2
jae 0x4c27f4
push 0x7a
pop eax
jmp 0x4c2853
mov eax, dword [edi]
push ebx
add eax, eax
xor ebx, ebx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x10]
mov dword [edi], ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c2852
cmp dword [ebp + 0x10], 7
jne 0x4c2847
mov ecx, dword [ebp + 0xc]
test esi, esi
je 0x4c284c
test cl, 1
jne 0x4c2847
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x4c2847
cmp word [esi + eax*2 - 2], bx
jne 0x4c2847
cmp eax, 1
jbe 0x4c284c
cmp word [esi + eax*2 - 4], bx
je 0x4c284c
push 0xd
pop eax
jmp 0x4c2852
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c452e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x665721
mov eax, dword fs:[0]
push eax
mov eax, 0x204c
call fcn.005b4b80
mov eax, dword [0x72232c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x204c], ecx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x4c4575
mov eax, dword [esi]
jmp 0x4c4577
mov eax, esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4c4686
and dword [ebp - 0x2044], 0
cmp dword [esi + 0x14], 8
jb 0x4c4598
mov eax, dword [esi]
jmp 0x4c459a
mov eax, esi
lea ecx, [ebp - 0x2044]
push ecx
push 0xf003f
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
je 0x4c4633
cmp eax, 2
cmove eax, ecx
jmp 0x4c4686
push 0x6869a4
lea eax, [ebp - 0x2040]
push esi
push eax
call fcn.004290f9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2010]
push ecx
push eax
lea eax, [ebp - 0x2028]
push eax
call fcn.0040bca5
add esp, 0x18
mov ecx, dword [ebp - 0x204c]
push eax
push edi
mov byte [ebp - 4], 1
call fcn.004c452e
push 0
push 1
lea ecx, [ebp - 0x2028]
mov dword [ebp - 0x2050], eax
call fcn.00409de7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2040]
push 0
push 1
call fcn.00409de7
mov eax, dword [ebp - 0x2050]
test eax, eax
jne 0x4c4686
xor ecx, ecx
lea eax, [ebp - 0x2058]
mov dword [ebp - 0x2048], 0x1000
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x2048]
push eax
lea eax, [ebp - 0x2010]
push eax
push ecx
push dword [ebp - 0x2044]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4c45c1
push dword [ebp - 0x2044]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x14], 8
jb 0x4c467e
mov esi, dword [esi]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
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.005b4733
mov esp, ebp
pop ebp
ret 8
Function at 0x4c7bec
Capabilities:
Enumerate services

Disassembly:
push 0x1a0
mov eax, 0x66607f
call fcn.005b47af
mov esi, ecx
mov dword [ebp - 0x44], esi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
push 5
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x4c7c8a
push 1
push 3
lea ecx, [ebp - 0xfc]
call fcn.004078ff
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0xec]
push str.OpenSCManager__error
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0xfc]
push eax
push str.ServiceList::getServiceNames
push 0x22
push str.D:_build6c589d3ff8507062_src_systemServiceList.cpp
push 0
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0xfc]
call fcn.0040843a
jmp 0x4c7d89
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
lea ecx, [ebp - 0x2c]
xor edx, edx
push edx
push edx
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edx
push ecx
push edx
push edx
push 3
push dword [esi]
mov dword [ebp - 0x2c], edx
push edx
push eax
call edi
mov esi, dword [ebp - 0x30]
add esi, 0xa
push esi
call fcn.005b485c
pop ecx
xor edx, edx
mov dword [ebp - 0x40], eax
push edx
push edx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push esi
mov esi, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push 3
push dword [eax]
push edx
push esi
call edi
test eax, eax
jne 0x4c7d3c
push 1
push 3
lea ecx, [ebp - 0x1ac]
call fcn.004078ff
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x19c]
push str.EnumServicesStatusEx__error
push eax
call fcn.0040710b
pop ecx
pop ecx
mov ecx, eax
call fcn.004129b9
lea eax, [ebp - 0x1ac]
push eax
push str.ServiceList::getServiceNames
push 0x33
push str.D:_build6c589d3ff8507062_src_systemServiceList.cpp
push 0
call fcn.0040b02b
mov ecx, eax
call fcn.0041875b
lea ecx, [ebp - 0x1ac]
jmp 0x4c7c80
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
cmp dword [ebp - 0x2c], esi
jbe 0x4c7d80
mov edi, dword [ebp - 0x40]
push dword [edi]
lea ecx, [ebp - 0x28]
call fcn.004078a3
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042630c
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00409de7
inc esi
lea edi, [edi + 0x2c]
cmp esi, dword [ebp - 0x2c]
jb 0x4c7d4d
push dword [ebp - 0x40]
call fcn.005b4857
pop ecx
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0041b913
lea ecx, [ebp - 0x3c]
call fcn.00409ec4
mov eax, ebx
call fcn.005b4759
ret 4
Function at 0x4ca3d1
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.004ca3a8
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea esi, [edi + 0x60]
push esi
push 0x6b58d8
push 1
push ebx
push 0x6bb558
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4ca405
mov dword [esi], ebx
xor al, al
jmp 0x4ca47e
mov ecx, dword [esi]
lea ebx, [edi + 0x64]
push ebx
push 0x6ba438
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jns 0x4ca429
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
and dword [esi], 0
and dword [ebx], 0
jmp 0x4ca401
lea esi, [edi + 0xc]
push esi
call fcn.00414df1
pop ecx
test al, al
je 0x4ca47c
cmp dword [esi + 0x14], 8
jb 0x4ca441
mov eax, dword [esi]
jmp 0x4ca443
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 1
je 0x4ca465
cmp dword [esi + 0x14], 8
jb 0x4ca458
mov ecx, dword [esi]
jmp 0x4ca45a
mov ecx, esi
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x4ca46d
mov esi, dword [esi]
mov eax, dword [ebx]
push 2
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x4ca401
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4ca4fe
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp esi, dword [ebp + 8]
je 0x4ca515
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.0040a0a9
mov ax, word [ebp + 0xc]
mov ecx, esi
mov word [esi + 0x18], ax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x1c], eax
call fcn.004ca56d
test al, al
jne 0x4ca53e
xor al, al
jmp 0x4ca568
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
call sub.WS2_32.dll_socket
mov ecx, eax
mov dword [esi + 0x28], ecx
cmp ecx, 0xffffffff
je 0x4ca53a
push 0x10
lea eax, [esi + 0x2c]
push eax
push ecx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
setne al
pop esi
pop ebp
ret 0x14

Function at 0x4ca56d
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov edi, ecx
push 0x10
push 0
lea esi, [edi + 0x2c]
push esi
call fcn.005f3980
mov ax, word [edi + 0x1c]
add esp, 0xc
mov word [esi], ax
movzx eax, word [edi + 0x18]
push eax
call sub.WS2_32.dll_htons
mov word [edi + 0x2e], ax
cmp dword [edi + 0x14], 0x10
jb 0x4ca5a0
mov eax, dword [edi]
jmp 0x4ca5a2
mov eax, edi
push eax
call sub.WS2_32.dll_inet_addr
lea esi, [edi + 0x30]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4ca5d1
cmp dword [edi + 0x14], 0x10
jb 0x4ca5ba
mov edi, dword [edi]
push edi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x4ca5c8
xor al, al
jmp 0x4ca5d3
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
ret
Function at 0x4ccbaf
Capabilities:
Get disk information

Disassembly:
push 0xb8
mov eax, 0x667118
call fcn.005b47af
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xc4], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xbc], 1
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov edi, eax
mov eax, edi
mov ecx, ebx
shr eax, cl
test al, 1
je 0x4ccd5e
and dword [ebp - 0x18], 0
lea eax, [ebx + 0x41]
mov byte [ebp - 0xc0], al
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push dword [ebp - 0xc0]
xor eax, eax
lea ecx, [ebp - 0x28]
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.00409fa6
and dword [ebp - 0x30], 0
xor eax, eax
push 0x69cfe8
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.005ff18e
pop ecx
push eax
push 0x69cfe8
lea ecx, [ebp - 0x40]
call fcn.0040a315
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00410293
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00417c9a
add esp, 0x14
push 0
push 1
lea ecx, [ebp - 0xa0]
call fcn.00409de7
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00409de7
and dword [ebp - 0x48], 0
xor eax, eax
push 0x6871dc
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.005ff18e
pop ecx
push eax
push 0x6871dc
lea ecx, [ebp - 0x58]
call fcn.0040a315
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00410293
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00417c9a
add esp, 0x14
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.00409de7
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.00409de7
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x4ccd33
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.00411fb2
push 0
push 1
lea ecx, [ebp - 0x88]
call fcn.00409de7
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00409de7
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00409d92
inc ebx
cmp ebx, 0x1a
jl 0x4ccbec
mov eax, esi
call fcn.005b4759
ret 4