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

Disassembly:
push 0x80c
mov eax, 0x5bb94e
call fcn.005870c4
lea eax, [ebp - 0x814]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x814], 0
lea esi, [ebp - 0x814]
je 0x41c845
lea eax, [ebp - 0x818]
push eax
call fcn.004084c2
and dword [ebp - 4], 0
push esi
push 0x68873c
lea eax, [ebp - 0x818]
call fcn.00417a4d
pop ecx
pop ecx
lea eax, [ebp - 0x818]
push eax
mov eax, ebx
call fcn.00413ad9
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41c81e
sub eax, ecx
sar eax, 1
lea esi, [esi + eax*2 + 2]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x818]
call fcn.00408559
cmp word [esi], 0
jne 0x41c7e8
call fcn.00587147
ret

Function at 0x41c84b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bb915
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
call fcn.00426552
lea eax, [esp + 0x14]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x14], 0
lea edi, [esp + 0x14]
je 0x41c924
lea eax, [esp + 0xc]
push eax
call fcn.004084c2
and dword [esp + 0x828], 0
push edi
push 0x688744
lea eax, [esp + 0x14]
call fcn.00417a4d
pop ecx
pop ecx
lea esi, [esp + 0xc]
call fcn.00408793
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x41c8f6
mov eax, esi
push eax
mov eax, dword [esp + 0x14]
call fcn.00413ad9
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41c8fb
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
or dword [esp + 0x828], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00408559
cmp word [edi], 0
jne 0x41c8b2
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.005796dc
mov esp, ebp
pop ebp
ret
Function at 0x41c947
Capabilities:
Get disk information

Disassembly:
push 0xa88
mov eax, 0x5b8606
call fcn.005870c4
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa88], eax
call fcn.00426859
lea eax, [ebp - 0x8dc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
lea edi, [ebp - 0x8dc]
cmp word [ebp - 0x8dc], bx
je 0x41cae3
lea eax, [ebp - 0xa80]
push eax
call fcn.004084c2
mov dword [ebp - 4], ebx
push edi
push 0x68874c
lea eax, [ebp - 0xa80]
call fcn.00417a4d
pop ecx
pop ecx
lea esi, [ebp - 0xa80]
call fcn.00408793
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x41cab4
lea eax, [ebp - 0xa7c]
call fcn.0041b827
xor eax, eax
push 0xc6
mov word [ebp - 0xdc], ax
lea eax, [ebp - 0xda]
push ebx
push eax
call fcn.0057e5e0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xa84]
push eax
push 0x64
lea eax, [ebp - 0xdc]
push eax
push dword [ebp - 0xa80]
mov dword [ebp - 0xa84], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41cab4
mov eax, dword [ebp - 0xa84]
push eax
push ecx
mov dword [ebp - 0xa7c], eax
mov eax, esp
mov dword [ebp - 0xa90], esp
mov ecx, esi
push ecx
push eax
mov dword [ebp - 0x8e8], ebx
call fcn.004084e9
mov byte [ebp - 4], 1
push ecx
mov eax, esp
mov dword [ebp - 0xa94], esp
lea ecx, [ebp - 0xdc]
push ecx
push eax
call fcn.00408518
mov byte [ebp - 4], 2
lea eax, [ebp - 0xa8c]
push eax
mov byte [ebp - 4], bl
call fcn.0041cae9
add esp, 0x10
mov byte [ebp - 4], 3
mov esi, eax
call fcn.00408793
lea ecx, [ebp - 0xa78]
movzx edx, word [eax]
inc eax
mov word [ecx], dx
inc eax
inc ecx
inc ecx
cmp dx, bx
jne 0x41ca85
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa8c]
call fcn.00408559
lea eax, [ebp - 0xa7c]
push eax
mov eax, dword [ebp - 0xa88]
call fcn.004267ee
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x41cab9
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa80]
call fcn.00408559
cmp word [edi], bx
jne 0x41c98b
call fcn.00587147
ret

Function at 0x41ce01
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x5b500b
call fcn.0058705b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
call fcn.004083b0
mov dword [ebp - 4], ebx
push ebx
push ebx
push 3
push ebx
push ebx
push connect
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41ce84
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
inc eax
push eax
call fcn.00579e3f
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
mov byte [esi + eax], bl
call fcn.0040847c
push esi
call fcn.00579d62
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
call fcn.00587133
ret
Function at 0x41ce8d
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x5ae9e6
call fcn.0058705b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
xor ebx, ebx
mov esi, connect
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x41ced1
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41cf3f
mov byte [ebp + 0xb], 1
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x41cf0c
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x14]
call esi
cmp byte [ebp + 0xb], bl
je 0x41cf22
push dword [ebp - 0x10]
call esi
push dword [0x6de664]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00408559
call fcn.00587133
ret
mov dword [ebp - 0x10], esi
jmp 0x41ced1

Function at 0x41d1a5
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x41d236
lea eax, [ebp - 8]
push eax
push 0x28
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41d233
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x41d22e
mov eax, dword [ebp - 0x10]
push ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push ebx
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x41d22e
mov byte [ebp - 1], 1
push dword [ebp - 8]
call esi
push edi
call esi
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d360
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov eax, connect
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x41d390
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x41d3b6
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
je 0x41d3b9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
jne 0x41d3a9
jmp 0x41d3ab

Function at 0x41d3fd
Capabilities:
Enumerate services
Query service status

Disassembly:
push 0x70
push 0x69c550
call fcn.00583c50
call fcn.0041d726
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0x7530
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
xor edi, edi
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call esi
test eax, eax
jne 0x41d555
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x41d44f
xor eax, eax
jmp 0x41d557
push dword [ebp - 0x20]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
cmp eax, edi
je 0x41d448
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x20]
push eax
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x41d496
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x6c56f8
call fcn.0058fee4
add esp, 0xc
jmp 0x41d448
mov dword [ebp - 0x24], edi
mov esi, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x28]
jae 0x41d549
imul esi, esi, 0x24
add esi, dword [ebp - 0x2c]
push 9
pop ecx
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push 0x24
push dword [ebp - 0x80]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x41d481
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x5c]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41d481
cmp dword [ebp - 0x58], ebx
je 0x41d52b
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push 0x24
lea eax, [ebp - 0x5c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41d481
cmp dword [ebp - 0x58], ebx
je 0x41d52b
call fcn.0041d726
xor ecx, ecx
sub eax, dword [ebp - 0x30]
sbb edx, ecx
cmp edx, ecx
jb 0x41d4dd
ja 0x41d481
cmp eax, dword [ebp - 0x34]
jbe 0x41d4dd
jmp 0x41d481
and dword [ebp - 4], 0
call fcn.0041d53f
inc dword [ebp - 0x24]
jmp 0x41d499
mov dword [ebp - 4], 0xfffffffe
call fcn.0041d560
mov eax, ebx
call fcn.00583c95
ret
Function at 0x41d5e5
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
call fcn.0041d726
push 0xf003f
push esi
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x41d615
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0x2c
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x41d635
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x41d610
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea ecx, [ebp - 0xc]
push ecx
push 0x24
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
call edi
test eax, eax
je 0x41d715
xor eax, eax
inc eax
cmp dword [ebp - 0x30], eax
je 0x41d610
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41d6a1
push dword [ebp - 0x1c]
call esi
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 4]
call edi
test eax, eax
je 0x41d715
cmp dword [ebp - 0x30], 1
je 0x41d715
call fcn.0041d726
xor ecx, ecx
sub eax, ebx
sbb edx, ecx
test edx, edx
ja 0x41d715
jb 0x41d6a1
cmp eax, 0x7530
ja 0x41d715
cmp dword [ebp - 0x30], 3
je 0x41d661
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0041d3fd
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41d715
push 0x3e8
call esi
jmp 0x41d708
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 4]
call edi
test eax, eax
je 0x41d715
cmp dword [ebp - 0x30], 1
je 0x41d70e
push dword [ebp - 0x1c]
call esi
call fcn.0041d726
xor ecx, ecx
sub eax, ebx
sbb edx, ecx
test edx, edx
ja 0x41d715
jb 0x41d708
cmp eax, 0x7530
ja 0x41d715
cmp dword [ebp - 0x30], 1
jne 0x41d6d0
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x10]
jmp 0x41d628

Function at 0x41d917
Capabilities:
Get hostname

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x5b856e
call fcn.0058705b
and dword [ebp - 0x10], 0
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x104
call fcn.0057e5e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp]
push eax
push esi
call fcn.00408518
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
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 + 0x208]
xor ecx, ebp
call fcn.005796dc
add ebp, 0x20c
leave
ret
Function at 0x41d9a9
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0xa88
mov eax, 0x5bb8e2
call fcn.005870c4
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, 0x3ff
push esi
mov dword [ebp - 0xa90], eax
lea eax, [ebp - 0xa2b]
push ebx
mov dword [ebp - 0xa94], ebx
push eax
mov byte [ebp - 0xa2c], bl
call fcn.0057e5e0
add esp, 0xc
push esi
lea eax, [ebp - 0x62b]
push ebx
push eax
mov byte [ebp - 0x62c], bl
call fcn.0057e5e0
lea eax, [ebp - 0x62c]
add esp, 0xc
push eax
call fcn.0041efb2
lea eax, [ebp - 0x22c]
mov dword [esp], 0x104
push eax
mov dword [ebp - 0xa88], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xa88], ebx
cmp eax, ebx
je 0x41da5b
cmp eax, 3
jb 0x41da5b
push ebx
push ebx
push ebx
xor eax, eax
push ebx
mov word [ebp - 0x226], ax
lea eax, [ebp - 0xa88]
push eax
push ebx
push ebx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, ebx
setne al
jmp 0x41da5d
xor al, al
mov edi, 0x400
cmp al, bl
je 0x41da98
lea eax, [ebp - 0x62c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41da6f
push dword [ebp - 0xa88]
sub eax, edx
mov ecx, edi
sub ecx, eax
push str._08X
push ecx
lea eax, [ebp + eax - 0x62c]
push eax
call fcn.00579d23
add esp, 0x10
lea ecx, [ebp - 0xa84]
call fcn.0041c0e9
lea eax, [ebp - 0x62c]
push eax
mov eax, edi
lea esi, [ebp - 0xa84]
call fcn.0042d610
pop ecx
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.0042d6aa
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
movzx eax, byte [ebp - 0x21]
push eax
movzx eax, byte [ebp - 0x22]
push eax
movzx eax, byte [ebp - 0x23]
push eax
movzx eax, byte [ebp - 0x24]
push eax
push 0x6889e0
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.00579d23
add esp, 0x4c
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xa8c]
push eax
call fcn.004083d7
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0xa8c]
push eax
push dword [ebp - 0xa90]
call fcn.0041baa0
pop ecx
pop ecx
mov dword [ebp - 0xa94], esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa8c]
call fcn.00408418
mov eax, dword [ebp - 0xa90]
call fcn.00587147
ret
Function at 0x41db74
Capabilities:
Get mac address on windows

Disassembly:
push 0xc
mov eax, 0x5b853a
call fcn.0058705b
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
push ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x41dba4
push dword [ebp - 0x10]
call fcn.005786a9
pop ecx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp esi, ebx
je 0x41dc1d
lea eax, [ebp - 0x14]
push eax
call fcn.004084c2
xor edi, edi
inc edi
mov dword [ebp - 4], edi
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02x:_02x:_02x:_02x:_02x:_02x
lea eax, [ebp - 0x14]
call fcn.00417a4d
add esp, 0x1c
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.004084e9
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00408559
jmp 0x41dc34
push 0x688a60
push dword [ebp + 8]
call fcn.00408518
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 8]
call fcn.00587133
ret

Function at 0x41dd8d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
push 0
push 2
mov esi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x41ddd1
xor eax, eax
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
xor ecx, esp
call fcn.005796dc
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x41ddf5
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41ddbd
lea eax, [esp + 8]
push eax
call fcn.00426a28
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41ddf5
xor esi, esi
inc esi
jmp 0x41ddea
Function at 0x41de13
Capabilities:
Terminate process

Disassembly:
push 0x40
mov eax, 0x5bb89a
call fcn.0058705b
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00448527
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
push eax
call fcn.00421d8f
mov esi, dword [ebp - 0x40]
pop ecx
cmp esi, dword [ebp - 0x3c]
jbe 0x41de4b
call fcn.0057a4ca
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x3c]
cmp dword [ebp - 0x40], esi
jbe 0x41de61
call fcn.0057a4ca
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x41de6d
cmp eax, dword [ebp - 0x4c]
je 0x41de72
call fcn.0057a4ca
cmp dword [ebp - 0x28], esi
je 0x41e018
push dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.00414dbf
add eax, 0x18
push eax
call fcn.004085f9
test eax, eax
jne 0x41ded6
push str.vbui.exe
lea eax, [ebp - 0x18]
push eax
call fcn.00408518
mov byte [ebp - 4], 2
xor edi, edi
inc edi
or dword [ebp - 0x14], edi
call fcn.00414dbf
mov edx, eax
add edx, 0x18
lea eax, [ebp - 0x18]
call fcn.004763b0
test al, al
jne 0x41ded9
call fcn.00414dbf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esi], eax
je 0x41ded9
mov bl, 1
jmp 0x41dedb
xor edi, edi
inc edi
xor bl, bl
mov dword [ebp - 4], edi
test byte [ebp - 0x14], 1
je 0x41def0
and dword [ebp - 0x14], 0xfffffffe
lea ecx, [ebp - 0x18]
call fcn.00408559
test bl, bl
je 0x41e008
cmp dword [0x6c438c], edi
jl 0x41df3b
lea esi, [ebp - 0x2c]
call fcn.00414dbf
add eax, 0x18
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.00474d20
mov byte [ebp - 4], 3
push dword [eax]
push str.S_PRE_PROC:__s
push 0x688aa4
push edi
call fcn.00538922
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00408418
lea esi, [ebp - 0x2c]
call fcn.00414dbf
push dword [eax]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x41e008
cmp dword [0x6c438c], 1
jl 0x41df9a
call fcn.00414dbf
add eax, 0x18
push dword [eax]
lea eax, [ebp - 0x20]
push eax
call fcn.00474d20
mov byte [ebp - 4], 4
push dword [eax]
push str.S_OPEN_PROC:__s
push 0x688acc
push 1
call fcn.00538922
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00408418
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [0x6c438c], 1
mov edi, eax
jl 0x41dff6
lea esi, [ebp - 0x2c]
call fcn.00414dbf
add eax, 0x18
push dword [eax]
lea eax, [ebp - 0x24]
push eax
call fcn.00474d20
pop ecx
pop ecx
mov esi, eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [esi]
push str.S_POST_PROC:__s___i___i
push str.Helper::KillInProcs2
push 1
call fcn.00538922
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00408418
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [ebp - 0x34]
lea esi, [ebp - 0x2c]
call fcn.00426b5c
jmp 0x41de54
mov byte [ebp - 4], 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00426a91
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408559
call fcn.00587133
ret
Function at 0x41e0a2
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x5ae93e
call fcn.0058705b
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x41e0f3
cmp dword [ebp - 0x14], ebx
je 0x41e0d1
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x41e127
mov eax, dword [ebp - 0x14]
jmp 0x41e0f8
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
jne 0x41e127
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 8], ebx
jne 0x41e11c
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [ebp - 0xd], 1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x41e135
push dword [ebp - 0x14]
call esi
mov al, byte [ebp - 0xd]
call fcn.00587133
ret

Function at 0x41e13e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x5ae9bb
call fcn.0058705b
xor esi, esi
push 4
pop edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], esi
je 0x41e194
cmp dword [ebp - 0x10], esi
je 0x41e176
push dword [ebp - 0x10]
call ebx
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x41e1c1
mov eax, dword [ebp - 0x10]
jmp 0x41e199
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x41e1be
cmp dword [ebp - 0x18], edi
jne 0x41e1be
cmp dword [ebp - 0x1c], esi
jne 0x41e1c1
mov dword [ebp - 0x14], esi
mov edi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], esi
je 0x41e1d2
push dword [ebp - 0x10]
call ebx
mov eax, edi
call fcn.00587133
ret