joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416e9b
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x469803
call fcn.0045091b
lea eax, [ebp - 0x218]
push eax
xor esi, esi
push esi
push esi
push 0x8023
mov edi, ecx
push esi
mov dword [ebp - 0x228], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x416ed4
xor eax, eax
jmp 0x416faf
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.004012e2
push str.AdobeARM
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 4], esi
call fcn.00406977
add esp, 0xc
push edi
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00416fb5
mov edi, eax
cmp edi, esi
jne 0x416f91
mov esi, 0x4b27dc
mov eax, esi
call fcn.00401bd8
test eax, eax
je 0x416f91
mov edi, esi
call fcn.00401baa
test eax, eax
mov eax, str.AdobeReader
jne 0x416f42
mov eax, str.AdobeAcrobat
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00406977
add esp, 0xc
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.00406b64
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004017ba
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push eax
mov ecx, ebx
call fcn.00416fb5
mov edi, eax
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.004017ba
mov eax, edi
call fcn.0045099e
ret
Function at 0x419227
Capabilities:
Check http status code

Disassembly:
push 0x20
mov eax, 0x46880a
call fcn.004508b2
xor ecx, ecx
push 2
pop edx
xor edi, edi
mov eax, 0x100
mul edx
seto cl
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], 0xff
mov dword [ebp - 0x28], 4
neg ecx
or ecx, eax
push ecx
call fcn.0043cacf
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push dword [ebp + 8]
call esi
test eax, eax
je 0x4193eb
cmp dword [ebp - 0x18], 0x197
jne 0x419290
push 0x29
jmp 0x41929f
cmp dword [ebp - 0x18], 0x191
jne 0x4193c1
push 0x28
pop edi
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4192f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4192f3
push ebx
call fcn.0043cada
mov eax, dword [ebp - 0x14]
pop ecx
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043cacf
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp + 8]
call esi
test eax, eax
je 0x4193eb
push ebx
lea ecx, [ebp - 0x10]
call fcn.004012e2
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x10]
jmp 0x41930a
inc esi
inc esi
movzx eax, word [esi]
push eax
call fcn.0044f7a3
pop ecx
test eax, eax
jne 0x419308
mov eax, dword [ebp - 0x10]
cmp esi, eax
je 0x41935a
push dword [eax - 0xc]
sub esi, eax
sar esi, 1
lea ecx, [ebp - 0x10]
mov edi, esi
call fcn.0040163a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 0xc]
mov esi, ecx
lea edx, [eax + edi*2]
sub esi, edi
lea edi, [esi + esi + 2]
push edi
push edx
lea ecx, [ecx + ecx + 2]
push ecx
push eax
call fcn.00406a69
add esp, 0x10
push esi
lea ecx, [ebp - 0x10]
call fcn.00401683
lea edi, [ebp - 0x10]
call fcn.00407f2a
push str.basic
xor ecx, ecx
mov esi, edi
call fcn.00406946
test eax, eax
je 0x4193b5
push str.digest
xor ecx, ecx
call fcn.00406946
test eax, eax
je 0x4193b5
push str.Authentication_scheme_is_other_than_basic_or_digest....
lea ecx, [ebp - 0x1c]
call fcn.004012e2
push 0
mov eax, edi
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov byte [ebp - 4], 2
call fcn.00410886
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
jmp 0x4193bc
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x10]
jmp 0x4193e3
push str.Status_says_No_Authentication_required...
lea ecx, [ebp - 0x20]
call fcn.004012e2
push edi
lea eax, [ebp - 0x20]
push eax
push 1
mov dword [ebp - 4], edi
call fcn.00410d56
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
push ebx
call fcn.0043cada
mov eax, dword [ebp - 0x24]
pop ecx
call fcn.0045098a
ret
Function at 0x41dcac
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x4662e6
call fcn.004508b2
mov esi, str.GlobalARM_Update_Mutex
push esi
push 1
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x1c], eax
cmp eax, ebx
jne 0x41dce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41dce8
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x1c], ebx
je 0x41dd17
push str.ARM_update_mutex_created
lea ecx, [ebp - 0x10]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.00410d56
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
call fcn.0045098a
ret
Function at 0x42011b
Capabilities:
Create process on windows

Disassembly:
push 0x10
mov eax, 0x46856f
call fcn.004508b2
push str.ExecuteRetryInstall...
lea ecx, [ebp - 0x14]
call fcn.004012e2
xor edi, edi
push edi
lea eax, [ebp - 0x14]
push eax
push 2
pop esi
push esi
mov dword [ebp - 4], edi
call fcn.00410d56
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
push str.___file__
lea ecx, [ebp - 0x14]
call fcn.004012e2
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 8]
push edi
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00410886
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017ba
mov dword [ebp - 0x14], 0xd
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x10]
call fcn.00413a25
push 0x5c
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.00407f08
cmp eax, 0xffffffff
je 0x4201dc
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.00407f97
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00406b64
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004017ba
push str..exe
mov ecx, ebx
call fcn.00432632
pop ecx
test eax, eax
je 0x420251
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, 0x4748e0
cmp dword [ebp - 0x10], edi
je 0x420219
push 5
push edi
push esi
push dword [ebp - 0x10]
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 5
push edi
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call ebx
mov dword [ebp - 0x14], eax
cmp eax, 0x21
jae 0x420294
push str.ShellExecute_failed
lea ecx, [ebp + 8]
call fcn.004012e2
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
push 2
jmp 0x4202b0
push str..msi
mov ecx, ebx
call fcn.00432632
pop ecx
test eax, eax
je 0x420299
mov esi, 0x4748e0
cmp dword [ebp - 0x10], edi
je 0x42028c
push 5
push edi
push esi
push dword [ebp - 0x10]
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebx]
call sub.msi.dll_MsiOpenDatabaseW
mov dword [ebp - 0x14], edi
jmp 0x4202c3
push str.Not_supported_file_type
lea ecx, [ebp + 8]
call fcn.004012e2
push edi
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 5
push esi
call fcn.00410d56
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017ba
mov eax, dword [ebp - 0x14]
call fcn.0045098a
ret 4
Function at 0x420f8b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
mov eax, dword [0x4add60]
xor eax, esp
mov dword [esp + 0x254], eax
test esi, esi
jne 0x420fad
push 0xd
jmp 0x421015
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421013
and dword [esp], 0
push 0x24c
lea eax, [esp + 8]
push 0
push eax
call fcn.0044e740
add esp, 0xc
lea eax, [esp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x421013
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x420ffa
cmp dword [esp + 0x20], edi
je 0x420ffa
mov eax, 0x5b6
jmp 0x421016
push ebx
push esi
call fcn.0042042b
neg eax
sbb eax, eax
pop ecx
and eax, 0xfffffc12
pop ecx
add eax, 0x3ee
jmp 0x421016
push 2
pop eax
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0044da13
mov esp, ebp
pop ebp
ret
Function at 0x427d9e
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
xor ebx, ebx
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
call edi
cmp eax, ebx
je 0x427dd7
push ebx
push str.TrayNotifyWnd
push ebx
push eax
call edi
cmp eax, ebx
je 0x427dd7
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x427e93
lea eax, [ebp - 0x24]
push eax
push 5
mov dword [ebp - 0x24], 0x24
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x427e37
mov eax, dword [ebp - 0x18]
sub eax, ebx
je 0x427e1b
dec eax
je 0x427e02
dec eax
je 0x427e1b
dec eax
jne 0x427e93
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0x64]
mov dword [esi], ecx
add eax, 0xfffffff0
jmp 0x427e32
mov eax, dword [ebp - 8]
lea ecx, [eax - 0x64]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
jmp 0x427e93
push ebx
push str.Shell_TrayWnd
push ebx
push ebx
call edi
cmp eax, ebx
je 0x427e75
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 8]
mov ecx, eax
sub ecx, dword [esi]
cmp ecx, 0x96
jle 0x427e63
add eax, 0xffffff6a
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
sub ecx, dword [esi + 4]
cmp ecx, 0x1e
jle 0x427e93
add eax, 0xffffffe2
jmp 0x427e90
push ebx
push esi
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
pop edi
pop ebx
leave
ret
Function at 0x42809f
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4add60]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x46536d
call fcn.004508b2
mov eax, dword [ebp + 0x214]
push dword [eax]
mov esi, ecx
push str._INSTALLDIR_
push esi
call fcn.004067cc
test eax, eax
jne 0x4281b8
call fcn.0043ce9a
push eax
lea ecx, [ebp - 0x10]
call fcn.00413a25
and dword [ebp - 4], 0
mov edi, str._WindowsFolder_
push edi
xor ecx, ecx
call fcn.00406946
or ebx, 0xffffffff
cmp eax, ebx
je 0x42810a
push 0x24
jmp 0x42815c
mov edi, str._SystemFolder_
push edi
xor ecx, ecx
call fcn.00406946
cmp eax, ebx
je 0x42811f
push 0x25
jmp 0x42815c
mov edi, str._ProgramFilesFolder_
push edi
xor ecx, ecx
call fcn.00406946
cmp eax, ebx
je 0x428134
push 0x26
jmp 0x42815c
mov edi, str._CommonFilesFolder_
push edi
xor ecx, ecx
call fcn.00406946
cmp eax, ebx
je 0x428149
push 0x2b
jmp 0x42815c
mov edi, str._LocalAppDataFolder_
push edi
xor ecx, ecx
call fcn.00406946
cmp eax, ebx
je 0x4281ad
push 0x1c
pop ebx
push edi
lea ecx, [ebp - 0x10]
call fcn.00401356
xor eax, eax
push 0x206
mov word [ebp], ax
xor edi, edi
lea eax, [ebp + 2]
push edi
push eax
call fcn.0044e740
add esp, 0xc
lea eax, [ebp]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4281ad
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4281ad
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
push esi
call fcn.004067cc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004017ba
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044da13
add ebp, 0x20c
leave
ret
Function at 0x4284e8
Capabilities:
Enumerate gui resources

Disassembly:
push 0x29c
mov eax, 0x467b12
call fcn.004508b2
push 0x4b2844
lea ecx, [ebp - 0x20]
call fcn.00401326
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
push ebx
mov ecx, 0x4b2b98
mov dword [ebp - 0x1c], ebx
call fcn.0043edc8
cmp dword [0x4b2800], ebx
mov dword [ebp - 0x14], ebx
jle 0x42867a
push dword [ebp - 0x14]
mov ecx, 0x4b27f8
call fcn.00406a88
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x428630
cmp dword [eax + 0x20], ebx
je 0x428558
mov eax, 0x4b2be0
call fcn.00401cc2
test eax, eax
je 0x428630
mov eax, dword [esi]
add eax, 8
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.00401326
push 0x495df8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406a03
lea ecx, [ebp - 0x10]
test eax, eax
je 0x4285bd
lea eax, [ebp - 0x20]
push eax
call fcn.0042809f
pop ecx
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00407f08
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 0xc]
dec ecx
cmp eax, ecx
je 0x4285ad
push 0x475554
lea ecx, [ebp - 0x10]
call fcn.00406a25
mov eax, dword [esi]
add eax, 4
push eax
lea ecx, [ebp - 0x10]
call fcn.00401103
jmp 0x4285c8
mov eax, dword [esi]
add eax, 4
push eax
call fcn.00406b64
mov esi, dword [esi]
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 0x10]
cmp eax, 6
jne 0x4285f1
xor esi, esi
push ebx
inc esi
lea eax, [ebp - 0x18]
push esi
push eax
mov ecx, edi
call fcn.00428c4d
add esp, 0xc
test eax, eax
je 0x428612
mov dword [ebp - 0x1c], esi
jmp 0x428612
cmp eax, ebx
jne 0x428625
push dword [esi + 4]
lea eax, [ebp - 0x18]
push ebx
push eax
mov ecx, edi
call fcn.00428c4d
add esp, 0xc
test eax, eax
je 0x428612
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x18], ebx
je 0x428625
push dword [ebp - 0x18]
push 0x427ffd
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [edi - 0x10]
mov byte [ebp - 4], bl
call fcn.004017ba
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x4b2800]
jl 0x428528
cmp dword [ebp - 0x1c], ebx
je 0x42867a
push dword [0x4b2bec]
lea eax, [ebp - 0x2a8]
push eax
call fcn.0041c887
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 2
call fcn.004487dc
lea ecx, [ebp - 0x2a8]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.0041c99c
jmp 0x42867d
xor esi, esi
inc esi
cmp esi, 4
je 0x428509
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004017ba
mov eax, esi
call fcn.0045098a
ret
Function at 0x428ec9
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x4add60]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x640], eax
cmp eax, 0xffffffff
jne 0x428f05
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0044da13
leave
ret
lea ecx, [ebp - 0x63c]
push ecx
push eax
mov dword [ebp - 0x63c], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x428f32
xor edi, edi
push dword [ebp - 0x640]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x428ef7
push 0x475554
push ebx
call fcn.0044e7ba
pop ecx
pop ecx
push dword [ebp + 8]
mov esi, eax
neg esi
push 0
sbb esi, esi
push 0x2000000
neg esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x644], eax
test esi, esi
jne 0x428f6b
push ebx
lea eax, [ebp - 0x61c]
push eax
jmp 0x428fbb
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0044e740
add esp, 0xc
cmp dword [ebp - 0x644], 0
je 0x428fc9
push 0x104
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x620]
push dword [ebp - 0x644]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jbe 0x428fc9
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.0044fce3
mov edi, eax
neg edi
sbb edi, edi
pop ecx
inc edi
pop ecx
lea eax, [ebp - 0x63c]
push eax
push dword [ebp - 0x640]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
je 0x428f22
test edi, edi
je 0x428f5d
jmp 0x428f22
Function at 0x42a6c2
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x42a6f5
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push str.iLogLevel
push dword [0x4b26a8]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00432847
add esp, 0x10
test eax, eax
jne 0x42a6f5
cmp dword [ebp + 8], 1
jae 0x42a72c
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push dword [0x4b26a8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42a72c
push str.CollectData
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret

Function at 0x42a7b1
Capabilities:
Shutdown system

Disassembly:
push 0x1c
mov eax, 0x467a05
call fcn.004508b2
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42a7ff
push str.OpenProcessToken_failed_in_RebootOS.
lea ecx, [ebp - 0x10]
call fcn.004012e2
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push eax
push 2
call fcn.00410d56
mov ecx, dword [ebp - 0x10]
jmp 0x42a885
lea eax, [ebp - 0x24]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 2
pop edi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 0x18]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x42a854
push str.AdjustTokenPrivileges_failed_in_RebootOS.
lea ecx, [ebp - 0x10]
call fcn.004012e2
mov dword [ebp - 4], ebx
call esi
push eax
lea eax, [ebp - 0x10]
push eax
push edi
jmp 0x42a7f2
push SysReAllocString
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x42a890
push str.ExitWindowsEx_failed_in_RebootOS.
lea ecx, [ebp - 0x14]
call fcn.004012e2
mov dword [ebp - 4], edi
call esi
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00410d56
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
call fcn.0045098a
ret
Function at 0x42a896
Capabilities:
Create process on windows

Disassembly:
push 0x6c
mov eax, 0x4679d2
call fcn.004508b2
push str.LaunchProcessAsUser...
lea ecx, [ebp - 0x18]
call fcn.004012e2
xor esi, esi
push esi
lea eax, [ebp - 0x18]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.00410d56
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0044e740
add esp, 0xc
push 0x10
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], str.winsta0default
call fcn.0044e740
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
push dword [edi]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], 0x20
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x42a923
mov dword [ebp - 0x1c], 0x420
jmp 0x42a959
push str.CreateEnvironmentBlock_failed
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.004012e2
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00410d56
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push str._Skip
push eax
call fcn.0040107c
add esp, 0xc
push 2
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
xor ebx, ebx
inc eax
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0043cacf
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x42a9d3
push str.operator_new_failed
lea ecx, [ebp - 0x18]
call fcn.004012e2
push esi
lea eax, [ebp - 0x18]
push eax
push 1
mov byte [ebp - 4], 3
call fcn.00410d56
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
push 8
pop esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004017ba
mov eax, esi
call fcn.0045098a
ret
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
push ecx
inc eax
push eax
push ebx
call fcn.0044f468
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push esi
push esi
push esi
push ebx
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x18], esi
cmp eax, esi
jne 0x42aa47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateProcessAsUser_failed:
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
call fcn.004012e2
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.00410d56
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017ba
push dword [ebp - 0x10]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x28]
call esi
push ebx
call fcn.0043cada
mov esi, dword [ebp - 0x18]
pop ecx
jmp 0x42a9c0