joyce8/EMBER2024-capa huggingface dataset:
Function at 0x531708
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x53171a
add esp, 0xfffffff0
call fcn.004056d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004587c8
mov eax, dword [0x6fd0ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x531b48
mov eax, dword [0x6fd0cc]
mov dword [eax + 4], ebx
mov dword [eax], 0x531b54
mov eax, ebx
call fcn.00531b60
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x43c348]
call fcn.00405098
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x43c348]
call fcn.00405098
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x43c348]
call fcn.00405098
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x43c348]
call fcn.00405098
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x43c348]
call fcn.00405098
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x48], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x60]
push eax
mov eax, 0x52c4c4
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x46b908]
call fcn.00471908
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x46b908]
call fcn.00471908
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x46b908]
call fcn.00471908
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x46b908]
call fcn.00471908
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x46b908]
call fcn.00471908
mov dword [ebx + 0x90], eax
mov eax, ebx
call fcn.00532158
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x531f74
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x531f74
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x531f74
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x531f74
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x531f74
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x531897
call fcn.0040572c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x531d14
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x531ebf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x531ea0
mov dl, 1
mov eax, dword [0x43fabc]
call fcn.0044e4bc
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00406d70
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x531e8f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004a8c18
test al, al
je 0x531e82
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x531ed0
lea eax, [ebp - 0x394]
call fcn.00423010
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x531e82
xor eax, eax
push ebp
push 0x531e7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x531f40
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x531e64
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407c10
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x44]
jne 0x531e64
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x531e82
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x531d85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0044e3f8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x531ec6
lea eax, [ebp - 0x3a0]
call fcn.00406d70
ret
Function at 0x532a78
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [reloc.gdiplus.dll_GdipGetPenBrushFill]
cmp byte [eax + 0xb1], 0
jne 0x532aea
cmp dword [reloc.gdiplus.dll_GdipResetPenTransform], 0
jne 0x532aaa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x6f6f74]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [reloc.gdiplus.dll_GdipResetPenTransform], eax
cmp dword [reloc.gdiplus.dll_GdipMultiplyPenTransform], 0
jne 0x532ac5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [reloc.gdiplus.dll_GdipMultiplyPenTransform], eax
cmp dword [reloc.gdiplus.dll_GdipGetPenTransform], 0
jne 0x532aea
push esp
push 0
push 0
mov eax, dword [0x6f6f70]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [reloc.gdiplus.dll_GdipGetPenTransform], eax
pop edx
ret
Function at 0x532e04
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x532e1b
add esp, 0xfffffff0
call fcn.004056d4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004587c8
mov eax, dword [0x6fccb0]
cmp byte [eax], 0
jne 0x532e48
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x184], al
mov eax, dword [0x6fd5fc]
cmp word [eax + 2], 0
jne 0x532e62
mov eax, dword [0x6fd5fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00534ff8
mov eax, dword [0x6fd8ec]
cmp word [eax + 2], 0
jne 0x532e7c
mov eax, dword [0x6fd8ec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005351fc
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x46b908]
call fcn.00471908
mov esi, eax
mov dword [ebx + 0x40], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x535774
mov dl, 1
mov eax, dword [0x43c348]
call fcn.00405098
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x43c348]
call fcn.00405098
mov dword [ebx + 0xb4], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x60], 0xff000018
mov dword [ebx + 0x7c], 0x1f4
mov byte [ebx + 0x80], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x78], 0x9c4
mov byte [ebx + 0x8c], 0
mov byte [ebx + 0xa9], 1
mov byte [ebx + 0xc0], 1
mov dl, 1
mov eax, dword [0x4701e8]
call fcn.0047b1f4
mov esi, eax
mov dword [ebx + 0xa4], esi
push 0x533060
mov eax, dword [0x6fd284]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0047b684
mov eax, dword [ebx + 0xa4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x535a5c
mov dl, 1
mov eax, dword [0x43c348]
call fcn.00405098
mov dword [ebx + 0x9c], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x6fd284]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00422d7c
test eax, eax
je 0x532f90
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004229b4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00422d60
test eax, eax
je 0x532fa8
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x90]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407c10
push ebx
push 0x5349d0
call fcn.0052871c
mov dword [ebx + 0x180], eax
mov byte [ebx + 0xd4], 0
mov eax, dword [0x6fccb0]
cmp byte [eax], 0
jne 0x532ff9
mov eax, ebx
call fcn.00533220
mov byte [ebx + 0x5d], 1
mov byte [ebx + 0x5e], 1
mov byte [ebx + 0x5f], 1
mov byte [ebx + 0xaa], 1
mov byte [ebx + 0xd5], 0
mov byte [ebx + 0xe0], 0
xor eax, eax
mov dword [ebx + 0xd8], eax
mov byte [ebx + 0xd7], 0
xor eax, eax
mov dword [ebx + 0xac], eax
mov eax, ebx
call fcn.00535ca4
mov eax, ebx
call fcn.005368d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x533056
call fcn.0040572c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x533558
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x533604
cmp dword [ebx + 0x98], 0
jne 0x5335fe
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x533490
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x5335fe
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5335c4
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5335fe
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.00449e90
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5335d3
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x533824
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [reloc.gdiplus.dll_GdipGetPenBrushFill]
cmp dword [eax + 0x178], 0
je 0x533989
test bl, bl
jne 0x5338d7
cmp dword [esi + 0xa0], 0
jne 0x5338cc
mov eax, esi
call fcn.00536720
push eax
push 0x533730
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x48], 0
je 0x53389d
mov eax, dword [reloc.gdiplus.dll_GdipGetPenBrushFill]
cmp byte [eax + 0xd7], 0
je 0x53389d
mov eax, dword [esi + 0xdc]
call fcn.00408ed8
mov edi, eax
cmp edi, 0
jl 0x53389d
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x533886
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5338cc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00449e90
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5338ac
inc dword [esi + 0xa0]
jmp 0x533989
cmp dword [esi + 0xa0], 0
jle 0x533989
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x533989
cmp dword [esi + 0x48], 0
je 0x533934
mov eax, dword [reloc.gdiplus.dll_GdipGetPenBrushFill]
cmp byte [eax + 0xd7], 0
je 0x533934
mov eax, dword [esi + 0xdc]
call fcn.00408ed8
mov edi, eax
cmp edi, 0
jl 0x533934
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x53391d
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x533963
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00449e90
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x533943
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x5250bc]
call fcn.00409084
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5345dc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x534647
cmp byte [ebx + 0xd7], 0
jne 0x534647
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406ef8
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x534634
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x534654
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00407150
jmp 0x534654
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00407150
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x535e8c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x535efa
mov eax, esi
call fcn.004a2bf0
test al, al
je 0x535efa
mov eax, dword [ebx + 0x88]
call fcn.004a283c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x535efa
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x535eee
push 0
mov eax, dword [ebx + 0x88]
call fcn.004a283c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.00499658
jmp 0x535efa
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.00535cc4
pop esi
pop ebx
ret
Function at 0x540870
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetThreadLocale
mov dword [ebp - 8], eax
push 0xa
lea eax, [ebp - 0x1c]
push eax
push 0xe
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jg 0x54089c
mov word [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x1c]
mov ecx, 0xa
call fcn.00407c10
mov esp, ebp
pop ebp
ret

Function at 0x540ab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
xor ecx, ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x540b6b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x212]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
test eax, eax
je 0x540b08
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00407c10
jmp 0x540b4d
push 0x540b84
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00540934
push dword [ebp - 0x21c]
push 0x540ba8
lea eax, [ebp - 0x218]
mov edx, 3
call fcn.00407e48
mov ecx, dword [ebp - 0x218]
mov dl, 1
mov eax, dword [0x41b514]
call fcn.0042862c
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540b72
lea eax, [ebp - 0x21c]
mov edx, 2
call fcn.00406dd0
ret

Function at 0x540c04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov esi, eax
lea edi, [ebp - 0x1d]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x540cdb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x1d]
push eax
call sub.shell32.dll_SHGetKnownFolderPath
mov dword [ebp - 0xc], eax
test byte [ebp - 9], 0x80
sete byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x540c87
xor eax, eax
push ebp
push 0x540c80
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407bbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540cc0
mov eax, dword [ebp - 8]
push eax
call sub.ole32.dll_CoTaskMemFree
ret
push 0x540cf4
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x1d]
call fcn.004208dc
push dword [ebp - 0x28]
push 0x540d34
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00407e48
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x41b514]
call fcn.0042862c
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540ce2
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00406dd0
ret
Function at 0x540de8
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406e54
mov eax, dword [ebp - 8]
call fcn.00406e54
xor eax, eax
push ebp
push 0x540fe5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x540e35
mov dword [ebp - 0x1c], 0x80000002
jmp 0x540e3c
mov dword [ebp - 0x1c], 0x80000001
cmp byte [ebp + 0x10], 0
je 0x540e51
lea eax, [ebp - 0x10]
mov edx, 0x541004
call fcn.00407198
jmp 0x540e59
lea eax, [ebp - 0x10]
call fcn.00406d70
xor ecx, ecx
mov dl, 1
mov eax, dword [0x465e70]
call fcn.00468134
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x540fa9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x540f6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp - 9]
sub al, 1
jb 0x540e98
je 0x540f1b
jmp 0x540f61
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.0046664c
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, 0x54101c
call fcn.00407dc0
mov cl, 1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.004667a4
test al, al
je 0x540f61
cmp byte [ebp + 0xc], 0
jne 0x540efd
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.004676ec
test al, al
je 0x540efd
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.004681c8
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 8]
call fcn.00407f58
je 0x540f61
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.00420ec0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0046829c
jmp 0x540f61
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.0046664c
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, 0x54101c
call fcn.00407dc0
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.004667a4
test al, al
je 0x540f61
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.004676ec
test al, al
je 0x540f61
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.00466c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x540f93
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540fb0
mov eax, dword [ebp - 0x18]
call fcn.004050c8
ret
Function at 0x541130
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov byte [ebp - 1], al
mov byte [ebp - 2], 0
lea eax, [ebp - 8]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x5411a1
lea eax, [ebp - 0x14]
push eax
push 0x5411b8
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
test eax, eax
je 0x5411a1
mov dword [ebp - 0x18], 1
cmp byte [ebp - 1], 0
je 0x54117c
mov dword [ebp - 0xc], 2
jmp 0x541183
mov dword [ebp - 0xc], 1
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
cmp dword [ebp - 8], 0xffffffff
je 0x5411b0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, byte [ebp - 2]
mov esp, ebp
pop ebp
ret

Function at 0x5411dc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x54123d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x541233
mov eax, dword [ebp - 4]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x541233
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x541247
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5418c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00406e54
mov eax, dword [ebp - 0xc]
call fcn.00406e54
xor eax, eax
push ebp
push 0x541966
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404bc0
mov dword [ebp - 0x48], 0x3c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0x500
mov eax, 0x541974
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
call fcn.00407b54
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
call fcn.00407b54
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
jne 0x54194b
call fcn.0042a870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54196d
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00406dd0
ret

Function at 0x541980
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00406e54
mov eax, dword [ebp - 0xc]
call fcn.00406e54
xor eax, eax
push ebp
push 0x541a22
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404bc0
mov dword [ebp - 0x48], 0x3c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0x500
mov eax, 0x541a30
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
call fcn.00407b54
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
call fcn.00407b54
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
jne 0x541a07
call fcn.0042a870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541a29
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00406dd0
ret