joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b8c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b8c9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40b8b8
cmp esi, edx
jae 0x40b8c9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40b8a6
cmp esi, edx
jae 0x40b8c9
cmp word [esi], 0
je 0x40b8c9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x40c670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d07e3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x508164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.boost::exception_detail::clone_base.0
mov ebx, dword [ebp + 8]
lea eax, [esi + 8]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [esi + 4], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 8]
push eax
call fcn.004a4efe
mov dword [esi + 4], vtable.boost::system::system_error.0
add esp, 8
movq xmm0, qword [ebx + 0x10]
movq qword [esi + 0x10], xmm0
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
mov dword [esi + 4], vtable.boost::thread_resource_error.0
lea edi, [esi + 0x1c]
mov byte [ebp - 4], 1
mov dword [edi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x20]
mov dword [ebp + 8], edi
mov dword [edi + 4], ecx
test ecx, ecx
je 0x40c706
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x24]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x14], eax
mov eax, esi
mov dword [esi], vtable.boost::wrapexcept_class_boost::thread_resource_error_.0
mov dword [esi + 4], vtable.boost::wrapexcept_class_boost::thread_resource_error_.1.0
mov dword [edi], vtable.boost::wrapexcept_class_boost::thread_resource_error_.2.0
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 0x40ee00
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, dx
push esi
push edi
push dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40ee50
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40ee50
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40ee50
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40ee58
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x4ea400
push dword [ebp + 0xc]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
xor bl, bl
call fcn.004af49e
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x40eea1
push eax
push edi
push 1
push dword [ebp - 8]
call fcn.004afac3
push dword [ebp - 4]
cmp edi, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call fcn.004af74b
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f760
Capabilities:
List user accounts

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0c14
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x508164]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0xbc]
push 0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x6c], 0
call fcn.004835a0
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
push 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x60]
push eax
push 2
push 3
push 0
call dword [sym.imp.NETAPI32.dll_NetUserEnum]
mov ebx, eax
test ebx, ebx
je 0x40f7f1
cmp ebx, 0xea
jne 0x40f923
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x40f932
cmp dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
jbe 0x40f926
nop dword [eax]
test edi, edi
je 0x40f91d
push 0
lea ecx, [ebp - 0xa4]
call fcn.004835a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
push dword [edi]
call fcn.00408080
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00409770
cmp dword [esi + 0x14], 0x10
jb 0x40f848
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x8c]
call fcn.004834d0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 3
push eax
push str.username
lea ecx, [ebp - 0xa4]
call fcn.00483fc0
mov ecx, eax
call fcn.00483ad0
lea ecx, [ebp - 0x8c]
call fcn.00483a60
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x5c]
push eax
call fcn.0048dbcc
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [edi + 0xc], 2
lea ecx, [ebp - 0x8c]
sete al
push eax
call fcn.00483470
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 5
push eax
push str.role
lea ecx, [ebp - 0xa4]
call fcn.00483fc0
mov ecx, eax
call fcn.00483ad0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00483a60
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00484c20
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
add edi, 0x74
call fcn.00483a60
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp eax, dword [ebp - 0x64]
jb 0x40f810
mov esi, dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x40f932
push edi
call esi
xor edi, edi
mov dword [ebp - 0x60], edi
cmp ebx, 0xea
je 0x40f7c3
test edi, edi
je 0x40f945
push edi
call esi
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0xbc]
push eax
push str.users
call fcn.00483fc0
mov ecx, eax
call fcn.00483b20
lea ecx, [ebp - 0xbc]
call fcn.00483a60
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.0048d8b2
mov esp, ebp
pop ebp
ret 4
Function at 0x410b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0eb2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x230
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x234], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push 0x200
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x238], 0x200
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.UninstallString
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x218]
push 0x4ea2b7
push eax
call fcn.004b3cc2
add esp, 8
test eax, eax
je 0x410d42
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410be0
sub ecx, edx
lea eax, [ebp - 0x218]
push ecx
push eax
mov ecx, edi
call fcn.0040e3a0
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 0x10
jb 0x410c04
mov eax, dword [edi]
cmp byte [eax], 0x22
jne 0x410c8d
mov esi, edi
cmp ecx, 0x10
jb 0x410c16
mov esi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, 1
jbe 0x410c8d
dec eax
push eax
lea eax, [esi + 1]
push 0x22
push eax
call fcn.004a6060
add esp, 0xc
test eax, eax
je 0x410c8d
sub eax, esi
cmp eax, 0xffffffff
je 0x410c8d
dec eax
mov ecx, edi
push eax
push 1
lea eax, [ebp - 0x230]
push eax
call fcn.00412220
push eax
mov ecx, edi
call fcn.0040b3c0
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x410c8d
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410c83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410d64
push edx
push ecx
call fcn.0048d8eb
add esp, 8
push 0
push str..exe
mov ecx, edi
call fcn.004122b0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x410d42
add ecx, 4
mov dword [ebp - 0x220], 0
cmp dword [edi + 0x10], ecx
mov eax, edi
mov dword [ebp - 0x21c], 0xf
cmovb ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 0x230], 0
jb 0x410cd5
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040e3a0
lea eax, [ebp - 0x230]
cmp edi, eax
je 0x410d0c
mov ecx, edi
call fcn.0040e540
movups xmm0, xmmword [ebp - 0x230]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [edi + 0x10], xmm0
jmp 0x410d42
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x410d42
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410d38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410d69
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004b0023
call fcn.004b0023
int3
Function at 0x410d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x100
push 0
mov dword [ebp - 0x108], esi
push eax
mov dword [ebp - 0x108], 0x100
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.InstallLocation
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x104]
push 0x4ea2b7
push eax
call fcn.004b3cc2
add esp, 8
test eax, eax
je 0x410e22
lea ecx, [ebp - 0x104]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410e05
sub ecx, edx
lea eax, [ebp - 0x104]
push ecx
push eax
mov ecx, esi
call fcn.0040e3a0
jmp 0x410f09
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x100
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push str.InstallSource
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x104]
push 0x4ea2b7
push eax
call fcn.004b3cc2
add esp, 8
test eax, eax
je 0x410e9a
lea ecx, [ebp - 0x104]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410e80
sub ecx, edx
lea eax, [ebp - 0x104]
push ecx
push eax
mov ecx, esi
call fcn.0040e3a0
jmp 0x410f09
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x410ea4
mov edx, dword [edi]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x410ece
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x410eca
nop dword [eax + eax]
cmp ecx, edx
je 0x410ece
dec ecx
cmp byte [ecx], 0x5c
jne 0x410ec0
sub ecx, edx
jmp 0x410ed1
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x410f01
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
cmp dword [edi + 0x10], ecx
cmovb ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], 0x10
jb 0x410ef6
mov edi, dword [edi]
push ecx
push edi
mov ecx, esi
call fcn.0040e3a0
jmp 0x410f09
push edi
mov ecx, esi
call fcn.00429230
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410f20
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x508164]
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]
lea ecx, [ebp - 0x64]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x7c], esi
push ecx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x74], ebx
push ecx
push str._04d_02d_02d
push eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call fcn.00429210
add esp, 0x14
cmp eax, 3
jne 0x410fda
push ecx
push 0
push 0
push 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x84]
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00429120
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x80]
jmp 0x4110d5
push esi
lea ecx, [ebp - 0x60]
call fcn.00411840
mov esi, eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004096c0
cmp dword [esi + 0x44], 8
lea ecx, [esi + 0x30]
jb 0x410ffe
mov ecx, dword [ecx]
xor dl, dl
call fcn.00413340
mov esi, eax
mov edi, edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 3
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x60]
push eax
call fcn.0048dbcc
mov eax, esi
mov dword [ebp - 4], 0xffffffff
or eax, edi
jne 0x4110d1
push ebx
lea ecx, [ebp - 0x60]
call fcn.00411840
mov esi, eax
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.004096c0
cmp dword [esi + 0x44], 8
lea ecx, [esi + 0x30]
jb 0x41105f
mov ecx, dword [ecx]
mov dl, 1
call fcn.00413340
mov esi, eax
mov edi, edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 5
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x60]
push eax
call fcn.0048dbcc
mov eax, esi
mov dword [ebp - 4], 0xffffffff
or eax, edi
jne 0x4110d1
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x70]
movlpd qword [ebp - 0x78], xmm0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4110d1
lea ecx, [ebp - 0x78]
call fcn.00447b50
mov esi, eax
mov edi, edx
mov eax, esi
mov edx, edi
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.0048d8b2
mov esp, ebp
pop ebp
ret 0x10
Function at 0x411660
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x508164]
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 eax, dword [ebp + 8]
lea edx, [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
push edx
push 0x20119
push 0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4117b7
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x34]
add eax, 0xa
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x34], eax
je 0x4117ae
push eax
call fcn.0048d929
mov edi, eax
add esp, 4
test edi, edi
je 0x4117ae
xor esi, esi
cmp dword [ebp - 0x38], esi
jbe 0x4117a5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
nop dword [eax]
mov eax, dword [ebp - 0x34]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push edi
push esi
push dword [ebp - 0x30]
call ebx
test eax, eax
jne 0x41179b
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
push edi
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], al
call fcn.0040e3a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x40]
call fcn.00411100
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x41179b
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411791
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4117d5
push edx
push ecx
call fcn.0048d8eb
add esp, 8
inc esi
cmp esi, dword [ebp - 0x38]
jb 0x411710
push edi
call fcn.0048d8c3
add esp, 4
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0048d8b2
mov esp, ebp
pop ebp
ret 0xc
call fcn.004b0023
int3
Function at 0x411a40
Capabilities:
Enumerate processes
Get hostname
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push 0x208
push 0
lea ebx, [esi + 0x208]
mov dword [ebx], 0
push esi
mov dword [esi + 0x22c], 0
call fcn.004a5f00
add esp, 0xc
call fcn.00413510
test al, al
je 0x411bdb
push edi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edi, eax
mov ecx, esi
push edi
call fcn.004125d0
push 0x4e7e00
push esi
call fcn.004b8cc0
add esp, 8
test eax, eax
je 0x411ac3
push 0x4ec3b0
push esi
call fcn.004b8cc0
add esp, 8
test eax, eax
jne 0x411b62
push 0
push 0xf
mov dword [ebp - 0x234], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x411b54
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x411b54
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.004b8cc0
add esp, 8
test eax, eax
je 0x411b2f
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x411b00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411b4e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x411b4e
lea ecx, [ebp - 0x234]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea ebx, [esi + 0x208]
mov edi, dword [ebp - 0x234]
mov ecx, esi
push edi
call fcn.004125d0
push ebx
push edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov eax, dword [esi + 0x22c]
pop edi
test eax, eax
jne 0x411bae
lea ecx, [esi + 0x20c]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
push ecx
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx], 0x20
push dword [ebx]
mov dword [esi + 0x214], esi
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x411bf3
mov ecx, esi
call fcn.004123c0
mov eax, dword [ebx]
test eax, eax
je 0x411bf3
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 4
Function at 0x411eb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1028
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x508164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x40
call fcn.0048d8f9
mov edx, dword [ebp + 0x10]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov byte [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov byte [ecx + 0x28], 1
mov dword [ecx + 0x2c], 0
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov eax, dword [edx + 4]
test eax, eax
je 0x411f5b
lock inc dword [eax + 4]
mov eax, dword [edx]
mov dword [ecx + 0x34], eax
mov eax, dword [edx + 4]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], 0
push dword [ebp + 8]
mov dword [esi], 0
push ecx
mov ecx, esi
mov dword [esi + 4], 0
call fcn.00414050
mov dword [ebp - 4], 0
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
lea edx, [ecx + 0x34]
mov eax, dword [ebp + 8]
push eax
push dword [ecx + 0x3c]
push dword [ecx + 0x30]
push eax
call fcn.004135c0
add esp, 0x10
test al, al
jne 0x411fe7
mov dword [esi], 0
mov edi, dword [esi + 4]
mov dword [esi + 4], 0
mov byte [ebp - 4], 1
test edi, edi
je 0x411fe7
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x411fe7
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x411fe7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4125d0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov edx, 0x208
mov eax, esi
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub edx, 1
jne 0x4125f0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 5
push dword [ebp + 8]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x41262d
push dword [ebp - 4]
push 0x104
push esi
call fcn.004b3c23
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x413510
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x50fe00]
cmp eax, dword [ecx + 4]
jle 0x4135a9
push 0x50fe00
call fcn.0048de6a
add esp, 4
cmp dword [0x50fe00], 0xffffffff
jne 0x4135a9
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.004a5f00
add esp, 0xc
mov dword [ebp - 0x208], 0x200
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x204]
push 0x4ec3b0
push eax
call fcn.004b8cc0
test eax, eax
push 0x50fe00
sete byte [0x50fe04]
call fcn.0048de20
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, byte [0x50fe04]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret