joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e7a7132
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1e7a716d

Function at 0x1e7a7460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.1e7a7102
push eax
push esi
push dword [ebp + 8]
call fcn.1e7a70b7
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax

Function at 0x1e7a74b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
invalid
inc ebp
movsb byte es:[edi], byte [esi]

Function at 0x1e7a7500
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 8]
call fcn.1e7a70b7
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1e7a7102
push eax
push esi
push dword [ebp + 8]
invalid
push ebp
sti
Function at 0x1e7a7760
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1e7a77a6
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1e7a77a1
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1e7a778b
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1e7a7793
cmp edx, ebx
jne 0x1e7a78e1
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1e7a7762
add eax, dword [eax + 4]
jmp 0x1e7a774f
mov dword [ebp + 0xc], ebx
jmp 0x1e7a77b1
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1e7a77c9
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1e7a77e7
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1e7a7845
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1e7a782c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1e7a7835
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1e7a783f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1e7a7821
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1e7a77ab
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1e7a7892
dec eax
je 0x1e7a7889
sub eax, 3
je 0x1e7a7880
mov dword [ebp - 4], 0x40
jmp 0x1e7a78af
mov dword [ebp - 4], 4
jmp 0x1e7a7895
mov dword [ebp - 4], 0x20
jmp 0x1e7a7895
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1e7a78e1
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1e7a7861
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1e7a70f2
sbb edi, 0x75ff831c
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x1e7a78ed
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1e7a7960
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.1e7a7102
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
invalid
invalid
Function at 0x1e7a7da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec ebx
mov dh, 0x3e
push 0x68
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x1e7a7de6
cmp dword [ebp - 0x398], 0
je 0x1e7a7fb0
cmp dword [ebp + 0xc], 1
je 0x1e7a7fb0
cmp dword [ebp + 0xc], 8
jne 0x1e7a7f78
call fcn.1e7a70f2
inc edx
dec esi
stosd dword es:[edi], eax
jmp 0x19372505
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.1e7a70d0
dec dword [eax]
mov al, byte [0x2ff845c6]
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
inc dword [eax]
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.1e7a7102
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1e7a70b7
add esp, 0xc
invalid

Function at 0x1e7a7df0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
invalid
invalid
dec esp
stc
Function at 0x1e7a8010
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec ebx
mov dh, 0x3e
push 0x68
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x1e7a7de6
cmp dword [ebp - 0x398], 0
je 0x1e7a7fb0
cmp dword [ebp + 0xc], 1
je 0x1e7a7fb0
cmp dword [ebp + 0xc], 8
jne 0x1e7a7f78
call fcn.1e7a70f2
inc edx
dec esi
stosd dword es:[edi], eax
jmp 0x19372505
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.1e7a70d0
dec dword [eax]
mov al, byte [0x2ff845c6]
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
inc dword [eax]
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.1e7a7102
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1e7a70b7
add esp, 0xc
invalid

Function at 0x1e7a8590
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
invalid
test ecx, esp
clc
Function at 0x1e7a9c90
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], 0
push ebx
mov ebx, dword [sym.imp.python27.dll_Py_FatalError]
push esi
push edi
mov edi, dword [sym.imp.python27.dll_PyThreadState_Swap]
jne 0x1e7a9ccd
push 0
call edi
mov esi, eax
add esp, 4
test esi, esi
jne 0x1e7a9cbf
push str.pywintypes:_can_not_setup_interpreter_state__as_current_state_is_invalid
call ebx
add esp, 4
mov eax, dword [esi + 4]
push esi
mov dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], eax
call edi
add esp, 4
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1e7a9ce7
push 0x1e7b10fc
call ebx
add esp, 4
mov ecx, dword [0x1e7ba8b8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
call edi
push eax
mov dword [esi], eax
call edi
add esp, 8
pop edi
mov dword [esi + 4], 0
pop esi
pop ebx
ret

Function at 0x1e7a9d10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1e7ba8b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1e7a9d7f
push esi
push edi
mov edi, dword [sym.imp.python27.dll_Py_FatalError]
cmp dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], eax
jne 0x1e7a9d3a
push str.Can_not_setup_thread_state__as_have_no_interpreter_state
call edi
add esp, 4
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1e7a9d54
push str.Out_of_memory_allocating_thread_state.
call edi
add esp, 4
mov ecx, dword [0x1e7ba8b8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState]
push edx
call dword [sym.imp.python27.dll_PyThreadState_New]
add esp, 4
mov dword [esi], eax
mov eax, 1
pop edi
mov dword [esi + 4], eax
pop esi
ret
xor eax, eax
ret

Function at 0x1e7a9dd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1e7ba8b8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1e7a9e0b
cmp dword [esi + 4], 0
je 0x1e7a9e0b
mov ecx, dword [esi]
push ecx
call dword [sym.imp.python27.dll_PyThreadState_Delete]
mov edx, dword [0x1e7ba8b8]
add esp, 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
ret
Function at 0x1e7aac70
Capabilities:
Allocate thread local storage
Link many functions at runtime

Disassembly:
push esi
push 0x1e7b1a38
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x1e7aac97
push str.AdvAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1e7aad49
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AddAccessAllowedAce
push esi
call edi
test eax, eax
je 0x1e7aacaf
mov dword [0x1e7ba7d0], eax
push str.AddAccessDeniedAce
push esi
call edi
test eax, eax
je 0x1e7aacc0
mov dword [0x1e7ba7d4], eax
push str.AddAccessAllowedAceEx
push esi
call edi
test eax, eax
je 0x1e7aacd1
mov dword [0x1e7ba7d8], eax
push str.AddMandatoryAce
push esi
call edi
test eax, eax
je 0x1e7aace2
mov dword [0x1e7ba7e0], eax
push str.AddAccessAllowedObjectAce
push esi
call edi
test eax, eax
je 0x1e7aacf3
mov dword [0x1e7ba7e4], eax
push str.AddAccessDeniedAceEx
push esi
call edi
test eax, eax
je 0x1e7aad04
mov dword [0x1e7ba7dc], eax
push str.AddAccessDeniedObjectAce
push esi
call edi
test eax, eax
je 0x1e7aad15
mov dword [0x1e7ba7e8], eax
push str.AddAuditAccessAceEx
push esi
call edi
test eax, eax
je 0x1e7aad26
mov dword [0x1e7ba7ec], eax
push str.AddAuditAccessObjectAce
push esi
call edi
test eax, eax
je 0x1e7aad37
mov dword [0x1e7ba7f0], eax
push str.SetSecurityDescriptorControl
push esi
call edi
pop edi
test eax, eax
je 0x1e7aad49
mov dword [0x1e7ba804], eax
mov eax, dword [esp + 0xc]
sub eax, 0
pop esi
je 0x1e7aad76
sub eax, 1
jne 0x1e7aad8d
push 0x1e7ba81c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1e7ba8b8], eax
mov eax, 1
ret 0xc
push 0x1e7ba81c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [0x1e7ba8b8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, 1
ret 0xc
Function at 0x1e7ab3a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1e7ba8b8]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x1e7ab3dc
cmp dword [esi + 4], edi
je 0x1e7ab3dc
mov ecx, dword [esi]
push ecx
call dword [sym.imp.python27.dll_PyThreadState_Delete]
mov edx, dword [0x1e7ba8b8]
add esp, 4
push edi
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [sym.pywintypes27.dll_struct__object__PyWinExc_ApiError]
mov dword [sym.pywintypes27.dll_struct__is__PyWin_InterpreterState], edi
cmp eax, edi
je 0x1e7ab402
dec dword [eax]
mov eax, dword [sym.pywintypes27.dll_struct__object__PyWinExc_ApiError]
cmp dword [eax], edi
jne 0x1e7ab402
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
mov eax, dword [sym.pywintypes27.dll_struct__object__PyWinExc_COMError]
mov dword [sym.pywintypes27.dll_struct__object__PyWinExc_ApiError], edi
cmp eax, edi
je 0x1e7ab428
dec dword [eax]
mov eax, dword [sym.pywintypes27.dll_struct__object__PyWinExc_COMError]
cmp dword [eax], edi
jne 0x1e7ab428
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
push eax
call edx
add esp, 4
mov dword [sym.pywintypes27.dll_struct__object__PyWinExc_COMError], edi
pop edi
pop esi
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
mov ebx, 0x40915c
mov ecx, 0x613a71a9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x125b7438
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10024ee
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x100805c]
push ebx
push esi
push 2
xor esi, esi
pop ebx
cmp dword [0x1008df0], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x408], esi
jne 0x100262c
push edi
lea eax, [ebp - 0x40c]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x10013c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100262b
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push 0x10013a8
push dword [ebp - 0x40c]
mov dword [ebp - 0x410], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100261f
cmp dword [ebp - 0x418], edi
jne 0x100261f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1001394
lea eax, [ebp - 0x404]
push eax
call esi
test eax, eax
jne 0x10025a4
mov dword [ebp - 0x408], ebx
jmp 0x100261f
push 0x1001380
lea eax, [ebp - 0x404]
push eax
call esi
test eax, eax
jne 0x100261f
push 0x100136c
mov dword [ebp - 0x408], edi
call fcn.01002459
mov edi, eax
test edi, edi
je 0x100261f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001358
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x1002618
push 0x1001344
push edi
call esi
mov esi, eax
test esi, esi
je 0x1002618
lea eax, [ebp - 0x414]
push eax
push 0x65
push 0
call ebx
test eax, eax
jne 0x1002618
mov eax, dword [ebp - 0x414]
test byte [eax + 0x10], 0x10
je 0x1002615
mov dword [ebp - 0x408], 3
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop esi
pop ebx
call fcn.01003b81
leave
ret

Function at 0x1002750
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [0x1008538], esi
jne 0x10027d4
cmp dword [0x100854c], esi
je 0x10027c6
cmp dword [0x1008534], esi
jne 0x10027c6
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push 0x1001420
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x10027d4
push 0x80020004
push 2
push esi
push esi
call sub.SHELL32.dll_RestartDialogEx
pop esi
leave
ret
Function at 0x10028a9
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100805c]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 8
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1002915
call esi
cmp eax, 0x3f0
jne 0x100290e
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1002915
xor eax, eax
jmp 0x10029c0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x1002934
xor eax, eax
jmp 0x10029bf
call esi
cmp eax, 0x7a
jne 0x100292d
push dword [ebp - 0x14]
call fcn.01004103
mov esi, eax
cmp esi, ebx
pop ecx
je 0x100292d
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x10029b6
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10029b6
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x1c], ebx
jbe 0x10029aa
lea ebx, [esi + 4]
push dword [ebp - 0x18]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10029a3
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x100298a
jmp 0x10029aa
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ebx, dword [ebp - 0x1c]
push esi
call fcn.0100403e
pop ecx
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01003b81
leave
ret
Function at 0x1003cc8
Capabilities:
Parse pe header

Disassembly:
push 0x18
push 0x1001548
call fcn.01003ee4
mov edi, 0x94
mov eax, edi
call fcn.01003ea0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 0x10]
mov dword [0x100820c], eax
mov ecx, dword [esi + 4]
mov dword [0x1008218], ecx
mov edx, dword [esi + 8]
mov dword [0x100821c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1008210], esi
cmp eax, 2
je 0x1003d28
or esi, 0x8000
mov dword [0x1008210], esi
shl ecx, 8
add ecx, edx
mov dword [0x1008214], ecx
cmp word [0x1000000], 0x5a4d
jne 0x1003d66
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1003d66
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1003d7f
cmp ecx, 0x20b
je 0x1003d6c
and dword [ebp - 0x1c], 0
jmp 0x1003d96
cmp dword [eax + 0x1000084], 0xe
jbe 0x1003d66
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1003d90
cmp dword [eax + 0x1000074], 0xe
jbe 0x1003d66
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01004fe3
pop ecx
test eax, eax
jne 0x1003dc3
cmp dword [0x10081fc], 2
je 0x1003db0
call fcn.01004730
push 0x1c
call fcn.01004543
push 0xff
call fcn.010043a2
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01004e13
test eax, eax
jge 0x1003dd8
push 0x1b
call fcn.01003c99
pop ecx
call fcn.01004d63
mov dword [0x1009050], eax
call fcn.01004bc4
mov dword [0x10081f8], eax
call fcn.01004b27
test eax, eax
jge 0x1003dfd
push 8
call fcn.01003c99
pop ecx
call fcn.010048e6
test eax, eax
jge 0x1003e0e
push 9
call fcn.01003c99
pop ecx
call fcn.010043fc
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1003e21
push eax
call fcn.01003c99
pop ecx
mov eax, dword [0x1008234]
mov dword [0x1008238], eax
push eax
push dword [0x1008228]
push dword [0x1008220]
call fcn.010033b8
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], 0
jne 0x1003e51
push esi
call fcn.010044dc
call fcn.01004514
jmp 0x1003e83
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.01003f1f
ret