joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ec8c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
xor edx, edx
mov ecx, edx
mov edi, dword [esi + 0x154]
test edi, edi
je 0x49ecc8
test dl, dl
jne 0x49ecaf
test byte [edi + 0x8c], 0x10
setne dl
test cl, cl
jne 0x49ecbd
test byte [edi + 0x8d], 0x10
setne cl
test cl, dl
jne 0x49ecc8
mov edi, dword [edi + 0x30]
test edi, edi
jne 0x49eca1
test dl, dl
jne 0x49ecd9
test byte [esi + 0xd4], 0x10
jne 0x49ecd9
xor eax, eax
jmp 0x49ecdb
mov al, 1
test cl, cl
jne 0x49ecec
test byte [esi + 0xd5], 0x10
jne 0x49ecec
xor ebx, ebx
jmp 0x49ecee
mov bl, 1
mov byte [esp], bl
mov edi, dword [esi + 0x154]
test edi, edi
je 0x49ede3
mov ebp, dword [edi + 0x8c]
mov ebx, ebp
and ebx, 0x1f
sub ebx, 2
je 0x49ed16
sub ebx, 2
je 0x49ed3c
jmp 0x49ed60
test al, al
jne 0x49ed30
or ebp, 0x400000
or ebp, 0x200000
mov dword [edi + 0x8c], ebp
mov dl, 1
jmp 0x49ed60
and dword [edi + 0x8c], 0xff9fffff
jmp 0x49ed60
test al, al
je 0x49ed56
or ebp, 0x400000
or ebp, 0x200000
mov dword [edi + 0x8c], ebp
mov dl, 1
jmp 0x49ed60
and dword [edi + 0x8c], 0xff9fffff
mov ebx, dword [edi + 0x8c]
and ebx, 0x1f00
sub ebx, 0x200
je 0x49ed7e
sub ebx, 0x200
je 0x49edac
jmp 0x49edd8
cmp byte [esp], 0
jne 0x49eda0
mov ecx, dword [edi + 0x8c]
or ecx, 0x40000000
or ecx, 0x20000000
mov dword [edi + 0x8c], ecx
mov cl, 1
jmp 0x49edd8
and dword [edi + 0x8c], 0x9fffffff
jmp 0x49edd8
cmp byte [esp], 0
je 0x49edce
mov ecx, dword [edi + 0x8c]
or ecx, 0x40000000
or ecx, 0x20000000
mov dword [edi + 0x8c], ecx
mov cl, 1
jmp 0x49edd8
and dword [edi + 0x8c], 0x9fffffff
mov edi, dword [edi + 0x30]
test edi, edi
jne 0x49ecff
test dl, dl
je 0x49ee01
mov edx, dword [esi + 0xd4]
or edx, 0x400000
or edx, 0x100000
mov dword [esi + 0xd4], edx
jmp 0x49ee0b
and dword [esi + 0xd4], 0xffafffff
mov edx, dword [esi + 0xd4]
mov ebx, edx
and ebx, 0x1f
sub ebx, 2
je 0x49ee22
sub ebx, 2
je 0x49ee3d
jmp 0x49ee56
test al, al
jne 0x49ee34
or edx, 0x20
or edx, 0x40
mov dword [esi + 0xd4], edx
jmp 0x49ee56
and dword [esi + 0xd4], 0xffffff9f
jmp 0x49ee56
test al, al
je 0x49ee4f
or edx, 0x20
or edx, 0x40
mov dword [esi + 0xd4], edx
jmp 0x49ee56
and dword [esi + 0xd4], 0xffffff9f
test cl, cl
je 0x49ee72
mov eax, dword [esi + 0xd4]
or eax, 0x40000000
or eax, 0x10000000
mov dword [esi + 0xd4], eax
jmp 0x49ee7c
and dword [esi + 0xd4], 0xafffffff
mov eax, dword [esi + 0xd4]
mov edx, eax
and edx, 0x1f00
sub edx, 0x200
je 0x49ee9c
sub edx, 0x200
je 0x49eec0
jmp 0x49eee2
cmp byte [esp], 0
jne 0x49eeb4
or eax, 0x2000
or eax, 0x4000
mov dword [esi + 0xd4], eax
jmp 0x49eee2
and dword [esi + 0xd4], 0xffff9fff
jmp 0x49eee2
cmp byte [esp], 0
je 0x49eed8
or eax, 0x2000
or eax, 0x4000
mov dword [esi + 0xd4], eax
jmp 0x49eee2
and dword [esi + 0xd4], 0xffff9fff
mov edi, dword [esi + 0x14c]
mov eax, edi
call fcn.00493d30
mov ebx, dword [edi + 0x20]
test ebx, ebx
jle 0x49ef0d
dec ebx
mov edx, ebx
mov eax, edi
call fcn.004944a4
mov edx, dword [eax]
mov eax, esi
call fcn.0049e97c
test ebx, ebx
jne 0x49eef6
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4aaf10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4aaf5c
cmp dword [ebp - 0x84], 2
jne 0x4aaf5c
cmp dword [ebp - 0x90], 5
ja 0x4aaf5a
cmp dword [ebp - 0x90], 5
jne 0x4aaf5c
cmp dword [ebp - 0x8c], 1
jb 0x4aaf5c
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b0a70
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x5064c0
mov eax, esi
mov edx, 8
test al, 1
je 0x4b0a8c
shr eax, 1
xor eax, 0xedb88320
jmp 0x4b0a8e
shr eax, 1
dec edx
jne 0x4b0a7f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4b0a78
pop esi
ret

Function at 0x4b0aa4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x5064bc], 0
jne 0x4b0ac7
call fcn.004b0a70
push 1
push 0x5064bc
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4b0af2
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x5064c0]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4b0acd
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4b1668
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405300
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jle 0x4b170a
mov eax, ebx
call fcn.00402ea0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b1703
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4b16ed
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4b172c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4b16ed
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1721
mov eax, dword [ebp - 0x10]
call fcn.00402ebc
ret
mov eax, dword [0x5004f0]
cmp dword [eax], 1
je 0x4b1721
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004b148c
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1910
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004b18c4
test al, al
jne 0x4b1931
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4b197f
xor eax, eax
push ebp
push 0x4b196f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.00405300
push eax
call sub.kernel32.dll_CreateDirectoryA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1976
lea eax, [ebp - 0xc]
call fcn.004b1900
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b1988
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004b18c4
test al, al
jne 0x4b19ac
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4b1a12
xor eax, eax
push ebp
push 0x4b1a02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
push edi
push esi
call sub.kernel32.dll_CreateProcessA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1a09
lea eax, [ebp - 0xc]
call fcn.004b1900
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x4b1a20
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004b18c4
test al, al
jne 0x4b1a44
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4b1a9c
xor eax, eax
push ebp
push 0x4b1a8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.00405300
push eax
mov eax, esi
call fcn.00405300
push eax
call sub.kernel32.dll_CopyFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1a93
lea eax, [ebp - 0xc]
call fcn.004b1900
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b1aa8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004b18c4
test al, al
jne 0x4b1ac9
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4b1b15
xor eax, eax
push ebp
push 0x4b1b05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405300
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1b0c
lea eax, [ebp - 0xc]
call fcn.004b1900
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b1c80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004b18c4
test al, al
jne 0x4b1ca3
mov dword [ebp - 4], 0xffffffff
jmp 0x4b1cef
xor eax, eax
push ebp
push 0x4b1cdf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405300
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1ce6
lea eax, [ebp - 0xc]
call fcn.004b1900
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b1e24
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004b18c4
test al, al
jne 0x4b1e48
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4b1e9c
xor eax, eax
push ebp
push 0x4b1e8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00405300
push eax
mov eax, esi
call fcn.00405300
push eax
call sub.kernel32.dll_MoveFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1e93
lea eax, [ebp - 0xc]
call fcn.004b1900
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b1ea8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
test edi, edi
jne 0x4b1ecb
test esi, 4
je 0x4b1ecb
xor edi, edi
jmp 0x4b1ed4
mov eax, edi
call fcn.00405300
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004b18c4
test al, al
jne 0x4b1ee9
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4b1f38
xor eax, eax
push ebp
push 0x4b1f28
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
call sub.kernel32.dll_MoveFileExA
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1f2f
lea eax, [ebp - 0x10]
call fcn.004b1900
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b1fb4
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004b18c4
test al, al
jne 0x4b1fd5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4b2021
xor eax, eax
push ebp
push 0x4b2011
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405300
push eax
call sub.kernel32.dll_RemoveDirectoryA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2018
lea eax, [ebp - 0xc]
call fcn.004b1900
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b202c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004b18c4
test al, al
jne 0x4b2050
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4b209d
xor eax, eax
push ebp
push 0x4b208d
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, esi
call fcn.00405300
push eax
call sub.kernel32.dll_SetFileAttributesA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2094
lea eax, [ebp - 0xc]
call fcn.004b1900
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b2b20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4b2b28
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4b2c15
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00470334
mov edx, dword [ebp - 8]
mov ecx, 0x4b2c2c
xor eax, eax
call fcn.004b28a0
push 0
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4b2be3
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4b2b42
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.004b10a8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00409e7c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.004710f4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.004b1078
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4087b8]
call fcn.0040dac4
call fcn.0040489c
jmp 0x4b2b42
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404ec4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2c1c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404e94
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404e94
ret
Function at 0x4b41d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
call fcn.004052f0
xor eax, eax
push ebp
push 0x4b42ac
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x4b4209
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.0046f26c
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403544
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x4b4234
mov eax, ebx
call fcn.00405300
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.00405300
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.00405300
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x18], 0
je 0x4b425a
mov eax, dword [ebp + 0x18]
call fcn.00405300
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4b427c
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x4b4296
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x4b4296
push esi
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ebp + 0x14]
call fcn.004b3eb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b42b3
lea eax, [ebp + 0x18]
call fcn.00404e70
ret

Function at 0x4b44a0
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4b44ce
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.004050e0
jmp 0x4b44d5
mov eax, ebx
call fcn.00404e70
add esp, 0x14
pop ebx
ret

Function at 0x4b44dc
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4b450d
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.004050e0
jmp 0x4b4514
mov eax, ebx
call fcn.00404e70
add esp, 0x108
pop ebx
ret

Function at 0x4b4524
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x5004f0]
cmp dword [eax], 2
jne 0x4b458c
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4b4547
xor eax, eax
jmp 0x4b459b
lea eax, [esp + 8]
push eax
push 0x4b45a0
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4b458c
xor eax, eax
jmp 0x4b459b
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x4b45b4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4b460e
inc esi
xor edi, edi
cmp edi, 1
jne 0x4b45da
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x4b45e8
cmp edi, 1
jle 0x4b45e8
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004b1aa8
test eax, eax
jne 0x4b460e
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4b460e
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4b460e
inc edi
dec esi
jne 0x4b45ca
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4b4ce8
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
push 0
push 2
lea eax, [esp + 8]
push eax
call fcn.0047053c
and eax, 0x7f
mov ecx, dword [eax*4 + 0x4ff614]
mov edx, 0x80000002
xor eax, eax
call fcn.00470770
test eax, eax
jne 0x4b4d32
mov eax, esi
call fcn.00405300
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
call fcn.00405300
push eax
call sub.gdi32.dll_RemoveFontResourceA
test eax, eax
je 0x4b4d53
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageA
pop edx
pop esi
pop ebx
ret
Function at 0x4b4d58
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov edi, ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4b4e93
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b4ea8
push 0x4b4ebc
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
lea edx, [ebp - 0xc]
movzx eax, byte [ebp - 1]
call fcn.004b18c4
test al, al
jne 0x4b4db4
mov byte [ebp - 2], 0
jmp 0x4b4e78
xor eax, eax
push ebp
push 0x4b4e71
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4b4ded
push 0
mov eax, dword [ebp + 8]
push eax
push edi
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.0046ee20
mov eax, dword [ebp - 0x20]
call fcn.00405300
push eax
call ebx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
jmp 0x4b4e5b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x2c]
mov eax, esi
call fcn.0046f1c8
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0046f294
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0046ee20
mov eax, dword [ebp - 0x24]
call fcn.00405300
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x4b4e5b
mov ecx, edi
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.004759e0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.004759e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4e78
lea eax, [ebp - 0xc]
call fcn.004b1900
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4e9a
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404e94
ret
Function at 0x4b7788
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, edx
mov esi, eax
cmp byte [esi + 4], 0
je 0x4b7862
mov byte [esi + 5], 1
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x4b7870
call fcn.004b66a4
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4b77e0
mov eax, 0x4b78a4
call fcn.004b6478
push 1
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_TerminateProcess
push 0x2710
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4b77cb
push esp
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x4b7833
cmp dword [esp], 0
jne 0x4b7815
mov eax, 0x4b78d4
call fcn.004b6478
jmp 0x4b783d
mov eax, dword [esp]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x4b78f4
call fcn.004b66a4
jmp 0x4b783d
mov eax, 0x4b792c
call fcn.004b6478
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov byte [esi + 4], 0
test bl, bl
je 0x4b7862
push 0xfa
call sub.kernel32.dll_Sleep_1
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x4b7960
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b7b9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
inc dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ecx
xor eax, eax
lea ebx, [eax + 0xc]
add ebx, ecx
xor edx, edx
push ebp
push 0x4b7b43
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b79d5
mov eax, 0x4b7bb8
call fcn.004b2594
xor edx, edx
push ebp
push 0x4b7ad8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x14
call fcn.00403544
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push 0x14
mov eax, dword [ebp - 4]
add eax, 0x4034
push eax
push ebx
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_TransactNamedPipe
test eax, eax
jne 0x4b7ac1
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x4b7a3d
mov eax, 0x4b7bcc
call fcn.004b2594
xor edx, edx
push ebp
push 0x4b7aaa
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 8], 0
je 0x4b7a7d
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x4b7a7d
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4b7a5b
pop dword fs:[0]
add esp, 8
push 0x4b7ab1
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetOverlappedResult
mov ebx, eax
call sub.kernel32.dll_GetLastError
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7adf
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret