joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499328
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x499330
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x499522
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x499538
mov eax, esi
call fcn.004971b4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404a6c
lea ecx, [ebp - 0x10]
mov edx, 0x49954c
mov eax, esi
call fcn.004971b4
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404a6c
lea ecx, [ebp - 0x14]
mov edx, 0x499564
mov eax, esi
call fcn.004971b4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404a6c
lea ecx, [ebp - 0x18]
mov edx, 0x499580
mov eax, esi
call fcn.004971b4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404a6c
lea ecx, [ebp - 0x1c]
mov edx, 0x49959c
mov eax, esi
call fcn.004971b4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404a6c
lea ecx, [ebp - 0x24]
mov edx, 0x4995b4
mov eax, esi
call fcn.004971b4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408fd4
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004093b4
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4995cc
mov eax, esi
call fcn.004971b4
mov eax, dword [ebp - 0x28]
call fcn.00495864
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4995dc
mov eax, esi
call fcn.004971b4
mov eax, dword [ebp - 0x2c]
call fcn.00495864
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4995f4
mov eax, esi
call fcn.004971b4
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004093b4
inc eax
je 0x4994c5
lea ecx, [ebp - 0x34]
mov edx, 0x4995f4
mov eax, esi
call fcn.004971b4
mov eax, dword [ebp - 0x34]
call fcn.00409378
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040af28
fstp qword [ebp - 0x3c]
wait
call fcn.0040b28c
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4994e0
lea ecx, [ebp - 0x40]
mov edx, 0x4995f4
mov eax, esi
call fcn.004971b4
mov eax, dword [ebp - 0x40]
call fcn.00495864
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x499604
mov eax, esi
call fcn.004971b4
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404a6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499529
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404a3c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404a3c
ret
Function at 0x4a4e8c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4a4ee6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004a4e7c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004944d0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004940d0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4eed
lea eax, [ebp - 4]
call fcn.00404a18
ret

Function at 0x4a8b18
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407a5c
ret

Function at 0x4a8c40
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ec8
xor eax, eax
push ebp
push 0x4a8d8e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.004a8b18
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404ed8
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a8d6d
xor eax, eax
push ebp
push 0x4a8d66
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a8d4f
xor eax, eax
push ebp
push 0x4a8d48
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4a8d31
xor eax, eax
push ebp
push 0x4a8d2a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.004a8b4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8d31
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8d4f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8d6d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.004a8bcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8d95
lea eax, [ebp - 4]
call fcn.00404a18
ret

Function at 0x4acdf4
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret
Function at 0x4ace04
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x4ace19
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x4acf1c
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov ebx, eax
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, ebx
call fcn.004ace88
mov esi, eax
mov eax, ebx
call fcn.00403c44
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4aeef4
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ec8
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x4af07b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x4af098
call fcn.0040501c
test eax, eax
jne 0x4aef3f
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4af0a4
call fcn.00404d24
mov eax, esi
mov edx, 0x3c
call fcn.004aea14
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.004027f4
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.004027f4
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.004027f4
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.004027f4
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.004027f4
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.004027f4
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404cd8
push eax
mov eax, dword [ebp - 4]
call fcn.00404ed8
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4af035
mov eax, edi
mov edx, dword [esi + 4]
call fcn.00404c10
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.00404c10
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.00404c10
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.00404c10
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.00404c10
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.00404c10
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 0x34]
call fcn.00402814
mov eax, dword [esi + 0x2c]
call fcn.00402814
mov eax, dword [esi + 0x24]
call fcn.00402814
mov eax, dword [esi + 0x1c]
call fcn.00402814
mov eax, dword [esi + 0x10]
call fcn.00402814
mov eax, dword [esi + 4]
call fcn.00402814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af082
lea eax, [ebp - 4]
call fcn.00404a18
ret
Function at 0x4af0ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x4af0c5
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x4af0d2
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4af0f0
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b0494
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4b05b1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.004b035c
pop ecx
test al, al
je 0x4b058c
mov eax, dword [ebp + 8]
push eax
call fcn.004b01a0
pop ecx
test al, al
jne 0x4b058c
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x13c]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x4b058c
mov eax, dword [ebp + 8]
push eax
mov eax, 0x13
call fcn.004b01e0
pop ecx
test al, al
je 0x4b058c
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404c88
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004093b4
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x178], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x178]
cmp esi, 0xc8
je 0x4b0557
mov eax, dword [ebp + 8]
cmp esi, 0xce
jne 0x4b058c
mov eax, dword [ebp + 8]
push eax
mov eax, 5
call fcn.004b01e0
pop ecx
test al, al
je 0x4b058c
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404c88
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004093b4
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
call fcn.004b01a0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b05b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a3c
ret

Function at 0x4b1d48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
call fcn.004b1cdc
mov ebx, eax
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4b1da7
mov eax, esi
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00404c88
push ebx
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4b1db4
mov eax, esi
call fcn.00404a18
push ebx
call sub.advapi32.dll_RegCloseKey_1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b4c44
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b4c72
mov eax, ebx
call fcn.004b56f8
cmp dword [ebx + 0x40], 0
je 0x4b4c6b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b4ce3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b4cd5
cmp dword [ebx + 8], 0
je 0x4b4c94
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4b4ca6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b4cd5
cmp dword [ebx + 8], 0
je 0x4b4c87
cmp eax, 3
je 0x4b4cb9
dec eax
jne 0x4b4c87
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b4c87
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b4c87
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b4d01
cmp dword [ebx + 0x14], 0xcc
je 0x4b4d01
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b4d0c
pop ebx
ret
Function at 0x4c8738
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd4c
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ec8
xor eax, eax
push ebp
push 0x4c884d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404a18
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x4c8830
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x294]
mov edx, dword [ebp - 4]
call fcn.00409fd8
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4c881d
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4c881d
mov esi, dword [edx]
test esi, esi
je 0x4c881d
push ebx
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x29c], eax
mov byte [ebp - 0x298], 0
lea edx, [ebp - 0x2b4]
mov ecx, 3
mov eax, 0x4c8864
call fcn.0040a61c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8837
call sub.wsock32.dll_WSACleanup
ret

Function at 0x4c8bf4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd4c
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ec8
xor eax, eax
push ebp
push 0x4c8d09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404a18
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x4c8cec
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x294]
mov edx, dword [ebp - 4]
call fcn.00409fd8
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4c8cd9
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4c8cd9
mov esi, dword [edx]
test esi, esi
je 0x4c8cd9
push ebx
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x29c], eax
mov byte [ebp - 0x298], 0
lea edx, [ebp - 0x2b4]
mov ecx, 3
mov eax, 0x4c8d20
call fcn.0040a61c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8cf3
call sub.wsock32.dll_WSACleanup
ret
Function at 0x4c9160
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 7
push 0
lea eax, [ebp - 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
jne 0x4c917f
xor eax, eax
pop ecx
pop ebp
ret
mov al, 1
pop ecx
pop ebp
ret

Function at 0x4c9928
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4c99aa
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x4c99b4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp byte [esp], 0
je 0x4c9970
mov dword [esp + 0x18], 2
jmp 0x4c9976
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x1c
pop ebx
ret
Function at 0x4c9f84
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ec8
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4ca0e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004a9158
mov ebx, eax
mov dword [esi], 0x128
mov edx, esi
mov eax, ebx
call fcn.004a9178
jmp 0x4ca0b9
lea eax, [ebp - 0x138]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404c88
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409d88
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408d84
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408d84
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404e24
je 0x4ca09b
lea eax, [ebp - 0x144]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00404c88
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408d84
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408d84
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404e24
jne 0x4ca0b0
push 0
mov eax, dword [esi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, esi
mov eax, ebx
call fcn.004a9198
test eax, eax
jne 0x4c9ffc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca0ee
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404a3c
lea eax, [ebp - 4]
call fcn.00404a18
ret
Function at 0x4ca0f4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 8], edx
xor edx, edx
push ebp
push 0x4ca35e
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x22c], 0x224
mov edx, eax
mov eax, 8
call fcn.004a9158
mov dword [ebp - 4], eax
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 4]
call fcn.004a91b8
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4ca327
mov eax, dword [0x4d13b4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4ca313
inc ebx
xor esi, esi
lea ecx, [ebp - 8]
mov eax, dword [0x4d13b4]
mov eax, dword [eax]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x230]
mov eax, 0x4ca374
call fcn.00408dc0
mov eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x238]
lea edx, [ebp - 0x20c]
mov ecx, pe_nt_image_headers32
call fcn.00404c88
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x234]
call fcn.00408dc0
mov edx, dword [ebp - 0x234]
pop eax
call fcn.00404e24
jne 0x4ca228
mov edi, dword [ebp - 0x224]
cmp edi, dword [0x4d332c]
je 0x4ca228
lea eax, [ebp - 0x23c]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00404c88
mov edx, dword [ebp - 0x23c]
mov eax, edi
call fcn.004c9ac8
jmp 0x4ca338
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.00408dc0
mov eax, dword [ebp - 0x240]
push eax
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x20c]
mov ecx, pe_nt_image_headers32
call fcn.00404c88
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.00408dc0
mov edx, dword [ebp - 0x244]
pop eax
call fcn.00404e24
jne 0x4ca30b
mov eax, dword [0x4d3324]
test eax, eax
je 0x4ca287
push 0
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [0x4d10b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
xor edx, edx
call fcn.00431cd0
mov eax, dword [0x4d0f2c]
mov eax, dword [eax]
call fcn.004c9f84
push 0x30
lea eax, [ebp - 0x250]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.00404c88
mov ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x24c]
mov edx, 0x4ca388
call fcn.00404d24
mov eax, dword [ebp - 0x24c]
call fcn.00404ed8
mov edx, eax
mov ecx, 0x4ca3ec
mov eax, dword [0x4d124c]
mov eax, dword [eax]
call fcn.00463248
mov eax, dword [0x4d0f2c]
mov eax, dword [eax]
call fcn.004c9f84
mov eax, dword [0x4d124c]
mov eax, dword [eax]
call fcn.004631a4
inc esi
dec ebx
jne 0x4ca195
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 4]
call fcn.004a91d8
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4ca17b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca365
lea eax, [ebp - 0x250]
mov edx, 9
call fcn.00404a3c
lea eax, [ebp - 8]
call fcn.00404a18
ret