joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d3d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408898
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 0x408888
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405d8e
xor eax, eax
jmp 0x405dbb
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405dba
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405db8
xor eax, eax
jmp 0x405dba
call esi
pop esi
leave
ret 4

Function at 0x405ddc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x42ed78
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x42ed78], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405e1b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405e1f
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
push eax
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405fea
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40600a
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406010
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x40603f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x408974]
mov dword [ebp - 8], eax
mov eax, dword [0x408978]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40608f
test edi, edi
jne 0x40604c
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406089
Function at 0x406249
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x800
push dword [ebp + 8]
call fcn.004061e8
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4062ba
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
mov word [esi + 0x7fe], ax
pop edi
jne 0x4062ba
cmp dword [ebp + 0xc], 1
je 0x4062bf
cmp dword [ebp + 0xc], 2
je 0x4062bf
xor eax, eax
mov word [esi], ax
pop esi
leave
ret 0x14

Function at 0x406492
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4064b6
xor eax, eax
test eax, eax
je 0x4064c9
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4064c9
xor ecx, ecx
jmp 0x4064cc
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x4082b0]
push ecx
lea eax, [ebp + eax*2 - 0x23c]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406605
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fea
mov edi, eax
cmp edi, 0xffffffff
je 0x406646
test byte [esp + 0x10], 1
push esi
je 0x40662f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x406637
xor eax, eax
inc eax
jmp 0x406648
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406626
test byte [esp + 0x10], 4
jne 0x406646
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42edc0
push esi
call fcn.0040637d
push esi
call fcn.00405f13
mov edi, eax
test edi, edi
jne 0x406711
xor eax, eax
jmp 0x40676f
push edi
call fcn.004063ba
test byte [0x434a70], 0x80
je 0x40672e
movzx eax, word [edi]
test ax, ax
je 0x40670d
cmp ax, 0x5c
je 0x40670d
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406750
push esi
call fcn.0040646b
test eax, eax
je 0x40674a
test byte [eax], 0x10
je 0x406774
push esi
call fcn.0040667c
push esi
call ebx
cmp eax, edi
jg 0x40673b
push esi
call fcn.0040664d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40676e
Function at 0x4069ed
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [0x42f5c0], 0x55004e
mov dword [0x42f5c4], 0x4c
mov edi, 0x400
mov ebp, 0x42f5c0
test esi, esi
je 0x406a43
push 1
push 0
push esi
call fcn.00406010
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406b62
cmp eax, edi
jg 0x406b62
push edi
mov esi, 0x430c10
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406b62
cmp eax, edi
jg 0x406b62
push esi
push ebp
push str._ls_ls_r_n
push 0x430010
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x434a10]
push dword [eax + 0x128]
push esi
call fcn.00406778
push 4
push 0xc0000000
push esi
call fcn.00406010
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
je 0x406b62
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406b5b
push edi
push esi
push ebp
call fcn.00406093
test eax, eax
je 0x406b5b
push str._Rename__r_n
push esi
call fcn.00405f70
test eax, eax
jne 0x406af9
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406b2e
push 0x4089a4
add eax, 0xa
push eax
call fcn.00405f70
mov ebp, eax
test ebp, ebp
je 0x406b2a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406b1b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406b15
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406b30
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x430010
add eax, esi
push eax
call fcn.00405fc6
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004060c2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406b67
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406b8a
push dword [esp + 8]
push dword [esp + 8]
call fcn.004069ed
pop ecx
pop ecx
inc dword [0x434ad0]
ret 8
Function at 0x406b93
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004066f0
mov dword [ebp - 8], eax
test bl, 8
je 0x406bd1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434ac8], eax
jmp 0x406d53
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
push esi
je 0x406bec
test eax, eax
je 0x406cff
test bl, 2
je 0x406cff
push edi
mov esi, 0x430410
push esi
call fcn.0040637d
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406c0e
push str..
push esi
call ebx
jmp 0x406c14
push edi
call fcn.0040667c
cmp word [edi], 0
jne 0x406c24
cmp word [0x430410], 0x5c
jne 0x406c2c
push 0x4082b0
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406cf3
cmp word [ebp - 0x22c], 0x2e
jne 0x406c77
cmp word [ebp - 0x22a], 0
je 0x406cd6
cmp word [ebp - 0x22a], 0x2e
jne 0x406c77
cmp word [ebp - 0x228], 0
je 0x406cd6
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040637d
test byte [ebp - 0x258], 0x10
je 0x406ca2
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406cd6
push dword [ebp + 0xc]
push edi
call fcn.00406b93
jmp 0x406cd6
push dword [ebp - 4]
push edi
call fcn.00406605
test eax, eax
jne 0x406cce
cmp dword [ebp - 4], eax
je 0x406cc6
push edi
push 0xfffffffffffffff1
call fcn.004050db
push 0
push edi
call fcn.00406b67
jmp 0x406cd6
inc dword [0x434ac8]
jmp 0x406cd6
push edi
push 0xfffffffffffffff2
call fcn.004050db
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406c4f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406cff
xor eax, eax
mov word [ebx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406d52
cmp dword [ebp - 8], esi
je 0x406d42
push edi
call fcn.0040646b
test eax, eax
je 0x406d52
push edi
call fcn.0040664d
mov eax, dword [ebp - 4]
or eax, 1
push eax
push edi
call fcn.00406605
test eax, eax
jne 0x406d4a
cmp dword [ebp - 4], esi
je 0x406d42
push edi
push 0xfffffffffffffff1
call fcn.004050db
push esi
push edi
call fcn.00406b67
jmp 0x406d52
inc dword [0x434ac8]
jmp 0x406d52
push edi
push 0xffffffffffffffe5
call fcn.004050db
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x406d59
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x431414], 0
jne 0x406d97
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406d6d
mov dword [ecx*4 + 0x431410], eax
inc ecx
cmp ecx, 0x100
jl 0x406d68
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406dc4
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x431410]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406da5
not eax
pop ebp
ret 0xc
Function at 0x401130
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x423af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
call fcn.004204a8
mov edi, dword [eax + 0x10]
push str.CInstancaChecker_MMF_
lea ecx, [esp + 0xc]
call fcn.004187d9
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call fcn.00418a6d
mov eax, dword [esp + 8]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4011d5
mov ecx, dword [esp + 8]
push ecx
push 4
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 4
push 0
push 0
push 6
push eax
mov dword [0x431128], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea edx, [esi + 4]
push 1
push edx
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00402d00
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [esp + 0xc]
call fcn.00402d3c
mov ecx, dword [esi + 0xc]
xor eax, eax
test ecx, ecx
setne al
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
call fcn.0041876b
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x401210
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x423b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov esi, ecx
push 4
push 0
mov eax, dword [esi + 0xc]
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [esi + 4]
push 1
push ecx
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00402d00
mov edx, dword [0x42f214]
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], edx
push 0xe000
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00418b8e
mov eax, dword [esp + 0xc]
push eax
push str._32770
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x40129b
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esi + 0xc], 0
mov byte [esp + 0x24], 0
call fcn.0041876b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00402d3c
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x401de0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret 4
Function at 0x401e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x423c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00417ce3
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ebp
mov dword [esp + 0x30], 0
call fcn.004187d9
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.00401c40
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x401e74
mov edx, dword [esp + 0x14]
mov ecx, esi
mov eax, dword [edx + edi*4]
push eax
call fcn.00401de0
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x401e5c
push ebp
mov ecx, esi
call fcn.00401de0
push ebp
mov ecx, esi
call fcn.00401ec0
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0041876b
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00417d16
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x401ec0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x423ca6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
mov dword [esp], ecx
push ebp
lea ecx, [esp + 0x10]
call fcn.00403b4a
mov ebp, dword [esp + 0x35c]
lea eax, [esp + 0xf4]
push ebp
push str._s.
push eax
mov dword [esp + 0x360], 0
call fcn.0040b31a
add esp, 0xc
lea ecx, [esp + 0xf4]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00403c0d
test eax, eax
je 0x40200d
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00403e2d
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00403df4
test eax, eax
jne 0x401fff
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.00404025
push 0xc8
mov ecx, eax
mov byte [esp + 0x360], 1
call fcn.00418ac1
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x35c], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0041876b
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
lea eax, [esp + 0x34]
push eax
push ebp
push str._s_s
je 0x401fe1
lea ecx, [esp + 0x1d0]
push ecx
call fcn.0040b31a
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea edx, [esp + 0x1c4]
push edx
call fcn.00401ec0
jmp 0x401fff
lea ecx, [esp + 0x298]
push ecx
call fcn.0040b31a
add esp, 0x10
lea edx, [esp + 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x80401f2e
pop edi
pop esi
lea ecx, [esp + 0x10]
call fcn.00403bc3
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop ebp
mov dword [esp + 0x350], 0xfedfbfff
lea ecx, [esp + 0xc]
jne 0x40204f
call fcn.00403b87
xor eax, eax
mov ecx, dword [esp + 0x348]
inc esp
mov dword [0], ecx
add esp, 0x354
ret 4
call fcn.00403b87
mov ecx, dword [esp + 0x348]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x354
ret 0
Function at 0x402070
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x423cd1
push eax
mov eax, 0x7a14c
mov dword fs:[0], esp
call fcn.0040b370
push ebx
push ebp
mov dword [esp + 0x30], ecx
push esi
push edi
lea ecx, [esp + 0x18]
enter 0xffffffffffffae83, 1
add byte [ebx], dh
fisttp dword [ebp - 0x76d7fbb4]
pushfd
and al, 0x64
mov eax, dword [0x71e80007]
scasb al, byte es:[edi]
add dword [eax], eax
mov eax, dword [esp + 0x7a14c]
push ebx
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x7a130], 1
call fcn.0041d0d5
cmp eax, ebx
je 0x40226d
lea ecx, [esp + 0x14]
push 4
push ecx
lea ecx, [esp + 0x20]
call fcn.0041d1f2
cmp eax, 4
jne 0x40226f
mov eax, dword [esp + 0x14]
mov edx, eax
shl edx, 7
add edx, eax
and edx, 0xaae85202
arpl word [ecx], ax
add byte [ebx + 0xc483f0], cl
cmp esi, ebx
jo 0x40226f
mov eax, dword [esp + 0x14]
mov ecx, eax
inc ecx
loope 0x40211f
add ecx, eax
rol eax, 2
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.0041d1f2
mov ecx, dword [esp + 0x14]
mov edx, ecx
shl edx, 7
add edx, ecx
shl edx, 2
sbb eax, edx
jne 0x40226f
cmp ecx, ebx
jle 0x402219
mov ebp, dword [esp + 0x7a160]
add esi, 0x200
push ebp
lea ecx, [eax + 0x14]
call fcn.004187d9
push 0x42f120
lea ecx, [esp + 0x14]
mov byte [esp + 0x6a168], 2
call 0x418a65
lea eax, [esi - 0x200]
lea ecx, [esp + 0x10]
push eax
call fcn.00418a6d
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004022a0
mov edx, dword [esp + 0x10]
push 0
push 0x1001
push edx
lea ecx, [esp + 0x34]
call fcn.0041d0d5
test eax, eax
je 0x40225e
xor edi, edi
mov eax, dword [esi]
sub eax, edi
cmp eax, 0x7a120
je 0x4021c0
mov eax, 0x7a120
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x20]
call fcn.0041d1f2
test eax, eax
jle 0x40225e
lea ecx, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x30]
add edi, eax
call fcn.0041d22c
cmp edi, dword [esi]
jb 0x4021b0
lea ecx, [esp + 0x28]
call fcn.0041d2f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x7a164], 1
call fcn.0041876b
mov eax, dword [esp + 0x14]
inc ebx
add esi, 0x204
cmp ebx, eax
jl 0x402153
lea ecx, [esp + 0x28]
mov byte [esp + 0x7a164], 0
call fcn.0041d018
lea ecx, [esp + 0x18]
mov dword [esp], 0x7a164
lea ecx, [esp]
inc esi
test byte [esp], ah
and dword [edi], eax
add byte [ecx], al
call fcn.0041876b
add dword [eax], eax
lea ecx, [esp + 8]
mov byte [esp + 0x7a164], 0
call fcn.0040d018
lea ecx, [esp + 0x18]
mov byte [esp + 0x7a164], 0xff
invalid
Function at 0x402393
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x423cf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x2c]
call fcn.004184e0
mov ecx, dword [0x42f214]
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 4], ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x20], 1
cmp dword [eax - 8], esi
jle 0x402352
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi + eax], 0x5c
jno 0x402349
lea edx, [esi + 1]
lea eax, [esp + 0xc]
push edx
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.00417895
push eax
test dword [esp + 0xc], ecx
mov byte [esp + 0x28], 2
call fcn.004188a4
lea eax, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0041876b
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
mov byte [esp + 0x14], cl
push edx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], 0xc
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 8]
inc esi
cmp esi, ecx
jl 0x4022ec
pop edi
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.0041876b
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0041876b
mov ecx, dword [esp + 0x18]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add dword [eax - 0x6ffffb3e], 0xffffff90
nop
nop
nop
nop
nop
nop
sub esp, 0x14
push esi
mov esi, ecx
call fcn.00402450
cmp eax, 2
je 0x4023bc
mov ecx, esi
call fcn.00402450
cmp eax, 4
je 0x4023bc
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x402433
jmp 0x402425
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
inc dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402443
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPriralege
push 0
inc dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
invalid
push 0
push 0
push 0x42f164
call fcn.0041f494
or ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop esi
add esp, 0x14
ret 8