joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3670
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push str.systemcurrentcontrolset_servicesUSBStor
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a36e2
mov dword [ebp - 8], esi
mov esi, dword [ebp - 4]
push 4
lea ebx, [ebp - 8]
mov edi, str.AutoRun
call fcn.004a6300
add esp, 4
test eax, eax
je 0x4a36d6
mov eax, dword [ebp - 4]
push 4
mov edx, ebx
push edx
push 4
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionpoliciesExplorer
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a3745
mov esi, dword [ebp - 4]
push 4
lea ebx, [ebp - 8]
mov edi, str.NoDriveTypeAutoRun
mov dword [ebp - 8], 0xff
call fcn.004a6300
add esp, 4
test eax, eax
je 0x4a373b
mov edx, dword [ebp - 4]
push 4
mov ecx, ebx
push ecx
push 4
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5d80
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x533634], 0
je 0x4a5dd3
push esi
push str.WinNetDaily
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4a5dd2
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 1
push 0
push edx
push 2
push 4
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a6140
Capabilities:
Encode data using xor
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0xca]
push edx
mov word [ebp - 0x48], ax
mov dword [ebp - 0x46], eax
mov dword [ebp - 0x42], eax
mov dword [ebp - 0x3e], eax
mov dword [ebp - 0x3a], eax
mov dword [ebp - 0x36], eax
mov word [ebp - 0x32], ax
mov word [ebp - 0xcc], cx
call fcn.004e7d90
mov eax, dword [0x523b40]
mov ecx, dword [0x523b44]
movzx edx, byte [ebp + 8]
add esp, 0xc
push 0x18
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x48]
push eax
mov word [ebp - 0x30], dx
lea ecx, [ebp - 0xe0]
push ecx
lea edx, [ebp - 0xe4]
push edx
lea eax, [ebp - 0xd4]
push eax
push 0x80
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4a62ed
lea eax, [ebp - 0xd0]
push eax
push 0x2001f
push 0
push str.SystemCurrentcontrolsetServicesWin_Win
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xd0], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a62ed
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, dword [ebp - 0xd0]
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 0x28], al
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
lea eax, [ebp - 0xd8]
push eax
push 0
push 0x51d868
push ecx
mov dword [ebp - 0xd8], 1
mov dword [ebp - 0xdc], 0x1f
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0xd0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx eax, byte [ebp - 0x28]
movsx ecx, byte [ebp - 0x27]
lea eax, [eax + eax*4]
add eax, eax
add ecx, eax
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*2]
movsx eax, byte [ebp - 0x26]
add eax, ecx
lea edx, [eax + eax*4]
movsx eax, byte [ebp - 0x25]
lea ecx, [ecx + edx*2]
add eax, ecx
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*2]
movsx eax, byte [ebp - 0x24]
add eax, ecx
lea edx, [eax + eax*4]
movsx eax, byte [ebp - 0x23]
lea ecx, [ecx + edx*2]
add eax, ecx
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*2]
movsx eax, byte [ebp - 0x22]
add eax, ecx
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*2]
mov eax, 1
shr ecx, 8
xor ecx, eax
inc eax
cmp eax, 0x2710
jb 0x4a62c5
cmp ecx, dword [ebp - 0xd4]
jne 0x4a62ed
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor eax, eax
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4a6300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x192]
push ecx
mov word [ebp - 0x194], ax
call fcn.004e7d90
add esp, 0xc
lea edx, [ebp - 0x198]
push edx
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp + 8]
push ecx
push 0
push edi
push esi
mov dword [ebp - 0x198], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4a636e
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4a635b
lea edx, [ebp - 0x194]
push ebx
push edx
call fcn.004f20d4
mov ecx, dword [ebp - 4]
add esp, 8
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4a73a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x228
lea ecx, [ebp - 0x22c]
push 0
push ecx
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x230], 0x22c
call fcn.004e7d90
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea edx, [ebp - 0x230]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4a744c
mov edi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [ebp - 0x238]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004f20d4
add esp, 8
test eax, eax
jne 0x4a743a
lea edx, [ebp - 0x234]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x228]
push edx
push eax
call edi
cmp dword [ebp - 0x234], ebx
je 0x4a7465
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4a7402
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
xor ecx, ebp
pop esi
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4a7f90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x230], 0x22c
call fcn.004e7d90
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x230]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4a8012
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea esp, [esp]
lea edx, [ebp - 0x20c]
push edi
push edx
call fcn.004f20d4
add esp, 8
test eax, eax
je 0x4a802f
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x4a7ff0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x62
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x228]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
lea edx, [ebp - 0x234]
push edx
push eax
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret

Function at 0x4a8920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
je 0x4a89d1
push esi
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], 0
call fcn.004e7d90
push str.WinMaster7
lea ecx, [ebp - 0x44]
push str..pipe_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a89bf
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x4a89b8
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x50]
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xa
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x48]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4a89f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x448], eax
cmp esi, ebx
je 0x4a8b88
cmp eax, ebx
je 0x4a8b88
push edi
push 0x3f
lea eax, [ebp - 0x43]
push ebx
push eax
mov byte [ebp - 0x44], bl
call fcn.004e7d90
push str.WinMasterVI
lea ecx, [ebp - 0x44]
push str..pipe_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a8b6f
push ebx
push ebx
lea eax, [ebp - 0x450]
push eax
push edi
mov dword [ebp - 0x450], ebx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x4a8b4f
mov edx, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x454]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xa
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
je 0x4a8b55
lea ecx, [ecx]
push 0x3ff
lea eax, [ebp - 0x443]
push 0
push eax
mov byte [ebp - 0x444], 0
call fcn.004e7d90
add esp, 0xc
push 0
lea ecx, [ebp - 0x44c]
push ecx
push 0x400
lea edx, [ebp - 0x444]
push edx
push edi
mov dword [ebp - 0x44c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x4a8b20
lea ecx, [eax + ebx]
cmp ecx, dword [ebp + 0x10]
jae 0x4a8b20
push eax
lea eax, [ebp - 0x444]
mov ebx, ecx
mov ecx, dword [ebp - 0x448]
push eax
push ecx
call fcn.004eaf30
add esp, 0xc
test esi, esi
jne 0x4a8b55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x4a8ab0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x448]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x448]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret

Function at 0x4a8ba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x400
push 0x53b2a8
call esi
push 0x400
push 0x53b290
call esi
push 0x400
push 0x53b278
call esi
push 0x400
push 0x53b25c
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x5365f4]
mov eax, dword [0x5365ac]
push 0x53bc10
push 1
push 0
push 0x4a8f90
push 0
push 0
mov dword [0x53bc1c], 1
mov dword [0x53b254], ecx
mov dword [0x53b258], edx
mov dword [0x53b274], eax
call fcn.004e48f1
push 0x53bc18
push 1
push 0
push 0x4a9440
push 0
push 0
mov dword [0x53bc0c], eax
call fcn.004e48f1
add esp, 0x30
mov dword [0x53bc14], eax
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4a8c50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x53b2a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x14
call fcn.004e4629
add esp, 4
test eax, eax
je 0x4a8c81
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov esi, eax
jmp 0x4a8c83
xor esi, esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push esi
mov dword [esi + 0x10], eax
call dword [0x539320]
mov eax, dword [ebp + 8]
push esi
push eax
call dword [0x53935c]
add esp, 0xc
cmp dword [0x53bbec], 0
jne 0x4a8cb9
mov dword [0x53bbec], esi
jmp 0x4a8cc2
mov ecx, dword [0x53bbf0]
mov dword [ecx + 4], esi
push 0x53b2a8
mov dword [0x53bbf0], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x53bc0c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4a8cf0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x53b2a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x53bbec]
mov eax, dword [0x53bbfc]
test edx, edx
jne 0x4a8d1b
test eax, eax
je 0x4a8d6f
test edx, edx
je 0x4a8d42
mov esi, dword [edi]
mov edi, dword [esi + 0x30]
mov ecx, dword [edx]
cmp dword [ecx + 0x30], edi
jne 0x4a8d38
mov ebx, dword [ecx + 0x34]
cmp ebx, dword [esi + 0x34]
jne 0x4a8d38
cmp dword [ecx + 0x88], 0
je 0x4a8d9f
mov edx, dword [edx + 4]
test edx, edx
jne 0x4a8d20
mov edi, dword [ebp + 8]
test eax, eax
je 0x4a8d6f
mov edx, dword [edi]
mov esi, dword [edx + 0x30]
jmp 0x4a8d50
mov ecx, dword [eax]
cmp dword [ecx + 0x30], esi
jne 0x4a8d68
mov ebx, dword [ecx + 0x34]
cmp ebx, dword [edx + 0x34]
jne 0x4a8d68
cmp dword [ecx + 0x88], 0
je 0x4a8d91
mov eax, dword [eax + 4]
test eax, eax
jne 0x4a8d50
push 0x14
call fcn.004e4629
add esp, 4
test eax, eax
je 0x4a8db4
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov esi, eax
jmp 0x4a8db6
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4a8d9f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x53b2a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 0x1001
pop ebx
pop ebp
ret
xor esi, esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push esi
mov dword [esi + 0x10], eax
call dword [0x539320]
push esi
push edi
call dword [0x53935c]
add esp, 0xc
cmp dword [0x53bbec], 0
jne 0x4a8de9
mov dword [0x53bbec], esi
jmp 0x4a8df1
mov eax, dword [0x53bbf0]
mov dword [eax + 4], esi
mov ecx, dword [0x53bc0c]
push ecx
mov dword [0x53bbf0], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x53b2a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4a97c0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2b8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x4a9803
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0xff
push eax
lea ecx, [ebp - 0x127]
push ecx
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov byte [ebp - 0x128], al
call fcn.004e7d90
add esp, 0xc
push pe_nt_image_headers32
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
mov ecx, dword [edi + 0xc]
cmp dword [ecx], 0
je 0x4a990d
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
jmp 0x4a9880
cmp esi, 0x80
jge 0x4a990d
mov edx, dword [edi + 0xc]
mov eax, dword [esi + edx]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
lea eax, [ebp - 0x24]
push str._d._d._d._d
push eax
call ebx
add esp, 0x18
add esi, 4
mov ecx, str.127.0.0.1
lea eax, [ebp - 0x24]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a98e0
test dl, dl
je 0x4a98dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a98e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a98c0
xor eax, eax
jmp 0x4a98e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4a990d
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov ecx, dword [edi + 0xc]
cmp dword [esi + ecx], eax
jne 0x4a9880
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a9920
mov ecx, dword [ebp - 4]
sub eax, edx
pop edi
mov eax, 0
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4a9950
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push ebx
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a9b0c
cmp dword [ebp - 4], 0
je 0x4a9b0c
push esi
push edi
push eax
call fcn.004e4240
mov edx, dword [ebp - 8]
push edx
mov edi, eax
push 0
push edi
call fcn.004e7d90
mov eax, dword [ebp - 4]
xor ecx, ecx
add eax, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e4240
mov esi, eax
mov eax, dword [ebp - 4]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.004e7d90
add esp, 0x20
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 8]
push ecx
push edi
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp eax, 1
jne 0x4a9af4
push edi
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [eax]
mov edx, dword [ebp + 0xc]
lea ecx, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov eax, dword [edx]
lea ecx, [ecx*4 + 0x1c]
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jae 0x4a9ae9
mov ebx, dword [ebp + 8]
lea edx, [eax + eax]
push edx
push 0
push ebx
call fcn.004e7d90
push 1
push 0x51d608
mov edx, ebx
call fcn.00471490
mov eax, ebx
add esp, 0x14
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a9a50
movzx ecx, byte [esi + 2]
sub eax, edx
movzx edx, byte [esi + 3]
shl ecx, 8
add ecx, edx
movzx edx, byte [esi + 4]
shl ecx, 8
add ecx, edx
movzx edx, byte [esi + 5]
shl ecx, 8
add ecx, edx
sar eax, 1
push ecx
push 0x51d618
lea edx, [ebx + eax*2]
call fcn.00471490
xor esi, esi
add esp, 8
cmp dword [ebp - 0xc], esi
jbe 0x4a9ad5
jmp 0x4a9a9b
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a9aa0
sub eax, edx
push esi
sar eax, 1
push edi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push eax
push str.__lu
lea edx, [ecx + ebx*2]
call fcn.00471490
inc esi
add esp, 8
cmp esi, dword [ebp - 0xc]
jb 0x4a9a98
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
pop edi
pop esi
mov dword [eax], edx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [edx], ecx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004e424b
push edi
call fcn.004e424b
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aa030
Capabilities:
List groups for user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 4]
push edx
xor edi, edi
push 1
push edi
push eax
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.NETAPI32.dll_NetUserGetLocalGroups]
mov ebx, dword [ebp - 4]
test eax, eax
jne 0x4aa136
cmp ebx, edi
je 0x4aa141
mov dword [ebp - 0xc], edi
cmp dword [ebp - 8], edi
jbe 0x4aa10a
nop
test ebx, ebx
je 0x4aa105
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aa090
sub eax, edx
mov edx, dword [ebx]
sar eax, 1
mov esi, eax
mov eax, edx
lea edi, [eax + 2]
jmp 0x4aa0b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aa0b0
mov ecx, dword [ebp + 0x10]
sub eax, edi
sar eax, 1
add eax, esi
cmp dword [ecx], eax
jbe 0x4aa105
mov edi, dword [ebp + 0xc]
mov eax, edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aa0d0
sub eax, esi
push edx
sar eax, 1
lea edx, [edi + eax*2]
push 0x52435c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xc]
inc eax
add esp, 0xc
add ebx, 4
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 8]
jb 0x4aa080
mov ebx, dword [ebp - 4]
xor edi, edi
mov eax, dword [ebp + 0x10]
cmp dword [eax], edi
jbe 0x4aa136
mov edx, dword [ebp + 0xc]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4aa120
sub eax, esi
sar eax, 1
xor ecx, ecx
mov word [edx + eax*2 - 2], cx
cmp ebx, edi
je 0x4aa141
push ebx
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret