joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4256a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d916
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x82c], edi
cmp word [0x58b258], 0
jne 0x4257ef
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
push 0x20219
lea ecx, [ebp - 0x811]
mov dword [ebp - 4], 0
call fcn.004239c0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x828]
call fcn.00414750
mov ebx, dword [ebp - 0x828]
test eax, eax
jne 0x4257dd
lea eax, [ebp - 0x818]
mov dword [ebp - 0x818], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x81c]
push eax
push 0
push str.Source
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4257dd
mov eax, dword [ebp - 0x81c]
cmp eax, 1
je 0x42577a
cmp eax, 2
jne 0x4257dd
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x425797
test al, 1
jne 0x4257dd
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x4257a0
jmp 0x4257dd
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x58b258
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4257d0
movzx eax, word [esi + ecx]
test ax, ax
je 0x4257d0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4257b2
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4257ef
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00408380
mov ecx, eax
test ecx, ecx
je 0x42585d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x58b258
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00407f80
test al, al
jne 0x42583f
mov ecx, 0x58b258
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425823
sub ecx, edx
sar ecx, 1
push ecx
push 0x58b258
mov ecx, edi
call fcn.00409380
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407e40
int3
Function at 0x426d50
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004d7a20
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x426d80
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.00511800
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.0051b302
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004d77de
mov esp, ebp
pop ebp
ret
Function at 0x426e10
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x427023
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427023
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426e43
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x427023
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.00511800
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00511800
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push str..
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x426ec4
test al, 1
je 0x426ec4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x427009
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x426ffd
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x426f78
cmp word [ebp - 0x638], 0x2e
jne 0x426f37
mov ax, word [ebp - 0x636]
test ax, ax
je 0x426fe2
cmp ax, 0x2e
jne 0x426f37
cmp word [ebp - 0x634], 0
je 0x426fe2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00511800
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00426e10
add esp, 4
jmp 0x426fe0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00511800
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x426fcf
test al, 1
je 0x426fcf
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x426f00
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004d77de
mov esp, ebp
pop ebp
ret
Function at 0x427040
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x427098
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427098
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x427078
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x427098
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427093
test al, 0x10
je 0x427093
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x427098
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x427390
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4273bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.00422820
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4273b7
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4273e5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4273a2
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x427400
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53dcb6
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x42743c
xor eax, eax
jmp 0x427642
cmp word [ebx], 0
je 0x427435
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427447
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x427435
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00511800
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x54b29c
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4274a2
test al, 1
je 0x4274a2
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.0041bc80
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4275f2
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x427551
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x427551
cmp word [ebp - 0x858], 0x2e
jne 0x427551
mov ax, word [ebp - 0x856]
test ax, ax
je 0x42752c
cmp ax, 0x2e
jne 0x427551
cmp word [ebp - 0x854], 0
jne 0x427551
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x42765e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x4275e4
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.0041c200
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x42758c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x42758c
mov esi, dword [ebp - 0x888]
push esi
call fcn.00427400
jmp 0x427598
mov esi, dword [ebp - 0x888]
push esi
call fcn.00427390
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x4275a9
xor edi, edi
jmp 0x4275c8
cmp dword [ebp - 0x424], 0
jne 0x4275b6
xor edi, edi
jmp 0x4275c8
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4275e4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4274e9
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x427618
cmp eax, 0xffffffff
je 0x427618
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.00426d50
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x42763d
cmp eax, 0xffffffff
je 0x42763d
push eax
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x427618
Function at 0x427700
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4c0], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x4277db
test ecx, ecx
je 0x4277db
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4277db
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x4277db
xor ecx, ecx
movzx edx, ax
nop dword [eax + eax]
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4277c6
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push dword [ebp - 0x4c4]
call fcn.005214cc
add esp, 0xc
test eax, eax
je 0x4277ee
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x427770
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x4c0]
call fcn.00409440
xor ecx, ecx
test edi, edi
je 0x42780c
cmp edi, 0x7fffffff
jbe 0x427811
mov ecx, 0x80070057
test ecx, ecx
js 0x427847
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x42782f
cmp word [eax], 0
je 0x42782f
add eax, 2
sub esi, 1
jne 0x427821
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x427849
xor esi, esi
test ecx, ecx
js 0x42789a
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x42788d
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7ffffffe
add esi, eax
lea eax, [ebx + ebx]
sub eax, ecx
add edi, eax
test esi, esi
je 0x42788d
movzx eax, word [edi + ecx]
test ax, ax
je 0x42788d
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x427874
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d77de
mov esp, ebp
pop ebp
ret
Function at 0x4278b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x427928
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret

Function at 0x427940
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004d7a20
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x427a7a
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x427a7a
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x427a7a
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00511800
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x427a4f
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00511800
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.00512208
add esp, 0x14
test eax, eax
je 0x427a14
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x427a14
mov ecx, 1
jmp 0x427a16
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
cmovne eax, edx
push eax
push edi
push ebx
call fcn.00409440
mov edi, dword [ebp - 0x1008]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x427a2f
push edi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.00427700
add esp, 0xc
mov edi, eax
jmp 0x427a35
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d77de
mov esp, ebp
pop ebp
ret
Function at 0x427d90
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x579658
push 0x512310
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a14
call fcn.004d7a20
mov eax, dword [0x5854b4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
test esi, esi
je 0x427f4e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427de6
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x427f4e
mov dword [ebp - 4], 0
call fcn.004278b0
mov dword [ebp - 4], 0xfffffffe
jmp 0x427e2c
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.00511800
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.00511800
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x427f4e
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.0051b302
lea eax, [ebp - 0x224]
push eax
call fcn.0051b247
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x2a28], edi
jbe 0x427f4e
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
call fcn.00427940
add esp, 0xc
test eax, eax
je 0x427f41
lea eax, [ebp - 0xa24]
push eax
call fcn.0051b247
add esp, 4
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x427f16
test dx, dx
je 0x427f12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x427f16
add eax, 4
add ecx, 4
test dx, dx
jne 0x427ef0
xor eax, eax
jmp 0x427f1b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x427f41
push dword [ebp + edi*4 - 0x2a24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x427f41
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x2a28]
jb 0x427eb4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret
Function at 0x427f70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x579698
push 0x512310
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x5854b4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
test esi, esi
je 0x4280c2
cmp word [esi], 0
je 0x4280c2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427fd0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x4280c2
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.00511800
push esi
push str.__s_
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.00427670
push 0x3c
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.00511800
add esp, 0x28
mov dword [ebp - 0x858], 0x3c
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], str.open
mov dword [ebp - 0x844], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x854], 0x440
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x428089
cmp dword [ebp + 0x18], 0
je 0x428089
push dword [ebp + 0x20]
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x42809e
test esi, esi
je 0x4280ae
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x4280ae
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4280cb
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret

Function at 0x4280f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x42810a
pop edi
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x428ce0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c428
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5854b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x428d5b
test al, 0x10
je 0x428d5b
push esi
mov edi, 1
call fcn.00426d50
add esp, 4
test eax, eax
jne 0x428d7e
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x428d7e
push esi
test edi, edi
jne 0x428d76
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x428d7e
push esi
push 0x54b370
call fcn.00422820
add esp, 8
jmp 0x428d7e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x428d2c
push esi
push 0x54b370
call fcn.00422820
add esp, 8
jmp 0x428d7e
call fcn.00426d50
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428df2
push esi
lea ecx, [ebp - 0x10]
call fcn.004060d0
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x428db5
mov ecx, eax
call fcn.0040b360
add dword [esi + 4], 4
jmp 0x428dbd
push eax
mov ecx, esi
call fcn.00428260
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428ddf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret