joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fa9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
je 0x4040db
cmp dword [ebp + 0x10], ebx
je 0x4040db
cmp eax, ebx
je 0x40401f
cmp dword [eax + 4], ebx
je 0x40401f
mov esi, dword [eax]
mov eax, dword [eax + 4]
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], ebx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
call fcn.00409f5d
push dword [ebp - 0x14]
push esi
call fcn.00409e42
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp eax, ebx
je 0x4040db
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x4040db
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
jmp 0x4040d6
push 0x103
lea eax, [ebp - 0x123]
push ebx
push eax
mov byte [ebp - 0x124], bl
call fcn.00426af0
add esp, 0xc
push str.data_
lea edi, [ebp - 0x124]
call fcn.004074d9
mov eax, dword [ebp + 8]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40404f
lea edi, [ebp - 0x124]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40405f
mov ecx, eax
shr ecx, 2
push ebx
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 1
mov ecx, eax
push SysReAllocStringLen
lea eax, [ebp - 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4040db
push ebx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
inc eax
push eax
call fcn.00420778
mov edi, dword [ebp + 0xc]
pop ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
mov dword [edi], eax
push dword [esi]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
mov ecx, dword [esi]
push dword [ebp - 8]
mov byte [eax + ecx], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4040dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4043af
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x441270]
sub esp, 0x10c
push ebx
xor ebx, ebx
cmp byte [eax + 0x69d2], bl
je 0x4044c8
lea ecx, [eax + 0x69d3]
cmp ecx, ebx
je 0x4044c8
push esi
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4043de
sub ecx, esi
je 0x4044c7
lea ecx, [eax + 0x72d7]
cmp ecx, ebx
je 0x4044c7
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4043fe
sub ecx, esi
je 0x4044c7
add eax, 0x73db
push eax
push SysReAllocStringLen
call fcn.004026f1
test al, al
pop ecx
pop ecx
jne 0x4044c7
mov eax, dword [0x441270]
add eax, 0x73db
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004026f1
test al, al
pop ecx
pop ecx
jne 0x4044c7
call fcn.004044cb
push 0x103
mov esi, eax
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.00426af0
mov eax, dword [0x441270]
push eax
push fcn.004035f6
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [eax + 0x71d3]
push 0x104
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.00403b0f
add esp, 0x20
cmp esi, ebx
je 0x4044c0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4044a0
sub eax, edx
je 0x4044c0
push 5
push ebx
lea eax, [ebp - 0x10c]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
call fcn.00421456
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x4046f4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0042118f
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x251]
push ebx
push eax
mov byte [esp + 0x258], bl
call fcn.00426af0
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x124
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.00426af0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], 0x128
mov dword [esp + 0x1c], ebx
call sub.KERNEL32.dll_Process32First
lea edi, [esi + 1]
push esi
lea eax, [esp + 0x145]
push ebx
push eax
mov byte [esp + 0x14c], bl
call fcn.00426af0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x150]
push edi
push eax
call fcn.00420d8e
lea eax, [esp + 0x158]
push eax
call fcn.0042118f
lea eax, [esp + 0x15c]
push eax
push dword [ebp + 8]
call fcn.004213d0
add esp, 0x24
test eax, eax
je 0x4047fc
push dword [esp + 0x20]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
lea ecx, [esp + 0x24c]
push ecx
push ebx
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x4047fc
lea eax, [esp + 0x248]
push eax
call fcn.0042118f
push dword [ebp + 8]
lea eax, [esp + 0x250]
push eax
call fcn.004213d0
add esp, 0xc
test eax, eax
jne 0x404814
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404767
jmp 0x404825
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [esp + 0x14], 1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405636
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x1408
call fcn.004208a6
test eax, eax
pop ecx
je 0x40565c
push SysReAllocStringLen
mov ecx, str.SoftwareMicrosoftInternet_ExplorerExtensions
call fcn.0040a13c
mov esi, eax
jmp 0x40565e
xor esi, esi
mov ecx, dword [ebp + 8]
add ecx, 0x424
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40566d
sub eax, edi
pop edi
je 0x40568d
push ecx
push esi
call fcn.0040a479
lea eax, [esi + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test esi, esi
je 0x405699
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop esi
pop ebp
ret 4

Function at 0x40569e
Capabilities:
Delete registry key

Disassembly:
push ecx
mov ecx, dword [eax + 0x924]
dec ecx
je 0x4056cb
dec ecx
jne 0x4056d0
lea ecx, [eax + 0x208]
push ecx
add eax, 0x30c
call fcn.004019a5
pop ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop ecx
ret
call fcn.004056d2
pop ecx
ret

Function at 0x4056d2
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea ecx, [eax + 0x208]
push edi
push ecx
add eax, 0x30c
call fcn.004019a5
pop ecx
push 0
mov edi, 0x4306b0
mov esi, eax
push edi
push esi
call fcn.00402503
add esp, 0xc
push 1
push 0x430b6c
push esi
mov dword [ebp - 8], eax
call fcn.00402503
add esp, 0xc
push 0
push 0x430b70
push esi
mov dword [ebp - 0xc], eax
call fcn.00402503
add esp, 0xc
push 0x430270
push esi
mov dword [ebp - 0x14], eax
call fcn.00402697
mov ebx, 0x430b74
push ebx
push esi
mov dword [ebp - 0x10], eax
call fcn.00402697
add esp, 0x10
push esi
push SysReAllocStringLen
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, dword [0x441270]
test dword [eax + 0x69ca], 2
jne 0x405775
push 0
push dword [ebp - 8]
push edi
push esi
call fcn.0040264f
add esp, 0x10
mov eax, dword [0x441270]
test dword [eax + 0x69ca], 1
jne 0x405797
push dword [ebp - 0x10]
push 0x430270
push esi
call fcn.004026d5
add esp, 0xc
mov eax, dword [0x441270]
test dword [eax + 0x69ca], 4
jne 0x4057ce
cmp dword [ebp - 4], 0
je 0x4057ce
push dword [ebp - 4]
push ebx
push esi
call fcn.004026d5
add esp, 0xc
push 1
push dword [ebp - 0xc]
push 0x430b6c
push esi
call fcn.0040264f
add esp, 0x10
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4057f6
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4057da
sub eax, edx
je 0x4057f6
push 0
push edi
push 0x430b70
push esi
call fcn.0040264f
add esp, 0x10
push esi
call fcn.00421456
pop ecx
push dword [ebp - 8]
call fcn.00421456
pop ecx
push dword [ebp - 0xc]
call fcn.00421456
pop ecx
push edi
call fcn.00421456
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4058bf
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
push edi
push 0x1408
mov edi, eax
call fcn.004208a6
test eax, eax
pop ecx
je 0x4058e6
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, str.SoftwareMicrosoftwindowscurrentversionuninstall
call fcn.0040a13c
mov esi, eax
jmp 0x4058e8
xor esi, esi
mov eax, dword [edi + 0x924]
xor ebx, ebx
dec eax
je 0x4058fd
dec eax
jne 0x405911
mov ebx, str.__Poker_
jmp 0x405902
mov ebx, 0x4301bf
add edi, 0x208
push edi
call fcn.0040195a
mov ebx, eax
pop ecx
push ebx
push esi
call fcn.0040a479
lea eax, [esi + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push ebx
call fcn.00421456
mov eax, dword [esi]
pop ecx
push 1
mov ecx, esi
call dword [eax]
pop edi
pop esi
pop ebx
ret

Function at 0x405938
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp - 0x40e]
push ebx
push eax
mov word [ebp - 0x410], bx
call fcn.00426af0
push esi
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call fcn.00426af0
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
call fcn.0040208f
add esp, 0x20
test eax, eax
je 0x405a03
cmp dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x4059ba
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call esi
xor eax, eax
movzx ecx, word [ebp + eax - 0x208]
mov word [ebp + eax - 0x410], cx
inc eax
inc eax
cmp cx, bx
jne 0x4059a3
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x4059cf
mov esi, str..lnk
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x208]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0xc], ebx
pop edi
je 0x405a03
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
pop ebx
leave
ret 0xc
Function at 0x4062b9
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.00426af0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
call fcn.0040208f
add esp, 0x14
test eax, eax
je 0x4063e1
lea eax, [ebp + 0x18]
push eax
push 0x42e4dc
push 1
push ebx
push 0x42e4ec
mov dword [ebp + 0x18], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x4063e4
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x42e50c
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x4063d6
mov eax, dword [ebp + 0x18]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x1c], ebx
mov esi, eax
je 0x406366
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp esi, ebx
jl 0x4063cd
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x406381
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
call esi
push edi
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call esi
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x4063a4
mov eax, dword [ebp - 4]
mov esi, str..lnk
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
lea edx, [ebp - 0x20c]
push edx
movsw word es:[edi], word [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
pop edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4063e4
mov esi, dword [ebp + 0x1c]
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x406709
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp - 0x40e]
push edi
push eax
mov word [ebp - 0x410], di
call fcn.00426af0
push esi
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call fcn.00426af0
add esp, 0x18
push 0x104
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 8]
add eax, 0xcf4
lea ecx, [ebp - 0x208]
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
inc eax
inc eax
cmp dx, di
jne 0x40676b
push 0x430e0c
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
leave
ret 4
Function at 0x40903b
Capabilities:
Create thread

Disassembly:
mov eax, 0x42d564
call fcn.0042d00c
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
push ebx
push dword [esi + 0x10c]
push 0x11
call fcn.00403b97
mov eax, dword [esi + 0xf0]
mov dword [0x441ecc], eax
mov ecx, dword [esi + 0x10c]
xor eax, eax
inc eax
add esp, 0x10
test byte [ecx + 0x56be], al
je 0x409080
mov dword [0x441ed0], eax
mov eax, dword [esi + 0x10c]
test byte [eax + 0x56be], 2
je 0x409099
mov dword [0x441ed0], 2
push 0x928
call fcn.004208a6
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x4090c2
push dword [esi + 0x10c]
mov eax, dword [0x441ed0]
call fcn.00407528
jmp 0x4090c4
xor eax, eax
mov edi, 0x441ba8
mov esi, edi
mov ecx, eax
sub esi, eax
movzx edx, word [ecx]
mov word [esi + ecx], dx
inc ecx
inc ecx
cmp dx, bx
jne 0x4090cf
lea ecx, [eax + 0x208]
mov esi, 0x441db0
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x4090ea
lea ecx, [eax + 0x410]
mov esi, 0x441eb4
sub esi, ecx
movzx edx, word [ecx]
mov word [esi + ecx], dx
inc ecx
inc ecx
cmp dx, bx
jne 0x409101
cmp eax, ebx
je 0x40911a
push eax
call fcn.00420926
pop ecx
push ebx
push ebx
push edi
push 0x40913b
push ebx
push ebx
call fcn.004218e0
mov ecx, dword [ebp - 0xc]
add esp, 0x18
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x409322
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.percentDownloadedMutex
push 1
xor ebx, ebx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40936e
cmp dword [ebp + 0xc], ebx
je 0x409361
mov eax, dword [ebp + 8]
imul eax, eax, 0x64
xor edx, edx
div dword [ebp + 0xc]
mov dword [0x44126c], eax
jmp 0x409367
mov dword [0x44126c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x4093e1
cmp edi, dword [ebp + 0xc]
jne 0x4093e1
mov eax, dword [esi + 0x100]
push ebx
push ebx
push dword [esi + 0x10c]
mov dword [esi + 0xfc], eax
push 9
mov byte [esi + 0x109], 1
mov byte [esi + 0x108], bl
call fcn.00403b97
add esp, 0x10
mov ecx, esi
call fcn.00408b26
cmp dword [esi + 0xd4], ebx
mov dword [ebp - 4], ebx
jle 0x40943f
lea edi, [esi + 0xac]
mov ecx, dword [edi]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
call dword [eax + 0x24]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0xd4]
jl 0x4093c1
mov edi, dword [ebp + 8]
jmp 0x40943f
cmp edi, 0xffffffff
jne 0x409412
or dword [esi + 0xfc], edi
push ebx
push ebx
push dword [esi + 0x10c]
mov byte [esi + 0x109], 1
push dword [ebp + 0xc]
mov byte [esi + 0x108], 1
call fcn.00403b97
add esp, 0x10
mov dword [ebp + 0xc], ebx
jmp 0x40943f
cmp byte [0x442332], bl
jne 0x409433
push ebx
push ebx
push dword [esi + 0x10c]
push 8
call fcn.00403b97
add esp, 0x10
mov byte [0x442332], 1
mov byte [esi + 0x109], bl
mov byte [esi + 0x108], bl
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], eax
call fcn.004092b3
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409b75
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.advapi32.dll
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSecurityInfo
push esi
mov dword [ebp - 0x24], esi
call edi
push str.SetSecurityInfo
push esi
mov dword [ebp - 0xc], eax
call edi
push str.SetEntriesInAclA
push esi
mov dword [ebp - 0x18], eax
call edi
push str.AllocateAndInitializeSid
push esi
mov dword [ebp - 0x14], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, eax
je 0x409cf3
cmp dword [ebp - 0x18], ebx
je 0x409cf3
cmp dword [ebp - 0x14], ebx
je 0x409cf3
cmp edi, ebx
je 0x409cf3
push ebx
push 0x2000000
push 3
push ebx
push ebx
push 0x60000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x409cf3
lea ecx, [ebp - 0x1c]
push ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push 4
xor esi, esi
inc esi
push esi
push eax
mov dword [ebp - 0x1c], ebx
call dword [ebp - 0xc]
cmp dword [ebp - 8], ebx
jne 0x409c3b
cmp dword [ebp - 0x10], ebx
jne 0x409ccd
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], 5
call edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], 0x10000000
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x38], ebx
mov dword [ebp - 8], ebx
call dword [ebp - 0x14]
cmp dword [ebp - 8], ebx
je 0x409cbb
push ebx
push dword [ebp - 8]
push ebx
push ebx
push 4
push esi
push dword [ebp - 0x20]
call dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x409cfd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a014
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push edi
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x4315ec
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40a109
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40a109
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push str..C:
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
push ebx
jne 0x40a10d
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push str..VWIN32
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40a109
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x1c
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], eax
push 0x1c
xor eax, eax
inc eax
push ecx
push eax
push dword [ebp - 4]
mov byte [ebp - 0x58], bl
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x28], 0x860
mov dword [ebp - 0x24], 0x440d
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40a100
test byte [ebp - 0x18], 1
jne 0x40a100
movzx edx, word [ebp - 0x44]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, word [ebp - 0x51]
mov ecx, edx
mov edi, eax
not ecx
shl edi, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
xor edi, ecx
shl edx, 2
not eax
not ecx
xor edx, eax
xor edx, ecx
mov dword [esi + 4], edx
mov dword [esi], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x30]
push ecx
push ebx
push ebx
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40a100
cmp dword [ebp - 0xc], ebx
jbe 0x40a100
mov edx, dword [ebp - 0x20]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
jmp 0x40a0e0

Function at 0x40a3bd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea ecx, [eax + 2]
xor ebx, ebx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40a3cb
sub eax, ecx
sar eax, 1
lea esi, [eax + eax + 2]
mov eax, dword [ebp + 8]
call fcn.0040a183
mov edi, eax
cmp edi, ebx
je 0x40a41a
cmp dword [ebp + 0xc], ebx
push esi
push dword [ebp + 0x10]
push 1
push ebx
je 0x40a403
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40a40a
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
xor ecx, ecx
cmp eax, ebx
sete cl
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc