joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489054
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
lea edi, [ebp - 0xd]
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x489204
inc esi
mov eax, dword [ebp + 8]
push eax
mov eax, edi
mov edx, 5
call fcn.00487c68
pop ecx
test al, al
jne 0x48909b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00489338
xor ebx, ebx
jmp 0x489204
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [edi]
ja 0x4890b9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.00489338
xor ebx, ebx
jmp 0x489204
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.0049ffcc
test eax, eax
jne 0x4890f0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.00489338
xor ebx, ebx
jmp 0x489204
test byte [edi + 4], 1
je 0x4891fd
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.00487c68
pop ecx
test al, al
jne 0x489124
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00489338
xor ebx, ebx
jmp 0x489204
mov edx, dword [0x4852a0]
mov eax, 0xc
call fcn.0040766c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4891cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00405d30
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00405ac4
mov edx, dword [ebp - 4]
call fcn.00487c68
pop ecx
test al, al
jne 0x489192
mov edx, dword [0x4852a0]
mov eax, dword [ebp - 8]
call fcn.00407680
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00489338
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x489204
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00482968
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.00482d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4891fd
dec esi
jne 0x489072
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a4d80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ebx, ebx
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4a4dcc
cmp dword [ebp - 0x104], 2
jne 0x4a4dcc
cmp dword [ebp - 0x110], 5
ja 0x4a4dca
cmp dword [ebp - 0x110], 5
jne 0x4a4dcc
cmp dword [ebp - 0x10c], 1
jb 0x4a4dcc
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ab098
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x50c438
mov eax, esi
mov edx, 8
test al, 1
je 0x4ab0b4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4ab0b6
shr eax, 1
dec edx
jne 0x4ab0a7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4ab0a0
pop esi
ret

Function at 0x4ab0cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x50c434], 0
jne 0x4ab0ef
call fcn.004ab098
push 1
push 0x50c434
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4ab11a
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x50c438]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4ab0f5
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4abc84
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
ret

Function at 0x4ac970
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.004064d4
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jle 0x4aca12
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4aca0b
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_GetFileVersionInfoW
test eax, eax
je 0x4ac9f5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4aca34
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4ac9f5
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 0x4aca29
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
mov eax, dword [0x506074]
cmp dword [eax], 1
je 0x4aca29
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004ac794
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4acc3c
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.004acbf0
test al, al
jne 0x4acc5d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4accab
xor eax, eax
push ebp
push 0x4acc9b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
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 0x4acca2
lea eax, [ebp - 0xc]
call fcn.004acc2c
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4accb4
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.004acbf0
test al, al
jne 0x4accd8
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4acd3e
xor eax, eax
push ebp
push 0x4acd2e
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_CreateProcessW
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 0x4acd35
lea eax, [ebp - 0xc]
call fcn.004acc2c
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x4acd4c
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.004acbf0
test al, al
jne 0x4acd70
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4acdc8
xor eax, eax
push ebp
push 0x4acdb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.004064d4
push eax
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CopyFileW
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 0x4acdbf
lea eax, [ebp - 0xc]
call fcn.004acc2c
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4acdd4
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.004acbf0
test al, al
jne 0x4acdf5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ace41
xor eax, eax
push ebp
push 0x4ace31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
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 0x4ace38
lea eax, [ebp - 0xc]
call fcn.004acc2c
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4acfac
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.004acbf0
test al, al
jne 0x4acfcf
mov dword [ebp - 4], 0xffffffff
jmp 0x4ad01b
xor eax, eax
push ebp
push 0x4ad00b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
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 0x4ad012
lea eax, [ebp - 0xc]
call fcn.004acc2c
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ad150
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.004acbf0
test al, al
jne 0x4ad174
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ad1c8
xor eax, eax
push ebp
push 0x4ad1b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004064d4
push eax
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileW
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 0x4ad1bf
lea eax, [ebp - 0xc]
call fcn.004acc2c
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ad1d4
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 0x4ad1f7
test esi, 4
je 0x4ad1f7
xor edi, edi
jmp 0x4ad200
mov eax, edi
call fcn.004064d4
mov edi, eax
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004acbf0
test al, al
jne 0x4ad215
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4ad264
xor eax, eax
push ebp
push 0x4ad254
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileExW
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 0x4ad25b
lea eax, [ebp - 0x10]
call fcn.004acc2c
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ad2e0
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.004acbf0
test al, al
jne 0x4ad301
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ad34d
xor eax, eax
push ebp
push 0x4ad33d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_RemoveDirectoryW
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 0x4ad344
lea eax, [ebp - 0xc]
call fcn.004acc2c
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ad358
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.004acbf0
test al, al
jne 0x4ad37c
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ad3c9
xor eax, eax
push ebp
push 0x4ad3b9
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_SetFileAttributesW
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 0x4ad3c0
lea eax, [ebp - 0xc]
call fcn.004acc2c
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4adf0c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4adf14
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4ae001
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0047f7f4
mov edx, dword [ebp - 8]
mov ecx, 0x4ae01c
xor eax, eax
call fcn.004adc74
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4adfcf
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4adf2e
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.004ab7d4
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.0040d088
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.004807a8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.004ab7a4
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40aa28]
call fcn.0041185c
call fcn.00404a74
jmp 0x4adf2e
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae008
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret
Function at 0x4af9a0
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.00406430
xor eax, eax
push ebp
push 0x4afa84
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x4af9e7
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.0047e698
cmp dword [ebp + 0x18], 0
jne 0x4af9e7
lea eax, [ebp + 0x18]
call fcn.0047f66c
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403540
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x4afa12
mov eax, ebx
call fcn.004064d4
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.004064d4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.004064d4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
call fcn.004064d4
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_ShellExecuteExW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4afa54
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x4afa6e
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x4afa6e
push esi
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ebp + 0x14]
call fcn.004af640
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afa8b
lea eax, [ebp + 0x18]
call fcn.00406438
ret

Function at 0x4afcbc
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4afcea
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.00406640
jmp 0x4afcf3
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x24
pop ebx
ret

Function at 0x4afcf8
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x4afd29
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.00406640
jmp 0x4afd32
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x208
pop ebx
ret

Function at 0x4afd44
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x506074]
cmp dword [eax], 2
jne 0x4afdac
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4afd67
xor eax, eax
jmp 0x4afdbb
lea eax, [esp + 8]
push eax
push 0x4afdc0
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
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 0x4afdac
xor eax, eax
jmp 0x4afdbb
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x4afde8
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 0x4afe42
inc esi
xor edi, edi
cmp edi, 1
jne 0x4afe0e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x4afe1c
cmp edi, 1
jle 0x4afe1c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004acdd4
test eax, eax
jne 0x4afe42
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4afe42
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4afe42
inc edi
dec esi
jne 0x4afdfe
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4b06a0
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.0047fa1c
and eax, 0x7f
mov ecx, dword [eax*4 + 0x50530c]
mov edx, 0x80000002
xor eax, eax
call fcn.0047fc4c
test eax, eax
jne 0x4b06ea
mov eax, esi
call fcn.004064d4
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
call fcn.004064d4
push eax
call sub.gdi32.dll_RemoveFontResourceW
test eax, eax
je 0x4b070b
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
pop edx
pop esi
pop ebx
ret
Function at 0x4b0710
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4b0859
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b0870
push 0x4b0898
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov ebx, eax
lea edx, [ebp - 0xc]
movzx eax, byte [ebp - 1]
call fcn.004acbf0
test al, al
jne 0x4b076f
mov byte [ebp - 2], 0
jmp 0x4b083e
xor eax, eax
push ebp
push 0x4b0837
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4b07b3
push 0
mov eax, dword [ebp + 8]
push eax
push edi
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.0047e5e8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0047e1bc
mov eax, dword [ebp - 0x20]
call fcn.004064d4
push eax
call ebx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
jmp 0x4b0821
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 - 0x30]
mov eax, esi
call fcn.0047e5e8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0047e6c0
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0047e1bc
mov eax, dword [ebp - 0x28]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x4b0821
mov ecx, edi
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00481890
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00481890
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b083e
lea eax, [ebp - 0xc]
call fcn.004acc2c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0860
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00406440
ret

Function at 0x4b0a44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4b0a68
mov eax, dword [ebp - 4]
jmp 0x4b0a6b
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x4b0a70
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4b0abd
xor ebx, ebx
jmp 0x4b0ab2
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.0040c178
test eax, eax
jne 0x4b0ab1
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4b0b67
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b0a93
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4b0ac9
je 0x4b0ad2
jmp 0x4b0adb
call fcn.00480228
mov esi, eax
jmp 0x4b0add
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4b0add
xor esi, esi
test si, si
je 0x4b0b67
xor ebx, ebx
jmp 0x4b0b03
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4b0b02
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4b0b67
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b0aea
xor ebx, ebx
jmp 0x4b0b5c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x4b0b5b
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x4b0b50
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004b0a44
push eax
mov eax, esi
call fcn.004b0a44
pop edx
cmp edx, eax
jne 0x4b0b5b
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4b0b67
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4b0b12
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4b38d0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, edx
mov esi, eax
cmp byte [esi + 4], 0
je 0x4b39aa
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, 0x4b39bc
call fcn.004b2ae4
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4b3928
mov eax, 0x4b3a1c
call fcn.004b2860
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 0x4b3913
push esp
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x4b397b
cmp dword [esp], 0
jne 0x4b395d
mov eax, 0x4b3a74
call fcn.004b2860
jmp 0x4b3985
mov eax, dword [esp]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x4b3ab0
call fcn.004b2ae4
jmp 0x4b3985
mov eax, 0x4b3b18
call fcn.004b2860
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
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 0x4b39aa
push 0xfa
call sub.kernel32.dll_Sleep_1
add esp, 0xc
pop esi
pop ebx
ret