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

Disassembly:
push 0x10c
mov eax, 0x4af70c
call fcn.00454652
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, 0xffffffff
cmove eax, edi
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x47f2cc
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.00493ca1
test al, al
jne 0x47f31e
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4bab9c
mov dword [ebp - 0x48], 0x4baba4
call fcn.00411254
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.0044276c
push 0x4e1e24
lea eax, [ebp - 0x114]
push eax
call fcn.00454592
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47f31e
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4bab9c
mov dword [ebp - 0x18], 0x4baba4
call fcn.00411254
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.00442572
push 0x4e1db0
lea eax, [ebp - 0xc0]
jmp 0x47f2c6
mov eax, dword [ebp - 0x118]
call fcn.00454601
ret 8

Function at 0x47f416
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x4af77c
call fcn.00454652
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov ecx, 0x1ed
cmp eax, 0xffffffff
cmove eax, ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x47f49d
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.00493ca1
test al, al
jne 0x47f4f2
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4bab9c
mov dword [ebp - 0x48], 0x4baba4
call fcn.00411254
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.0044276c
push 0x4e1e24
lea eax, [ebp - 0x114]
push eax
call fcn.00454592
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47f4f2
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4bab9c
mov dword [ebp - 0x18], 0x4baba4
call fcn.00411254
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00442572
push 0x4e1db0
lea eax, [ebp - 0xc0]
jmp 0x47f497
mov eax, dword [ebp - 0x118]
call fcn.00454601
ret 8
Function at 0x47f608
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x4af80c
call fcn.00454652
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x71]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x70], 0x4bab70
mov dword [ebp - 0x48], 0x4bab78
call fcn.00403e30
mov edi, 0x104
lea eax, [ebp - 0x80]
push edi
lea ecx, [ebp - 0x70]
push eax
mov dword [ebp - 4], ebx
call fcn.00485383
cmp dword [ebp + 0xc], 1
jne 0x47f6c0
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.00416071
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00411bd3
inc bl
je 0x47f699
lea ecx, [ebp - 0x2c]
call fcn.0044295f
push 0x4e6c9c
lea eax, [ebp - 0x2c]
push eax
call fcn.00454592
push 0
lea eax, [ebp - 0x71]
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4cc0d0
mov dword [ebp - 0x18], 0x4cc070
call fcn.00411357
mov byte [ebp - 4], 2
jmp 0x47f719
cmp dword [ebp + 0xc], 2
jne 0x47f733
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00416071
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00411bd3
inc bl
jne 0x47f683
push 0
lea eax, [ebp - 0x71]
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4cc0d0
mov dword [ebp - 0x18], 0x4cc070
call fcn.00411357
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.0042c406
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401b80
jmp 0x47f765
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.00416071
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00411bd3
inc bl
jne 0x47f683
push 0x4b7ea0
lea ecx, [ebp - 0x70]
call fcn.00480bc9
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4bab70
mov dword [esi + 0x28], 0x4bab78
call fcn.00411254
lea ecx, [ebp - 0x70]
call fcn.00401b80
mov eax, esi
call fcn.00454601
ret

Function at 0x47fa26
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4af8dd
call fcn.00454652
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47fa9e
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4bab9c
mov dword [ebp - 0x18], 0x4baba4
call fcn.00411254
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00442572
push 0x4e1db0
lea eax, [ebp - 0x90]
push eax
call fcn.00454592
mov eax, dword [ebp - 0x94]
call fcn.00454601
ret 8
Function at 0x480ddc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x480e61
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x480e5a
mov ecx, dword [edi]
test ecx, ecx
je 0x480e55
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x480e4b
cmp edx, 2
jbe 0x480e3d
cmp edx, 7
jne 0x480e4b
test cl, 1
jne 0x480e4b
shr ecx, 1
cmp ecx, 1
jb 0x480e4b
cmp word [esi + ecx*2 - 2], bx
jne 0x480e4b
cmp ecx, 1
jbe 0x480e5a
cmp word [esi + ecx*2 - 4], bx
jmp 0x480e49
test cl, 1
jne 0x480e4b
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x480e5a
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x480e5a
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.00419986
int3

Function at 0x480ee4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
je 0x480f39
mov bl, byte [ebp + 0x10]
mov eax, dword [ebp + 0x14]
test bl, bl
je 0x480f05
cmp eax, 0xffffffff
jne 0x480f14
push 0x57
pop eax
jmp 0x480f33
cmp eax, 0xffffffff
jne 0x480f14
push dword [ebp + 8]
call fcn.00454574
pop ecx
inc eax
add eax, eax
push eax
push dword [ebp + 8]
xor eax, eax
push 7
pop ecx
inc eax
test bl, bl
cmovne eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop ebp
ret 0x10
push 0x80004005
call fcn.00419986
int3

Function at 0x4836a3
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x4afe12
call fcn.0045461f
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x4836cf
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x483716
push 0x80
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
mov edi, 0x4cc0d0
mov esi, 0x4cc070
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.00411254
call fcn.0048b4cd
pop ecx
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.00411254
call fcn.0048362f
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00401b80
mov al, bl
call fcn.004545ed
ret
Function at 0x483726
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x4afe53
call fcn.00454652
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x483784
lea ecx, [ebp + 8]
call fcn.0044a400
test al, al
je 0x483784
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x4cc0d0
mov dword [ecx + 0x28], 0x4cc070
call fcn.00411254
call fcn.00483909
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401b80
mov al, bl
jmp 0x483903
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x4cc0d0
mov dword [ecx + 0x28], 0x4cc070
call fcn.00411254
call fcn.004853d4
add esp, 0x30
cmp eax, 0xffffffff
je 0x4837c5
test byte [ebp + 0x38], 4
je 0x4837b7
test al, 0x10
je 0x4837c1
test byte [ebp + 0x38], 8
je 0x483775
test al, 0x10
je 0x483775
mov bl, 1
jmp 0x483775
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4838f9
cmp esi, 3
je 0x4838f9
cmp esi, 5
jne 0x4838ad
lea ecx, [ebp - 0xcc]
call fcn.00480066
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
push eax
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
mov dword [ecx], 0x4cc0d0
mov dword [ecx + 0x28], 0x4cc070
call fcn.00411254
call fcn.00484ccb
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x483884
lea ecx, [ebp - 0xd0]
call fcn.00438cd4
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x483850
test byte [ebp - 0xcc], 0x10
je 0x48385f
test byte [ebp + 0x38], 8
je 0x483861
test byte [ebp - 0xcc], 0x10
je 0x483861
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.00438cd4
lea ecx, [ebp - 0x70]
call fcn.00401b80
lea ecx, [ebp - 0xa0]
call fcn.00401b80
jmp 0x483775
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.00438cd4
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401b80
lea ecx, [ebp - 0xa0]
call fcn.00401b80
test byte [ebp + 0x38], 0x20
je 0x483775
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4bab9c
mov dword [ebp - 0x18], 0x4baba4
call fcn.00411254
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.004425cd
push 0x4e1db0
lea eax, [ebp - 0x90]
push eax
call fcn.00454592
lea ecx, [ebp + 8]
call fcn.00401b80
xor al, al
call fcn.00454601
ret
Function at 0x48683c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ed8d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4c5050
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x486872
push str.GetSystemDefaultUILanguage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x486872
call eax
jmp 0x486927
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x4868bc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x4cbeac
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x486908
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysReAllocStringLen
mov dword [ebp - 0x18], ebx
call esi
mov esi, eax
test esi, esi
jne 0x4868f5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.0048259a
test esi, esi
je 0x486908
mov esi, 0x409
jmp 0x48691a
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0045542a
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.0048259a
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004535b3
leave
ret
Function at 0x486f1d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ed8d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x118]
push eax
mov dword [esi], ebx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 1
jne 0x486faf
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x486fa2
cmp eax, 0xa
je 0x486f81
cmp eax, 0x5a
jne 0x486f74
mov bl, 1
mov dword [esi], 0x80
mov al, bl
jmp 0x487067
call fcn.00487aef
test al, al
mov al, 1
je 0x486f97
mov dword [esi], 0x80
jmp 0x487067
mov dword [esi], 0x40
jmp 0x487067
mov dword [esi], 0x10
mov al, 1
jmp 0x487067
cmp dword [ebp - 0x108], 2
jne 0x487065
mov eax, dword [ebp - 0x114]
sub eax, 4
je 0x48705a
dec eax
je 0x487025
dec eax
je 0x486fec
sub eax, 4
jne 0x486fe4
cmp dword [ebp - 0x110], ebx
jne 0x487065
mov bl, 1
mov dword [esi], 0x10000000
jmp 0x486f7a
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x486ffe
mov dword [esi], 0x1000000
jmp 0x486fa8
cmp eax, 1
jne 0x48700b
mov dword [esi], 0x2000000
jmp 0x486fa8
cmp eax, 2
jne 0x487018
mov dword [esi], 0x4000000
jmp 0x486fa8
cmp eax, 3
jne 0x487065
mov dword [esi], 0x8000000
jmp 0x486fa8
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x48703a
mov dword [esi], 0x100000
jmp 0x486fa8
cmp eax, 1
jne 0x48704a
mov dword [esi], 0x400000
jmp 0x486fa8
cmp eax, 2
jne 0x487065
mov dword [esi], 0x800000
jmp 0x486fa8
mov dword [esi], 0x10000
jmp 0x486fa8
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004535b3
leave
ret
Function at 0x488369
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x4b0c3e
call fcn.00454652
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push dword [eax]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
and esi, 0xf
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x488395
mov al, 1
jmp 0x4883b1
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x4883a9
cmp ecx, esi
je 0x4883b7
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x488397
xor al, al
call fcn.00454601
ret
push 1
lea ecx, [ebp - 0x41]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.00411637
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00411c81
lea ecx, [ebp - 0x40]
call fcn.00401b80
jmp 0x488391

Function at 0x4896de
Capabilities:
Enumerate process modules

Disassembly:
push 0x4a0
mov eax, 0x4b0e08
call fcn.00454652
mov eax, dword [ebp + 8]
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x484]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
call sub.PSAPI.DLL_EnumProcesses
push str.NtQueryInformationProcess
push str.Ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x489836
xor edi, edi
cmp dword [ebp - 0x484], edi
jbe 0x489836
push dword [ebp + edi*4 - 0x410]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x480], esi
and dword [ebp - 4], 0
test esi, esi
je 0x48981a
push 0x18
lea eax, [ebp - 0x4a4]
push 0
push eax
call fcn.004535d0
add esp, 0xc
lea eax, [ebp - 0x48c]
push eax
push 0x18
lea eax, [ebp - 0x4a4]
push eax
push 0
push esi
call ebx
test eax, eax
js 0x48981a
cmp dword [ebp - 0x494], 0
je 0x48981a
lea ecx, [ebp - 0x444]
call fcn.00480117
mov eax, dword [ebp - 0x490]
push 0x4cbeac
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x444], eax
call fcn.00406360
mov eax, dword [ebp - 0x494]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x478]
call fcn.004800e8
mov ecx, dword [ebp - 0x488]
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x4ac]
push eax
mov byte [ebp - 4], 2
call fcn.0048799e
lea ecx, [ebp - 0x474]
call fcn.00401b80
lea ecx, [ebp - 0x440]
call fcn.00401b80
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x480]
call fcn.00404bf0
inc edi
cmp edi, dword [ebp - 0x484]
jb 0x48973d
call fcn.00454601
ret
Function at 0x489a61
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ed8d0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00487ae1
test al, al
je 0x489ad0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x489ad0
push esi
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004535b3
leave
ret

Function at 0x48a228
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x24], 8
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.004018f0
mov esi, eax
test esi, esi
jne 0x48a274
cmp dword [ebp + 0x54], 8
lea eax, [ebp + 0x40]
cmovae eax, dword [ebp + 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp - 0xc]
mov dword [0x4f4910], esi
call fcn.004018c0
lea ecx, [ebp + 0xc]
call fcn.00401b80
lea ecx, [ebp + 0x3c]
call fcn.00401b80
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x48a982
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ed8d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x48a9b4
xor al, al
jmp 0x48a9cd
cmp dword [ebp - 0x108], 2
jne 0x48a9cb
cmp dword [ebp - 0x114], 5
jb 0x48a9cb
xor eax, eax
inc eax
jmp 0x48a9cd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004535b3
leave
ret
Function at 0x48cba1
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4b1742
call fcn.00454652
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48cc19
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4bab9c
mov dword [ebp - 0x18], 0x4baba4
call fcn.00411254
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00442572
push 0x4e1db0
lea eax, [ebp - 0x90]
push eax
call fcn.00454592
mov eax, dword [ebp - 0x94]
call fcn.00454601
ret 8

Function at 0x48cc27
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4b1772
call fcn.00454652
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 4
pop ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48cca0
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4bab9c
mov dword [ebp - 0x18], 0x4baba4
call fcn.00411254
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00442572
push 0x4e1db0
lea eax, [ebp - 0x90]
push eax
call fcn.00454592
mov eax, dword [ebp - 0x94]
call fcn.00454601
ret 8

Function at 0x48dc7a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x48dc85
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret
Function at 0x48e085
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x4b1aa3
call fcn.00454652
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0x154], ebx
mov byte [ebp - 0x114], bl
call fcn.004535d0
add esp, 0xc
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x14c]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x48e174
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
mov ecx, str.ProgramFilesDir
push ebx
mov eax, str.CommonFilesDir
cmp edi, 1
cmovne eax, ecx
push eax
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x4bab9c
mov ebx, 0x4baba4
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.0042833d
push 0x4b7ea0
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00480add
lea ecx, [ebp - 0x144]
call fcn.0048e3f2
lea eax, [ebp - 0x144]
jmp 0x48e1b9
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x4bab9c
mov ebx, 0x4baba4
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.0042833d
push 0x4b7ea0
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.00480add
push 0
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], ebx
call fcn.00411254
lea ecx, [ebp - 0x144]
call fcn.00401b80
lea ecx, [ebp - 0x14c]
call fcn.0048259a
mov eax, esi
call fcn.00454601
ret
Function at 0x492d04
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ed8d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x492d7a
call esi
cmp eax, 0x3f0
jne 0x492d5d
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x492d73
push 1
push dword [ebp - 0x10]
call fcn.00492e5e
pop ecx
pop ecx
jmp 0x492e50
test eax, eax
jne 0x492d7a
push ebx
jmp 0x492d64
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x492da1
push ebx
push dword [ebp - 0x10]
call fcn.00492e5e
pop ecx
jmp 0x492e4e
call esi
cmp eax, 0x7a
jne 0x492d92
push dword [ebp - 0x18]
call fcn.004554e7
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x492dc9
push ebx
jmp 0x492e3a
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
mov eax, 0x223
push ebx
lea ecx, [eax - 3]
cmovne eax, ecx
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x492dc6
mov byte [ebp - 0x14], bl
mov edi, ebx
cmp dword [esi], ebx
jbe 0x492e2e
lea ebx, [esi + 4]
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x492e19
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x492e00
jmp 0x492e2e
cmp byte [ebp + 0xc], 0
je 0x492e2a
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x14], 0
jne 0x492e2e
mov byte [ebp - 0x14], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00492e5e
pop ecx
pop ecx
push esi
mov bl, al
call fcn.00453342
mov al, bl
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004535b3
leave
ret