joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404035
Capabilities:
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
lea eax, [ebp - 0x144]
push 0x105
push eax
push str.SRCDir
push str.SoftwareCyberLinkPowerDVD
push 0x80000002
call fcn.00402094
add esp, 0x14
test eax, eax
je 0x404079
push dword [0x40bca4]
lea eax, [ebp - 0x144]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x248]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x144]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0xc
cmp byte [ebp + eax - 0x145], 0x5c
je 0x4040b8
lea eax, [ebp - 0x144]
push 0x40905c
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push ebx
push esi
push edi
lea eax, [ebp - 0x248]
push str.PIIX4
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x34c]
mov esi, str.Setup.exe
push eax
lea eax, [ebp - 0x248]
push esi
mov edi, str.PIIX4_Patch_Program
push eax
push edi
push dword [ebp + 8]
call fcn.00404213
xor ebx, ebx
add esp, 0x1c
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x404111
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x144]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x40412f
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x144]
push esi
push eax
push edi
push dword [ebp + 8]
call fcn.00404213
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
je 0x4041c5
lea eax, [ebp - 0x34c]
push 1
mov dword [ebp - 0x30], eax
mov eax, 0x40c3ec
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [0x40c2dc]
pop esi
mov dword [ebp - 0x20], eax
xor eax, eax
lea edi, [ebp - 8]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], str.Open
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0x400
push dword [0x40c1c8]
push dword [0x40c2dc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [0x40c1c8]
push str.DMASwitch
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.00402152
add esp, 0x10
mov eax, esi
jmp 0x40420e
push 0x200
push dword [0x40c1c8]
push 0x2f
push dword [0x40c2dc]
call fcn.00402436
add esp, 0x10
push esi
push dword [0x40c1c8]
push dword [0x40aa60]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.Error
push dword [0x40aa60]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404213
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
lea eax, [ebp - 0x104]
push esi
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll__splitpath
lea eax, [ebp - 0x104]
push 0x40905c
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x1c
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [ebp - 0x104]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
call ebx
cmp eax, esi
mov edi, 0x104
jne 0x4042de
push 0x200
push dword [0x40c1c8]
push 0x30
push dword [0x40c2dc]
call fcn.00402436
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push dword [0x40c1c8]
push dword [0x40aa60]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x41
push str.Information
push dword [0x40aa60]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x4042ce
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x104]
push edi
push eax
push dword [ebp + 0x10]
call ebx
cmp eax, esi
jne 0x4042de
push dword [0x40bca4]
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathA]
push dword [ebp + 0x18]
push edi
push esi
push str.Disk1.id
push dword [ebp + 0x10]
call ebx
test eax, eax
jne 0x404308
push esi
push dword [ebp + 0x18]
push edi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call ebx
jmp 0x40430a
xor eax, eax
cmp eax, esi
jne 0x4043cb
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
cmp byte [ecx + eax - 1], 0x5c
je 0x404334
push 0x40905c
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push str._sDisk4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push dword [ebp + 0x18]
push edi
push esi
push dword [ebp + 0x14]
push eax
call ebx
test eax, eax
jne 0x4043cb
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
cmp byte [ecx + eax - 1], 0x5c
je 0x404384
push 0x40905c
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push str._sPIIX4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push dword [ebp + 0x18]
push edi
push esi
push dword [ebp + 0x14]
push eax
call ebx
test eax, eax
jne 0x4043cb
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004043d3
add esp, 0x14
jmp 0x4043ce
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40451d
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, str.C:CLDMA.LOG
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp word [0x40c3dc], 4
mov esi, dword [esp + 8]
jae 0x40454b
push esi
call fcn.004048f0
pop ecx
push 0x400
push dword [0x40aa60]
push 0x31
push dword [0x40c2dc]
call fcn.00402436
add esp, 0x10
push 0x40
push str.Information
push dword [0x40aa60]
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.00404586
pop ecx
push 1
pop eax
pop esi
ret

Function at 0x404586
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
lea eax, [ebp - 0x158]
push 0x105
push eax
push str.InstallDir
push str.SoftwareCyberLinkPowerDVD
push 0x80000002
call fcn.00402094
add esp, 0x14
test eax, eax
je 0x4045ca
push dword [0x40bca4]
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x25c]
push esi
push eax
mov esi, str.CLTest.exe
lea eax, [ebp - 0x158]
push esi
push eax
push str.DVD_Tester
push ebx
call fcn.00404213
add esp, 0x14
test eax, eax
je 0x404697
xor esi, esi
push 0x44
lea eax, [ebp - 0x44]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x40], esi
push str.C:CLDMA.LOG_Q
push eax
lea eax, [ebp - 0x158]
push str.__s___s
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], 0xa
mov word [ebp - 0x12], si
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
lea eax, [ebp - 0x158]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4046dc
mov eax, dword [ebp - 0x54]
push 0xffffffffffffffff
push eax
mov dword [0x40c3e8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x40c3e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4046dc
push 0x200
push dword [0x40c1c8]
push 0x2f
push dword [0x40c2dc]
call fcn.00402436
add esp, 0x10
push esi
push dword [0x40c1c8]
push dword [0x40aa60]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.Error
push dword [0x40aa60]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.004046e7
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x4046e7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
lea eax, [ebp - 0x158]
push 0x105
push eax
push str.InstallDir
push str.SoftwareCyberLinkPowerDVD
push 0x80000002
call fcn.00402094
add esp, 0x14
test eax, eax
je 0x40472b
push dword [0x40bca4]
lea eax, [ebp - 0x158]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x158]
push str.DDTester.exe
push eax
push str.DDTester
push dword [ebp + 8]
call fcn.00404213
add esp, 0x14
test eax, eax
je 0x4047f6
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x44]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], esi
push esi
mov dword [ebp - 0x18], 1
push dword [ebp + 8]
mov word [ebp - 0x14], 0xa
mov word [ebp - 0x12], si
mov dword [ebp - 0x10], esi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x25c]
push str.C:CLDMA.LOG
push eax
lea eax, [ebp - 0x158]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
lea eax, [ebp - 0x158]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop esi
je 0x4047f6
mov eax, dword [ebp - 0x54]
push 0xffffffffffffffff
push eax
mov dword [0x40c3e8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x40c3e8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.00404804
pop ecx
push 1
pop eax
leave
ret
Function at 0x404804
Capabilities:
Create process on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, str.C:CLDMA.LOG
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
pop edi
or eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x400
push dword [0x40c1c8]
push 0x32
push dword [0x40c2dc]
call fcn.00402436
add esp, 0x10
push esi
push dword [0x40c1c8]
push dword [0x40aa60]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x24
push str.Information
push dword [0x40aa60]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4048d5
mov eax, dword [0x40c2dc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
xor eax, eax
lea edi, [ebp - 4]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], str.Open
mov dword [ebp - 0x2c], str.notepad
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x40c3ec
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 3
push ebx
push ebx
push ebx
push ebx
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop ebx
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x40c1c4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
leave
ret
Function at 0x404b42
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, 0x400
push edi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [0x40aa60], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [0x40c1c8], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [ebp + 0x10]
add esp, 0xc
mov dword [0x40bca4], eax
cmp byte [edi], 0
je 0x404b8c
push edi
call sub.MSVCRT.dll_atoi
pop ecx
mov word [0x40c3de], ax
inc edi
inc edi
cmp byte [edi], 0
je 0x404bc1
mov ax, word [0x40c3de]
cmp ax, 1
jne 0x404bae
push edi
call sub.MSVCRT.dll_atoi
pop ecx
mov word [0x40c3e4], ax
jmp 0x404bc1
cmp ax, 2
jne 0x404bc1
push edi
call sub.MSVCRT.dll_atoi
pop ecx
mov word [0x40c3e6], ax
push esi
push dword [0x40aa60]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebp - 0x208]
push eax
push dword [0x40aa60]
call sub.MSVCRT.dll__splitpath
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
push str._s_s
push dword [0x40bca4]
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
mov edi, str.DMASwitch
push dword [0x40c1c8]
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov ebx, 0x80000002
push edi
push esi
push ebx
call fcn.00402094
add esp, 0x24
test eax, eax
jne 0x404c40
push edi
push esi
push ebx
call fcn.00402199
add esp, 0xc
call fcn.00404d52
mov esi, 0x40c2e8
push 0x40c3dc
mov ecx, esi
call fcn.004013a5
push 0x40c3e2
mov ecx, esi
call fcn.004013c0
mov ax, word [0x40c3dc]
push 4
pop ecx
cmp ax, cx
jne 0x404c7b
mov dword [0x40ab6c], ecx
jmp 0x404d05
test ax, ax
je 0x404cfe
push 1
pop edi
cmp ax, di
je 0x404cfe
cmp ax, 5
jne 0x404cc2
mov ecx, esi
call fcn.004013db
test eax, eax
jge 0x404caa
mov dword [0x40ab6c], 0xfffffff3
mov dword [0x40c2d8], eax
jmp 0x404d05
call fcn.0040249d
test eax, eax
jne 0x404cbb
and dword [0x40ab6c], eax
jmp 0x404d05
call fcn.00404e08
jmp 0x404d05
call fcn.004025a6
test eax, eax
mov dword [0x40ab6c], eax
jle 0x404cd5
call fcn.00404e08
push 0x10e8
push 0x40ab70
push str.Target
push str.SOFTWARECyberLinkDMASwitch
push ebx
call fcn.00402094
add esp, 0x14
test eax, eax
jne 0x404d05
mov dword [0x40ab6c], edi
jmp 0x404d05
or dword [0x40ab6c], 0xffffffff
mov eax, dword [ebp + 8]
xor ecx, ecx
push ecx
push 0x402c70
push ecx
push 0x66
push eax
mov dword [0x40c2dc], eax
mov dword [0x40c2e0], ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push dword [0x40aa60]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [0x40c1c8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [0x40bca4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4054a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x80
mov al, 0x6c
push esi
mov byte [esp + 0xe], al
mov byte [esp + 0xf], al
lea eax, [esp + 4]
push edi
mov esi, ecx
push eax
mov byte [esp + 0xc], 0x77
mov byte [esp + 0xd], 0x6e
mov byte [esp + 0xe], 0x61
mov byte [esp + 0xf], 0x73
mov byte [esp + 0x10], 0x70
mov byte [esp + 0x11], 0x69
mov byte [esp + 0x12], 0x33
mov byte [esp + 0x13], 0x32
mov byte [esp + 0x14], 0x2e
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x18], eax
jne 0x405514
mov ecx, esi
mov edi, 0x80900003
call fcn.00405630
mov eax, edi
pop edi
pop esi
add esp, 0x80
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov cl, 0x74
mov byte [esp + 0xa], cl
mov byte [esp + 0x17], cl
lea ecx, [esp + 8]
push ebx
mov bl, 0x53
push ecx
push eax
mov byte [esp + 0x14], 0x47
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x17], 0x41
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], 0x50
mov byte [esp + 0x1a], 0x49
mov byte [esp + 0x1b], 0x33
mov byte [esp + 0x1c], 0x32
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], 0x75
mov byte [esp + 0x1f], 0x70
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x72
mov byte [esp + 0x24], 0x49
mov byte [esp + 0x25], 0x6e
mov byte [esp + 0x26], 0x66
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0
call edi
mov dword [esi + 0x1c], eax
mov al, 0x6d
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov eax, dword [esi + 0x18]
lea edx, [esp + 0xc]
push edx
push eax
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x64
mov byte [esp + 0x18], 0x41
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x50
mov byte [esp + 0x1b], 0x49
mov byte [esp + 0x1c], 0x33
mov byte [esp + 0x1d], 0x32
mov byte [esp + 0x1e], 0x43
mov byte [esp + 0x1f], 0x6f
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], 0x6e
mov byte [esp + 0x24], 0x64
mov byte [esp + 0x25], 0
call edi
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
test ecx, ecx
pop ebx
je 0x40560c
test eax, eax
je 0x40560c
pop edi
xor eax, eax
pop esi
add esp, 0x80
ret
mov ecx, esi
mov edi, 0x80900014
call fcn.00405630
mov eax, edi
pop edi
pop esi
add esp, 0x80
ret
Function at 0x406150
Capabilities:
Get disk information

Disassembly:
sub esp, 0x70
push ebx
mov ebx, ecx
push ebp
push esi
lea eax, [ebx + 0x18]
push edi
push eax
mov dword [esp + 0x18], ebx
mov dword [ebx], 0x4081dc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, ebx
call fcn.00404f60
mov esi, dword [esp + 0x84]
mov byte [esp + 0x10], 0
mov dword [ebx + 0x30], esi
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x24]
mov ebp, edi
and ebp, 0xff
lea ecx, [ebp + 0x41]
push ecx
push str._c:_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4062e4
push edi
call fcn.00406560
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x4062e4
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push 8
push edx
push 0
push 0
push 0x41018
push edi
mov dword [esp + 0x3c], 8
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x10]
test ebx, ebx
mov byte [esi], al
je 0x406217
mov cl, byte [esp + 0x20]
mov dl, byte [esp + 0x22]
mov byte [esi + 1], cl
mov byte [esi + 2], dl
jmp 0x40621f
mov byte [esi + 1], 0
mov byte [esi + 2], 0
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push 0x3c
push ecx
mov ecx, dword [esp + 0x1c]
push edi
mov byte [esi + 4], 5
mov ebx, 1
call fcn.004059f0
test eax, eax
jge 0x40625e
lea edx, [esp + 0x44]
push 0x24
push edx
push edi
mov edi, dword [esp + 0x20]
mov ecx, edi
call fcn.004059f0
test eax, eax
jl 0x406312
xor ebx, ebx
mov edx, dword [esp + 0x84]
lea edi, [ebp + ebp*2]
shl edi, 4
add edi, edx
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x406284
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0xffffffff
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [esp + 0x4c]
push 8
lea ecx, [esi + 0xc]
push eax
push ecx
call edi
lea edx, [esp + 0x60]
push 0x10
lea eax, [esi + 0x15]
push edx
push eax
mov byte [esi + 0x14], 0
call edi
lea ecx, [esp + 0x7c]
push 4
lea edx, [esi + 0x26]
push ecx
push edx
mov byte [esi + 0x25], 0
call edi
add esp, 0x24
cmp ebx, 1
mov byte [esi + 0x2a], 0
jne 0x4062da
mov eax, dword [esp + 0x7c]
xor ecx, ecx
xor dx, dx
mov ch, al
mov dl, ah
or ecx, edx
mov word [esi + 0x2c], cx
jmp 0x4062e0
mov word [esi + 0x2c], 0x100
mov ebx, dword [esp + 0x14]
mov al, byte [esp + 0x10]
add esi, 0x30
inc al
cmp al, 0x1a
mov byte [esp + 0x10], al
jb 0x406183
mov ecx, dword [esp + 0x88]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword [ecx], 0
pop ebx
add esp, 0x70
ret 8
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x406328
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
mov eax, dword [esp + 0x88]
mov dword [eax], 0x80004005
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
Function at 0x406560
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1d8
and eax, 0xff
lea ecx, [esp + 0x20]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea ebx, [eax + 0x41]
push esi
push ebx
push 0x409838
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0xe0]
lea eax, [esp + 0x2c]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x4065e5
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
push edi
lea ecx, [esp + 0xe4]
push 0x40905c
push ecx
call esi
add esp, 8
push 0x40905c
push 0
mov edi, eax
call esi
add esp, 8
test eax, eax
jne 0x4065c0
push edi
lea edx, [esp + 0x14]
push str.._s
push edx
call ebp
add esp, 0xc
pop edi
jmp 0x4065f5
push ebx
lea eax, [esp + 0x10]
push str.._c:
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x406616
mov dword [esp + 0x50], 5
jmp 0x406624
mov eax, dword [esp + 0x50]
cmp eax, 4
mov eax, 0x80000000
jbe 0x406629
mov eax, 0xc0000000
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x20]
push eax
push edx
call esi
cmp eax, 0xffffffff
jne 0x406690
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x20]
push 0x80000000
push eax
call esi
cmp eax, 0xffffffff
jne 0x406690
push ebx
lea ecx, [esp + 0x10]
push str.._c:
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0xc]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push edx
call esi
pop esi
pop ebp
pop ebx
add esp, 0x1d8
ret
Function at 0x4066a0
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry key

Disassembly:
sub esp, 0x70
push esi
mov al, 0x6e
mov esi, ecx
mov byte [esp + 0x2a], al
mov byte [esp + 0x31], al
mov byte [esp + 0x38], al
mov cl, 0x61
lea eax, [esp + 8]
mov byte [esp + 0x30], cl
mov byte [esp + 0x32], cl
push eax
push 0x20019
lea ecx, [esp + 0x30]
push 0
mov dl, 0x67
push ecx
push 0x80000006
mov byte [esp + 0x3c], 0x43
mov byte [esp + 0x3d], 0x6f
mov byte [esp + 0x3f], 0x66
mov byte [esp + 0x40], 0x69
mov byte [esp + 0x41], dl
mov byte [esp + 0x42], 0x20
mov byte [esp + 0x43], 0x4d
mov byte [esp + 0x47], dl
mov byte [esp + 0x48], 0x65
mov byte [esp + 0x49], 0x72
mov byte [esp + 0x4a], 0x5c
mov byte [esp + 0x4b], 0x45
mov byte [esp + 0x4d], 0x75
mov byte [esp + 0x4e], 0x6d
mov byte [esp + 0x4f], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4067fa
push ebp
push edi
lea edx, [esp + 0x14]
xor edi, edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edx
mov edx, dword [esp + 0x14]
push edi
push edi
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x2c]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x13
call ebp
test eax, eax
jne 0x4067e4
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x54]
push 0x409310
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x4c]
mov ecx, esi
push 0x40c4f0
push 0x100
push 0x40c3f0
push eax
call fcn.00406810
test eax, eax
jl 0x4067b9
mov ecx, dword [esp + 0x84]
push 0x40c4f0
push ecx
push 0x40c3f0
mov ecx, esi
call fcn.004068b0
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x30]
inc edi
push eax
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x13
call ebp
test eax, eax
je 0x406768
pop ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebp
pop esi
add esp, 0x70
ret 4
mov eax, esi
pop esi
add esp, 0x70
ret 4