joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f0ef
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x5432a6
call fcn.004c7c10
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi + 8]
lea ecx, [esi + 0xc]
mov dword [esi + 8], eax
lea eax, [edi + 0xc]
push eax
call fcn.0052c6ec
and dword [ebp - 4], 0
lea eax, [edi + 0x10]
push eax
lea ecx, [esi + 0x10]
call fcn.0052c6ec
mov eax, dword [edi + 0x14]
lea ecx, [esi + 0x2c]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
lea eax, [edi + 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.0052c6ec
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.0052c6ec
mov eax, dword [edi + 0x34]
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], eax
lea eax, [edi + 0x38]
push eax
mov byte [ebp - 4], 3
call fcn.0052c6ec
mov eax, dword [edi + 0x3c]
lea ecx, [esi + 0x40]
mov dword [esi + 0x3c], eax
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.0052c6ec
lea eax, [edi + 0x44]
lea ecx, [esi + 0x44]
push eax
mov byte [ebp - 4], 5
call fcn.0052c6ec
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x78]
mov dword [esi + 0x78], eax
mov eax, dword [edi + 0x7c]
mov dword [esi + 0x7c], eax
mov eax, dword [edi + 0x80]
mov dword [esi + 0x80], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x84], eax
mov eax, dword [edi + 0x88]
mov dword [esi + 0x88], eax
mov eax, dword [edi + 0x8c]
mov dword [esi + 0x8c], eax
mov dword [esi], 0x554fc0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x414c63
Capabilities:
Create process on windows

Disassembly:
push dword [esp + 4]
call fcn.00526cdb
mov eax, dword [eax + 0x3c]
xor ecx, ecx
cmp dword [eax - 8], ecx
jne 0x414c7b
or eax, 0xffffffff
jmp 0x414c8e
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret 4

Function at 0x414f14
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push 1
push eax
push eax
push dword [esp + 0x10]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret 4
Function at 0x4167b0
Capabilities:
Resume thread

Disassembly:
mov eax, 0x543995
call fcn.004c7c10
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 0x74
call fcn.00529189
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x4167e1
push dword [edi]
call fcn.00416681
mov esi, eax
jmp 0x4167e3
xor esi, esi
or eax, 0xffffffff
cmp esi, ebx
mov dword [ebp - 4], eax
je 0x416831
push ebx
push ebx
push 4
mov ecx, esi
call fcn.00528638
test eax, eax
jne 0x41680a
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
or eax, 0xffffffff
jmp 0x416831
mov ecx, dword [0x653be4]
push ebx
push ebx
push 1
call fcn.00412892
push ebx
mov dword [edi + 4], esi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x416991
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x543a28
call fcn.004c7c10
push ecx
mov eax, dword [0x64b0c8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
mov eax, dword [0x64b0c8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], eax
mov eax, dword [0x64b0c8]
mov dword [esi + 0x14], eax
mov eax, dword [0x64b0c8]
mov dword [esi + 0x34], eax
mov edi, 0x6534f4
mov byte [ebp - 4], 3
push edi
mov dword [esi], ebx
call fcn.0052cb16
push edi
lea ecx, [esi + 8]
call fcn.0052cb16
push edi
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.0052cb16
push edi
lea ecx, [esi + 0x34]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], 0x14
call fcn.0052cb16
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416e5a
Capabilities:
Resume thread

Disassembly:
mov eax, 0x543b0d
call fcn.004c7c10
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 2
call fcn.00416f42
lea ebx, [esi + 0x2f0]
xor edi, edi
mov ecx, ebx
mov dword [esi + 0x2b0], edi
mov dword [esi + 0x2b4], edi
call fcn.00416b3b
push 0x84
call fcn.00529189
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x416eb3
push esi
lea eax, [esi + 0x2b8]
push ebx
push eax
call fcn.0041644e
jmp 0x416eb5
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, edi
mov dword [esi + 0x32c], eax
je 0x416ee9
push edi
push edi
push 4
mov ecx, eax
call fcn.00528638
test eax, eax
jne 0x416eee
mov ecx, dword [esi + 0x32c]
cmp ecx, edi
je 0x416ee3
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x32c], edi
or eax, 0xffffffff
jmp 0x416f33
push 1
pop ebx
push edi
push edi
push 0x1009
mov dword [esi + 0x328], ebx
push dword [esi + 0x204]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x32c]
push edi
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x32c]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
mov ecx, esi
call fcn.0041717b
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41cda0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004c8550
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push 0x6534f4
call fcn.0052cb16
xor esi, esi
push 0x1001
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.004c7d20
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 0x41ce03
or eax, 0xffffffff
jmp 0x41ce5d
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 0x41ce3a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41cdfe
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x41cdfe
push dword [ebp + 0xc]
lea eax, [ebp - 0x1010]
mov ecx, ebx
push dword [ebp - 4]
push eax
call fcn.0041cf05
neg eax
sbb eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x41ce63
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004c8550
push ebx
push edi
xor edi, edi
push 0x1001
lea eax, [ebp - 0x1010]
push edi
mov ebx, ecx
push eax
call fcn.004c7d20
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.0041d01e
test eax, eax
jne 0x41ced1
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 0x41ced6
or eax, 0xffffffff
jmp 0x41ceff
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 0x41cef4
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 0x41de56
Capabilities:
Check os version

Disassembly:
mov eax, 0x5442bf
call fcn.004c7c10
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.0052d35d
mov eax, dword [0x64b0c8]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x558120
jne 0x41dedc
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.004c7d20
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 0x41ded5
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x41dedc
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.004c85ed
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x41def1
call fcn.005260c9
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0041e0af
push eax
call fcn.004c7d20
push 0x200002
call fcn.00529189
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.0041e0af
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0041e0af
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0041e0af
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0041e0af
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0041e0af
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0041e0af
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0041e0af
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x41dfae
mov ecx, esi
call fcn.0041e0af
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.0053de11
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0041e0af
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0041e0af
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x41dcdf
je 0x41dfe7
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x41e026
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.0052cb16
push ebx
mov ecx, edi
call fcn.0052cdc4
push 0x7c
push eax
call fcn.004c85c4
pop ecx
cmp eax, ebx
pop ecx
je 0x41e019
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x41e003
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0041e0af
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 0x4219ef
Capabilities:
Find taskbar

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
push edi
push edi
call esi
cmp eax, edi
jne 0x421a0b
xor eax, eax
jmp 0x421a15
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
pop edi
pop esi
ret
Function at 0x421a1c
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push dword [esp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x421a2b
ret
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x421a3e
xor esi, esi
jmp 0x421a5d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x421a3a
mov ecx, dword [esp + 8]
push eax
call fcn.0052cb16
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 1
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
ret

Function at 0x421b0e
Capabilities:
Copy file

Disassembly:
mov eax, 0x54469c
call fcn.004c7c10
mov eax, 0x1024
call fcn.004c8550
push ebx
lea ecx, [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0052c9f3
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
jne 0x421b5e
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.00422ad8
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0052cac6
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.0052c97f
push dword [ebp - 0x10]
call fcn.00422bcd
test eax, eax
pop ecx
je 0x421c31
push esi
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x830]
push dword [ebp + 8]
push eax
call fcn.004c801d
lea eax, [ebp - 0x830]
push eax
call fcn.004c808f
mov word [ebp + eax*2 - 0x82e], bx
lea eax, [ebp - 0x830]
push 0x7c
push eax
call fcn.004c85c4
add esp, 0x18
cmp eax, ebx
je 0x421bc0
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.004c85c4
pop ecx
pop ecx
jmp 0x421baa
push esi
lea eax, [ebp - 0x1030]
push dword [ebp + 0xc]
push eax
call fcn.004c801d
lea eax, [ebp - 0x1030]
push eax
call fcn.004c808f
mov word [ebp + eax*2 - 0x102e], bx
push 0x1e
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.004c7d20
mov eax, dword [ebp + 0x18]
add esp, 0x1c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x830]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop esi
jne 0x421c31
cmp dword [ebp - 0x1e], ebx
jne 0x421c31
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0052c97f
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x421c4c
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.004c801d
lea eax, [ebp - 0x820]
push eax
call fcn.004c808f
and word [ebp + eax*2 - 0x81e], 0
push 0x1e
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.004c7d20
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
jne 0x421cc4
cmp dword [ebp - 0xe], eax
jne 0x421cc4
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4225c2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
push esi
jne 0x4225f0
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 0x42263f
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 0x42263d
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 0x42263d
test esi, esi
jne 0x42263d
push 1
pop eax
jmp 0x42263f
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x422644
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.004c81c8
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
test eax, eax
je 0x4226c0
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 0x4226c0
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 0x42269d
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4226c0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x5c
push esi
call fcn.004c8727
pop ecx
pop ecx
jmp 0x422664
push esi
call fcn.004c80df
pop ecx
push 1
pop eax
pop edi
pop esi
leave
ret 8

Function at 0x422a21
Capabilities:
Check os version

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, 0x11c
push ebx
push 0
and dword [edi + 0x120], 0
lea esi, [edi + 4]
push esi
call fcn.004c7d20
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
mov dword [esi], 0x114
push esi
call ebp
test eax, eax
je 0x422a78
cmp dword [edi + 0x14], 2
mov dword [edi], 1
jne 0x422a78
cmp dword [edi + 8], 5
jb 0x422a78
push ebx
push 0
push esi
call fcn.004c7d20
add esp, 0xc
mov dword [esi], ebx
push esi
call ebp
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x422f3b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push esi
lea eax, [ebp - 0x2b4]
push 0
push eax
call fcn.004c7d20
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ecx, dword [ebp + 0xc]
neg eax
sbb eax, eax
or cx, 0x4010
and al, 0x90
push ecx
lea ecx, [ebp - 0x2b4]
add eax, 0x80
push esi
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
pop esi
jne 0x422f95
or eax, 0xffffffff
leave
ret
mov eax, dword [ebp - 0x2b0]
leave
ret
Function at 0x4230f0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, 0x2b4
mov esi, ecx
push edi
push 0
push eax
call fcn.004c7d20
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0xc
lea eax, [esp + 0x10]
mov ebp, 0x591088
push 0x4001
push edi
push eax
push 0
push ebp
call ebx
mov dword [esi + 4], eax
push 0x4000
lea eax, [esp + 0x14]
push edi
push eax
push 0
push ebp
call ebx
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
test ecx, ecx
je 0x423166
test eax, eax
je 0x423166
push ecx
lea ecx, [esi + 0xc]
call fcn.00527267
push dword [esi + 8]
lea ecx, [esi + 0x14]
call fcn.00527267
push 1
pop eax
jmp 0x423168
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret

Function at 0x423190
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 0x4231f2
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 0x4231f2
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4231f4
xor eax, eax
pop esi
leave
ret

Function at 0x423302
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x5449b8
call fcn.004c7c10
sub esp, 0x808
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x10]
call fcn.0052c9f3
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0052cebc
push str..url
push dword [ebp - 0x10]
call fcn.004c805a
pop ecx
cmp eax, esi
pop ecx
je 0x42334a
or esi, 0xffffffff
jmp 0x4233a2
push edi
mov ecx, 0x200
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x812]
mov word [ebp - 0x814], si
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x814]
push 0x400
push eax
push esi
push 0x591108
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x814]
push eax
call fcn.004c808f
pop ecx
pop edi
test eax, eax
je 0x423345
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x814]
push eax
call fcn.0052cb16
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0052c97f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x428858
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004c8550
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push 0x6534f4
call fcn.0052cb16
xor esi, esi
push 0x1001
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.004c7d20
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 0x4288bb
or eax, 0xffffffff
jmp 0x428915
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 0x4288f2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4288b6
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x4288b6
push dword [ebp + 0xc]
lea eax, [ebp - 0x1010]
mov ecx, ebx
push dword [ebp - 4]
push eax
call fcn.004289bd
neg eax
sbb eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x42891b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004c8550
push ebx
push edi
xor edi, edi
push 0x1001
lea eax, [ebp - 0x1010]
push edi
mov ebx, ecx
push eax
call fcn.004c7d20
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.00428ad6
test eax, eax
jne 0x428989
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 0x42898e
or eax, 0xffffffff
jmp 0x4289b7
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 0x4289ac
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 0x429473
Capabilities:
Get common file path

Disassembly:
mov eax, 0x545108
call fcn.004c7c10
sub esp, 0x830
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00525a26
and word [ebp - 0x83c], 0
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.0052c9f3
and dword [ebp - 4], 0
push str._bootstat.dat
lea ecx, [ebp - 0x14]
call fcn.0052cd70
push 0x24
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004c7d20
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
call fcn.004c9675
add esp, 0x14
test eax, eax
jne 0x429515
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.00429539
test eax, eax
je 0x429515
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.0052c97f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret