joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016e0
Capabilities:
Allocate thread local storage
Create directory
Link many functions at runtime
Query environment variable

Disassembly:
mov al, byte [0x4f4db4]
sub esp, 0x194
push ebx
xor ebx, ebx
cmp al, bl
push esi
jne 0x40192d
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x40192d
cmp dword [esp + 0xc], 4
jb 0x40192d
cmp dword [esp + 0x18], 2
jne 0x40173b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x401741
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x104
push str.C:WINDOWS
push 0x4df7a8
mov dword [0x4f4dc4], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.C:WINDOWS
push str._sMinidump
lea ecx, [esp + 0xa4]
push 0xff
push ecx
call fcn.00466ca7
add esp, 0x10
lea edx, [esp + 0x9c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [str.agthelp.dll]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call esi
cmp eax, ebx
mov dword [0x4f4dc8], eax
jne 0x4017f6
mov ecx, dword [str.dbghelp.dll]
push ecx
call esi
cmp eax, ebx
mov dword [0x4f4dc8], eax
jne 0x4017f6
push 0x4df76c
lea edx, [esp + 0xa0]
push 0xff
push edx
call fcn.00466ca7
mov eax, dword [str.InitializeException__]
mov ecx, dword [0x4f4db0]
push 0x19f
push eax
push ecx
lea edx, [esp + 0xb4]
push 4
push edx
call fcn.00401b50
add esp, 0x20
pop esi
pop ebx
add esp, 0x194
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push eax
call esi
mov dword [0x4f4dcc], eax
mov eax, dword [0x4f4dc8]
push str.SymCleanup
push eax
call esi
mov ecx, dword [0x4f4dc8]
push str.StackWalk
push ecx
mov dword [0x4f4dd0], eax
call esi
mov edx, dword [0x4f4dc8]
push str.SymFromAddr
push edx
mov dword [0x4f4dd4], eax
call esi
mov dword [0x4f4dd8], eax
mov eax, dword [0x4f4dc8]
push str.SymGetLineFromAddr
push eax
call esi
mov ecx, dword [0x4f4dc8]
push str.SymFunctionTableAccess
push ecx
mov dword [0x4f4ddc], eax
call esi
mov edx, dword [0x4f4dc8]
push str.SymGetModuleBase
push edx
mov dword [0x4f4de0], eax
call esi
mov dword [0x4f4de4], eax
mov eax, dword [0x4f4dc8]
push str.MiniDumpWriteDump
push eax
call esi
mov dword [0x4f4de8], eax
mov eax, dword [0x4f4dcc]
cmp eax, ebx
je 0x4018ea
cmp dword [0x4f4dd0], ebx
je 0x4018ea
cmp dword [0x4f4dd4], ebx
je 0x4018ea
push 0x401a60
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x4f4d98
mov dword [0x4f4dc0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [0x4f4dc4]
push 1
push ebx
push ecx
call dword [0x4f4dcc]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
mov dword [0x4df420], eax
mov byte [0x4f4db4], 1
pop ebx
add esp, 0x194
ret
mov edx, dword [0x4f4dc8]
mov dword [0x4f4dcc], ebx
push edx
mov dword [0x4f4dd0], ebx
mov dword [0x4f4dd4], ebx
mov dword [0x4f4dd8], ebx
mov dword [0x4f4ddc], ebx
mov dword [0x4f4de0], ebx
mov dword [0x4f4de4], ebx
mov dword [0x4f4de8], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4f4dc8], ebx
pop esi
pop ebx
add esp, 0x194
ret
Function at 0x4019e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov al, byte [0x4f4db4]
test al, al
je 0x401a18
mov eax, dword [0x4df420]
cmp eax, 0xffffffff
je 0x401a18
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x401a18
push 0x401be0
call fcn.00466f20
add esp, 4
push eax
mov eax, dword [0x4df420]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
ret

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

Disassembly:
mov al, byte [0x4f4db4]
test al, al
je 0x401a55
mov eax, dword [0x4df420]
cmp eax, 0xffffffff
je 0x401a55
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x401a55
push eax
call fcn.00466f20
mov eax, dword [0x4df420]
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
ret
Function at 0x402360
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1648
push 0x467578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x404]
cmp eax, ebx
je 0x4023c3
cmp eax, 0xffffffff
je 0x4023c3
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esi + 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x404], ebx
mov byte [esi + 0x408], bl
mov dword [ebp - 4], 0xffffffff
call fcn.004023e9
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ccf31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x4d1748
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov eax, edx
mov dword [esp + 0x18], 2
cmp eax, edx
je 0x402d9a
push edi
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
cmp eax, edx
jne 0x402d8b
pop edi
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x1c], ecx
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.00403440
mov eax, dword [esi + 0x2c]
xor ebx, ebx
cmp eax, ebx
je 0x402dd1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x402dc8
cmp al, 0xff
je 0x402dc8
dec al
mov byte [ecx], al
jmp 0x402dd1
push ecx
call fcn.00463c78
add esp, 4
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x10], eax
call fcn.00463c78
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x14], eax
call fcn.00463c78
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41b310
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x124
mov eax, dword [str.GetNetWorkName__]
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x4e2900]
mov ebx, dword [esp + 0x134]
mov edx, dword [0x4e2904]
mov dword [esp + 0x10], eax
mov eax, dword [0x4e2908]
mov dword [esp + 0x14], ecx
mov cl, byte [0x4e290c]
push edi
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], cl
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x134]
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_]
push edx
push eax
push str._s_sConnection
lea ecx, [esp + 0x38]
push 0x103
push ecx
call fcn.00466ca7
add esp, 0x14
lea edx, [esp + 0xc]
lea eax, [esp + 0x2c]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41b3ea
push eax
push str.RegOpenKeyEx__
lea ecx, [esi + 0x55]
push 0xfff
push ecx
call fcn.00466ca7
mov ecx, dword [0x4d1bac]
mov edx, dword [esi]
add esp, 0x10
lea eax, [esp + 0x14]
push 0x66b
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x124
ret 8
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push ebx
push eax
push 0
push str.Name
push ecx
mov dword [esp + 0x28], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b437
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x41b437
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x124
ret 8
push eax
push str.RegQueryValueEx__
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d1bac]
mov edx, dword [esi]
add esp, 0x10
lea eax, [esp + 0x14]
push 0x673
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x124
ret 8
Function at 0x428950
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cdcab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x2c]
call fcn.00458110
mov ecx, esi
mov dword [esp + 0x25c], 0
call fcn.00428dc0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x264]
dec ecx
test eax, eax
mov dword [esi + 0x30], ecx
jne 0x4289e1
mov edx, dword [esp + 0x48]
push eax
push 0x10
push eax
neg edx
sbb edx, edx
lea eax, [esp + 0x34]
and edx, eax
push 4
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x28]
neg ecx
sbb ecx, ecx
push 0
and ecx, edx
push 0
mov dword [esi + 0x28], eax
push ecx
jmp 0x428a82
mov ecx, dword [esp + 0x268]
test ecx, ecx
je 0x428a09
push 0
push 0
push 0x1f
push esi
push 0xffffffffffffffff
push eax
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esi + 0x1f], 0
jmp 0x428a15
push 0x1f
push eax
push esi
call fcn.00466df0
add esp, 0xc
push esi
lea eax, [esp + 0x154]
push str._s_MemoryMapping
push eax
call fcn.00467d68
mov edx, dword [esp + 0x54]
add esp, 0xc
lea ecx, [esp + 0x150]
lea eax, [esp + 0x28]
neg edx
push ecx
push 0x10
sbb edx, edx
push 0
and edx, eax
push 4
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
lea ecx, [esp + 0x154]
push str._s_Mutex
push ecx
mov dword [esi + 0x28], eax
call fcn.00467d68
mov eax, dword [esp + 0x54]
add esp, 0xc
neg eax
lea edx, [esp + 0x150]
lea ecx, [esp + 0x28]
sbb eax, eax
push edx
and eax, ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x28]
test eax, eax
je 0x428ae0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x428ae0
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x20], eax
je 0x428ae0
mov edx, dword [esp + 0x26c]
mov ecx, esi
push edx
call fcn.00428d50
lea ecx, [esp + 0x28]
mov dword [esi + 0x2c], 1
mov dword [esp + 0x25c], 0xffffffff
call fcn.00458150
mov eax, 1
jmp 0x428afd
mov ecx, esi
call fcn.00428dc0
lea ecx, [esp + 0x28]
mov dword [esp + 0x25c], 0xffffffff
call fcn.00458150
xor eax, eax
mov ecx, dword [esp + 0x254]
pop esi
mov dword fs:[0], ecx
add esp, 0x25c
ret 0xc
Function at 0x42ac70
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, dword [str.UninstallPermit]
sub esp, 0x158
push ebx
push esi
push eax
push 0
push 1
mov ebx, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
test esi, esi
jne 0x42acd1
push 0x4e1e10
lea ecx, [ebx + 0xa5]
push 0xfff
push ecx
call fcn.00466ca7
mov edx, dword [0x4d1fd0]
add esp, 0xc
mov ecx, ebx
push 0x417
push str.UninstallSelf__
push edx
call fcn.0042b1b0
pop esi
mov eax, 0x23
pop ebx
add esp, 0x158
ret
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [esp + 0x5c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x42adcc
cmp eax, 0x104
jg 0x42adcc
mov ecx, dword [str.UnstlSlf.exe]
push edi
lea edx, [esp + 0x60]
push ecx
push edx
push 0x4df9ac
lea eax, [esp + 0x6c]
push 0x103
push eax
call fcn.00466ca7
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0x14
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esp + 0x4c], ax
mov dword [esp + 0xc], ecx
lea edx, [esp + 0xc]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], ecx
push edx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x34], ecx
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x3c], 0x44
push ecx
push 0
mov dword [esp + 0x70], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x42adb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4e1df0
lea edx, [ebx + 0xa5]
push 0xfff
push edx
call fcn.00466ca7
mov eax, dword [0x4d1fd0]
add esp, 0x10
push 0x43a
push str.UninstallSelf__
push eax
jmp 0x42adf6
mov ecx, dword [esp + 8]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
xor eax, eax
pop ebx
add esp, 0x158
ret
push 0x4e1ddc
lea eax, [ebx + 0xa5]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d1fd0]
add esp, 0xc
push 0x423
push str.UninstallSelf__
push ecx
mov ecx, ebx
call fcn.0042b1b0
pop esi
mov eax, 0x10
pop ebx
add esp, 0x158
ret
Function at 0x42ccd0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x118
lea eax, [esp + 0x14]
push 0x104
push eax
push 0x4df7a8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, dword [str.SOFTWAREBaosightlsagentgeneral]
lea ecx, [esp + 8]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42ce2a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x18]
push eax
mov eax, dword [str.logfiletype]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
mov edi, 4
push eax
push ecx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x42cd52
mov edx, dword [0x4d2140]
push edi
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00466df0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x4f73ec
call fcn.00402880
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
mov edx, dword [str.loglevel]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x42cd90
mov dword [esp + 8], 6
mov ecx, dword [esp + 8]
push ecx
mov ecx, 0x4f73ec
call fcn.00402700
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
mov edx, dword [str.backupcount]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x42cdce
mov dword [esp + 8], 7
mov ecx, dword [esp + 8]
push ecx
mov ecx, 0x4f73ec
call fcn.00402780
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
mov edx, dword [str.encryptcode]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], edi
call esi
pop edi
pop esi
test eax, eax
je 0x42ce0e
mov dword [esp], 0
mov ecx, dword [esp]
push ecx
mov ecx, 0x4f73ec
call fcn.00402800
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42ce5e
mov eax, dword [0x4d2140]
mov ecx, 0x4f73ec
push eax
call fcn.00402880
push 6
mov ecx, 0x4f73ec
call fcn.00402700
push 7
mov ecx, 0x4f73ec
call fcn.00402780
push 0
mov ecx, 0x4f73ec
call fcn.00402800
mov edx, dword [0x4d1fdc]
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, 0x4f73ec
call fcn.00401de0
add esp, 0x118
ret

Function at 0x42dda0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
mov dword [esi], 0x4d2274
test eax, eax
je 0x42ddd9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42ddd3
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call edi
mov edx, dword [esi + 0x10]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
lea ecx, [esi + 0x18]
call fcn.00428940
pop edi
pop esi
ret

Function at 0x42de20
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [ecx + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
ret
Function at 0x42deb0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.0042de60
cmp eax, 1
je 0x42df06
mov ecx, esi
call fcn.0042de60
cmp eax, 4
je 0x42df06
mov ecx, esi
call fcn.0042de60
mov eax, dword [eax*4 + 0x4d225c]
lea ecx, [esi + 0x55]
push eax
push 0x4e4b34
push 0xfff
push ecx
call fcn.00466ca7
mov eax, dword [0x4d2244]
mov edx, dword [esi]
add esp, 0x10
mov ecx, esi
push 0x7b
push str.Start__
push eax
call dword [edx + 0x10]
xor eax, eax
pop esi
ret
lea ecx, [esi + 8]
push ecx
push 0
push esi
push 0x42e110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
jne 0x42df66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4e4b18
lea edx, [esi + 0x55]
push 0xfff
push edx
call fcn.00466ca7
mov ecx, dword [0x4d2240]
mov eax, dword [esi]
add esp, 0x10
push 0x82
push str.Start__
push ecx
mov ecx, esi
call dword [eax + 0x10]
push 5
mov ecx, esi
call fcn.0042de80
mov eax, dword [esi + 4]
pop esi
ret
push 2
mov ecx, esi
call fcn.0042de80
mov eax, dword [esi + 4]
pop esi
ret
Function at 0x430b20
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov eax, 0x12a4
call fcn.00467540
mov eax, dword [esp + 0x12a8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x12b4]
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [esi + 4], eax
je 0x430b48
mov eax, ecx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x12bc]
lea ecx, [esp + 0x1c]
mov edi, 1
push ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0xf01ff
mov dword [esi + 0x4c], 0x10
mov dword [esi + 0x50], 2
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi], 0x4d2470
mov dword [esp + 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x2c]
xor edx, edx
cmp ecx, 2
sete dl
mov dword [esi + 0x40], edx
mov dword [0x4f8f74], edi
mov dword [0x4f8f78], esi
mov eax, dword [esi + 0x40]
cmp eax, ebx
mov dword [esi + 0x18], 0x10
mov dword [esi + 0x28], ebx
je 0x430ca0
mov eax, 0xff
mov ecx, 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor eax, eax
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x1b0]
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x2b0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xb0]
push eax
push ecx
mov dword [esp + 0x1c], 0x1000
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1b4]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x2bc]
push edx
lea ecx, [esp + 0xc0]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x430ca0
lea edx, [esp + 0x2b0]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x430ca0
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
push edi
call fcn.00467824
add esp, 4
lea ecx, [esp + 0x2b0]
mov dword [esi + 0x3c], eax
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x12a4
ret 0xc
Function at 0x436160
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push ebx
push esi
push edi
push eax
mov edi, ecx
push 0x28
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4361a6
call ebx
push eax
push str.OpenProcessToken_Error:__d_n
lea ecx, [edi + 8]
push 0x3ff
push ecx
call fcn.00466ca7
add esp, 0x10
xor esi, esi
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x14]
neg edx
sbb edx, edx
push eax
and edx, 2
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 0xc]
push 0
push 0
lea ecx, [esp + 0x18]
push 0x10
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call ebx
test eax, eax
je 0x436208
call ebx
push eax
push str.AdjustTokenPrivileges_Error:__d_n
add edi, 8
push 0x3ff
push edi
call fcn.00466ca7
add esp, 0x10
xor esi, esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x436810
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
mov esi, ecx
push 1
call fcn.00436160
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x436840
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateToolhelp32Snapshot_Error:__d_n
jmp 0x4368b0
lea eax, [esp + 0xc]
mov edi, 0x128
push eax
push ebx
mov dword [esp + 0x14], edi
mov dword [esi + 0x40c], 0
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x43687e
mov ecx, dword [esi + 0x40c]
inc ecx
mov dword [esi + 0x40c], ecx
lea ecx, [esp + 0xc]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x436862
mov eax, dword [esi + 0x40c]
mov edx, eax
shl edx, 4
add edx, eax
lea eax, [eax + edx*8]
shl eax, 2
push eax
call fcn.00467824
add esp, 4
mov dword [esi + 0x408], eax
test eax, eax
jne 0x4368d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Alloc_Mem_Error:__d_n
add esi, 8
push 0x3ff
push esi
call fcn.00466ca7
add esp, 0x10
mov eax, 0x22
pop edi
pop esi
pop ebx
add esp, 0x128
ret
mov ecx, dword [esi + 0x40c]
push ecx
push eax
mov ecx, esi
call fcn.00435cc0
lea edx, [esp + 0xc]
mov dword [esp + 0xc], edi
push edx
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x43695c
mov edi, 0xfffffddc
mov eax, dword [esp + 0x14]
add edi, 0x224
test eax, eax
je 0x43694d
mov ecx, dword [esi + 0x408]
lea edx, [esp + 0x30]
push 0x5c
push edx
mov dword [ecx + edi + 0x100], eax
call fcn.00466c80
add esp, 8
test eax, eax
push 0xff
jne 0x43693a
mov ecx, dword [esi + 0x408]
lea eax, [esp + 0x34]
add ecx, edi
push eax
push ecx
jmp 0x436945
mov edx, dword [esi + 0x408]
inc eax
add edx, edi
push eax
push edx
call fcn.00466df0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4368f7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, esi
call fcn.00436160
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x128
ret