joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403338
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x50b338
jmp 0x40332c
mov eax, 0x4ce3be
call fcn.00493080
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0040346e
mov eax, dword [0x5067a4]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0xa0], eax
push 1
lea ecx, [esi + 0xa8]
pop ebx
mov byte [ebp - 4], bl
call fcn.004b7c5c
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 2
call fcn.00417f69
lea ecx, [esi + 0xe8]
mov byte [ebp - 4], 3
call fcn.00417f69
mov eax, dword [0x5067a4]
mov dword [esi + 0x11c], eax
push 0xa
mov dword [esi], 0x4d62cc
or dword [esi + 0x20], 0xffffffff
or dword [esi + 0x1c], 0xffffffff
pop eax
mov dword [esi + 0x28], edi
push 0x64
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], eax
pop eax
mov dword [esi + 0x24], edi
push 0x50b334
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], 2
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], edi
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], 0x3e8
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], 0xc0
mov dword [esi + 0x84], 0x6c
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x9c], edi
call fcn.004bc122
push 0x50b334
lea ecx, [esi + 0x11c]
mov dword [esi + 0xa4], edi
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
call fcn.004bc122
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x404012
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4ce4fc
call fcn.00493080
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x50b5b0
push str.DataFile_Types
mov ecx, esi
call fcn.004cb79a
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x404048
xor eax, eax
jmp 0x404190
mov eax, dword [0x5067a4]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], ebx
call edi
cmp eax, 0x103
je 0x404160
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4f6d64
push eax
call fcn.004b5f29
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004cb84c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004bc0d2
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004bbf8b
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004cb84c
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004bc0d2
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004bbf8b
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004cb7e0
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x404139
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x404139
cmp eax, 0xffffffff
je 0x404139
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00404292
lea eax, [ebp - 0x38]
inc dword [ebp - 0x20]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24], 0x100
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
jmp 0x404084
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004bbf8b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004bbf8b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004bbf8b
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40bcc6
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push edi
mov ebx, ecx
push eax
push 0
push dword [ebx + 0x1c]
mov edi, 0x4d7828
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push 0
push eax
call fcn.004932e0
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
push 0x4009
lea ecx, [ebp - 0x2bc]
push esi
mov eax, dword [eax]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 0
push 0x1109
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
neg ecx
sbb ecx, ecx
mov dword [ebp - 8], edi
and ecx, eax
call fcn.0040ba62
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c160
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push edi
push esi
lea eax, [ebp - 0x2b4]
push 0
mov edi, ecx
push eax
call fcn.004932e0
mov eax, dword [ebp + 8]
add esp, 0xc
or ax, 0x4008
push eax
lea eax, [ebp - 0x2b4]
push esi
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b0]
pop edi
pop esi
leave
ret 4
Function at 0x40c8b3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4cf2f0
call fcn.00493080
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x34]
xor ebx, ebx
mov eax, dword [esi + 0x1c]
push ecx
mov edi, 0x4d7828
push 0x11
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push ebx
push ebx
push 0x110a
mov dword [ebp - 4], ebx
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.0040ca9f
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x40ca74
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004bbfff
push 0x50b334
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004bbfff
mov eax, dword [0x5067a4]
mov dword [ebp - 0x14], eax
push 0x5c
push 0x2f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004b5831
mov ebx, 0x4f6e1c
lea ecx, [ebp - 0x18]
push ebx
call fcn.004b5f3c
and dword [ebp - 0x20], 0
and dword [ebp + 8], 0
push dword [ebp - 0x1c]
push 2
push 0x1102
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x5c
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push dword [ebp - 0x18]
push eax
call fcn.004bcec5
test eax, eax
je 0x40ca4d
push ebx
lea ecx, [ebp - 0x10]
call fcn.004b5f3c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x40c9b8
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004bc230
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004bc3b8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
jmp 0x40c9da
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004bc2a4
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004bc3b8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004bbf8b
and dword [ebp - 0x2c], 0
push 0
mov byte [ebp - 4], 6
push dword [ebp - 0x10]
mov dword [ebp - 0x30], edi
call fcn.0040b7f4
pop ecx
mov dword [ebp - 0x2c], eax
pop ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov ecx, esi
mov byte [ebp - 4], 7
push eax
call fcn.0040ca9f
test eax, eax
mov dword [ebp - 0x20], eax
je 0x40ca35
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 0x2c]
and ecx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], edi
call fcn.0040ba62
inc dword [ebp + 8]
jmp 0x40c956
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x2c]
neg ecx
sbb ecx, ecx
mov byte [ebp - 4], 3
and ecx, eax
mov dword [ebp - 0x30], edi
call fcn.0040ba62
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004bbf8b
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004bbf8b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004bbf8b
mov ebx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
neg ecx
sbb ecx, ecx
lea eax, [ebp - 0x34]
and ecx, eax
mov dword [ebp - 0x38], edi
call fcn.0040ba62
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40d20f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
push dword [esi + 0x74]
call dword [eax + 0xb8]
xor edi, edi
mov dword [esi + 0x48], edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push 1
push edi
push edi
call ebx
push edi
push 1
push edi
push edi
mov dword [esi + 0x40], eax
call ebx
mov dword [esi + 0x44], eax
lea eax, [ebp - 4]
push eax
push 2
push esi
push 0x40d1b6
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x5c]
cmp eax, edi
jbe 0x40d275
push 0x11
push edi
push dword [esi + 0x40]
push 5
push eax
call dword [0x4d5788]
mov dword [esi + 0x58], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e0eb
Capabilities:
Check os version

Disassembly:
mov eax, 0x4cf48f
call fcn.00493080
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.004bc978
mov eax, dword [0x5067a4]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x4d80d0
jne 0x40e171
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.004932e0
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x40e16a
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x40e171
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00493a9c
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x40e186
call fcn.004b6617
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0040e34b
push eax
call fcn.004932e0
push 0x200002
call fcn.004b8418
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.0040e34b
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040e34b
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0040e34b
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0040e34b
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0040e34b
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0040e34b
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0040e34b
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x40e243
mov ecx, esi
call fcn.0040e34b
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.004cb5f5
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040e34b
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0040e34b
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x40df74
je 0x40e27c
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x40e2bb
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.004bc122
push ebx
mov ecx, edi
call fcn.004bc3d0
push 0x7c
push eax
call fcn.00493a73
pop ecx
cmp eax, ebx
pop ecx
je 0x40e2ae
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x40e298
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0040e34b
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x4162d9
Capabilities:
Hash data with md5

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

Function at 0x4175d4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4cf9f4
call fcn.00493080
push ecx
mov eax, dword [0x5067a4]
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], eax
mov eax, dword [0x5067a4]
and dword [ebp - 4], 0
mov dword [esi + 0x20], eax
mov eax, dword [0x5067a4]
mov dword [esi + 0x24], eax
mov eax, dword [0x5067a4]
mov dword [esi + 0x28], eax
mov eax, dword [0x5067a4]
mov dword [esi + 0x2c], eax
mov eax, dword [0x5067a4]
mov dword [esi + 0x30], eax
mov eax, dword [0x5067a4]
mov dword [esi + 0x34], eax
mov eax, dword [0x5067a4]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], 0x4d8f64
mov dword [esi + 0xc], eax
call fcn.0041a326
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4185fe
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
lea esi, [ecx + 4]
add ecx, 0x14
push esi
xor ebx, ebx
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x418627
or eax, 0xffffffff
jmp 0x41869a
cmp dword [ebp + 0xc], ebx
push edi
je 0x418665
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x10]
je 0x418649
push 0x64
push dword [esi]
call edi
test eax, eax
je 0x41866f
jmp 0x418633
push 0x2710
push dword [esi]
call edi
cmp eax, 0x102
jne 0x41866f
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x41866f
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
pop edi
cmp eax, ebx
je 0x418680
cmp dword [eax], ebx
je 0x418680
push 1
pop eax
jmp 0x41869a
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x419051
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
push esi
jne 0x41907f
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
neg eax
sbb eax, eax
inc eax
jmp 0x4190ce
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4190cc
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4190cc
test esi, esi
jne 0x4190cc
push 1
pop eax
jmp 0x4190ce
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x4190d3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
push dword [ebp + 0xc]
call fcn.004943fc
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
test eax, eax
je 0x41914f
and word [eax], 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41914f
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x105
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x41912c
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x41914f
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x5c
push esi
call fcn.00493cbf
pop ecx
pop ecx
jmp 0x4190f3
push esi
call fcn.00493bd6
pop ecx
push 1
pop eax
pop edi
pop esi
leave
ret 8

Function at 0x41915f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x3ff
lea eax, [ebp - 0x820]
push dword [ebp + 8]
push eax
call fcn.00493338
lea eax, [ebp - 0x820]
push eax
call fcn.0049431d
and word [ebp + eax*2 - 0x81e], 0
push 0x1e
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.004932e0
mov eax, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x4191d2
or eax, 0xffffffff
leave
ret
xor eax, eax
cmp dword [ebp - 0xe], eax
setne al
leave
ret
Function at 0x41983e
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4198a0
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4198a0
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4198a2
xor eax, eax
pop esi
leave
ret

Function at 0x41b4e2
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4d0087
call fcn.00493080
sub esp, 0x808
push ebx
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x812]
mov word [ebp - 0x814], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x814]
push 0x1a
push eax
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
jge 0x41b534
push dword [ebp + 8]
call fcn.0041b3bd
pop ecx
mov eax, dword [ebp + 8]
jmp 0x41b596
push esi
push 0x50b334
lea ecx, [ebp - 0x10]
call fcn.004bbfff
push 1
pop esi
mov dword [ebp - 4], esi
call fcn.004cb5f5
mov eax, dword [eax + 4]
push dword [eax + 0x78]
lea eax, [ebp - 0x814]
push 0x4f6ea0
push eax
lea eax, [ebp - 0x10]
push str._s_s_s
push eax
call fcn.004b5f29
push dword [ebp - 0x10]
call fcn.004196a7
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
call fcn.004bbcf8
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], bl
call fcn.004bbf8b
mov eax, dword [ebp + 8]
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41b64b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4d00f7
call fcn.00493080
sub esp, 0x80c
and word [ebp - 0x818], 0
push ebx
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x816]
rep stosd dword es:[edi], eax
and dword [ebp - 0x18], 0
stosw word es:[edi], ax
lea eax, [ebp - 0x818]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x5067a4]
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004191dc
mov eax, dword [0x5067a4]
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x818]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
push str._s_s
push eax
call fcn.004b5f29
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.004bbcf8
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004bbf8b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004bbf8b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41d609
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004933b0
push ebx
push edi
xor edi, edi
push 0x1001
lea eax, [ebp - 0x1010]
push edi
mov ebx, ecx
push eax
call fcn.004932e0
add esp, 0xc
lea eax, [ebp - 8]
mov ecx, ebx
mov dword [ebp - 8], 0x1001
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.0041d6cd
test eax, eax
jne 0x41d677
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41d67c
or eax, 0xffffffff
jmp 0x41d6a5
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
push 3
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41d69a
or edi, 0xffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 8

Function at 0x41da25
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004933b0
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push 0x50b334
call fcn.004bc122
xor esi, esi
push 0x1001
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.004932e0
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
push eax
push esi
push 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41da88
or eax, 0xffffffff
jmp 0x41dae2
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1001
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp + 8]
push eax
push esi
push esi
mov dword [ebp + 8], 3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
test eax, eax
je 0x41dabf
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41da83
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x41da83
push dword [ebp + 0xc]
lea eax, [ebp - 0x1010]
mov ecx, ebx
push dword [ebp - 4]
push eax
call fcn.0041dae8
neg eax
sbb eax, eax
pop esi
pop ebx
leave
ret 8
Function at 0x41f0a1
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4d05bc
call fcn.00493080
sub esp, 0x830
and word [ebp - 0x83c], 0
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x83a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x83c]
push 0x3ff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x83c]
lea ecx, [ebp - 0x14]
push eax
call fcn.004bbfff
and dword [ebp - 4], 0
push str._bootstat.dat
lea ecx, [ebp - 0x14]
call fcn.004bc37c
push 0x24
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004932e0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.004b672d
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
call fcn.004947d7
pop ecx
test eax, eax
pop ecx
jne 0x41f145
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, esp
mov esi, eax
mov dword [ebp - 0x18], esp
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
call fcn.0041f169
test eax, eax
je 0x41f145
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov dword [esi], eax
call fcn.004bbf8b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret