joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a08a4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004050d8
xor eax, eax
push ebp
push 0x4a0967
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.004a0498
mov esi, eax
test esi, esi
jle 0x4a094c
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405148
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 8]
call fcn.004050e8
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4a094c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ef0
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00405148
mov eax, dword [ebp - 8]
call fcn.004050e8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a096e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c40
ret

Function at 0x4a187c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x9c], 1
je 0x4a194b
xor eax, eax
push ebp
push 0x4a1941
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
push 0x4a1954
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
call sub.advapi32.dll_AdjustTokenPrivileges
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
jmp 0x4a194b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1dd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004050d8
xor eax, eax
push ebp
push 0x4a1e1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004a1828
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1e24
lea eax, [ebp - 4]
call fcn.00404c1c
ret

Function at 0x4a216c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004050d8
xor eax, eax
push ebp
push 0x4a222d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4a220b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.00403404
lea eax, [ebp - 0x122]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403404
lea eax, [ebp - 0x122]
mov edx, dword [ebp - 4]
call fcn.0040b3ec
xor eax, eax
mov dword [ebp - 0x22], eax
lea eax, [ebp - 0x122]
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x1e], 3
mov word [ebp - 0x12], 0x40
or word [ebp - 0x12], 0x10
or word [ebp - 0x12], 4
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a2217
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2234
lea eax, [ebp - 4]
call fcn.00404c1c
ret
Function at 0x4a27d8
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
mov ebx, edx
mov edx, ebx
or eax, 0xffffffff
call fcn.0040a9f8
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4a28f9
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x4a2888
dec ecx
jne 0x4a28ed
cmp eax, 4
jg 0x4a282c
mov edx, ebx
mov eax, 4
call fcn.0040a9f8
jmp 0x4a2903
cmp eax, 5
jne 0x4a2846
test edx, edx
jne 0x4a2846
mov edx, ebx
mov eax, 5
call fcn.0040a9f8
jmp 0x4a2903
cmp eax, 5
jne 0x4a2861
cmp edx, 1
jne 0x4a2861
mov edx, ebx
mov eax, 6
call fcn.0040a9f8
jmp 0x4a2903
cmp eax, 5
jle 0x4a287a
dec edx
jge 0x4a287a
mov edx, ebx
mov eax, 7
call fcn.0040a9f8
jmp 0x4a2903
mov edx, ebx
mov eax, 8
call fcn.0040a9f8
jmp 0x4a2903
cmp eax, 4
jne 0x4a289c
test edx, edx
jne 0x4a289c
mov edx, ebx
xor eax, eax
call fcn.0040a9f8
jmp 0x4a2903
cmp eax, 4
jne 0x4a28c9
cmp edx, 0xa
jne 0x4a28c9
cmp byte [esp + 0x15], 0x41
jne 0x4a28bb
mov edx, ebx
mov eax, 2
call fcn.0040a9f8
jmp 0x4a2903
mov edx, ebx
mov eax, 1
call fcn.0040a9f8
jmp 0x4a2903
cmp eax, 4
jne 0x4a28e1
cmp edx, 0x5a
jne 0x4a28e1
mov edx, ebx
mov eax, 3
call fcn.0040a9f8
jmp 0x4a2903
mov edx, ebx
or eax, 0xffffffff
call fcn.0040a9f8
jmp 0x4a2903
mov edx, ebx
or eax, 0xffffffff
call fcn.0040a9f8
jmp 0x4a2903
mov edx, ebx
or eax, 0xffffffff
call fcn.0040a9f8
add esp, 0x94
pop ebx
ret

Function at 0x4a2c98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov ebx, edx
xor eax, eax
push ebp
push 0x4a2d35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4acae0]
call fcn.004029f0
mov esi, eax
mov eax, dword [0x4acae0]
push eax
push esi
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esi
call fcn.00404e0c
lea edx, [ebp - 4]
mov eax, dword [ebx]
call fcn.0040e4c8
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404c70
mov edx, dword [ebx]
lea eax, [ebp - 8]
mov ecx, 0x4a2d4c
call fcn.00404f3c
mov eax, dword [ebp - 8]
call fcn.0040ad20
test al, al
je 0x4a2d0d
mov eax, ebx
mov edx, 0x4a2d4c
call fcn.00404ef8
mov edx, dword [0x4acae0]
mov eax, esi
call fcn.00402a10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2d3c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404c40
ret
Function at 0x4a2f20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4a3095
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404c1c
xor eax, eax
push ebp
push 0x4a3068
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404ef0
dec eax
jge 0x4a2f6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a307a
cmp byte [ebx], 0x25
jne 0x4a3054
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.00404ef0
mov ecx, eax
dec ecx
mov edx, 2
mov eax, ebx
call fcn.00405148
mov edx, dword [ebp - 8]
mov eax, 0x4a30ac
call fcn.0040522c
mov esi, eax
test esi, esi
jg 0x4a2faf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a307a
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405148
cmp dword [ebp - 8], 0
jne 0x4a2fd6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a307a
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004050e8
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov edi, eax
test edi, edi
jle 0x4a304a
mov edx, edi
dec edx
mov eax, dword [ebp - 4]
call fcn.00405274
push edi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004050e8
push eax
mov eax, dword [ebp - 8]
call fcn.004050e8
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, ebx
call fcn.00404ef0
lea edi, [esi + 2]
cmp eax, edi
jl 0x4a305e
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.00404ef0
mov ecx, eax
sub ecx, esi
dec ecx
mov edx, edi
mov eax, ebx
call fcn.00405148
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00404ef8
mov eax, dword [ebp - 4]
jmp 0x4a305e
mov eax, dword [ebp - 4]
call fcn.00404c1c
jmp 0x4a305e
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.00404c70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a307a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a309c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404c40
ret

Function at 0x4a34f0
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov ebx, edx
push 0x4a3560
call sub.kernel32.dll_GetModuleHandleA_2
push 0x4a3570
push eax
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
push ebx
push 0
push 0x3a
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x4a3555
push esp
push 0
push edi
push esi
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov esi, eax
test esi, esi
je 0x4a354f
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
lea eax, [esp + 4]
push eax
push esi
call sub.kernel32.dll_GetExitCodeThread
push esi
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 4]
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4a36cc
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffcc
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4a36ee
mov eax, 0xfffffffe
jmp 0x4a3765
lea eax, [esp + 8]
push eax
push 0x4a376c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4a3710
mov eax, 0xfffffffd
jmp 0x4a3765
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 2
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
push 0x10
lea eax, [esp + 0x20]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4a3763
mov eax, 0xfffffffc
jmp 0x4a3765
xor eax, eax
add esp, 0x34
ret
Function at 0x4a5288
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a54f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x319], 0
xor ebx, ebx
mov eax, dword [ebp - 8]
call fcn.0040ad10
test al, al
je 0x4a54c3
mov eax, dword [ebp - 8]
call fcn.0040aca8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
call fcn.004050e8
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0x28], eax
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push 0x40
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x415c5c]
call fcn.0041a754
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a539a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.0041a278
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00404cb4
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00405274
cmp dword [ebp - 0x14], 0
jne 0x4a5361
cmp dword [ebp - 0x18], 0
jbe 0x4a537a
jmp 0x4a5363
jle 0x4a537a
lea eax, [ebp - 0x1c]
call fcn.00405140
mov edx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 8]
jmp 0x4a5384
call fcn.004046a4
jmp 0x4a54c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a53a1
mov eax, dword [ebp - 0x10]
call fcn.00403d68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a54ff
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.00404c40
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404c40
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404c40
ret
Function at 0x4a6e30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a6fa4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x85]
push eax
push 0x81
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x4a6f86
cmp eax, 0x81
jbe 0x4a6eac
lea edx, [ebp - 0x8c]
mov eax, 0xe
call fcn.0040d16c
mov ecx, dword [ebp - 0x8c]
mov dl, 1
mov eax, dword [0x4097c0]
call fcn.0040d960
call fcn.004045f8
lea edi, [ebp - 0x85]
jmp 0x4a6f4d
test bl, bl
je 0x4a6f00
push edi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4a6f4a
mov dl, byte [edi]
mov eax, dword [ebp - 4]
call fcn.004a6d84
test al, al
je 0x4a6f4a
push dword [esi]
lea eax, [ebp - 0x90]
mov edx, edi
call fcn.00404e0c
push dword [ebp - 0x90]
push 0x4a6fbc
mov eax, esi
mov edx, 3
call fcn.00404fb0
jmp 0x4a6f4a
push edi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x4a6f16
push edi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4a6f4a
mov dl, byte [edi]
mov eax, dword [ebp - 4]
call fcn.004a6d84
test al, al
je 0x4a6f4a
push dword [esi]
lea eax, [ebp - 0x94]
mov edx, edi
call fcn.00404e0c
push dword [ebp - 0x94]
push 0x4a6fbc
mov eax, esi
mov edx, 3
call fcn.00404fb0
add edi, 4
cmp byte [edi], 0
jne 0x4a6eb7
mov eax, dword [esi]
call fcn.00404ef0
test eax, eax
jle 0x4a6f86
mov eax, dword [esi]
call fcn.00404ef0
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x3b
jne 0x4a6f86
mov eax, dword [esi]
call fcn.00404ef0
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.00405188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6fab
lea eax, [ebp - 0x94]
mov edx, 3
call fcn.00404c40
ret

Function at 0x4a6fc0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0x80
mov eax, esi
call fcn.004050e8
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, esi
call fcn.0040ae10
test al, al
je 0x4a6fed
mov byte [ebx + 0x318], 1
pop esi
pop ebx
ret
mov byte [ebx + 0x318], 0
pop esi
pop ebx
ret

Function at 0x4a8028
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, edx
mov eax, dword [0x4acff4]
cmp dword [eax], 2
jne 0x4a80a2
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4a80a2
lea eax, [esp + 0xc]
push eax
push 0x4a80b8
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
mov edx, 0x10
xor ecx, ecx
mov dword [esp + 4], ecx
test al, al
je 0x4a80a2
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x28
pop ebx
ret
Function at 0x4a8fac
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov eax, dword [0x4acff4]
cmp dword [eax], 2
je 0x4a8fc5
mov byte [esp], 1
jmp 0x4a909a
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4a9003
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4a9003
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4a909a
mov eax, 0x400
call fcn.004029f0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x4a9093
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4acbf8
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4a9089
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4a9085
mov byte [esp], 1
jmp 0x4a9089
inc edi
dec ebx
jne 0x4a906c
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402a10
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00416d10
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4010d9
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x4010a5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40107e
cmp word [esp + 0x118], 4
jb 0x4010d9
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041492b
add esp, 0x120
ret
cmp eax, 2
jae 0x401088
cmp eax, 1
jne 0x4010d9
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041492b
add esp, 0x120
ret
cmp eax, 6
jne 0x4010d9
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4010cf
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041492b
add esp, 0x120
ret
cmp eax, 1
jne 0x4010d9
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041492b
add esp, 0x120
ret
Function at 0x401ca0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416d10
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401d6f
mov eax, 0x42eae0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401ce5
sub eax, edx
sar eax, 1
je 0x401d6f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42eae0
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0041493a
push 0x42eb14
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00414e8b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401d6f
push eax
push 1
push 0x200
push esi
call fcn.0041517e
mov eax, dword [esp + 0x14]
push eax
call fcn.00415212
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041492b
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041492b
add esp, 0x214
ret

Function at 0x401d90
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416d10
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401e95
mov eax, 0x42eafc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401dd5
sub eax, edx
sar eax, 1
je 0x401e95
cmp dword [0x434fbc], 3
jne 0x401e1c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42eb1c
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0041493a
add esp, 0xc
jmp 0x401e2c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42eafc
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0041493a
push 0x42eb20
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00414e8b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401e95
push eax
push 1
push 0x200
push esi
call fcn.0041517e
mov edx, dword [esp + 0x14]
push edx
call fcn.00415212
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041492b
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041492b
add esp, 0x214
ret
Function at 0x401eb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00416d10
add esp, 0xc
cmp dword [0x434fbc], 3
jne 0x401f10
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42eb28
lea eax, [esp + 4]
push 0x104
push eax
call fcn.0041493a
add esp, 0xc
jmp 0x401f1f
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x42eb2c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0041492b
add esp, 0x20c
ret

Function at 0x4020f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00416d10
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00402340
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00402450
cmp eax, 0xffffffff
jne 0x402172
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041492b
add esp, 0x218
ret
push esi
call fcn.00402020
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.0041492b
add esp, 0x218
ret