joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479e50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfcb8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4fb00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x18]
add eax, 0x624
mov ecx, 0x40
nop dword [eax]
mov dword [eax], 1
lea eax, [eax + 0x210]
sub ecx, 1
jne 0x479e90
push 0xe
mov dword [ebp - 0x24], ecx
xor eax, eax
push str.UnknownProduct
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], 0x4d6388
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.00410a70
xorps xmm0, xmm0
mov byte [ebp - 0x1c], 1
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x38]
call fcn.00474940
cmp byte [ebp - 0x1c], 0
je 0x479fa2
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
mov ecx, esi
push eax
call fcn.0047a2a0
cmp dword [esi + 0x70], 0
je 0x479f1e
lea ecx, [esi + 0x54]
call fcn.0047cd70
cmp dword [esi + 0x6c], 0
je 0x479f2c
lea ecx, [esi + 0x40]
call fcn.0047c6d0
cmp dword [esi + 0x68], 0
je 0x479f3a
lea ecx, [esi + 0x34]
call fcn.0047c6d0
mov ecx, esi
call fcn.0047a1b0
xor ecx, ecx
lea eax, [esi + 0x1c]
xchg dword [eax], ecx
test ecx, ecx
je 0x479f73
push 0xffffffffffffffff
push ecx
push 0
call dword [sym.imp.api_ms_win_core_threadpool_legacy_l1_1_0.dll_DeleteTimerQueueTimer]
test eax, eax
jne 0x479f73
push 0x4d7ea8
call sub.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError
push eax
push str.Daemon::AManagerBase::Uninitialize
call fcn.0046ae30
add esp, 0xc
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], 0x4d6388
call fcn.004306a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00437174
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x44], xmm0
call fcn.0041b180
push 0x4f7e30
lea eax, [ebp - 0x44]
push eax
call fcn.004434e6
int3

Function at 0x47d9f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
mov eax, dword [0x4fb00c]
xor eax, esp
mov dword [esp + 0x10], eax
push 8
lea eax, [esp + 4]
push eax
push str.FriendlyDataSystemStorage
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x47da25
xor al, al
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00437174
add esp, 0x14
ret
xor eax, eax
mov word [esp + 0xe], ax
lea eax, [esp]
push 0x4d8b84
push eax
call fcn.0044e516
add esp, 8
test eax, eax
je 0x47da56
lea eax, [esp]
push 0x4d8b90
push eax
call fcn.0044e516
add esp, 8
test eax, eax
jne 0x47da14
mov ecx, dword [esp + 0x10]
mov al, 1
xor ecx, esp
call fcn.00437174
add esp, 0x14
ret
Function at 0x4822d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c04cc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4fb00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebx], 0x4d9604
mov dword [ebx + 4], 0
mov dword [ebx + 8], edi
mov eax, dword [edi]
push 0x4c535c
call dword [eax + 4]
mov dword [ebx + 0xc], eax
lea esi, [ebx + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x14], eax
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004839b0
mov dword [esi], eax
lea esi, [ebx + 0x20]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004810f0
mov dword [esi], eax
lea esi, [ebx + 0x28]
mov byte [ebp - 4], 1
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004810f0
mov dword [esi], eax
lea esi, [ebx + 0x30]
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004810f0
mov dword [esi], eax
mov dword [ebx + 0x38], 0xffffffff
mov ecx, edi
mov eax, dword [edi]
mov byte [ebp - 4], 3
call dword [eax + 0x10]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x88]
shr eax, 1
not al
and al, 1
mov byte [ebx + 0x3c], al
jne 0x4823e3
push str.WARNING:_Item_insert_release_notifications_are_not_supported_yet_in_LOCAL_ON_mode
push 0x4d8b44
push 2
call fcn.0046b300
add esp, 0xc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x486a90
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0a8f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4fb00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
call fcn.00487670
mov edi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], edi
lea ecx, [edi + 0x10]
mov word [edi + 0xc], 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0xc]
push 8
push 0x4da320
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [ecx + 4]
mov dword [ebp + 0xc], eax
lea esi, [eax + 8]
mov dword [eax], 0xffffffff
mov ecx, esi
mov dword [eax + 4], 0
xor eax, eax
mov dword [ebp + 0xc], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.00410a70
lea ecx, [esi + 0x18]
xor eax, eax
mov dword [ecx + 0x10], 0
push 7
mov dword [ecx + 0x14], 7
push 0x4da334
mov byte [ebp - 4], 2
mov word [ecx], ax
call fcn.00410a70
lea ecx, [esi + 0x30]
xor eax, eax
mov dword [ecx + 0x10], 0
push 1
mov dword [ecx + 0x14], 7
push 0x4d8b90
mov byte [ebp - 4], 3
mov word [ecx], ax
call fcn.00410a70
lea ecx, [esi + 0x48]
xor eax, eax
mov dword [ecx + 0x10], 0
push 1
mov dword [ecx + 0x14], 7
push 0x4da344
mov byte [ebp - 4], 4
mov word [ecx], ax
call fcn.00410a70
mov dword [esi + 0x60], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x496d77
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4aaa30
Capabilities:
Create thread

Disassembly:
sub esp, 0x44
mov eax, dword [0x4fb00c]
xor eax, esp
mov dword [esp + 0x40], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
or eax, dword [edi + 0x24]
je 0x4aaa6f
push str.Window_already_created
push 0xc
push str.MsgWindow::CMsgWindow::Create
call fcn.0046aee0
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00437174
add esp, 0x44
ret 4
cmp word [edi + 0x18], 0
jne 0x4aaafd
mov eax, dword [edi + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x4ab050
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov word [edi + 0x18], ax
test ax, ax
jne 0x4aaafd
push 0x4dee8c
call sub.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError
push eax
push str.MsgWindow::CMsgWindow::Create
call fcn.0046ae30
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00437174
add esp, 0x44
ret 4
mov eax, dword [edi + 0x28]
mov dword [edi + 0x28], 0
test eax, eax
je 0x4aab13
push 0
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [esp + 0x4c]
push esi
test eax, eax
je 0x4aab21
movups xmm0, xmmword [eax]
jmp 0x4aab4c
mov esi, dword [sym.imp.api_ms_win_ntuser_sysparams_l1_1_0.dll_GetSystemMetrics]
push 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call esi
push 0x11
mov dword [esp + 0x14], eax
call esi
mov dword [esp + 0x14], eax
movups xmm0, xmmword [esp + 8]
push 0
push 0
push edi
lea eax, [esp + 0x14]
push 0x4aaf80
movups xmmword [esp + 0x18], xmm0
push 0
movups xmm0, xmmword [eax]
push 0
movups xmmword [edi + 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x28], eax
test eax, eax
jne 0x4aaba2
push 0x4deea0
call sub.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError
push eax
push str.MsgWindow::CMsgWindow::Create
call fcn.0046ae30
add esp, 0xc
pop esi
pop edi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00437174
add esp, 0x44
ret 4
mov edx, dword [edi + 0x20]
mov eax, edx
mov ecx, dword [edi + 0x24]
or eax, ecx
jne 0x4aabc4
mov esi, dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
push 0xa
call esi
mov edx, dword [edi + 0x20]
mov eax, edx
mov ecx, dword [edi + 0x24]
or eax, ecx
je 0x4aabb4
and edx, 8
or edx, 0
je 0x4aac08
mov ecx, edi
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.004aafa0
test eax, eax
je 0x4aac08
push 0
push eax
push str.MsgWindow::CMsgWindow::Create
call fcn.0046ae30
add esp, 0xc
pop esi
pop edi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00437174
add esp, 0x44
ret 4
mov ecx, dword [esp + 0x48]
xor eax, eax
pop esi
pop edi
xor ecx, esp
call fcn.00437174
add esp, 0x44
ret 4
Function at 0x4aac20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1858
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4fb00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x3c]
mov ecx, 0
sub eax, dword [ebx + 0x34]
mov edi, dword [ebx + 0x38]
sub edi, dword [ebx + 0x30]
test byte [ebx + 0xc], 1
mov dword [ebp - 0x14], eax
mov eax, 0xfffffffd
cmovne eax, ecx
mov dword [ebp - 0x10], eax
cmp dword [ebx + 0x28], ecx
jne 0x4aac82
mov esi, dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
push 1
call esi
cmp dword [ebx + 0x28], 0
je 0x4aac78
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
add eax, 4
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
push ebx
push dword [ebx + 0x14]
mov dword [ebp - 4], 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
push dword [ebx + 0x34]
push dword [ebx + 0x30]
push 0
push str.Message_window
push dword [ebx]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, eax
mov dword [ebp - 0x14], edx
test edx, edx
je 0x4aad21
mov dword [ebx + 0x2c], edx
mov edi, dword [ebx + 4]
mov esi, dword [edi]
cmp esi, edi
je 0x4aacec
mov ecx, dword [esi + 8]
push dword [ebx + 0x28]
push edx
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [esi]
mov edx, dword [ebp - 0x14]
cmp esi, edi
jne 0x4aacd5
mov edi, dword [ebx + 4]
mov esi, dword [edi]
cmp esi, edi
je 0x4aad00
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [esi]
cmp esi, edi
jne 0x4aacf2
lea edi, [ebx + 0x20]
mov esi, dword [edi]
mov ebx, esi
mov ecx, dword [edi + 4]
or ebx, 1
mov eax, esi
mov edx, ecx
lock cmpxchg8b qword [edi]
cmp eax, esi
jne 0x4aad03
cmp edx, ecx
jne 0x4aad03
xor esi, esi
jmp 0x4aad58
lea edi, [ebx + 0x20]
mov esi, dword [edi]
mov ebx, esi
mov ecx, dword [edi + 4]
or ebx, 8
mov eax, esi
mov edx, ecx
lock cmpxchg8b qword [edi]
cmp eax, esi
jne 0x4aad24
cmp edx, ecx
jne 0x4aad24
push 0x4deed0
call sub.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError
push eax
push str.MsgWindow::CMsgWindow::CreateWindowInstance
call fcn.0046ae30
add esp, 0xc
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aafa0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x4fb00c]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov dword [esp + 4], 0
lea eax, [ecx + 0x28]
xor esi, esi
xchg dword [eax], esi
test esi, esi
je 0x4ab03a
push 0x7d0
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x4ab007
push 0
push 9
push str.MsgWindow::CMsgWindow::WaitAndReleaseThread
call fcn.0046aee0
add esp, 0xc
push eax
push esi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateThread]
test eax, eax
jne 0x4ab007
push 0x4d8344
call sub.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError
push eax
push str.MsgWindow::CMsgWindow::WaitAndReleaseThread
call fcn.0046ae30
add esp, 0xc
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeThread]
test eax, eax
jne 0x4ab033
push 0x4def8c
call sub.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError
push eax
push str.MsgWindow::CMsgWindow::WaitAndReleaseThread
call fcn.0046ae30
add esp, 0xc
mov dword [esp + 4], eax
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.00437174
add esp, 8
ret
Function at 0x4abc30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1a6f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4fb00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea esi, [ebx + 4]
mov dword [ebx], 0x4c536c
mov dword [ebp - 0x14], esi
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004135b0
mov dword [esi], eax
push ebx
push str.j_a
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004ac3f0
lea edi, [ebx + 0x14]
mov dword [ebp - 4], 1
push ebx
mov ecx, edi
mov dword [ebx], 0x4df210
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x10], 0
call fcn.004b9100
push ebx
push 0x4df3f0
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004ac3f0
push ebx
push 0x4df3e0
mov ecx, ebx
mov dword [ebp - 4], 3
mov dword [ebx], 0x4df260
call fcn.004ac3f0
push ebx
push 0x4da2f8
mov ecx, ebx
mov dword [ebp - 4], 4
mov dword [ebx], 0x4df2b0
call fcn.004ac3f0
push edi
lea esi, [ebx + 0x2c]
mov dword [ebp - 4], 5
push ebx
lea ecx, [ebx + 0x30]
mov dword [ebx], 0x4df300
mov dword [esi], 0x4df358
call fcn.004acb90
push esi
push 0x4df3c0
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.004ac3f0
mov dword [esi], 0x4df3b8
lea edi, [ebx + 0x7c]
lea esi, [edi + 4]
mov dword [ebx], 0x4df360
mov byte [ebx + 0x78], 0
mov ecx, esi
mov dword [ebp - 0x14], edi
mov dword [edi], 0x4df1a0
mov dword [ebp - 4], 7
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004135b0
mov dword [esi], eax
push edi
push str.j_a
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.004ac350
mov byte [ebp - 4], 9
push edi
push 0x4df3d0
mov ecx, edi
mov dword [edi], 0x4df1a0
call fcn.004ac350
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x18]
mov dword [edi], 0x4df1d0
mov byte [ebp - 4], 0xa
mov eax, dword [esi]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
call fcn.0046c4c0
push edi
mov dword [edi + 0x34], 0
mov ecx, edi
mov eax, dword [esi + 0xc]
push 0x4df200
mov byte [ebp - 4], 0xb
mov dword [edi + 0x38], eax
call fcn.004ac350
mov dword [ebx + 0xb8], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b4190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c26ce
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fb00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 4]
mov dword [edi], 0x4e190c
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004135b0
mov dword [esi], eax
push edi
push str.j_a
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004b4bc0
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x14]
push edi
mov dword [ebp - 4], 1
mov dword [edi], 0x4e1954
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], esi
call fcn.004b9100
push edi
push 0x4df3f0
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004b4bc0
test esi, esi
je 0x4b4231
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push edi
push 0x4e1ecc
mov ecx, edi
mov dword [ebp - 4], 3
mov dword [edi], 0x4e199c
call fcn.004b4bc0
mov dword [edi], 0x4e19e4
mov ecx, esi
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [esi]
mov dword [ebp - 4], 4
call dword [eax + 0x10]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x4c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov dword [edi + 0x3c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4b5910
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4fb00c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
xor bl, bl
mov word [esp + 0x38], 0x500
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4b59c7
lea eax, [esp + 0x10]
push eax
push dword [esp + 8]
push 0
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x4b599a
cmp dword [esp + 0x10], 0
push dword [esp + 4]
setne bl
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
mov al, bl
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00437174
add esp, 0x14
ret
push 0
push 2
push str.AdminUser::IsRunAsAdmin
call fcn.0046aee0
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
mov al, bl
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00437174
add esp, 0x14
ret
push 0
push 2
push str.AdminUser::IsRunAsAdmin
call fcn.0046aee0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov al, bl
pop ebx
xor ecx, esp
call fcn.00437174
add esp, 0x14
ret
Function at 0x4b5a90
Capabilities:
Get token membership

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4fb00c]
xor eax, esp
mov dword [esp + 0x58], eax
lea eax, [esp + 4]
mov dword [esp + 0xc], 0
push eax
push 0xa
mov dword [esp + 0xc], 0
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x4b5bb7
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 4
lea eax, [esp + 0x18]
push eax
push 0x12
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x4b5b9a
cmp dword [esp + 0x10], 3
mov dword [esp], 0
jne 0x4b5b22
lea eax, [esp + 8]
push eax
push 4
lea eax, [esp + 8]
push eax
push 0x13
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x4b5b9a
cmp dword [esp], 0
jne 0x4b5b3c
lea eax, [esp]
push eax
push 1
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_DuplicateToken]
test eax, eax
je 0x4b5b9a
cmp dword [esp], 0
je 0x4b5bab
lea eax, [esp + 8]
mov dword [esp + 8], 0x44
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x1a
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
test eax, eax
je 0x4b5b74
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 8]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
jne 0x4b5b85
push 0
push 2
push str.AdminUser::IsUserInAdminGroup
call fcn.0046aee0
add esp, 0xc
push dword [esp]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push dword [esp + 4]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x4b5bc8
push 0
push 2
push str.AdminUser::IsUserInAdminGroup
call fcn.0046aee0
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x4b5bc8
push 0
push 2
push str.AdminUser::IsUserInAdminGroup
call fcn.0046aee0
add esp, 0xc
cmp dword [esp + 0xc], 0
mov ecx, dword [esp + 0x58]
setne al
xor ecx, esp
call fcn.00437174
add esp, 0x5c
ret
Function at 0x4b6140
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4fb00c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebp
mov ebp, dword [esp + 0x64]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov edi, dword [esi + 0xc]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
cmp eax, 1
jne 0x4b6284
test ecx, ecx
jne 0x4b6284
mov dword [edi], 2
push ebx
mov dword [edi + 4], ecx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
test eax, eax
je 0x4b620e
xor ebx, ebx
mov dword [esp + 0x24], 0x44
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
push ecx
lea ecx, [esp + 0x28]
movlpd qword [esp + 0x2c], xmm0
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
movups xmmword [esp + 0x3c], xmm0
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
je 0x4b6208
push dword [esp + 0x14]
mov esi, dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
call esi
push dword [esp + 0x18]
call esi
mov esi, dword [esp + 0x10]
jmp 0x4b6221
push 0
push 2
jmp 0x4b6212
push 0
push 1
push str.AdminUser::CCrossProcessRestartHandler::DuplicateProcess
call fcn.0046aee0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4b624d
mov dword [edi], 0
mov eax, ebx
pop ebx
mov dword [edi + 4], 0
pop edi
pop esi
mov byte [ebp], 0
pop ebp
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00437174
add esp, 0x5c
ret 4
push 0
push 2
mov ecx, esi
call fcn.004b6370
test eax, eax
je 0x4b6269
mov dword [edi], 0
mov dword [edi + 4], 0
pop ebx
pop edi
pop esi
mov byte [ebp], 1
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00437174
add esp, 0x5c
ret 4
mov eax, dword [edi]
mov ecx, dword [edi + 4]
cmp eax, 2
jne 0x4b6297
test ecx, ecx
jne 0x4b6297
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x64]
xor eax, eax
pop edi
pop esi
mov byte [ebp], 0
pop ebp
xor ecx, esp
call fcn.00437174
add esp, 0x5c
ret 4