joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fa1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.004fa140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.004fa140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.004fa140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.004fa140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x4fa230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4fa2d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x4fa2ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004fa230
mov esi, eax
add esp, 8
test esi, esi
jne 0x4fa2ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4fa27e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x4fa2ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x4fabfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4fac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x50c87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4fac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4fac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rdata
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x670d3434
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7a374f94
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405180
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [edi + 5]
push eax
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x4052da
test edi, edi
jle 0x405443
mov ecx, edi
dec ecx
test ecx, ecx
jl 0x405443
inc ecx
xor esi, esi
mov eax, ebx
add eax, 5
xor edx, edx
push edx
push eax
mov eax, esi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x90
inc esi
dec ecx
jne 0x4052f0
jmp 0x405443
mov byte [ebx], 0xe9
mov edx, ebx
mov eax, edx
add eax, 5
push eax
mov eax, dword [ebp - 4]
pop ecx
sub eax, ecx
inc edx
mov dword [edx], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
add edi, 5
push edi
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x405592
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ac48
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
jmp 0x40ad90
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x40], 0xe9
jne 0x40b31f
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x40aeee
cmp byte [ebp - 5], 5
je 0x40aefe
cmp byte [ebp - 5], 0xa
jne 0x40b06f
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [ebp - 4]
call fcn.0040a588
mov dword [ebp - 0x10], eax
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
mov byte [eax], 0xb8
jmp 0x40b04c
push 4
lea ecx, [ebp - 0x10]
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
inc edx
mov eax, dword [0x4160fc]
mov eax, dword [eax]
call fcn.0040406c
jmp 0x40b1c6
mov dword [ebp - 0x14], 0x4160b4
jmp 0x40b1a9
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [0x4160fc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.0040406c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x40b319
mov byte [ebp - 6], 1
jmp 0x40b323
mov byte [ebp - 6], 0
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret

Function at 0x40b32c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
jmp 0x40b474
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x40], 0xe9
jne 0x40b74e
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x40b5d2
push 5
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
lea ecx, [edx + eax + 0x40]
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [0x4160fc]
mov eax, dword [eax]
call fcn.0040406c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x40b748
mov byte [ebp - 6], 1
jmp 0x40b752
mov byte [ebp - 6], 0
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x416be3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040f9ce
and dword [ebp - 0x14], 0
cmp dword [0x438c94], 0
mov dword [ebp - 0x18], eax
jne 0x416c96
push 0x403ff0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x416d3e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fe4
push ebx
call edi
test eax, eax
je 0x416d3e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fd4
push ebx
mov dword [0x438c94], eax
call edi
push eax
call esi
push 0x403fc0
push ebx
mov dword [0x438c98], eax
call edi
push eax
call esi
push 0x403fa4
push ebx
mov dword [0x438c9c], eax
call edi
push eax
call esi
mov dword [0x438ca4], eax
test eax, eax
je 0x416c96
push 0x403f8c
push ebx
call edi
push eax
call esi
mov dword [0x438ca0], eax
mov eax, dword [0x438ca0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x416cef
cmp dword [0x438ca4], ecx
je 0x416cef
push eax
call esi
push dword [0x438ca4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x416cef
test ebx, ebx
je 0x416cef
call edi
test eax, eax
je 0x416ce6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x416ce6
test byte [ebp - 8], 1
jne 0x416cef
or dword [ebp + 0x10], 0x200000
jmp 0x416d22
mov eax, dword [0x438c98]
cmp eax, dword [ebp - 0x18]
je 0x416d22
push eax
call esi
test eax, eax
je 0x416d22
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x416d22
mov eax, dword [0x438c9c]
cmp eax, dword [ebp - 0x18]
je 0x416d22
push eax
call esi
test eax, eax
je 0x416d22
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x438c94]
call esi
test eax, eax
je 0x416d3e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416d40
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b54e
leave
ret
Function at 0x406cb3
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbc74
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4f9004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ebx, [edi + 0x18]
mov dword [ebp - 4], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00405960
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp edi, esi
je 0x406d4f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406d44
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.004057cc
push 1
push 0x4c5934
mov ecx, edi
call fcn.0040684d
push 0x10
push str.cfgsproduct.dat
mov ecx, eax
call fcn.0040684d
cmp ebx, esi
je 0x406d84
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406d79
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.004057cc
push 1
push 0x4c5934
mov ecx, ebx
call fcn.0040684d
push 0xc
push str.cfgsoem.ini
mov ecx, eax
call fcn.0040684d
push 0x24
call fcn.00405960
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x406dc2
push esi
mov ecx, eax
call fcn.00406ddf
mov dword [edi + 0x38], eax
jmp 0x406dc9
mov dword [edi + 0x38], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407030
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bac48
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4f9004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
xor eax, eax
mov dword [ebp - 4], 0
push 0x208
push eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x24c], 1
call fcn.00402780
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x4070dd
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4070d0
jmp 0x40712b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x407142
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00402780
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x407142
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407120
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004057cc
push str._version.dll
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00407249
mov edx, dword [ebp - 0x21c]
add esp, 0xc
cmp edx, 8
jb 0x40719d
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407193
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40723e
push edx
push ecx
call fcn.0040660b
add esp, 8
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.VerQueryValueW
push edi
call esi
push str.GetFileVersionInfoW
push edi
mov dword [0x4fb6c0], eax
call esi
push str.GetFileVersionInfoSizeW
push edi
mov dword [0x4fb6c4], eax
call esi
mov edx, dword [ebp - 0x234]
mov dword [0x4fb6c8], eax
cmp edx, 8
jb 0x407223
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407219
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407243
push edx
push ecx
call fcn.0040660b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402c9b
mov esp, ebp
pop ebp
ret
call fcn.0047c5cb
call fcn.0047c5cb
int3
Function at 0x408917
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4fe798]
test al, 1
jne 0x4089cf
or eax, 1
mov dword [0x4fe798], eax
mov dword [0x4fe800], 0
mov dword [0x4fe804], 0
mov dword [0x4fe808], 0
mov dword [0x4fe80c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.enableetw
push eax
call fcn.004089d5
add esp, 8
test eax, eax
setne byte [0x4fe810]
test eax, eax
je 0x4089c2
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4fe800], eax
test eax, eax
je 0x4089c2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EventRegister
push eax
call esi
push str.EventWrite
push dword [0x4fe800]
mov dword [0x4fe804], eax
call esi
push str.EventUnregister
push dword [0x4fe800]
mov dword [0x4fe80c], eax
call esi
mov dword [0x4fe808], eax
pop esi
push 0x4254c5
call fcn.0040394c
add esp, 4
mov eax, 0x4fe800
ret
Function at 0x40d55e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x40d730
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3f0
jne 0x40d730
push edi
mov ecx, esi
call fcn.0040d75c
mov edi, eax
cmp edi, 0xffffffff
je 0x40d727
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40d713
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x40d709
test eax, eax
je 0x40d709
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40d614
call ebx
cmp eax, 0x7a
jne 0x40d709
push dword [ebp - 4]
call fcn.004072bd
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 4]
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40d700
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d700
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x40d700
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40d686
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40d709
push dword [ebp - 4]
call fcn.004072bd
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40d6ed
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40d6ed
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x40d6ed
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
cmp eax, 1
sete bl
call fcn.0040dcbd
push dword [ebp - 8]
call fcn.0040dcbd
add esp, 8
test bl, bl
jne 0x40d713
jmp 0x40d709
push ebx
call fcn.0040dcbd
push dword [ebp - 8]
call fcn.0040dcbd
add esp, 8
jmp 0x40d709
push ebx
call fcn.0040dcbd
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [esi], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x40d727
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d75c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc457
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4f9004]
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
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40d96c
cmp dword [ebp - 0x248], 0xffffffff
je 0x40d96c
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x40d935
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call fcn.00402780
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40d8ac
jmp 0x40d83c
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call fcn.0040d9a0
add esp, 8
test eax, eax
jne 0x40d88a
cmp edi, ebx
je 0x40d86b
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x40d88a
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.0040db40
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d83c
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x40d935
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40d920
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x40d920
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x40d920
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x40d929
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x40d8bc
jmp 0x40d92f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x40d968
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x40d95e
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d98e
push ebx
push esi
call fcn.0040660b
add esp, 8
mov eax, edi
jmp 0x40d972
mov eax, dword [ebp - 0x244]
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.00402c9b
mov esp, ebp
pop ebp
ret
call fcn.0047c5cb
int3