joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0340
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x4a0362
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x4a0376
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x4a038a
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x4a051d
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x4a04ee
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x4a03ec
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x4a0456
mov eax, dword [esp + 0x14]
push eax
call fcn.004b67b7
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.004b66ce
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x4a0503
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x4a0503
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x4a0524
jmp 0x4a03dc
push ecx
push str.Illegal_character__c_in_input._n
call fcn.004b7e4d
add esp, 8
push 1
call fcn.004b80a3
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x4c9a8b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c9ac3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c7b18
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c7af0
jmp 0x4c9acf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cb179
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4cb1bb
call fcn.004d1123
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cb1bb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cb1b2
xor eax, eax
jmp 0x4cb1c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cb1c9
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d1653
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d1681
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d169f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d15b9
jmp 0x4d169f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d169f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d15b9
test edi, edi
mov eax, edi
jne 0x4d1689
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413008]
jne 0x401010
repz ret
jmp fcn.004022ed

Function at 0x4098ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404f58
and dword [ebp - 4], 0
cmp dword [0x416f60], 0
mov ebx, eax
jne 0x40995c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409a0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409a0d
push eax
call fcn.00404ee6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x416f60], eax
call esi
push eax
call fcn.00404ee6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x416f64], eax
call esi
push eax
call fcn.00404ee6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x416f68], eax
call esi
push eax
call fcn.00404ee6
pop ecx
mov dword [0x416f70], eax
test eax, eax
je 0x40995c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ee6
pop ecx
mov dword [0x416f6c], eax
mov eax, dword [0x416f6c]
cmp eax, ebx
je 0x4099b4
cmp dword [0x416f70], ebx
je 0x4099b4
push eax
call fcn.00404f61
push dword [0x416f70]
mov esi, eax
call fcn.00404f61
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4099b4
test edi, edi
je 0x4099b4
call esi
test eax, eax
je 0x4099ab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4099ab
test byte [ebp - 0xc], 1
jne 0x4099b4
or dword [ebp + 0x10], 0x200000
jmp 0x4099ed
mov eax, dword [0x416f64]
cmp eax, ebx
je 0x4099ed
push eax
call fcn.00404f61
pop ecx
test eax, eax
je 0x4099ed
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4099ed
mov eax, dword [0x416f68]
cmp eax, ebx
je 0x4099ed
push eax
call fcn.00404f61
pop ecx
test eax, eax
je 0x4099ed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x416f60]
call fcn.00404f61
pop ecx
test eax, eax
je 0x409a0d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409a0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ae50
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
push 0x100
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ae81
xor eax, eax
jmp 0x40af14
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40ae9c
xor eax, eax
jmp 0x40af14
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40aeb3
xor eax, eax
jmp 0x40af14
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40aeed
xor eax, eax
jmp 0x40af14
push 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40af20
Capabilities:
Create process on windows
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x413008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x828]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x418ae0
call fcn.004018fe
add esp, 4
test eax, eax
je 0x40af79
push 0x415ee4
push 0x418ae0
push 0x415efc
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40af94
lea edx, [ebp - 0x828]
push edx
push 0x104
lea eax, [ebp - 0x418]
push eax
call fcn.0040177a
add esp, 0xc
lea ecx, [ebp - 0x828]
push ecx
lea edx, [ebp - 0x418]
push edx
call fcn.00401ac1
add esp, 8
test eax, eax
jne 0x40b090
push 0x104
lea eax, [ebp - 0xa30]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x5c
lea ecx, [ebp - 0xa30]
push ecx
call fcn.004017e9
add esp, 8
xor edx, edx
mov word [eax], dx
push 0x415f08
lea eax, [ebp - 0xa30]
push eax
push 0x415f28
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
push 0x6c
mov eax, dword [0x418cf0]
push eax
call fcn.0040ae50
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415f34
lea edx, [ebp - 0x210]
push edx
push 0x415f50
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x828]
push ecx
push 0x415f5c
lea edx, [ebp - 0xa30]
push edx
push str._s_s__RemoveFile_0__s
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
lea ecx, [ebp - 0x620]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x620]
push eax
push 0x415fac
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40b0a8
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x418ae0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret

Function at 0x40b0c0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x413008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push str.vLan.lnk
lea eax, [ebp - 0x418]
push eax
push 0x415ed8
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x41c], 0
je 0x40b146
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
Function at 0x40b160
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0x80070057
cmp dword [ebp + 8], 0
je 0x40b31a
mov eax, dword [ebp + 8]
push eax
call fcn.004018fe
add esp, 4
test eax, eax
jbe 0x40b31a
cmp dword [ebp + 0xc], 0
je 0x40b31a
cmp dword [ebp + 0x10], 0
je 0x40b31a
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004018fe
add esp, 4
test eax, eax
jbe 0x40b31a
cmp dword [ebp + 0x14], 0
je 0x40b31a
cmp dword [ebp + 0x18], 0
jl 0x40b31a
cmp dword [ebp + 0x1c], 0
je 0x40b31a
cmp dword [ebp + 0x20], 0
je 0x40b31a
cmp dword [ebp + 0x24], 0
jl 0x40b31a
lea edx, [ebp - 4]
push edx
push 0x410318
push 1
push 0
push 0x410338
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x40b31a
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x50]
call ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004018fe
add esp, 4
test eax, eax
jbe 0x40b259
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x18], 0
jle 0x40b274
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
call edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.004018fe
add esp, 4
test eax, eax
jbe 0x40b299
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
call edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x20]
push eax
call fcn.004018fe
add esp, 4
test eax, eax
jbe 0x40b2c8
cmp dword [ebp + 0x24], 0
jl 0x40b2c8
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push 0x410348
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
call edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x40b30c
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
call ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40b330
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x413008]
xor eax, ebp
mov dword [ebp - 0x40], eax
push 0x104
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x3c
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00401700
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], str.RunAs
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret

Function at 0x40b450
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x413008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.00401700
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 2
jne 0x40b4ae
cmp dword [ebp - 0x11c], 6
jb 0x40b4ae
mov dword [ebp - 0x124], 1
jmp 0x40b4b8
mov dword [ebp - 0x124], 0
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret

Function at 0x40b600
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x413008]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x41c], 0
mov byte [ebp - 0x41b], 0
mov byte [ebp - 0x41a], 0
mov byte [ebp - 0x419], 0
mov byte [ebp - 0x418], 0
mov byte [ebp - 0x417], 5
mov dword [ebp - 0x420], 0
lea eax, [ebp - 0x414]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40b666
jmp 0x40b756
lea ecx, [ebp - 0x428]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
push 2
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x420], eax
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x420], 0
jne 0x40b6a9
jmp 0x40b756
lea edx, [ebp - 0x410]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40b6d8
jmp 0x40b756
mov dword [ebp - 0x420], 0
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x40c], 0
jmp 0x40b709
mov edx, dword [ebp - 0x40c]
add edx, 1
mov dword [ebp - 0x40c], edx
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x40c]
cmp ecx, dword [eax]
jae 0x40b749
mov edx, dword [ebp - 0x40c]
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax + edx*8 + 4]
push ecx
mov edx, dword [ebp - 0x410]
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x40b747
mov dword [ebp - 0x420], 1
jmp 0x40b749
jmp 0x40b6fa
mov eax, dword [ebp - 0x410]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
Function at 0x40bef0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x413008]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x624], 0x100
mov dword [ebp - 8], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0x415908
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0xc], 0
jne 0x40bf5c
jmp 0x40c0c3
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x624]
push ecx
lea edx, [ebp - 0x620]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40c076
lea edx, [ebp - 0x620]
push edx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x4159a4
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x214]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0x418]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x214], 0
jne 0x40bfe0
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x40bf5c
mov dword [ebp - 0x624], 0x200
lea ecx, [ebp - 0x624]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0
push 0
push str.ComponentId
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c037
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40bf5c
push str.ipvedevice
lea eax, [ebp - 0x210]
push eax
call fcn.00401ac1
add esp, 8
test eax, eax
jne 0x40c051
jmp 0x40c076
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40bf5c
cmp dword [ebp - 0x214], 0
jne 0x40c081
jmp 0x40c0c3
mov dword [ebp - 4], 0x81
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x415a7c
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40c0b6
mov edx, dword [ebp - 0x214]
mov dword [ebp - 0x41c], edx
jmp 0x40c0c3
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
Function at 0x40c120
Capabilities:
Query or enumerate registry value
Query service status
Set registry value
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x34], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftSecurity_Center
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], 0
jne 0x40c184
jmp 0x40c2c7
mov dword [ebp - 4], 4
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0
push 0
push 0x415878
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c1af
jmp 0x40c2c7
cmp dword [ebp - 0x38], 1
jne 0x40c1c1
mov dword [ebp - 0x34], 1
jmp 0x40c2c7
mov dword [ebp - 0x38], 1
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x38]
push edx
push 4
push 0
push str.FirewallOverride
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40c1ec
jmp 0x40c2c7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40c213
jmp 0x40c2c7
push 0xf01ff
push str.wscsvc
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40c235
jmp 0x40c2c7
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 1
jne 0x40c252
mov dword [ebp - 0x34], 1
jmp 0x40c2c7
lea edx, [ebp - 0x2c]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
push str.VLOADER_SET_SECURITY_CENTER
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x3c], eax
push 0x64
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40c2b2
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x28], 1
jne 0x40c29f
jmp 0x40c2b2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x64
jle 0x40c2b0
jmp 0x40c2b2
jmp 0x40c276
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x34], 1
cmp dword [ebp - 8], 0
je 0x40c2d7
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], 0
je 0x40c2e7
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0xc], 0
je 0x40c2f7
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x3c], 0
je 0x40c307
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret