joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb8a1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00b8a140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b8a140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b8a140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b8a140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xb8abfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb8ac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb9c87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb8ac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb8ac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401c90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
push 0x41a378
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401d6e
push 0x41a388
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
push str.Process32First
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
push str.Process32Next
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
push str.Module32First
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x14], eax
push str.Module32Next
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0
je 0x401d61
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x401d61
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x10], 0
je 0x401d61
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
je 0x401d61
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x18], 0
je 0x401d61
mov dword [ebp - 0x10], 1
jmp 0x401d68
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x405040
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40507d
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b382
mov esp, ebp
pop ebp
ret

Function at 0x405090
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x610], 0
push 0x206
push 0
lea eax, [ebp - 0x60e]
push eax
call fcn.0040b3d0
add esp, 0xc
mov dword [ebp - 0x618], 0
mov dword [ebp - 0x614], 0x400
push 0x41aab4
lea ecx, [ebp - 0x610]
push ecx
call fcn.0040b50a
add esp, 8
mov edx, dword [ebp + 8]
push edx
push 0x41aab8
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x618]
push ecx
push 1
push 0
lea edx, [ebp - 0x408]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405128
xor al, al
jmp 0x405190
lea eax, [ebp - 0x614]
push eax
lea ecx, [ebp - 0x610]
push ecx
push 0
push 0
push str.NavigateOnce
mov edx, dword [ebp - 0x618]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405161
mov eax, dword [ebp - 0x618]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x405190
push 1
push 0x41ab0c
push 0x41ab10
lea ecx, [ebp - 0x610]
push ecx
push 0x41ab14
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0x618]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b382
mov esp, ebp
pop ebp
ret
Function at 0x4051a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418e79
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov word [ebp - 0x61c], 0
push 0x206
push 0
lea eax, [ebp - 0x61a]
push eax
call fcn.0040b3d0
add esp, 0xc
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x624], 0x400
push 0x41ab20
lea ecx, [ebp - 0x61c]
push ecx
call fcn.0040b50a
add esp, 8
mov edx, dword [ebp + 8]
push edx
push 0x41ab24
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x628]
push ecx
push 1
push 0
lea edx, [ebp - 0x414]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405253
xor al, al
jmp 0x40533f
lea eax, [ebp - 0x624]
push eax
lea ecx, [ebp - 0x61c]
push ecx
push 0
push 0
push str.RunOnce
mov edx, dword [ebp - 0x628]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40528f
mov eax, dword [ebp - 0x628]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40533f
lea ecx, [ebp - 0x620]
call fcn.00408380
mov dword [ebp - 4], 0
push 0x41ab6c
lea ecx, [ebp - 0x61c]
push ecx
call fcn.0040c3b5
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x405313
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x620]
call fcn.00408140
lea ecx, [ebp - 0x620]
call fcn.00408360
test eax, eax
jne 0x4052ff
push ecx
mov ecx, esp
mov dword [ebp - 0x62c], esp
lea eax, [ebp - 0x620]
push eax
call fcn.004083a0
mov dword [ebp - 0x634], eax
call fcn.00405360
add esp, 4
push 0x41ab70
push 0
call fcn.0040c3b5
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x4052b8
mov ecx, dword [ebp - 0x628]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x62d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call fcn.00407b40
mov al, byte [ebp - 0x62d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b382
mov esp, ebp
pop ebp
ret
Function at 0x405360
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418ed1
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x42031c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00408380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00408380
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00408410
push 0x41ab74
lea ecx, [ebp - 0x5c]
call fcn.00408140
push 0
lea ecx, [ebp + 8]
call fcn.004083f0
mov word [ebp - 0x58], ax
movzx ecx, word [ebp - 0x58]
cmp ecx, 0x22
je 0x4053e1
movzx edx, word [ebp - 0x58]
cmp edx, 0x27
jne 0x40546b
push 1
mov ax, word [ebp - 0x58]
push eax
lea ecx, [ebp + 8]
call fcn.004084a0
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jl 0x40546b
mov ecx, dword [ebp - 0x60]
sub ecx, 1
push ecx
push 1
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp + 8]
call fcn.00408580
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00408410
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.00407b40
mov edx, dword [ebp - 0x60]
add edx, 2
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp + 8]
call fcn.00408530
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0x5c]
call fcn.00408410
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00407b40
mov dword [ebp - 0x48], 0x3c
push 0x38
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.0040b3d0
add esp, 0xc
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x3c], 0x41ab78
lea ecx, [ebp - 0x4c]
call fcn.00407b30
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x5c]
call fcn.00407b30
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x50]
call fcn.00408380
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 0
jne 0x40550b
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00407b40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00407b40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00407b40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407b40
mov eax, dword [ebp - 0x6c]
jmp 0x405548
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00407b40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00407b40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00407b40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407b40
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x405560
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x3c], 0x3c
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.0040b3d0
add esp, 0xc
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], 0x41ab84
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret

Function at 0x405700
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040b80b
add esp, 4
test eax, eax
jne 0x40572a
xor eax, eax
jmp 0x4057fe
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x428]
push edx
call fcn.0040b50a
add esp, 8
lea eax, [ebp - 0x428]
push eax
call fcn.0040b80b
add esp, 4
movzx ecx, word [ebp + eax*2 - 0x42a]
cmp ecx, 0x5c
jne 0x405772
lea edx, [ebp - 0x428]
push edx
call fcn.0040b80b
add esp, 4
mov word [ebp + eax*2 - 0x42a], 0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x405797
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x405797
mov eax, 1
jmp 0x4057fe
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.0040b50a
add esp, 8
lea ecx, [ebp - 0x218]
push ecx
call fcn.004055e0
add esp, 4
lea edx, [ebp - 0x218]
push edx
call fcn.00405700
add esp, 4
test eax, eax
je 0x4057ee
push 0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4057ee
mov dword [ebp - 0x42c], 1
jmp 0x4057f8
mov dword [ebp - 0x42c], 0
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040b382
mov esp, ebp
pop ebp
ret
Function at 0x405810
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418f12
mov eax, dword fs:[0]
push eax
sub esp, 0x620
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov word [ebp - 0x61c], 0
push 0x206
push 0
lea eax, [ebp - 0x61a]
push eax
call fcn.0040b3d0
add esp, 0xc
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0x400
push 0x41ab94
lea ecx, [ebp - 0x61c]
push ecx
call fcn.0040b50a
add esp, 8
mov edx, dword [ebp + 8]
push edx
push 0x41ab98
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x624]
push ecx
push 1
push 0
lea edx, [ebp - 0x414]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4058c3
xor al, al
jmp 0x40598e
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0x61c]
push ecx
push 0
push 0
push str.AutoStartOnce
mov edx, dword [ebp - 0x624]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4058ff
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40598e
mov ecx, dword [ebp - 0x624]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x61c]
push edx
call fcn.0040b80b
add esp, 4
test eax, eax
jbe 0x40598c
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
lea ecx, [ebp - 0x628]
call fcn.00409320
mov dword [ebp - 4], 0
lea eax, [ebp - 0x61c]
push eax
call fcn.0040b80b
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x61c]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x628]
call fcn.00409780
test eax, eax
setne al
mov byte [ebp - 0x629], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x628]
call fcn.004093b0
mov al, byte [ebp - 0x629]
jmp 0x40598e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b382
mov esp, ebp
pop ebp
ret
Function at 0x4059b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418f45
mov eax, dword fs:[0]
push eax
sub esp, 0x620
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov word [ebp - 0x61c], 0
push 0x206
push 0
lea eax, [ebp - 0x61a]
push eax
call fcn.0040b3d0
add esp, 0xc
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x620], 0x400
push 0x41abec
lea ecx, [ebp - 0x61c]
push ecx
call fcn.0040b50a
add esp, 8
mov edx, dword [ebp + 8]
push edx
push 0x41ac4c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x624]
push ecx
push 1
push 0
lea edx, [ebp - 0x414]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405a63
xor al, al
jmp 0x405b2f
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0x61c]
push ecx
push 0
push 0
push str.StartWebPageOnce
mov edx, dword [ebp - 0x624]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405a9f
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x405b2f
mov ecx, dword [ebp - 0x624]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x61c]
push edx
call fcn.0040b80b
add esp, 4
test eax, eax
jbe 0x405b2d
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
lea ecx, [ebp - 0x628]
call fcn.00409320
mov dword [ebp - 4], 0
lea eax, [ebp - 0x61c]
push eax
call fcn.0040b80b
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x61c]
push ecx
push 1
push str.Start_Page
lea ecx, [ebp - 0x628]
call fcn.00409780
test eax, eax
setne dl
mov byte [ebp - 0x629], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x628]
call fcn.004093b0
mov al, byte [ebp - 0x629]
jmp 0x405b2f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b382
mov esp, ebp
pop ebp
ret
Function at 0x405b50
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x860], 0
push 0x206
push 0
lea eax, [ebp - 0x85e]
push eax
call fcn.0040b3d0
add esp, 0xc
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 0x400
push 0x41ad14
lea ecx, [ebp - 0x860]
push ecx
call fcn.0040b50a
add esp, 8
mov edx, dword [ebp + 8]
push edx
push 0x41ad18
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x868]
push ecx
push 1
push 0
lea edx, [ebp - 0x408]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405beb
xor al, al
jmp 0x405c6c
lea eax, [ebp - 0x864]
push eax
lea ecx, [ebp - 0x860]
push ecx
push 0
push 0
push str.PostInstOnce
mov edx, dword [ebp - 0x868]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405c24
mov eax, dword [ebp - 0x868]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x405c6c
mov ecx, dword [ebp - 0x868]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x658]
push edx
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x405c6a
push 1
push 0x41ad6c
push 0x41ad70
lea ecx, [ebp - 0x860]
push ecx
push 0x41ad74
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b382
mov esp, ebp
pop ebp
ret
Function at 0x405c80
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push str.GetDiskFreeSpaceExA
push 0x41ad94
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405d39
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
add ecx, 1
push ecx
call fcn.0040abf3
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x40], edx
push 0
push 0
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x405d2f
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x405d75
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x405d6f
mov edx, dword [ebp - 0x1c]
imul edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x405e60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x405e9d
mov byte [ebp - 1], 1
jmp 0x405ea1
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040b382
mov esp, ebp
pop ebp
ret
Function at 0x405ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x42031c]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x810], 0
push 0x1fc
push 0
lea eax, [ebp - 0x80e]
push eax
call fcn.0040b3d0
add esp, 0xc
mov word [ebp - 0x610], 0
push 0x206
push 0
lea ecx, [ebp - 0x60e]
push ecx
call fcn.0040b3d0
add esp, 0xc
push 0xff
push 0
lea edx, [ebp - 0x810]
push edx
call fcn.0040b3d0
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x610]
push eax
call fcn.0040b3d0
add esp, 0xc
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0x400
mov ecx, dword [ebp + 8]
push ecx
push 0x41ae8c
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
push 1
push 0
lea ecx, [ebp - 0x408]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405f92
xor al, al
jmp 0x406056
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push str.SearchEngineName
mov ecx, dword [ebp - 0x818]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405fce
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x406056
mov dword [ebp - 0x814], 0x400
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x610]
push ecx
push 0
push 0
push str.SearchEngineUrl
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x406011
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x406056
mov ecx, dword [ebp - 0x818]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x610]
push edx
call fcn.0040b80b
add esp, 4
test eax, eax
jbe 0x406054
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x610]
push ecx
lea edx, [ebp - 0x810]
push edx
call fcn.00406070
add esp, 0xc
test eax, eax
setne al
jmp 0x406056
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b382
mov esp, ebp
pop ebp
ret