joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x208], 1
test al, 1
je 0x404e83
mov edi, 3
test al, 4
je 0x404e94
mov dword [ebp - 0x208], 0x21
or edi, 4
mov ecx, dword [ebx + 4]
push 0x100
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
call dword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
je 0x404f03
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404ec0
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [esi + 0x1c]
push edx
mov edx, dword [ebx + 0x28]
push 0
push 0x25
sar eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push 1
push ecx
push edx
call dword [sym.imp.UxTheme.dll_DrawThemeText]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret 4
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404f03
sub eax, edx
lea ecx, [ebp - 0x210]
push ecx
sar eax, 1
push eax
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x204]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404f34
sub eax, edx
mov edx, dword [ebp - 0x208]
sar eax, 1
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x28]
push edx
push eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x20c]
cdq
sub eax, edx
sar eax, 1
push ecx
sar ebx, 1
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x210]
cdq
sub eax, edx
push ebx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x18]
push ecx
push edi
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004276fb
mov esp, ebp
pop ebp
ret 4
Function at 0x404fb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x408], 1
test al, 1
je 0x404fe3
mov ebx, 3
test al, 4
je 0x404ff4
mov dword [ebp - 0x408], 0x21
or ebx, 4
mov ecx, dword [edi + 4]
push 0x100
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x2c], 0
jne 0x405066
call dword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
je 0x405066
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405023
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [esi + 0x1c]
push edx
mov edx, dword [edi + 0x28]
push 0
push 0x25
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
push 1
push ecx
push edx
call dword [sym.imp.UxTheme.dll_DrawThemeText]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
test byte [esi + 0x10], 4
mov dword [ebp - 0x40c], eax
je 0x405083
mov eax, 0x828282
jmp 0x405093
movzx eax, byte [edi + 0x2c]
neg eax
sbb eax, eax
and eax, 0xfefff8
add eax, 8
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 0x18]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [edi + 4]
push 0x100
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4050d0
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [ebp - 0x414]
push edx
sar eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405101
sub eax, edx
mov edx, dword [ebp - 0x408]
sar eax, 1
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x28]
push edx
push eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x410]
cdq
sub eax, edx
sar eax, 1
push ecx
sar ebx, 1
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x414]
cdq
sub eax, edx
push ebx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x18]
push ecx
push edi
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 0x40c]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004276fb
mov esp, ebp
pop ebp
ret 4
Function at 0x405900
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.004372f0
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1408]
push edx
push eax
xor ecx, ecx
push SysReAllocString
mov word [esi], cx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4059cc
lea eax, [ebp - 0x1410]
push eax
mov eax, dword [ebp - 0x1408]
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x140c]
push edx
push 0
push edi
push eax
mov dword [ebp - 0x1410], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4059bf
mov eax, dword [ebp - 0x140c]
cmp eax, 1
je 0x405987
cmp eax, 2
je 0x40598c
cmp eax, 7
je 0x405987
cmp eax, 3
jne 0x4059bf
cmp eax, 2
jne 0x4059ae
push 0x1000
lea ecx, [ebp - 0x1404]
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x1404]
push eax
jmp 0x4059b5
lea ecx, [ebp - 0x404]
push ecx
push ebx
push esi
call fcn.00428080
add esp, 0xc
mov edx, dword [ebp - 0x1408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret

Function at 0x4059e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.004372f0
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov word [esi], ax
xor edi, edi
nop
mov eax, dword [ebx + edi*4]
lea edx, [ebp - 0x1408]
push edx
push eax
xor ecx, ecx
push SysReAllocString
mov word [esi], cx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x405abd
lea eax, [ebp - 0x1410]
push eax
mov eax, dword [ebp - 0x1408]
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 0x140c]
push edx
push 0
push str.pinstall
push eax
mov dword [ebp - 0x1410], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405ab0
mov eax, dword [ebp - 0x140c]
cmp eax, 1
je 0x405a74
cmp eax, 2
je 0x405a79
cmp eax, 7
je 0x405a74
cmp eax, 3
jne 0x405ab0
cmp eax, 2
jne 0x405a9b
push 0x1000
lea ecx, [ebp - 0x1404]
push ecx
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x1404]
push eax
jmp 0x405aa2
lea ecx, [ebp - 0x404]
push ecx
push 0x100
push esi
call fcn.00428080
add esp, 0xc
mov edx, dword [ebp - 0x1408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 0
jne 0x405ade
inc edi
cmp edi, 7
jl 0x405a00
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + edi*4]
xor ecx, ebp
pop edi
call fcn.004276fb
mov esp, ebp
pop ebp
ret
Function at 0x405af0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test esi, esi
je 0x405b51
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405b51
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405b20
mov ecx, dword [ebp + 8]
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x405b60
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x830
mov eax, dword [0x45407c]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [esp + 0x30]
push edx
xor ecx, ecx
push 0x400
mov dword [esp + 0x14], eax
mov word [ebx], cx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
cmp word [esp + 0x32], 0
lea esi, [esp + 0x30]
mov dword [esp + 8], 0
je 0x405c3e
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x405c20
mov ax, word [esi]
mov word [esp + 0x28], ax
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
mov word [esp + 0x32], ax
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3a], 0x5c003a
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x405c20
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
shrd edi, edx, 0x14
shr edx, 0x14
cmp edi, dword [esp + 8]
jbe 0x405c20
push esi
push 8
push ebx
mov dword [esp + 0x14], edi
call fcn.00428080
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax], edi
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x405c20
cmp word [esi + 2], 0
je 0x405c3e
add esi, 2
cmp word [esi + 2], 0
jne 0x405bb0
mov ecx, dword [esp + 0x834]
pop edi
pop esi
xor ecx, esp
call fcn.004276fb
mov esp, ebp
pop ebp
ret

Function at 0x405c60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp word [edi], 0
je 0x405cc5
test ebx, ebx
je 0x405caa
push esi
push 0x800
call fcn.0042770a
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push edi
push str.Execute_process_NO_WAIT__cmd:___s___param:___s_
push 0x400
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
push esi
push str.INFO
mov ecx, ebx
call fcn.00404920
push esi
call fcn.00427715
add esp, 4
pop esi
mov ecx, dword [ebp + 8]
push 1
push 0
push ecx
push edi
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x405cd0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x45407c]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x44
push 0x40
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ecx, dword [ebp + 0xc]
mov esi, eax
neg edi
mov dword [esp + 8], 0xfffffffb
sbb edi, edi
and edi, 0xfffffff6
xor eax, eax
push str.Execute_process__WAIT_cmd:
mov dword [esi + 0x3c], ecx
add edi, 0xa
push str.INFO
mov ecx, ebx
mov dword [esi], 0x44
mov dword [esi + 0x2c], 0x101
mov word [esi + 0x30], di
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], eax
call fcn.00404920
mov edi, dword [esp + 0xc]
push edi
push str.INFO
mov ecx, ebx
call fcn.00404920
lea edx, [esp + 0x10]
push edx
push esi
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x405df1
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push str.End_waiting_process_:
push str.INFO
mov ecx, ebx
call fcn.00404920
push edi
push str.INFO
mov ecx, ebx
call fcn.00404920
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x405dde
cmp dword [esp + 8], 0x103
jne 0x405de6
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [esp + 8], 0xfffffffc
jmp 0x405de6
mov dword [esp + 8], 0xfffffffe
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 8]
test eax, eax
je 0x405e27
push eax
push str.Exit_code_is__d
lea edx, [esp + 0x28]
push 0x100
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push str.INFO
mov ecx, ebx
call fcn.00404920
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor ecx, esp
call fcn.004276fb
mov esp, ebp
pop ebp
ret

Function at 0x405e40
Capabilities:
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor eax, eax
push edi
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, 1
call fcn.00405cd0
push 0x100
push 0
push esi
mov edi, eax
call fcn.0042bf70
mov edx, dword [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
add esp, 0x14
push edx
call ebx
mov ecx, dword [ebp - 8]
push 0
lea eax, [ebp - 0xc]
push eax
push 0x100
push esi
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [ebp - 8]
push edx
call ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ed0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor eax, eax
push eax
push 1
push 3
push eax
push 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f0f
lea ecx, [ebp - 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406070
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push 1
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [edi], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4060ef
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x4060e8
mov edx, dword [ebp - 0x10]
inc edx
push edx
call fcn.0042770a
mov edx, dword [ebp - 0x10]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406170
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x110
lea eax, [ebp - 0x124]
push ebx
push eax
mov byte [ebp - 0x129], bl
mov dword [ebp - 0x128], 0x114
call fcn.0042bf70
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x118], 2
mov dword [ebp - 0x130], ebx
je 0x4061da
mov byte [ebp - 0x129], 1
jmp 0x4062a9
lea edx, [ebp - 0x130]
push edx
push 8
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4062a9
mov ecx, dword [ebp - 0x130]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push 2
push ecx
mov dword [ebp - 0x14], 0x201
mov dword [ebp - 0x10], 0x5000000
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x220
call edi
test eax, eax
jne 0x4062a8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4062a8
mov edx, dword [ebp - 0x134]
push esi
push edx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4062a7
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x134]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x4062a0
xor edi, edi
cmp dword [esi], ebx
jbe 0x4062a0
lea ebx, [esi + 4]
jmp 0x406280
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x406298
mov byte [ebp - 0x129], 1
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x406280
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop esi
pop edi
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x129]
xor ecx, ebp
pop ebx
call fcn.004276fb
mov esp, ebp
pop ebp
ret
Function at 0x4062d0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x60c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x110
lea ecx, [ebp - 0x114]
push 0
push ecx
mov dword [ebp - 0x118], 0x114
call fcn.0042bf70
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
call esi
cmp dword [ebp - 0x114], 6
jae 0x40634a
call fcn.00406170
test al, al
jne 0x40634a
push 0x30
push 0
push 0x446e78
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x38
lea eax, [ebp - 0x644]
push 0
push eax
mov dword [ebp - 0x648], 0x3c
call fcn.0042bf70
push 0x110
lea ecx, [ebp - 0x114]
push 0
push ecx
mov dword [ebp - 0x118], 0x114
call fcn.0042bf70
add esp, 0x18
lea edx, [ebp - 0x118]
push edx
call esi
cmp dword [ebp - 0x114], 6
pop esi
jae 0x4063aa
call fcn.00406170
mov dword [ebp - 0x63c], str.open
test al, al
jne 0x4063b4
mov dword [ebp - 0x63c], str.runas
lea ecx, [ebp - 0x648]
lea eax, [ebp - 0x60c]
push ecx
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x62c], 1
mov dword [ebp - 0x634], str._asService
mov dword [ebp - 0x644], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x406498
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x4c7
jne 0x406448
push eax
push str.User_did_not_allow_elevation__error_code_d
lea edx, [ebp - 0x404]
push 0x100
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
push str.WARNING
mov ecx, edi
call fcn.00404920
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret
push eax
push str.Error:__d
lea ecx, [ebp - 0x204]
push 0x100
push ecx
call fcn.004280e3
add esp, 0x10
push 0
push 0
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [ebp - 0x204]
push eax
push str.WARNING
mov ecx, edi
call fcn.00404920
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004276fb
mov esp, ebp
pop ebp
ret
Function at 0x4064b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push str.extract_resource_file
push str.INFO
mov ecx, edi
mov ebx, eax
call fcn.00404920
push ebx
push str.INFO
mov ecx, edi
call fcn.00404920
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp + 8]
push eax
push ecx
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x406580
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ebx
mov dword [ebp - 8], eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406560
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp + 8]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov bl, 1
test eax, eax
jne 0x406551
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push str.Cant_create_file
push str.ERROR
mov ecx, edi
call fcn.00404920
push edi
call fcn.00404890
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Resource_file_is_not_found
push str.ERROR
mov ecx, edi
call fcn.00404920
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4065a0
Capabilities:
Get common file path
Get disk information
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f390
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, ecx
lea edx, [ebp - 0x224]
push edx
xor ecx, ecx
push 0x104
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x438], eax
mov word [ebx], cx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [ebp - 0x224]
push eax
push str._shd.vbs
mov ecx, eax
push 0x104
push ecx
call edi
add esp, 0x10
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov byte [ebp - 0x42d], 0
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x406730
push 0
lea eax, [ebp - 0x440]
push eax
push 0xf5
push str.Set_objWMIService__GetObject__winmgmts:._rootcimv2____n_Set_colItems__objWMIService.ExecQuery____n___Select__from_Win32_DiskDrive___n_For_Each_objItem_in_colItems__n_Wscript.Echo_objItem.SerialNumber__n_exit_for___do_the_first_cpu_only___n_Next
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
mov dword [ebp - 0x43c], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x43c], 0
je 0x406730
lea ecx, [ebp - 0x224]
push ecx
push str.cscript___NoLogo__s
lea edx, [ebp - 0x42c]
push 0x104
push edx
call edi
push 0x100
call fcn.0042770a
mov esi, eax
mov eax, dword [ebp - 0x438]
add esp, 0x14
push eax
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00405e40
add esp, 8
test eax, eax
jne 0x406727
push 0x200
push eax
push ebx
call fcn.0042bf70
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4066d8
push 0x200
push ebx
sub eax, edx
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
call fcn.00405830
test eax, eax
jle 0x406727
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406701
sub eax, edx
sar eax, 1
cmp eax, 5
jbe 0x406727
mov ecx, ebx
call fcn.004058c0
test al, al
jne 0x406727
mov byte [ebp - 0x42d], 1
push esi
call fcn.00427715
add esp, 4
cmp byte [ebp - 0x42d], 0
jne 0x406784
jmp 0x406747
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x434]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov ecx, dword [ebp - 0x434]
mov eax, 0x5f
push 0xa
mov word [ebx], ax
push 0xff
add ebx, 2
push ebx
push ecx
call fcn.00427ff1
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret