joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451280
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x4512b1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4512a0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x459a20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9b14
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x50dc94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.softwareFortinetFortiClientFA_ESNAC
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov dword [ebp - 0x18], 0
call fcn.004a7eca
mov esi, eax
add esp, 8
test esi, esi
je 0x459a7d
lea eax, [ebp - 0x18]
push eax
push 0x4ddb90
push esi
call fcn.004a7ed6
push esi
call fcn.004a7ed0
add esp, 0x10
cmp dword [ebp - 0x18], 5
jne 0x459c05
call fcn.004a7f78
push eax
lea ecx, [ebp - 0x14]
call dword [0x4c5f74]
push 0x4ddba0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call dword [0x4c5f84]
push 0x44
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.004b493e
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x70], 0x44
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004a7f78
push eax
push 0
push 8
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x459b57
push str.softwareFortinetFortiClientFA_ESNAC
push SHChangeNotifyRegister
call fcn.004a7eca
mov esi, eax
add esp, 8
test esi, esi
jne 0x459b1d
push str.softwareFortinetFortiClientFA_ESNAC
push SHChangeNotifyRegister
call fcn.004a7f54
add esp, 8
jmp 0x459b33
push 1
push str.tray_opened
push esi
call fcn.004a7f5a
push esi
call fcn.004a7ed0
add esp, 0x10
push str.FortiClient_FGT_REG_GUI_started_
call fcn.0045c450
add esp, 4
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x459bfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10]
mov dword [0x50dad0], 0
mov esi, eax
call dword [0x4c5d94]
push 2
mov byte [ebp - 4], 1
call fcn.004ae6ec
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
call dword [0x4c5f74]
cmp esi, 0x522
jne 0x459b9d
push dword [ebp - 0x1c]
mov byte [ebp - 4], 2
push 0x6c
jmp 0x459ba6
push dword [ebp - 0x1c]
mov byte [ebp - 4], 3
push 0x6b
lea eax, [ebp - 0x10]
push eax
call dword [0x4c5da4]
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call dword [0x4c5d9c]
mov eax, dword [ebp - 0x10]
lock inc dword [0x541a48]
push 0
push 0
push eax
call fcn.004b31ec
lock dec dword [0x541a48]
push esi
push str.Failed_to_start_FortiClient_FGT_REG_GUI__GetLastError_d
call fcn.0045c450
add esp, 8
mov dword [0x50dad0], 1
lea ecx, [ebp - 0x10]
call dword [0x4c5d9c]
lea ecx, [ebp - 0x14]
call dword [0x4c5d9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45a5b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
call fcn.004b493e
push str.softwareFortinet
push SHChangeNotifyRegister
call fcn.004a7f54
add esp, 0x14
test eax, eax
je 0x45a5fa
push eax
call fcn.004a7ed0
add esp, 4
push str.softwareFortinetFortiClient
push SHChangeNotifyRegister
call fcn.004a7f54
add esp, 8
test eax, eax
je 0x45a619
push eax
call fcn.004a7ed0
add esp, 4
push str.softwareFortinetFortiClientFA_VPN
push SHChangeNotifyRegister
call fcn.004a7f54
mov esi, eax
add esp, 8
test esi, esi
je 0x45a646
push edi
push 0x4ddb70
push esi
call fcn.004a80c4
push esi
call fcn.004a7ed0
add esp, 0x10
push 0x3c
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.004b493e
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x250], 0x3c
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], str.open
mov dword [ebp - 0x23c], str.__vpnbanner
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x24c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x45a725
push 0x14
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45a725
push 0
push 0
push 0
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x45a713
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0x14
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x45a6e2
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0xffffffff
push eax
push dword [ebp - 0x218]
mov esi, 2
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x218]
mov eax, 1
cmp dword [ebp - 0x214], eax
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esi, 1
je 0x45a77b
sub esi, 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
Function at 0x466c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x50f810], 1
push esi
mov esi, ecx
je 0x466cb7
push str.called.
push str.___info
push 0x61a
push 0
push 0
call fcn.00421090
add esp, 0x14
mov eax, dword [esi + 0xac]
test eax, eax
je 0x466d6c
test byte [0x50f810], 4
je 0x466cea
push eax
push str.m_hThreadAutoConnectVPN0x_p._Will_terminate_it.
push str.warning
push 0x61c
push 0
push 0
call fcn.00421090
add esp, 0x18
push 0x21
xor eax, eax
mov dword [ebp - 0xc], 0
push str.CFortiTrayDlg::InitVPNAutoConnect
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
call int.00410410
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00479440
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x466d54
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466d4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x466d4a
call dword [0x4c59b0]
push edx
push ecx
call fcn.004aebf7
add esp, 8
push 0
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0xac], 0
cmp dword [0x541a34], 0
je 0x466e1f
push edi
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea eax, [ebp - 0x58]
push eax
call fcn.00480030
add esp, 4
cmp dword [ebp - 0x54], 0
je 0x466da6
push 0x540d68
call fcn.0047fe40
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x466db9
push 0x540c64
call fcn.0047ff20
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, esi
call fcn.00479930
mov ecx, esi
call fcn.00464620
cmp dword [esi + 0x614], 0
pop edi
je 0x466e05
push 0xffffffffffffffff
push dword [esi + 0x604]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x614]
cmp dword [eax + 0x18], 1
jne 0x466df9
mov dword [eax + 0x18], 0
push dword [esi + 0x604]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push 0
push esi
push 0x479690
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xac], eax
test byte [0x50f810], 1
pop esi
je 0x466e44
push str.exit.
push str.___info
push 0x636
push 0
push 0
call fcn.00421090
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
Function at 0x46c550
Capabilities:
Create process on windows

Disassembly:
push 5
push 0
push 0
push str.http:__docs.fortinet.com_fclient_forticlient_lite_quickstart_40_mr3.pdf
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x472180
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0xe0], 0
jne 0x472199
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x4721c6
lea eax, [ebp - 4]
push eax
call fcn.0045b1f0
push 0x105
push dword [eax]
push esi
call dword [0x4c5ac4]
add esp, 0x10
lea ecx, [ebp - 4]
call dword [0x4c5d9c]
cmp dword [ebx + 0x160], 0
push edi
je 0x4721e8
lea edi, [ebx + 0x164]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x15c]
cmp eax, 0x1f4
ja 0x472235
push 0
push 0x1f4
push 0x96
push dword [ebx + 0x20]
lea edi, [ebx + 0x164]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x160], 1
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0xd0], 0
mov edi, 1
je 0x472281
mov ecx, dword [ebx + 0xe0]
push 0
push 0
push 0
push 0
push 0
call fcn.0049df50
movzx eax, byte [esi + 0x41c]
mov ecx, dword [ebx + 0xe0]
push eax
push dword [esi + 0x418]
lea eax, [esi + 0x20a]
push dword [esi + 0x414]
push eax
push esi
call fcn.0049df50
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x15c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x483de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x210]
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
mov word [edi], cx
test eax, eax
jne 0x483e62
push esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov esi, eax
test esi, esi
jne 0x483e61
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x483ed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push 0
push 0
push ebx
push str.open
push 0
mov edi, ecx
mov dword [ebp - 0x624], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x20
ja 0x48402b
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
push str..htm
push SHChangeNotifyRegister
call fcn.00483de0
test eax, eax
jne 0x484029
push str._shellopencommand
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
push eax
push SHChangeNotifyRegister
call fcn.00483de0
test eax, eax
jne 0x484029
lea eax, [ebp - 0x414]
push 0x4e4c4c
push eax
call fcn.004b4972
mov esi, eax
add esp, 8
test esi, esi
jne 0x483faa
lea eax, [ebp - 0x414]
push 0x4e4c58
push eax
call fcn.004b4972
mov esi, eax
add esp, 8
test esi, esi
jne 0x483faa
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp + eax*2 - 0x416]
jmp 0x483faf
xor eax, eax
mov word [esi], ax
push 0x4d29bc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x209
lea eax, [ebp - 0x620]
push 0
push eax
call fcn.004b493e
add esp, 0xc
lea eax, [ebp - 0x620]
push 0
push 0
push 0x208
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x624]
lea eax, [ebp - 0x620]
mov byte [ebp - 0x419], 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret 8
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret 8
Function at 0x489600
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x541aac], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], edi
jne 0x4896a0
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004b493e
add esp, 0xc
mov dword [0x541aac], 1
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00489600
add esp, 8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [0x4c5ac4]
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00489600
add esp, 0x14
xor esi, esi
call fcn.00406260
push edi
push esi
mov ecx, eax
push ebx
push esi
push esi
mov eax, dword [ecx]
push dword [ecx + 4]
or eax, 2
mov dword [ebp - 0x21c], ecx
push eax
call dword [0x4c5a68]
mov ebx, eax
or eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
lea eax, [ebx*2 + 0xe]
push eax
call dword [0x4c596c]
mov edi, eax
add esp, 0x20
test edi, edi
je 0x489720
push dword [ebp - 0x214]
mov ecx, dword [ebp - 0x21c]
xor eax, eax
push eax
push dword [ebp - 0x218]
mov dword [edi + ebx*2 + 0xa], eax
lea eax, [edi + 0xa]
push ebx
push eax
mov eax, dword [ecx]
push dword [ecx + 4]
or eax, 1
push eax
call dword [0x4c5a68]
mov esi, eax
add esp, 0x1c
test esi, esi
mov eax, 0xffffffff
cmovs esi, eax
test esi, esi
cmovs esi, ebx
add esi, 5
test edi, edi
je 0x489777
push dword [0x50d738]
push 0x4d86e4
push 5
push edi
call fcn.00434600
add esp, 0x10
mov ebx, esi
test esi, esi
jle 0x48975a
cmp word [edi + esi*2 - 2], 0xa
je 0x48975a
mov dword [edi + esi*2], 0xa
lea ebx, [esi + 1]
push edi
call dword [0x4c5958]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret

Function at 0x489ac0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
xor esi, esi
test eax, eax
jne 0x489ad3
or eax, 0xffffffff
pop esi
pop ebp
ret
push 0
push 0
push eax
push fcn.0048a930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x489af0
mov dword [ecx], eax
test eax, eax
mov ecx, 0xfffffffa
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret
Function at 0x48a5e0
Capabilities:
Connect pipe
Create pipe
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov byte [ebp - 4], bl
test edi, edi
je 0x48a7bd
mov eax, dword [edi + 0xa04]
sub eax, dword [edi + 0xa00]
mov ecx, dword [ebp + 0xc]
sar eax, 2
cmp ecx, eax
jae 0x48a7bd
lfence
mov eax, dword [edi + 0xa00]
push esi
mov esi, dword [eax + ecx*4]
cmp dword [esi + 8], ebx
je 0x48a629
cmp dword [esi + 0xc], ebx
jne 0x48a63c
push ecx
push edi
call fcn.00489bb0
push dword [ebp + 0xc]
push edi
call fcn.0048a460
add esp, 0x10
push esi
call fcn.004a82c2
add esp, 4
test eax, eax
jne 0x48a651
lea ebx, [eax - 4]
jmp 0x48a779
mov eax, dword [edi + 0xa18]
mov dword [esi], eax
inc dword [edi + 0xa18]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x48a66d
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x48a67b
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x20800
lea eax, [esi + 0x258]
mov dword [esi + 0x38], ebx
push 0
push eax
call fcn.004b493e
add esp, 0xc
lea eax, [ebp - 0x24]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test dword [edi + 0x210], 0x1100
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], ebx
jne 0x48a6cb
mov dword [ebp - 0xc], ebx
jmp 0x48a6f5
push 0
lea eax, [ebp - 0xc]
push eax
push 1
push str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGW___AU__A_OICI_GA___BA__A_OICI_GA___SY_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
mov dword [ebp - 4], eax
test al, al
jne 0x48a6f5
push str.sa_creation_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x1388
push 0x20800
push 0x20800
push 0xff
push 0xe
push 0x40000003
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x48a72d
mov dword [esi + 4], ebx
mov ebx, 0xffffffcb
jmp 0x48a76c
lea ecx, [esi + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x48a767
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x48a79d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
lea eax, [esi + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x48a740
mov ebx, 0xffffffca
push esi
call fcn.004a82c8
add esp, 4
test ebx, ebx
jns 0x48a785
push dword [ebp + 0xc]
push edi
call fcn.00489a00
add esp, 8
cmp byte [ebp - 4], 0
pop esi
je 0x48a795
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x217
je 0x48a7b2
cmp eax, 0x3e5
je 0x48a76c
mov ebx, 0xffffffc9
jmp 0x48a76c
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x48a76c
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491a70
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x200
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x491adc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret

Function at 0x491af0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x491b5c
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret
Function at 0x491cd0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
test eax, eax
jne 0x491ce8
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push eax
xor esi, esi
mov dword [ebp - 8], edi
push esi
push 0x400
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x491dfe
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x491dfe
lea eax, [ebp - 4]
push eax
push esi
push esi
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 4]
test eax, eax
je 0x491dfe
push eax
call dword [0x4c596c]
mov edi, eax
add esp, 4
test edi, edi
je 0x491e2e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x491de3
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x491de3
lea eax, [ebp - 0xc]
push eax
push 8
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x491de3
lea eax, [ebp - 4]
push eax
push esi
push esi
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 4]
test eax, eax
je 0x491de3
push eax
call dword [0x4c596c]
mov esi, eax
add esp, 4
test esi, esi
je 0x491de3
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x491de3
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x491de3
push dword [esi]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [ebp - 0x10], eax
push edi
call dword [0x4c5958]
add esp, 4
test esi, esi
je 0x491dfb
push esi
call dword [0x4c5958]
add esp, 4
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test eax, eax
je 0x491e0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x491e1a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x491e25
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x491dfe