joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300165c2
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x300165e6
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [esi + 4], 0
and dword [esi + 8], 0
xor eax, eax
pop esi
ret

Function at 0x30016a6b
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x30034b3c]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [0x30006a00]
mov dword [ebp - 0xc], eax
mov eax, dword [0x30006a04]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x40
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 4]
call fcn.3001fd67
leave
ret 8
Function at 0x30018602
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
cmp word [0x30077298], di
mov dword [ebp - 8], edi
mov esi, 0x30077298
jne 0x3001862b
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 8]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x30018670
push 0x300081d0
call fcn.300106d0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
call esi
test eax, eax
jg 0x3001865b
call esi
mov edi, eax
jmp 0x30018707
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x30018707
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x300186af
push 0x30008158
call fcn.300106d0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
call esi
test eax, eax
jg 0x3001869d
call esi
mov edi, eax
jmp 0x300186f8
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x300186f8
push eax
push ebx
push dword [ebp - 8]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x300186ed
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x30008120
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
push eax
push 0x30008100
call fcn.300106d0
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 4], 0
je 0x30018707
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x300193c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.3000d430
lea ecx, [ebp - 0xc]
call fcn.3000d430
push 0x11
xor eax, eax
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push eax
lea ecx, [ebp - 0xc]
call fcn.3000d531
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.3000d622
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [0x3007bf48]
push dword [ebp + 0xc]
call fcn.300188c8
cmp eax, esi
mov dword [ebp - 4], eax
je 0x3001944c
push 0x30008998
call fcn.300106d0
pop ecx
jmp 0x3001951b
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push 0x30008928
call fcn.300106d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
add esp, 0xc
mov dword [ebp + 8], esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x84]
push eax
push 0x300564c8
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x300194b6
call ebx
push 0x64
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x653
jne 0x3001951a
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x14
jl 0x3001946f
jmp 0x3001951a
push 0x300088ec
call fcn.300105be
push 0xff
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x24]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x30019515
cmp dword [ebp - 4], 0x103
jne 0x300194a2
jmp 0x30019504
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
call edi
test eax, eax
jne 0x300194f0
jmp 0x300194c0
call ebx
mov dword [ebp - 4], eax
pop ebx
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.3000d43a
lea ecx, [ebp - 0x14]
call fcn.3000d43a
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x30019536
Capabilities:
Read file on windows

Disassembly:
push ebp
mov eax, 0x480c
lea ebp, [esp - 0x478c]
call fcn.3001fd80
mov eax, dword [0x30034b3c]
push ebx
push esi
xor ebx, ebx
push ebx
mov dword [ebp + 0x4788], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 0x4794]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
jne 0x300195c7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x30019596
call esi
mov esi, eax
jmp 0x300195a6
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jge 0x300195c7
push esi
push 0x30001420
call fcn.30010597
push 0x30008a78
call fcn.30010597
add esp, 0xc
jmp 0x3001972a
push edi
xor eax, eax
mov ecx, 0x800
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x7fe
jmp 0x300196c4
mov eax, dword [ebp - 0x80]
cmp eax, ebx
jbe 0x3001971a
mov byte [ebp + eax + 0x3f88], bl
mov byte [ebp + eax + 0x3f89], bl
lea eax, [ebp + 0x3f88]
push eax
push 0x1000
lea eax, [ebp - 0x78]
push eax
call fcn.3000d5f0
mov esi, eax
cmp esi, ebx
jl 0x300196de
lea esi, [ebp - 0x78]
push 0x30008a70
mov eax, esi
push eax
jmp 0x3001966a
push 0x300088e0
mov word [edi], bx
push esi
add edi, 4
call dword [sym.imp.MSVCRT.dll_wcsstr]
cmp eax, ebx
pop ecx
pop ecx
je 0x30019662
push dword [ebp + 0x47a0]
push dword [ebp + 0x479c]
push dword [ebp + 0x4798]
push eax
call fcn.3001900a
mov esi, eax
cmp esi, ebx
jl 0x300196f0
push 0x30008a70
mov esi, edi
push edi
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x30019628
push esi
mov edi, 0x1000
push edi
lea eax, [ebp + 0x1f88]
push eax
call fcn.3000d4b9
mov esi, eax
cmp esi, ebx
jl 0x30019702
lea eax, [ebp + 0x1f88]
push eax
push edi
lea eax, [ebp - 0x78]
push eax
call fcn.3000d4b9
mov esi, eax
cmp esi, ebx
jl 0x30019702
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
je 0x300196b7
inc eax
push ebx
lea ecx, [ebp - 0x80]
push ecx
mov ecx, 0x7fe
sub ecx, eax
push ecx
lea eax, [ebp + 0x3f88]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x300195e3
jmp 0x3001971a
push esi
push 0x30001420
call fcn.30010597
push 0x30008a64
jmp 0x30019712
push esi
push 0x30001420
call fcn.30010597
push 0x30008a44
jmp 0x30019712
push esi
push 0x30001420
call fcn.30010597
push 0x300088d4
call fcn.30010597
add esp, 0xc
cmp dword [ebp - 0x7c], 0xffffffff
pop edi
je 0x3001972a
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x4788]
mov eax, esi
pop esi
pop ebx
call fcn.3001fd67
add ebp, 0x478c
leave
ret 0x10
Function at 0x30019a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x30034b3c]
push esi
push edi
mov dword [ebp + 0x190], eax
lea eax, [ebp - 0x74]
push eax
push 0x2001f
xor edi, edi
push edi
push dword [ebp + 0x19c]
mov dword [ebp - 0x74], edi
push dword [0x300340d0]
mov dword [ebp - 0x78], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 2
jne 0x30019a80
xor eax, eax
jmp 0x30019ad7
cmp esi, edi
je 0x30019a91
push 0x30008fb0
call fcn.30010597
pop ecx
jmp 0x30019aca
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, edi
jne 0x30019aca
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp esi, edi
je 0x30019a91
mov eax, esi
sub eax, 0x103
neg eax
sbb eax, eax
and eax, esi
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
call fcn.3001fd67
add ebp, 0x194
leave
ret 4

Function at 0x30019aee
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x30034b3c]
push esi
push edi
mov dword [ebp + 0x190], eax
lea eax, [ebp - 0x74]
push eax
push 0x2001f
xor edi, edi
push edi
push dword [ebp + 0x19c]
push dword [0x300340d0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 2
jne 0x30019b32
xor esi, esi
jmp 0x30019b7f
cmp esi, edi
jne 0x30019b7f
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x30019b71
push dword [ebp + 0x19c]
push dword [0x300340d0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x74], edi
je 0x30019b7f
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x190]
pop edi
mov eax, esi
pop esi
call fcn.3001fd67
add ebp, 0x194
leave
ret 4
Function at 0x30019c12
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x30034b3c]
push esi
mov dword [ebp - 4], eax
push 0x30008d58
lea eax, [ebp - 0x24]
push eax
call fcn.30019b98
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x20], eax
je 0x30019c45
push 0x3000391c
call fcn.30010597
pop ecx
jmp 0x30019cc3
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [eax], esi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x16
call edi
mov dword [ebp - 0x2c], 1
mov ebx, 0x103
jmp 0x30019cb7
cmp dword [ebp - 0x20], esi
jne 0x30019cc1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
pop ecx
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx]
jl 0x30019c96
inc eax
mov dword [ecx], eax
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0x16
push dword [ebp - 0x24]
call edi
inc dword [ebp - 0x2c]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x30019c7c
mov dword [ebp - 0x20], esi
pop edi
pop ebx
cmp dword [ebp - 0x24], esi
pop esi
je 0x30019cd2
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.3001fd67
leave
ret 4

Function at 0x30019ce1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x30034b3c]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
call fcn.30019b98
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x30019d15
push 0x3000391c
call fcn.30010597
pop ecx
jmp 0x30019dc1
mov eax, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
mov dword [eax], 0xfffffc18
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x28], 0x16
call esi
mov dword [ebp - 0x24], 1
mov edi, 0x103
jmp 0x30019d94
cmp dword [ebp + 0xc], ebx
jne 0x30019db4
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
mov edx, dword [ebp + 8]
pop ecx
mov ecx, dword [edx]
cmp eax, ecx
jl 0x30019d71
cmp ecx, 0xfffffc18
jne 0x30019d73
mov dword [edx], eax
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x16
push dword [ebp - 0x20]
call esi
inc dword [ebp - 0x24]
cmp eax, edi
mov dword [ebp + 0xc], eax
jne 0x30019d50
mov eax, dword [ebp + 8]
cmp dword [eax], 0xfffffc18
jne 0x30019daf
mov dword [ebp + 0xc], 0xfffffe0c
jmp 0x30019dbf
mov dword [ebp + 0xc], ebx
jmp 0x30019dbf
push 0x30008049
call fcn.30010597
pop ecx
pop edi
pop esi
cmp dword [ebp - 0x20], ebx
pop ebx
je 0x30019dd0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
call fcn.3001fd67
leave
ret 8
Function at 0x30019ddf
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x30034b3c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi], ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x30019e47
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x20]
mov dword [ebp + 8], 0x16
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [ebp - 0x20]
mov edi, eax
xor eax, eax
cmp edi, ebx
sete al
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 2
je 0x30019e58
cmp edi, 0x103
je 0x30019e58
mov eax, edi
jmp 0x30019e5a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.3001fd67
leave
ret 0xc

Function at 0x30019e69
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x30034b3c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x30019f36
cmp word [esi + 2], 0x3a
jne 0x30019f36
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [esi + 4]
xor ebx, ebx
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], ax
mov dword [ebp + 8], ebx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x30019f16
push ebx
push ebx
push ebx
push ebx
xor eax, eax
push ebx
mov word [ebp - 0x218], bx
mov ecx, 0x82
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x30019f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x30008fd8
call fcn.300106d0
pop ecx
pop ecx
jmp 0x30019f22
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x30019f47
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp + 8]
cmp dword [ebp + 8], 5
jl 0x30019ebd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.3001fd67
leave
ret 4
xor eax, eax
inc eax
jmp 0x30019f38
Function at 0x3001a0f7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
and dword [ebx], 0
push esi
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push 0x30008d58
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x3001a15d
mov eax, dword [ebp + 8]
xor ecx, ecx
sub eax, ecx
mov dword [ebp + 0x10], 4
je 0x3001a138
dec eax
jne 0x3001a13d
mov ecx, 0x30008e48
jmp 0x3001a13d
mov ecx, 0x30008e30
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push 0
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
dec eax
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x3001a16d
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x30008d58
push dword [0x300340d0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x3001a1db
mov eax, dword [ebp + 8]
xor ecx, ecx
sub eax, ecx
je 0x3001a1a4
dec eax
jne 0x3001a1a9
mov ecx, 0x30008e48
jmp 0x3001a1a9
mov ecx, 0x30008e30
cmp dword [ebp + 0xc], 0
je 0x3001a1c6
push 4
push 0x3000448c
push 1
push 0
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x3001a1d0
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
dec eax
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
leave
ret 8

Function at 0x3001a254
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
xor ebx, ebx
call fcn.30010c69
cmp dword [0x30034048], 2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x3001a2e7
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x3001a297
call esi
mov ebx, eax
cmp ebx, edi
jne 0x3001a300
lea eax, [ebp - 0x10]
push eax
push 0x300090ac
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x3001a2b3
call esi
mov ebx, eax
cmp ebx, edi
jne 0x3001a300
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x3001a2de
call esi
mov ebx, eax
cmp ebx, edi
jne 0x3001a300
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x80040004
push 1
push edi
push edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
test eax, eax
jne 0x3001a300
call esi
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x3001a9ad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x30034b3c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
mov eax, dword [esi]
push 0x30009860
push eax
call fcn.300162a1
test eax, eax
jne 0x3001aab5
mov eax, dword [esi]
push 0x30009850
push eax
call fcn.300162a1
test eax, eax
jne 0x3001aab5
mov eax, dword [esi]
push 0x30001628
push eax
call fcn.300162a1
test eax, eax
jne 0x3001aab5
cmp dword [ebp + 0x10], eax
jne 0x3001aab5
mov esi, dword [esi]
and word [ebp - 0x210], ax
push 0x2f
push esi
call fcn.3001621d
mov esi, eax
test esi, esi
je 0x3001aab5
mov edi, 0x105
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x69
je 0x3001aa60
cmp ax, 0x49
je 0x3001aa60
cmp ax, 0x61
je 0x3001aa60
cmp ax, 0x41
je 0x3001aa60
cmp ax, 0x78
je 0x3001aa60
cmp ax, 0x58
je 0x3001aa60
cmp ax, 0x6a
je 0x3001aa6c
cmp ax, 0x4a
jne 0x3001aaa3
cmp ax, 0x6a
je 0x3001aa6c
cmp ax, 0x4a
jne 0x3001aa6e
inc esi
inc esi
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x66
je 0x3001aa7f
cmp ax, 0x46
jne 0x3001aa91
mov ax, word [esi]
cmp ax, 0x20
je 0x3001aa8d
test ax, ax
je 0x3001aa91
inc esi
inc esi
jmp 0x3001aa7f
push edi
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.3001357d
test eax, eax
jne 0x3001aac6
push 0x2f
push esi
call fcn.3001621d
mov esi, eax
test esi, esi
jne 0x3001aa2b
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.3001fd67
leave
ret 0xc
push 0x30009800
call fcn.300105be
lea eax, [ebp - 0x210]
push eax
call fcn.3000e480
test eax, eax
je 0x3001aaec
push 0x300097b8
call fcn.300106d0
jmp 0x3001ab08
cmp word [ebp - 0x210], 0x7b
lea eax, [ebp - 0x210]
push eax
jne 0x3001ab0b
push 0x30009768
call fcn.300106d0
pop ecx
pop ecx
jmp 0x3001aab5
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
cmp eax, 0xffffffff
jne 0x3001aab5
lea eax, [ebp - 0x210]
push eax
call fcn.30019e69
jmp 0x3001aba9
xor eax, eax
cmp dword [0x30077200], eax
jne 0x3001abc9
cmp dword [0x300771f8], eax
jne 0x3001abc9
cmp dword [0x300771fc], eax
jne 0x3001abc9
push edi
lea eax, [ebp - 0x628]
push eax
push 0x4d
call fcn.3001074b
test eax, eax
je 0x3001abc0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x41c]
push edi
push eax
call fcn.3000def7
mov dword [0x30076d5c], eax
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
call fcn.300105be
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0x11
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x3001abdc
lea eax, [ebp - 0x210]
push eax
call esi
cmp eax, 0xffffffff
je 0x3001ab29
jmp 0x3001aab5
push 0x4d
push 0x30009720
jmp 0x3001abd5
lea eax, [ebp - 0x210]
push eax
push 0x300096ec
call fcn.300106d0
pop ecx
pop ecx
xor eax, eax
jmp 0x3001aab8
Function at 0x3001c1c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x3007bf64], 0
jne 0x3001c23c
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x3000a8c8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x3007bf60
lea eax, [ebp - 0xc]
push eax
push 0
push 0x3000a91c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jle 0x3001c220
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jge 0x3001c229
and dword [0x3007bf60], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x3007bf64], 1
leave
ret

Function at 0x3001ca98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x30034b3c]
push ebx
push esi
push edi
push 0x14
pop edx
mov ecx, edx
mov esi, 0x3000afe0
lea edi, [ebp - 0x270]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
xor eax, eax
push 0x6d
pop ecx
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x18], bx
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x27
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x274], ebx
call fcn.3001cc59
test eax, eax
je 0x3001cbed
lea eax, [ebp - 0x68]
push eax
push 0x104
lea eax, [ebp - 0x270]
push eax
call fcn.3000d5f0
cmp eax, ebx
jge 0x3001cb3b
push eax
push 0x30001420
call fcn.30010597
push 0x3000afa8
call fcn.30010597
add esp, 0xc
jmp 0x3001cbed
lea eax, [ebp - 0x274]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x270]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov edi, 0xffff
mov esi, 0x80070000
mov ecx, eax
jle 0x3001cb6e
and ecx, edi
or ecx, esi
cmp ecx, ebx
jge 0x3001cb8c
cmp eax, ebx
jle 0x3001cb7a
and eax, edi
or eax, esi
push eax
push 0x30001420
call fcn.30010597
push 0x3000af80
jmp 0x3001cb2e
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x3000af70
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov ecx, eax
jle 0x3001cbb4
and ecx, edi
or ecx, esi
cmp ecx, ebx
jge 0x3001cbd5
cmp eax, ebx
jle 0x3001cbc0
and eax, edi
or eax, esi
push eax
push 0x30001420
call fcn.30010597
push 0x3000af3c
jmp 0x3001cb2e
cmp word [ebp - 0x18], 0x31
je 0x3001cbe3
cmp word [ebp - 0x18], 0x32
jne 0x3001cbed
mov dword [ebp - 0x278], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x278]
pop edi
pop esi
pop ebx
call fcn.3001fd67
leave
ret