joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001350
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0x4c6
cmp dword [0x10009ccc], 0
je 0x100013e5
mov dword [ebp - 4], 0
jmp 0x10001378
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [0x10009ccc]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 8]
jae 0x100013e5
push 6
imul eax, dword [ebp - 4], 0x34
mov ecx, dword [0x10009ccc]
mov edx, dword [ecx + eax + 0x14]
call edx
and eax, 2
je 0x100013e3
imul eax, dword [ebp - 4], 0x34
mov ecx, dword [0x10009ccc]
cmp dword [ecx + eax + 0x3c], 0
je 0x100013cb
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
imul ecx, dword [ebp - 4], 0x34
mov edx, dword [0x10009ccc]
mov eax, dword [edx + ecx + 0x3c]
call eax
mov dword [ebp - 8], eax
jmp 0x100013d2
mov dword [ebp - 8], 0x4c6
cmp dword [ebp - 8], 0
je 0x100013e1
cmp dword [ebp - 8], 0x961
jne 0x100013e3
jmp 0x100013e5
jmp 0x1000136f
cmp dword [ebp - 8], 0
jne 0x100014c5
mov ecx, dword [ebp + 0xc]
and ecx, 1
je 0x100014c5
push 0x103
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
push edx
call dword [sym.imp.MSVCRT.dll_iswctype]
add esp, 8
test eax, eax
je 0x100014c5
mov eax, 2
shl eax, 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax]
cmp edx, 0x3a
jne 0x100014c5
lea eax, [ebp - 0xc]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x100014c5
mov ecx, 0x4e
mov word [ebp - 0x20], cx
mov edx, 0x65
mov word [ebp - 0x1e], dx
mov eax, 0x74
mov word [ebp - 0x1c], ax
mov ecx, 0x77
mov word [ebp - 0x1a], cx
mov edx, 0x6f
mov word [ebp - 0x18], dx
mov eax, 0x72
mov word [ebp - 0x16], ax
mov ecx, 0x6b
mov word [ebp - 0x14], cx
mov edx, 0x5c
mov word [ebp - 0x12], dx
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov ax, word [edx + ecx]
mov word [ebp - 0x10], ax
xor ecx, ecx
mov word [ebp - 0xe], cx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001700
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call 0x10000000
add esp, 4
push eax
push str.__s___p___p__n
call 0x10000000
add esp, 0x10
cmp dword [ebp + 8], 0
jne 0x1000173a
mov dword [ebp - 4], 0x1e7
jmp 0x1000180a
cmp dword [ebp + 0x10], 0
jne 0x1000174c
mov dword [ebp - 4], 0x1e7
jmp 0x1000180a
cmp dword [ebp + 0xc], 0
jne 0x10001766
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x10001766
mov dword [ebp - 4], 0x1e7
jmp 0x1000180a
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx]
test ecx, ecx
jne 0x10001785
mov dword [ebp - 4], 0x4b0
jmp 0x1000180a
mov edx, 2
shl edx, 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx]
cmp ecx, 0x3a
jne 0x10001803
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
sub eax, 2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
ja case.default.0x100017b8
mov ecx, dword [ebp - 8]
jmp dword [ecx*4 + 0x10001834]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx]
push ecx
call fcn.10005b80
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x10001801
push str.file_is_local_n
call 0x10000000
add esp, 4
mov dword [ebp - 4], 0x8ca
jmp 0x10001801
mov dword [ebp - 4], 0x4b0
jmp 0x1000180a
mov dword [ebp - 4], 0x4b0
cmp dword [ebp - 4], 0
je 0x1000181a
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
push eax
push 0x10009b58
call 0x10000000
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003ca49
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003ca88
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003ca88
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003ca88
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003ca88
cmp dword [ecx + 0x74], 0xe
jbe 0x1003ca88
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1003d860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003d88d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003d88d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1003dbb0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10048618
push 0x10048610
push str.FlsAlloc
push 0x1f
call fcn.1003de93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003dbe4
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1003dbea
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003dc2e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10048628
push 0x10048620
push str.FlsGetValue
push 0x21
call fcn.1003de93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003dc65
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1003dc6d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10048630
push 0x10048628
push str.FlsSetValue
push 0x22
call fcn.1003de93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003dca7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10040f53
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10040ff0
push ebx
push esi
call fcn.10040ff3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10040e57
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10040f9d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10040fef
push edi
push eax
call fcn.10041264
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10040fbd
call fcn.1003f160
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10040fee
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10040e57
add esp, 0x20
test eax, eax
jne 0x10040fdc
push edi
call fcn.1003f160
jmp 0x10040fe4
push ebx
call fcn.1003f160
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x405c13
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405c2a
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405c5f
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405c5b
cmp edi, eax
jae 0x405c5f
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405c4d
cmp edi, eax
jb 0x405c63
xor eax, eax
jmp 0x405c6d
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x405e5e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x405e07
cmp dword [ebp - 8], 2
jne 0x405e5d
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405add
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004059de
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x405e45
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x405e55
push eax
call fcn.004eef34
pop ecx
mov edx, esi
call fcn.004059a5
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x406f0c
Capabilities:
Get disk information

Disassembly:
mov eax, 0x50e63b
call fcn.0050bbc8
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.004ee5c0
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x406f57
xor eax, eax
jmp 0x40701b
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.004ee5c0
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.004075f4
test edi, edi
jle 0x407018
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x407010
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405b1d
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.00407599
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004058ad
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405b1d
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00407599
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058ad
add ebx, 8
dec dword [ebp - 0x10]
jne 0x406f9d
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x407052
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x4070d3
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x4070d3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x4070ce
cmp dword [esi + 4], ebx
je 0x4070ce
cmp dword [esi + 8], ebx
je 0x4070ce
cmp dword [esi + 0xc], ebx
je 0x4070ce
cmp eax, ebx
je 0x4070ce
xor eax, eax
inc eax
jmp 0x4070d0
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x407202
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x50d7b2
call fcn.0050bbc8
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x230], si
call fcn.004ee5c0
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.004061ee
push 0x53b6ec
push eax
mov dword [ebp - 4], esi
call fcn.0040544f
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.004058ad
test bl, bl
je 0x4073d8
mov ebx, 0x53b834
push ebx
call fcn.004eef34
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.004eef34
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.004061ee
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.0040544f
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.004058ad
test bl, bl
je 0x4072f1
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.0040619e
mov dword [ebp - 4], 2
call fcn.00404ec2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x4073a7
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.004061ee
push esi
push eax
mov dword [ebp - 4], 3
call fcn.0040544f
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.004058ad
test bl, bl
je 0x4073af
push 0x104
lea eax, [ebp - 0x230]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.0040619e
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405b1d
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040622a
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00404ec2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004058ad
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004058ad
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004058ad
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x4073c2
mov esi, edi
call fcn.00405add
jmp 0x4073df
cmp ecx, 1
jge 0x4073d1
push 0x80070057
call fcn.004059c6
cmp word [eax + 2], 0x3a
jne 0x4073b9
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4073f1
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40741b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x407e06
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x407e34
push dword [esp + 0xc]
call fcn.004eef34
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x407e34
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x407e4e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x407ed7
push ebx
call fcn.004eb23b
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x407ec8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x53b6ec
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407ec8
cmp dword [ebp - 0xc], ebx
je 0x407ec8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x407ed7
push dword [ebp - 4]
call fcn.004ee5b5
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x407fa7
Capabilities:
Get common file path

Disassembly:
mov eax, 0x50cfb4
call fcn.0050bbc8
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x55ba6c
mov dword [ebp - 0x10], edi
call fcn.00405b60
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.004ee5c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00405d38
push esi
call fcn.00407f13
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x408102
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.004ee5c0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x40815b
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x408211
mov eax, dword [ebp - 0x94]
dec eax
je 0x4081fd
dec eax
jne 0x408211
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x4081aa
cmp dword [ebp - 0x9c], edx
jne 0x408194
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x4081f9
cmp dword [ebp - 0x9c], edi
jne 0x4081e2
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x4081f9
cmp eax, 5
jne 0x4081d4
cmp dword [ebp - 0x9c], 2
jne 0x4081bb
push eax
jmp 0x4081db
cmp dword [ebp - 0x9c], 1
jne 0x4081c8
mov edi, ecx
jmp 0x408211
cmp dword [ebp - 0x9c], edi
jne 0x408211
push 3
jmp 0x4081db
cmp eax, 4
ja 0x4081de
push 4
pop edi
jmp 0x408211
cmp eax, ecx
jb 0x408211
cmp dword [ebp - 0x9c], 2
jae 0x4081ef
cmp eax, ecx
jbe 0x408211
cmp byte [ebp + 0x76], dl
jne 0x408211
call fcn.0040802a
mov edi, eax
jmp 0x408211
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x40909e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4090c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409184
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.004ee5c0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x409133
lea eax, [ebp - 0x20c]
push 0x53b93c
push eax
call fcn.004efa21
test eax, eax
pop ecx
pop ecx
je 0x409127
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4090fd
jmp 0x40913c
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x40913c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x409161
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409183
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40917d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x409269
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test esi, esi
jne 0x40927b
or eax, 0xffffffff
leave
ret
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004ee5c0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4092be
cmp dword [ebp - 0x110], 5
jne 0x4092be
cmp dword [ebp - 0x10c], 0
je 0x4092cb
push esi
call fcn.00409187
test eax, eax
pop ecx
jne 0x4092cb
leave
ret
push esi
call fcn.0040909e
pop ecx
leave
ret

Function at 0x4092d4
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x409394
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 2
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40933a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409393
push edi
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 2
push dword [ebp + 8]
call esi
test eax, eax
je 0x409387
cmp dword [edi], ebx
mov dword [ebp - 0x10], ebx
jbe 0x409387
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x409383
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add esi, 8
cmp eax, dword [edi]
jb 0x409365
jmp 0x409387
mov byte [ebp - 1], 1
cmp edi, ebx
je 0x409392
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
cmp dword [ebp - 8], ebx
pop ebx
je 0x4093a3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 1]
leave
ret