joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007ee14
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1007ee44
push edi
call ebx
push eax
call fcn.10080545
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x1007ee6e
test byte [ebp - 4], 1
je 0x1007ee6e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1007ee6e
push edi
call ebx
push eax
call fcn.10080545
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x1007ef14
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.1007ed61
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x1007eea0
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.1007ed61
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x1007eeb6
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.1007ed61
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1007eee0
push 0
call ebx
push eax
call fcn.10080545
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1007eefe
push eax
call ebx
push eax
call fcn.10080545
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1007ef12
push eax
call ebx
push eax
call fcn.10080545
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x1007ef3b
test byte [ebp - 4], 1
jne 0x1007ef3b
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1007ef3b
push edi
call ebx
push eax
call fcn.10080545
pop edi
pop ebx
leave
ret 8

Function at 0x1008261b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10082653
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1007dbf0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1007dbc8
jmp 0x1008265f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x417de1
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, eax
cmp byte [0x106605d], 0
invalid
je 0x417e2b
jmp 0x417e18
dec esp
add byte [ecx + 0x4c303c], ah
invalid
mov ecx, eax
push esi
shl ecx, 4
and edx, ecx
sal dword [ebx], 1
leave

Function at 0x417e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x4c3049]
invalid
invalid
inc esp
invalid

Function at 0x417e21
Capabilities:
Query or enumerate registry value

Disassembly:
dec ecx
xor byte [eax + eax - 0x76], cl
adc eax, 0x4c3044
dec esp
add byte [edx], ah
ret 0x158b
cmp byte [eax], dh
dec esp
add byte [edi + ebp*4], cl
sub esp, 8
mov byte [0x4c3044], al
mov eax, dword [0x4c303c]
invalid

Function at 0x417e41
Capabilities:
Query or enumerate registry value

Disassembly:
sal dword [ebx], 1
leave
mov cl, byte [0x4c3045]
mov dword [0x4c3038], edx
mov edx, dword [0x4c3034]
adc eax, 0x4c3034
xor esi, esi
and edx, 8
imul edx, ecx
or eax, edx
lea edx, [esp + 4]
push edx
push 0x20019
push esi
push str.CLSIDA80DB8A6_D8FF_11CF_9377_A00103B70AA1InprocServer32
push SysReAllocStringLen
add byte [eax], al
add byte [eax + 0x4c303ca3], al
add bh, bh
adc eax, sym.imp.ADVAPI32.dll_RegOpenKeyExA
invalid

Function at 0x417e49
Capabilities:
Query or enumerate registry value

Disassembly:
sal dword [ebx], 1
leave
mov cl, byte [0x4c3045]
mov dword [0x4c3038], edx
mov edx, dword [0x4c3034]
adc eax, 0x4c3034
xor esi, esi
and edx, 8
imul edx, ecx
or eax, edx
lea edx, [esp + 4]
push edx
push 0x20019
push esi
push str.CLSIDA80DB8A6_D8FF_11CF_9377_A00103B70AA1InprocServer32
push SysReAllocStringLen
add byte [eax], al
add byte [eax + 0x4c303ca3], al
add bh, bh
adc eax, sym.imp.ADVAPI32.dll_RegOpenKeyExA
invalid

Function at 0x42ec47
Capabilities:
Encode data using xor

Disassembly:
sub eax, 0x8c56a7a5
and ch, 0x5d
rcl dword [edi - 0x26], cl
pop ebp
add eax, 0x1f43f92d
adc eax, 0xeda41030
test al, 0xdf
push ecx
arpl di, cx
mov esp, 0x7b1b2df1
invalid

Function at 0x42f0d9
Capabilities:
Encode data using xor

Disassembly:
rcr ah, cl
jo 0x42f112
aas
adc ebx, dword [edi - 0xc]
sbb bl, bh
xchg ebx, eax
sal ecx, 1
mov ebp, 0x33dc30b3
cli
mov esi, dword [eax + 0x29f29468]
cdq
out dx, al
mov edx, 0x40b88c4c
ficom word [edx - 0x6ac306fb]
invalid

Function at 0x44eeb1
Capabilities:
Encode data using xor

Disassembly:
dec ebp
push ecx
mov dword [0x9ba73c51], eax
adc edi, edi
adc dword [edx], esi
or edi, 0xf931c8df
mov edx, 0x22bfe2b1
fcom qword [edi + 0x1d]
mov ebp, 0xf83feefd
in eax, 0xf0
fdivrp st(1)
popfd
cdq
out 0xe1, eax
push ds
adc edi, edi
shr esi, 1
mov eax, 0x831db729
scasb al, byte es:[edi]
add dword [edx - 0x33bf27a1], eax
and cl, ch
invalid
Function at 0x4bb531
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3378
cmp edx, dword [eax]
je 0x4bb553
add eax, 8
inc ecx
cmp eax, 0x4c3408
jl 0x4bb544
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3378]
jne 0x4bb681
mov eax, dword [0x4c7cfc]
cmp eax, 1
je 0x4bb65b
test eax, eax
jne 0x4bb584
cmp dword [0x4c32a0], 1
je 0x4bb65b
cmp edx, 0xfc
je 0x4bb681
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb5bb
lea eax, [ebp - 0x1a4]
push 0x4c0980
push eax
call fcn.004bbf10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc3a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb5fe
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc3a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c097c
push edi
call fcn.004be270
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0960
push eax
call fcn.004bbf10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbf20
lea eax, [ebp - 0xa0]
push 0x4c095c
push eax
call fcn.004bbf20
push dword [esi + 0x4c337c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbf20
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0934
push eax
call fcn.004be1e4
add esp, 0x2c
pop edi
jmp 0x4bb681
lea eax, [ebp + 8]
lea esi, [esi + 0x4c337c]
push 0
push eax
push dword [esi]
call fcn.004bc3a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406e20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509878
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x53307c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x406e5c
xor al, al
jmp 0x406f4f
push esi
lea ecx, [ebp - 0x28]
call fcn.00405b70
mov edx, 0x2f
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004057f0
mov edx, 0x5c
lea ecx, [ebp - 0x28]
call fcn.004057f0
cmp dword [ebp - 0x18], 3
ja case.default.0x406ea3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
ja case.default.0x406ea3
jmp dword [eax*4 + 0x406f74]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x278]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x406efb
mov eax, dword [esi + 0x10]
lea edx, [eax - 1]
cmp eax, edx
jbe 0x406f6a
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp eax, 8
jb 0x406ee2
mov ecx, dword [esi]
cmp word [ecx + edx*2], 0x5c
je case.0x406ea3.3
cmp eax, 8
jb 0x406ef0
mov esi, dword [esi]
cmp word [esi + edx*2], 0x2f
jne case.0x406ea3.0
mov bl, 1
jmp 0x406f17
test byte [ebp - 0x278], 0x10
push eax
je 0x406f0f
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x406f17
call dword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406f4d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406f43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f6f
push edx
push ecx
call fcn.0049e956
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049e964
mov esp, ebp
pop ebp
ret
call fcn.00405400
call fcn.004e9a8c
adc eax, 0x1500406f
outsd dx, dword [esi]
inc eax
add byte [0xb00406f], dl
outsd dx, dword [esi]
inc eax
add byte [ebx], cl
outsd dx, dword [esi]
inc eax
add ah, cl
int3
Function at 0x407620
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509938
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x53307c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00405b70
mov edx, 0x20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004058b0
cmp dword [ebp - 0x18], 0
je 0x40771d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40771d
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049f224
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 2
push ecx
push esi
call fcn.004ef497
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add esp, 0x10
mov bl, 1
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x18]
mov word [esi + eax*2 + 2], cx
mov eax, 0x414
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x36], ecx
mov dword [ebp - 0x32], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2e], ecx
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
test esi, esi
je 0x40771f
push esi
call fcn.0049f22d
add esp, 4
jmp 0x40771f
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x407755
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40774b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407772
push edx
push ecx
call fcn.0049e956
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049e964
mov esp, ebp
pop ebp
ret
call fcn.004e9a8c
int3
Function at 0x407780
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x407824
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40779f
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407824
mov ecx, esi
call fcn.00406e20
test al, al
je 0x4077bc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4077c6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407824
cmp byte [ebp + 0xc], al
je 0x407824
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4077e0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x407800
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4077f8
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40780a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407824
mov edx, dword [ebp + 0x10]
mov ecx, esi
call fcn.00407830
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c4f0
Capabilities:
Enumerate processes

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 0x509feb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x460
mov eax, dword [0x53307c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x46c], edx
mov esi, ecx
mov dword [ebp - 0x470], esi
xor eax, eax
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
push eax
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c630
lea eax, [ebp - 0x468]
mov dword [ebp - 0x468], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40c629
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004e7890
add esp, 0xc
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40c5fe
mov eax, dword [ebp - 0x46c]
cmp eax, dword [ebp - 0x460]
je 0x40c5e3
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40c5c1
jmp 0x40c5fe
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.004ef497
add esp, 0xc
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c607
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00405140
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x238]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x228]
movq qword [esi + 0x10], xmm0
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.0049e964
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40c680
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x53307c]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edi
cmp dword [ebx + 0x10], edi
je 0x40c6ea
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x40c6ea
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40c701
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.0049e964
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40c892
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40c722
mov eax, dword [ebx]
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.004ef4fb
add esp, 8
test eax, eax
jne 0x40c877
cmp dword [esi + 0x10], eax
je 0x40c8b3
push dword [esp + 0x28]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40c877
push 0x208
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.004e7890
add esp, 0xc
lea eax, [esp + 0x268]
push 0x104
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x40c877
xor eax, eax
mov dword [esp + 0x260], 0
mov word [esp + 0x250], ax
lea eax, [esp + 0x268]
mov dword [esp + 0x264], 7
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c7c0
sub eax, edx
lea ecx, [esp + 0x250]
sar eax, 1
push eax
lea eax, [esp + 0x26c]
push eax
call fcn.00405140
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40c7ee
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x250]
mov ebx, dword [esp + 0x264]
cmp ebx, 8
mov esi, dword [esp + 0x250]
cmovae eax, esi
push dword [edx + 0x10]
push ecx
push 0
push dword [esp + 0x26c]
push eax
call fcn.00406390
add esp, 0x14
mov dword [esp + 0x1c], eax
cmp ebx, 8
jb 0x40c85b
lea ecx, [ebx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x40c84d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c8b9
push ecx
push esi
call fcn.0049e956
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, 0xffffffff
je 0x40c86f
mov eax, dword [esp + 0x28]
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40c718
mov edi, dword [esp + 0x18]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x474]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049e964
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x28]
jmp 0x40c892
call fcn.004e9a8c
int3
Function at 0x40cc40
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x448
mov eax, dword [0x53307c]
xor eax, esp
mov dword [esp + 0x444], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x14], edi
mov esi, dword [edx]
test esi, esi
jne 0x40cc74
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push 0x208
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004e7890
push 0x208
lea eax, [esp + 0x250]
push 0
push eax
call fcn.004e7890
add esp, 0x18
mov dword [esp + 0x18], 0x104
xor eax, eax
mov dword [esp + 0x14], 0x104
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
push 0x10
push str.SeDebugPrivilege
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
call fcn.00405140
lea ecx, [esp + 0x20]
call fcn.0040ce30
mov edx, dword [esp + 0x34]
cmp edx, 8
jb 0x40cd28
mov ecx, dword [esp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce22
push edx
push ecx
call fcn.0049e956
add esp, 8
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40cdd5
lea ecx, [esp + 0x10]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40cdd5
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 0
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40cd7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40cdd5
push dword [esp + 0xc]
call fcn.004e9b6b
mov esi, eax
add esp, 4
test esi, esi
je 0x40cdd5
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push esi
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40cdcc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push esi
call fcn.004edf01
add esp, 4
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [esp + 0x38]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cdf0
sub ecx, edx
lea eax, [esp + 0x38]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00405140
mov ecx, dword [esp + 0x44c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0049e964
mov esp, ebp
pop ebp
ret
call fcn.004e9a8c
int3
Function at 0x40d0f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor eax, eax
mov dword [ebp - 0x54], 0x44
cmp byte [ebp + 0x14], al
mov ecx, 5
push esi
mov esi, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x12], ax
xorps xmm0, xmm0
cmovne eax, ecx
movlpd qword [ebp - 0x50], xmm0
mov word [ebp - 0x24], ax
xor ecx, ecx
mov eax, dword [esi + 0x10]
inc eax
movlpd qword [ebp - 0x48], xmm0
mul edx
movups xmmword [ebp - 0x10], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
push edi
movlpd qword [ebp - 0x30], xmm0
seto cl
movlpd qword [ebp - 0x22], xmm0
neg ecx
movlpd qword [ebp - 0x1a], xmm0
or ecx, eax
mov dword [ebp - 0x28], 1
push ecx
call fcn.0049f224
mov edi, eax
add esp, 4
test edi, edi
jne 0x40d173
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
inc eax
push eax
push 0
push edi
call fcn.004e7890
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40d18b
mov esi, dword [esi]
push ebx
push esi
push 0x523410
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov bl, 1
cmp dword [eax + 0x10], 0
ja 0x40d1ab
xor eax, eax
jmp 0x40d1b3
cmp dword [eax + 0x14], 8
jb 0x40d1b3
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x10], 0
ja 0x40d1c0
xor ecx, ecx
jmp 0x40d1c8
cmp dword [ecx + 0x14], 8
jb 0x40d1c8
mov ecx, dword [ecx]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x54]
push edx
push eax
movzx eax, byte [ebp + 0x18]
push 0
push 0x20
push eax
push 0
push 0
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40d1ee
xor bl, bl
jmp 0x40d23b
cmp byte [ebp + 0x1c], 0
je 0x40d209
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40d209
push dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40d1ea
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x40d223
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40d223
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40d1ea
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x40d22f
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x40d23b
mov eax, dword [ebp - 8]
mov dword [ecx], eax
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push edi
call fcn.0049f22d
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret