joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408da8
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x14], edx
push eax
push 4
lea eax, [esp + 0x18]
mov ebp, ecx
push eax
push 8
xor esi, esi
push ebp
mov edi, esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x408e50
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x408e0c
lea eax, [esp + 0xc]
push eax
push 2
push 1
push esi
push 8
push ebp
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, eax
test edi, edi
jne 0x408e15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_token_CheckTokenMembership___DuplicateTokenEx__0x_08x__n
call fcn.00403fb4
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
jmp 0x408e10
mov dword [esp + 0xc], ebp
cmp eax, 1
je 0x408e63
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, eax
test esi, esi
jne 0x408e40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_token_CheckTokenMembership___CheckTokenMembership__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
test edi, edi
je 0x408e63
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_token_CheckTokenMembership___GetTokenInformation__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x408f2d
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], esi
lea eax, [ebp - 0x10]
push edi
cmovne eax, dword [ebp + 0xc]
mov edi, edx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push ecx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x408fd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x408fd2
mov eax, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push 0x40
call ebx
mov dword [edi], eax
test eax, eax
je 0x408fd1
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push 0x40
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
test eax, eax
je 0x408fc7
push dword [ebp - 8]
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 4]
push eax
push dword [edi]
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
jne 0x408fd1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x410cbb
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [ecx + 8]
mov ebp, edx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
test edi, edi
jle 0x410ce7
push ebx
mov ebx, dword [ecx]
mov al, byte [edx + ebp]
xor byte [ebx + esi], al
lea eax, [esi + 1]
xor esi, esi
cmp eax, dword [ecx + 4]
cmovl esi, eax
inc edx
cmp edx, edi
jl 0x410cd0
pop ebx
add dword [ecx + 0xc], edi
pop edi
mov dword [ecx + 8], esi
pop esi
pop ebp
ret

Function at 0x413fa2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
mov esi, dword [edi + 0x88]
test esi, esi
je 0x413fd2
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [edi + 0x88], eax
mov eax, dword [esi + 8]
and dword [esi + 0x10], 0
and dword [eax], 0
and dword [eax + 4], 0
jmp 0x414034
movzx eax, word [edi + 0x8c]
cdq
add eax, 0x28
adc edx, 0
push edx
push eax
call fcn.0040b2c1
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test esi, esi
jne 0x41401d
mov eax, dword [edi + 0x98]
lea ecx, [ebp - 1]
push esi
cdq
push ecx
push edx
push eax
call fcn.00497010
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [esp + 0x14]
push eax
call fcn.0040ac57
pop ecx
pop ecx
push 7
pop eax
jmp 0x414043
lea eax, [esi + 0x28]
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
push 0x20
pop eax
mov word [esi + 0x1c], ax
xor eax, eax
inc eax
mov word [esi + 0x1e], ax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov dword [esi + 0x18], ebp
inc dword [edi + 0x78]
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x418e52
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
movzx eax, word [ecx + 0x12]
and dword [esp], 0
push ebx
push ebp
movzx ebp, byte [ecx + 9]
push esi
movzx esi, word [ecx + 0x18]
push edi
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x14], edx
lea esi, [eax + esi*2]
mov dword [esp + 0x18], ecx
movzx ebx, byte [edi + ebp + 5]
movzx eax, byte [edi + ebp + 6]
shl ebx, 8
or ebx, eax
cmp esi, ebx
jbe 0x418eac
test ebx, ebx
jne 0x418e9b
mov eax, dword [ecx + 0x34]
mov ebx, 0x10000
cmp dword [eax + 0x24], ebx
je 0x418eac
mov ecx, 0xfe0c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.00464038
cmp byte [edi + ebp + 2], 0
jne 0x418eba
cmp byte [edi + ebp + 1], 0
je 0x418ef3
lea eax, [esi + 2]
cmp eax, ebx
ja 0x418ef3
lea eax, [esp + 0x10]
push eax
call fcn.00418d6b
pop ecx
test eax, eax
je 0x418ee3
mov ecx, dword [esp + 0x20]
sub eax, edi
mov dword [ecx], eax
cmp eax, esi
jg 0x418f42
mov ecx, 0xfe1c
jmp 0x418ea0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x418f44
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esi + 2]
add eax, edx
cmp eax, ebx
jle 0x418f2d
mov eax, dword [ecx + 0x14]
sub eax, edx
push 4
lea edx, [eax - 2]
pop eax
cmp edx, eax
cmovg edx, eax
call fcn.004189e0
test eax, eax
jne 0x418f44
movzx ecx, byte [edi + ebp + 5]
movzx eax, byte [edi + ebp + 6]
mov edx, dword [esp + 0x14]
shl ecx, 8
or ecx, eax
dec ecx
movzx ebx, cx
inc ebx
sub ebx, edx
mov eax, ebx
mov byte [edi + ebp + 6], bl
sar eax, 8
mov byte [edi + ebp + 5], al
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x435370
Capabilities:
Reference sql statements

Disassembly:
push ecx
push ebx
push esi
push edi
push dword [esp + 0x14]
mov esi, edx
mov ebx, str.sqlite_master
push esi
push ebx
push esi
mov edi, ecx
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push edi
call fcn.004389fa
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x4353a9
push esi
push ebx
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push edi
call fcn.004389fa
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4646f0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
call fcn.00464771
push 0
push 0x464765
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push dword [0x4d64d0]
push 1
call fcn.0047fb3a
push eax
call fcn.004802cf
pop ecx
pop ecx
push eax
call fcn.004800e0
pop ecx
pop ecx
push dword [0x4d64c8]
push 2
call fcn.0047fb3a
push eax
call fcn.004802cf
pop ecx
pop ecx
push eax
call fcn.004800e0
pop ecx
pop ecx
push dword [0x4d64cc]
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
cmp esi, 0xc000004b
pop esi
push 0
jne 0x46475e
call dword [sym.imp.KERNEL32.dll_ExitThread]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x464873
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
xor edi, edi
push eax
mov esi, edi
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov ebx, edi
mov dword [esp + 0x1c], ebx
test ebp, ebp
je 0x464a1b
cmp dword [esp + 0x18], ebx
jle 0x464a1b
push 0x4b9a48
push dword [ebp]
call fcn.00478369
mov esi, eax
mov dword [esp + 0x28], esi
pop ecx
pop ecx
test esi, esi
je 0x46492a
sub eax, dword [ebp]
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x464931
mov edi, dword [ebp]
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x4648f0
sub esi, dword [ebp]
sub edi, ecx
mov eax, esi
sar edi, 1
and eax, 0xfffffffe
push eax
push dword [ebp]
push ebx
call fcn.004793b0
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 4]
sar eax, 1
add ecx, 4
add esp, 0xc
cmp eax, edi
sbb eax, eax
and eax, ecx
xor edi, edi
jmp 0x46492d
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x20], edi
inc ecx
movzx eax, di
cmp di, cx
jae 0x464a07
mov esi, eax
test ebx, ebx
je 0x464969
mov eax, dword [esi*4 + 0x4a8774]
push dword [eax]
push ebx
call fcn.0047f89e
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
je 0x464968
xor eax, eax
jmp 0x4649f9
inc ecx
cmp dword [esp + 0x10], 0
mov eax, ecx
mov dword [esp + 0x2c], eax
je 0x4649fa
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x14], ecx
jne 0x4649f7
mov edi, dword [esp + 0x10]
mov ebx, ecx
mov ecx, dword [esi*4 + 0x4a8774]
cmp bx, word [ecx + 0xc]
jae 0x4649eb
movzx eax, bx
imul edx, eax, 0xc
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x28], edx
push dword [eax + edx + 4]
push edi
call fcn.0047f89e
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x4649e6
mov eax, dword [esi*4 + 0x4a8774]
mov ecx, dword [eax + 0x10]
lea eax, [ebp + 4]
push eax
mov eax, dword [esp + 0x1c]
dec eax
push eax
mov eax, dword [esp + 0x30]
call dword [ecx + eax]
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
inc ebx
test ecx, ecx
je 0x46498c
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
inc ecx
inc edi
mov dword [esp + 0x20], edi
test eax, eax
je 0x464938
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x464a14
push ebx
call esi
push ebp
call esi
mov esi, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x46605f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
push edi
push 4
pop esi
lea eax, [esp + 0x13]
mov dword [esp + 0x50], esi
mov dword [esp + 0x44], eax
xor ebp, ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x60], eax
xor ebx, ebx
inc ebx
mov dword [esp + 0x34], ecx
push 2
pop eax
mov dword [esp + 0x64], eax
mov esi, 0x14c
mov dword [esp + 0x68], eax
mov edi, ebp
xor eax, eax
mov dword [esp + 0x1c], edi
cmp dx, si
mov byte [esp + 0x13], 0xe9
mov edx, 0x4d5e64
mov word [esp + 0x14], 0x25ff
setne al
mov word [esp + 0x18], 0x4850
mov dword [esp + 0x70], eax
lea esi, [esp + 0x50]
lea eax, [esp + 0x18]
mov byte [esp + 0x1a], 0xb8
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x2c], eax
mov eax, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x80], 3
mov dword [esp + 0x84], 3
mov dword [esp + 0x88], 4
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
cmp eax, 3
jae 0x4661f9
mov ecx, dword [esp + 0x9c]
cmp ecx, dword [esi - 0x10]
jb 0x4661e9
mov ebx, dword [esi]
mov ebp, dword [esi - 4]
add ebx, ebp
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4661e1
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x24]
push ebx
call fcn.00403545
mov edi, dword [esp + 0x28]
pop ecx
test eax, eax
je 0x4661da
push dword [esi - 8]
push edi
push dword [esi - 0xc]
call fcn.004972ec
add esp, 0xc
test eax, eax
jne 0x4661da
cmp dword [esi + 4], 0
mov eax, dword [edi + ebp]
je 0x4661b8
add eax, dword [esp + 0x2c]
add eax, ebx
cmp dword [esi + 8], 0
mov dword [esp + 0x1c], eax
je 0x4661da
push 4
lea edx, [esp + 0x30]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x3c]
call fcn.00403545
mov edi, dword [esp + 0x28]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
inc eax
add esi, 0x1c
mov dword [esp + 0x20], eax
test edi, edi
je 0x46614e
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
Function at 0x4699b3
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, 0xc0000225
mov eax, edi
sub eax, 0
je 0x4699ed
sub eax, 1
je 0x4699e1
sub eax, 1
jne 0x469aac
mov ebx, 0x800
mov ebp, 0x4c0410
jmp 0x4699f5
mov ebx, 0x800
mov ebp, 0x4c03ec
jmp 0x4699f5
xor ebx, ebx
mov ebp, 0x4c03c4
inc ebx
push 0
lea eax, [esp + 0x18]
push eax
push 0x4c0430
call fcn.00408820
add esp, 0xc
test eax, eax
je 0x469aa1
push 0
push 0
push dword [esp + 0x1c]
call fcn.00481834
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x469aa1
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x469a8d
sub edi, 0
je 0x469a5a
sub edi, 1
je 0x469a51
sub edi, 1
jne 0x469a75
push ebx
call dword [sym.imp.ntdll.dll_NtResumeProcess]
jmp 0x469a63
push ebx
call dword [sym.imp.ntdll.dll_NtSuspendProcess]
jmp 0x469a63
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov esi, eax
test esi, esi
js 0x469a75
push dword [esp + 0x14]
push ebp
push str._s_of__u_PID_:_OK___n
jmp 0x469a7c
push esi
push ebp
push str.ERROR_kuhl_m_process_genericOperation____s_0x_08x_n
call fcn.00403fb4
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x469aac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_process_genericOperation___OpenProcess__0x_08x__n
call fcn.00403fb4
pop ecx
jmp 0x469aab
push str.ERROR_kuhl_m_process_genericOperation___pid___pid:123__is_missing
call fcn.00403fb4
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x469d1e
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov eax, 0x107c
call fcn.00497200
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x24], 0xc
and dword [esp + 0x28], ebp
lea eax, [esp + 0x40]
push 0x44
push ebp
push eax
mov ebx, edx
mov dword [esp + 0x38], 1
mov esi, ecx
call fcn.00478810
and dword [esp + 0x20], ebp
lea edi, [esp + 0x3c]
and dword [esp + 0x24], ebp
xor eax, eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0047f726
mov edi, eax
add esp, 0x10
mov dword [esp + 0x20], edi
test edi, edi
je 0x469f02
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x469efb
push ebp
push 1
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
or dword [esp + 0x6c], 0x100
mov eax, dword [esp + 0x7c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x80], eax
test ebx, ebx
je 0x469df8
push ebp
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x469df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_process_run_data___CreateEnvironmentBlock__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
jmp 0x469ee8
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
xor eax, eax
push eax
push dword [esp + 0x24]
push 0x8000400
push 1
push eax
push eax
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebp, eax
test ebp, ebp
je 0x469ec4
push dword [esp + 0x7c]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x20]
push eax
push 0x1000
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x24]
call ebx
test eax, eax
je 0x469eaa
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x469ea6
xor edi, edi
test eax, eax
je 0x469e88
movzx eax, byte [esp + edi + 0x88]
push eax
push 0x4aebe8
call fcn.00403fb4
inc edi
pop ecx
pop ecx
cmp edi, dword [esp + 0x1c]
jb 0x469e6c
push 0
lea eax, [esp + 0x20]
push eax
push 0x1000
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x24]
call ebx
test eax, eax
jne 0x469e5e
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x34]
call esi
push dword [esp + 0x30]
call esi
jmp 0x469ed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_process_run_data___CreateProcessAsUser__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
cmp dword [esp + 0x18], 0
je 0x469ee8
push dword [esp + 0x18]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [esp + 0x14]
call esi
cmp dword [esp + 0x7c], 0
je 0x469efb
push dword [esp + 0x7c]
call esi
push edi
call fcn.0047f785
pop ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x107c
ret
Function at 0x46b275
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x24], ecx
and dword [esp + 0x14], ebx
mov ebp, 0xff800000
push 0x32
xor eax, eax
mov dword [esp + 0x24], 0xa
pop edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x30]
push 9
pop ecx
sub ecx, eax
mov eax, dword [esp + 0x2c]
shl ecx, 2
call fcn.00497070
and al, 0xf
lea esi, [esp + 0x14]
xor cl, cl
xor ah, ah
mov dl, al
shr dl, cl
and dl, 1
xor byte [esi], dl
xor ah, dl
inc cl
inc esi
cmp cl, 4
jb 0x46b2bf
mov byte [esp + 0x13], ah
lea ecx, [edi + 1]
movzx eax, al
cdq
call fcn.00497050
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [esp + 0x13]
mov edi, edx
cdq
call fcn.00497050
or edi, edx
or esi, eax
mov eax, dword [esp + 0x1c]
or ebp, edi
mov edi, dword [esp + 0x18]
or ebx, esi
inc eax
sub edi, 5
sub dword [esp + 0x20], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
jne 0x46b2a0
movzx edx, byte [esp + 0x17]
movzx eax, byte [esp + 0x16]
add edx, edx
or edx, eax
mov eax, dword [esp + 0x14]
add edx, edx
movzx ecx, ah
or edx, ecx
movzx eax, al
add edx, edx
or edx, eax
mov eax, dword [esp + 0x24]
pop edi
add edx, edx
pop esi
or ebx, edx
mov dword [eax + 4], ebp
pop ebp
mov dword [eax + 8], ebx
mov dword [eax], 0x148040
pop ebx
add esp, 0x18
ret
Function at 0x46e0c1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
xor ebx, ebx
inc ebx
push edi
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0xc], eax
je 0x46e286
lea eax, [esp + 0x1c]
push eax
push 0x38
lea eax, [esp + 0x28]
push eax
push 0xa
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x46e286
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp dword [edi + 4], esi
je 0x46e191
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push esi
push eax
lea edx, [esp + 0x20]
call fcn.00408d1c
add esp, 0xc
test eax, eax
je 0x46e155
push dword [edi + 4]
push dword [esp + 0x18]
call fcn.0047f89e
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
neg eax
pop ecx
pop ecx
push dword [esp + 0x14]
sbb eax, eax
inc eax
mov dword [esp + 0x10], eax
call esi
push dword [esp + 0x18]
call esi
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x46e28a
push dword [ebp + 0xc]
push 0x4c6554
call fcn.00403fb4
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
xor edx, edx
call fcn.0046ddc0
cmp dword [edi + 0xc], esi
je 0x46e1ee
cmp dword [esp + 0x38], ebx
mov eax, dword [esp + 0x3c]
push 2
pop ecx
push 3
pop edx
cmove eax, edx
jmp 0x46e1fb
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x46e1a7
xor eax, eax
cmp ecx, dword [esp + 0x20]
sete al
mov dword [esp + 0xc], eax
jmp 0x46e155
mov edx, dword [edi]
test edx, edx
je 0x46e155
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], esi
cmp dword [edi + 0x18], esi
je 0x46e1de
call fcn.0040921d
mov esi, eax
test esi, esi
je 0x46e153
push dword [edi]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x46e153
lea eax, [esp + 0xc]
push eax
call fcn.00408da8
pop ecx
jmp 0x46e155
cmp dword [edi + 0x10], esi
je 0x46e286
mov ecx, ebx
mov eax, esi
cmp dword [edi + 0x10], esi
lea edx, [esp + 0x10]
push edx
push ecx
push eax
push esi
push 0xc
pop eax
mov ecx, 0x18f
cmovne eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x46e286
cmp dword [edi + 0xc], esi
je 0x46e262
push dword [esp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x46e24d
push str.____Impersonated___n
call fcn.00403fb4
pop ecx
push esi
push esi
call fcn.0046d891
pop ecx
pop ecx
mov dword [esp + 0xc], esi
jmp 0x46e27c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_token_list_or_elevate_callback___SetThreadToken__0x_08x__n
call fcn.00403fb4
pop ecx
pop ecx
jmp 0x46e27c
cmp dword [edi + 0x10], esi
je 0x46e27c
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x14]
call fcn.00469d1e
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0xc], eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc