joyce8/EMBER2024-capa huggingface dataset:
Function at 0x508100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x78], 0
je 0x5081b6
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x80]
cmp eax, dword [edx + 0x7c]
jb 0x50812e
xor eax, eax
jmp 0x508226
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x7c]
sub eax, dword [edx + 0x80]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jbe 0x50814e
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x78]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x80]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b5780
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x80]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x68]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x6c]
push edx
call fcn.00507f50
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 4]
jmp 0x508226
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x70], 0
je 0x50821a
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5081e7
xor eax, eax
jmp 0x508226
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x68]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x6c]
push edx
call fcn.00507f50
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0xc]
jmp 0x508226
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x508290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x2d]
test edx, edx
je 0x508371
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x3c], 0
je 0x5082e1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp + 0xc]
jae 0x5082e1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004f6020
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x3c], 0
jne 0x50830d
mov edx, dword [ebp + 0xc]
shl edx, 1
push edx
call fcn.004f6040
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.004b5780
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x508336
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x508368
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 8]
mov cl, byte [edx + eax]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x30
push edx
call fcn.00508250
add esp, 8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 8]
mov byte [edx + ecx], al
jmp 0x50832d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x20], 0
je 0x5083cc
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 0x28]
jb 0x508399
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0x30000
xor eax, eax
jmp 0x508401
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x24]
push eax
call fcn.004b5780
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 0xc]
jmp 0x508401
mov edx, dword [ebp - 0x18]
cmp dword [edx + 4], 0
je 0x5083f5
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
jmp 0x508401
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x508860
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0x67452301
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
mov esp, ebp
pop ebp
ret

Function at 0x509ba0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x509c2c
mov dword [ebp - 0x128], 0
push 0x110
push 0
lea edx, [ebp - 0x124]
push edx
call fcn.004b3d60
add esp, 0xc
mov dword [ebp - 0x128], 0x114
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x509c1f
cmp dword [ebp - 0x124], 6
jne 0x509c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x509c97
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
xor eax, eax
jmp 0x509c97
mov dword [ebp - 4], 0x490
mov dword [ebp - 0x12c], 0
jmp 0x509c4e
mov edx, dword [ebp - 0x12c]
add edx, 1
mov dword [ebp - 0x12c], edx
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 8]
jae 0x509c8b
mov ecx, dword [ebp - 0x12c]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0xc]
cmp dword [edx + ecx + 8], 0
jne 0x509c89
mov eax, dword [ebp - 0x12c]
imul eax, eax, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax]
mov dword [ecx], eax
mov dword [ebp - 4], 0
jmp 0x509c8b
jmp 0x509c3f
mov ecx, dword [ebp - 0xc]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x509ca0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x509d01
jmp 0x509d94
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x509d28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x509d28
jmp 0x509d94
mov ecx, dword [ebp - 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x509d57
jmp 0x509d94
mov dword [ebp - 0x1c], 0
jmp 0x509d69
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx]
jae 0x509d94
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax*8 + 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x509d92
mov byte [ebp - 0x15], 1
jmp 0x509d94
jmp 0x509d60
cmp dword [ebp - 0x14], 0
je 0x509da4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], 0
je 0x509db4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [ebp - 0x15]
mov esp, ebp
pop ebp
ret
Function at 0x509dc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x509de6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x509edf
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x490
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.004b3d60
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x509e72
push str.explorer.exe
lea eax, [ebp - 0x21c]
push eax
call fcn.004b5426
add esp, 8
test eax, eax
jne 0x509e5c
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
jmp 0x509e70
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x509e32
jmp 0x509e7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x509ea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x509edf
mov eax, dword [ebp + 8]
push eax
push 0xf01ff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
jne 0x509ed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x50a0d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
cmp dword [ebp + 8], 0
jne 0x50a0e7
or eax, 0xffffffff
jmp 0x50a183
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.004b3d60
add esp, 0xc
mov dword [ebp - 0x120], 0x114
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x50a13c
cmp dword [ebp - 0x11c], 5
jne 0x50a13c
cmp dword [ebp - 0x118], 0
jne 0x50a13c
mov byte [ebp - 1], 1
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x50a177
mov eax, dword [ebp + 8]
push eax
call fcn.0050a050
add esp, 4
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x50a16d
mov ecx, dword [ebp + 8]
push ecx
call fcn.00509dc0
add esp, 4
jmp 0x50a183
mov eax, dword [ebp - 0x124]
jmp 0x50a183
mov edx, dword [ebp + 8]
push edx
call fcn.00509dc0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x50a340
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x50a38d
jmp 0x50a418
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004b02da
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x50a3c4
jmp 0x50a418
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x53b278
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x50a3f7
cmp dword [ebp - 8], 0
jne 0x50a3fb
jmp 0x50a418
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x18], 1
cmp dword [ebp - 4], 0
je 0x50a430
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004b1dc8
add esp, 4
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret

Function at 0x50a500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5231f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x218]
call fcn.0040c630
mov dword [ebp - 4], 0
mov word [ebp - 0x214], 0
push 0x206
push 0
lea eax, [ebp - 0x212]
push eax
call fcn.004b3d60
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x218]
call fcn.0040ae00
lea eax, [ebp - 0x218]
push eax
call fcn.0050a440
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040a580
mov edx, dword [ebp - 0x21c]
or edx, 1
mov dword [ebp - 0x21c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.0040c650
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x50a750
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.004b3d60
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x50a7c3
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x50a7d6
jmp 0x50a913
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 1
je 0x50a8e3
cmp dword [ebp - 0x130], 2
je 0x50a7fd
jmp 0x50a90c
cmp dword [ebp - 0x124], 6
jne 0x50a827
cmp dword [ebp - 0x120], 1
jne 0x50a827
movzx ecx, byte [ebp - 0xe]
sub ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 8
mov dword [ebp - 4], ecx
jmp 0x50a8e1
cmp dword [ebp - 0x124], 6
jne 0x50a852
cmp dword [ebp - 0x120], 0
jne 0x50a852
movzx edx, byte [ebp - 0xe]
sub edx, 1
neg edx
sbb edx, edx
and edx, 2
add edx, 7
mov dword [ebp - 4], edx
jmp 0x50a8e1
cmp dword [ebp - 0x124], 5
jne 0x50a86d
cmp dword [ebp - 0x120], 2
jne 0x50a86d
mov dword [ebp - 4], 5
jmp 0x50a8e1
cmp dword [ebp - 0x124], 5
jne 0x50a888
cmp dword [ebp - 0x120], 1
jne 0x50a888
mov dword [ebp - 4], 6
jmp 0x50a8e1
cmp dword [ebp - 0x124], 5
jne 0x50a8a3
cmp dword [ebp - 0x120], 0
jne 0x50a8a3
mov dword [ebp - 4], 3
jmp 0x50a8e1
cmp dword [ebp - 0x124], 4
ja 0x50a8b5
mov dword [ebp - 4], 4
jmp 0x50a8e1
cmp dword [ebp - 0x124], 6
jb 0x50a8c7
cmp dword [ebp - 0x120], 2
jae 0x50a8d0
cmp dword [ebp - 0x124], 6
jbe 0x50a8e1
movzx eax, byte [ebp - 0xe]
cmp eax, 1
jne 0x50a8e1
call fcn.0050a5d0
mov dword [ebp - 4], eax
jmp 0x50a913
mov ecx, dword [ebp - 0x11c]
shr ecx, 0x10
and ecx, 0xffff
cmp ecx, 0x45a
jae 0x50a903
mov dword [ebp - 4], 1
jmp 0x50a90a
mov dword [ebp - 4], 2
jmp 0x50a913
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x50aa10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x50aa4f
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, 1
jmp 0x50aa51
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x50aab0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a568
push 0x521554
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x50ab2e
jmp 0x50ab8c
lea eax, [ebp - 0x38]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x50ab4a
jmp 0x50ab8c
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 2
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x50ab85
jmp 0x50ab8c
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
call fcn.0050ab9a
jmp 0x50abb2
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50ac30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x50ad26
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x18], 0
jne 0x50ac6a
jmp 0x50ad26
push str.EnumProcessModules
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push str.EnumProcesses
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx], eax
push str.GetModuleBaseNameW
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push str.GetModuleFileNameExW
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push str.GetProcessImageFileNameW
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x50ad16
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x50ad16
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x50ad16
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x50ad16
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x50ad16
mov dword [ebp - 8], 1
jmp 0x50ad1d
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x50c300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523db7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
cmp dword [ebp + 0xc], 0
jne 0x50c32b
mov eax, 0x80070057
jmp 0x50c413
push 1
mov eax, dword [ebp + 8]
add eax, 0x44
push eax
lea ecx, [ebp - 0x1c]
call fcn.004155c0
mov dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x5c
call fcn.0040fb30
test eax, eax
jne 0x50c384
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00415630
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
call fcn.00415650
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x5c
call fcn.0040f900
push 1
mov eax, dword [ebp + 8]
add eax, 4
push eax
lea ecx, [ebp - 0x14]
call fcn.004155c0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1c], 0
jne 0x50c3f2
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0x50c2f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1c], 0
jne 0x50c3f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c530
add esp, 4
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x14]
call fcn.00415610
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00415610
mov eax, dword [ebp - 0x3c]
jmp 0x50c413
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x14]
call fcn.00415610
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00415610
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x50ca30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x50ca5a
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x50ca5a
mov dword [ebp - 8], 1
jmp 0x50ca61
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x50ca70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x50ca9a
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x50ca9a
mov dword [ebp - 8], 1
jmp 0x50caa1
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret