joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f0c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x422158]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00409e4b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040f030
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x409f5b
cmp dword [ebp - 0x1c], 5
jb 0x409f73
jmp 0x409f6f
cmp dword [ebp - 0x10], 1
jne 0x409f73
cmp dword [ebp - 0x1c], 4
ja 0x409f6f
jne 0x409f73
cmp dword [ebp - 0x18], 0
jbe 0x409f73
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41d31c
call fcn.00409ce1
test eax, eax
jge 0x409f94
mov byte [0x42a428], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040a3a1
add ebp, 0x78
leave
ret

Function at 0x40a3a1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422158]
jne 0x40a3ab
repz ret
jmp fcn.0040f658
Function at 0x412a99
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4226e0]
je 0x412ab4
inc edi
cmp edi, 0x17
jb 0x412aa5
cmp edi, 0x17
jae 0x412c34
push ebp
push 3
call fcn.00418e52
cmp eax, 1
pop ecx
je 0x412c00
push 3
call fcn.00418e52
test eax, eax
pop ecx
jne 0x412ae8
cmp dword [0x422114], 1
je 0x412c00
cmp ebx, 0xfc
je 0x412c33
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x429e70
push ebp
call fcn.0040f75c
add esp, 0xc
test eax, eax
je 0x412b1e
push esi
push esi
push esi
push esi
push esi
call fcn.0040aa75
add esp, 0x14
push 0x104
mov esi, 0x429e89
push esi
push 0
mov byte [0x429f8d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412b62
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040f75c
add esp, 0xc
test eax, eax
je 0x412b62
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040aa75
add esp, 0x14
push esi
call fcn.0040b8c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412ba7
push esi
call fcn.0040b8c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42a184
push 0x41e30c
sub ecx, eax
push ecx
push eax
call fcn.00414ce6
add esp, 0x14
test eax, eax
je 0x412ba7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040aa75
add esp, 0x14
jmp 0x412ba9
xor esi, esi
push 0x41e308
push ebx
push ebp
call fcn.00414c2f
add esp, 0xc
test eax, eax
je 0x412bc9
push esi
push esi
push esi
push esi
push esi
call fcn.0040aa75
add esp, 0x14
push dword [edi*8 + 0x4226e4]
push ebx
push ebp
call fcn.00414c2f
add esp, 0xc
test eax, eax
je 0x412beb
push esi
push esi
push esi
push esi
push esi
call fcn.0040aa75
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00418c95
add esp, 0xc
jmp 0x412c33
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x412c33
cmp ebp, 0xffffffff
je 0x412c33
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4226e4]
push dword [esi]
call fcn.0040b8c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x418c95
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00410705
xor ebx, ebx
cmp dword [0x42a340], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x418d6b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x418e4b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x418e4b
push eax
call fcn.00410697
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42a340], eax
call esi
push eax
call fcn.00410697
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42a344], eax
call esi
push eax
call fcn.00410697
mov dword [0x42a348], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040ecbd
test eax, eax
pop ecx
pop ecx
je 0x418d39
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040aa75
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x418d6b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00410697
cmp eax, ebx
pop ecx
mov dword [0x42a350], eax
je 0x418d6b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410697
pop ecx
mov dword [0x42a34c], eax
mov eax, dword [0x42a34c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x418df0
cmp dword [0x42a350], ecx
je 0x418df0
push eax
call fcn.0041070e
push dword [0x42a350]
mov esi, eax
call fcn.0041070e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x418df0
cmp edi, ebx
je 0x418df0
call esi
cmp eax, ebx
je 0x418dbd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418dbd
test byte [ebp - 0x18], 1
jne 0x418df0
lea eax, [ebp - 0x10]
push eax
call fcn.0040ecf4
test eax, eax
pop ecx
je 0x418dd8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040aa75
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x418de7
or dword [ebp + 0x10], 0x200000
jmp 0x418e2b
or dword [ebp + 0x10], 0x40000
jmp 0x418e2b
mov eax, dword [0x42a344]
cmp eax, dword [ebp - 8]
je 0x418e2b
push eax
call fcn.0041070e
cmp eax, ebx
pop ecx
je 0x418e2b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x418e2b
mov eax, dword [0x42a348]
cmp eax, dword [ebp - 8]
je 0x418e2b
push eax
call fcn.0041070e
cmp eax, ebx
pop ecx
je 0x418e2b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a340]
call fcn.0041070e
cmp eax, ebx
pop ecx
je 0x418e4b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418e4d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
test eax, eax
push edi
mov dword [ebp - 4], ebx
jne 0x40107e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40107e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edx, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
mov edi, edx
jbe 0x40104e
cmp ax, word [edi]
je 0x401085
add ecx, 4
add edi, 4
cmp ecx, dword [ebp + 0xc]
jb 0x40103e
movzx eax, word [edx]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, str._04X
push eax
push esi
push ebx
call edi
mov eax, dword [ebp + 8]
add esp, 0xc
movzx eax, word [eax + 2]
push eax
push esi
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, ebx
push eax
call edi
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
movzx eax, word [edi]
mov esi, str._04X
push eax
push esi
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
call ebx
movzx eax, word [edi + 2]
add esp, 0xc
push eax
push esi
push dword [ebp - 4]
call sub.MSVCRT.dll_strlen
add eax, dword [ebp - 4]
pop ecx
push eax
call ebx
mov eax, dword [ebp - 4]
add esp, 0xc
jmp 0x40107e

Function at 0x4010b8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40115d
push esi
call sub.MSVCRT.dll_malloc
mov edi, eax
pop ecx
test edi, edi
je 0x40115f
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
cmp dword [ebp + 0xc], 0
je 0x401156
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 0x10]
push edi
call section..text
push eax
lea eax, [ebp - 0x200]
push str.StringFileInfo_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x200]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401146
push dword [ebp - 4]
push ebx
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x401156
push 0x100
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
call sub.MSVCRT.dll_free
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x401201
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
add eax, 0x41
push eax
lea eax, [ebp - 0xc]
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 5
neg eax
sbb eax, eax
inc eax
leave
ret 4
Function at 0x401c93
Capabilities:
Check os version

Disassembly:
mov eax, 0x407e4f
call fcn.00407b40
sub esp, 0x310
push ebx
push esi
mov esi, ecx
mov ebx, 0x9c
push edi
push ebx
lea eax, [esi + 4]
lea edi, [esi + 0x104]
push 0
push edi
mov dword [ebp - 0x10], eax
mov byte [eax], 0x30
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
call ebx
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x401ceb
push edi
mov dword [edi], 0x94
call ebx
test eax, eax
je 0x401eb7
mov eax, dword [esi + 0x114]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
sub eax, 0
je 0x401e5a
dec eax
je 0x401e0a
dec eax
jne 0x401e75
cmp dword [esi + 0x108], 4
mov ebx, 0x409074
ja 0x401d33
push 0x4092d0
push ebx
push dword [ebp - 0x10]
call edi
add esp, 0xc
mov word [esi + 0x1a0], 4
cmp dword [esi + 0x108], 5
jne 0x401d53
push str.Win2K
push ebx
push dword [ebp - 0x10]
call edi
add esp, 0xc
mov word [esi + 0x1a0], 5
cmp dword [ebp - 0x14], 0
je 0x401d6c
mov ax, word [esi + 0x198]
mov word [esi + 0x1a2], ax
jmp 0x401e75
lea ecx, [ebp - 0x11c]
call fcn.00401ec6
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push str.SYSTEMCurrentControlSetControlProductOptions
push 0x80000002
lea ecx, [ebp - 0x11c]
call fcn.00401ed7
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 1
push str.ProductType
call fcn.00401ff1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x21c]
push eax
push str.WINNT
call ebx
test eax, eax
jne 0x401dd8
push str.Workstation
push dword [ebp - 0x10]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
push str.SERVERNT
call ebx
test eax, eax
jne 0x401df9
push str.Server
push dword [ebp - 0x10]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.00401ed2
jmp 0x401e75
mov eax, dword [esi + 0x108]
cmp eax, 4
ja 0x401e3d
jne 0x401e20
cmp dword [esi + 0x10c], 0
ja 0x401e3d
push str.Win95
push 0x409074
push dword [ebp - 0x10]
call edi
add esp, 0xc
mov word [esi + 0x1a0], 2
jmp 0x401e75
push str.Win98
push 0x409074
push dword [ebp - 0x10]
call edi
add esp, 0xc
mov word [esi + 0x1a0], 3
jmp 0x401e75
push str.Win32s
push 0x409074
push dword [ebp - 0x10]
call edi
add esp, 0xc
mov word [esi + 0x1a0], 1
mov eax, dword [esi + 0x110]
and eax, 0xffff
push eax
lea eax, [esi + 0x118]
push eax
lea eax, [ebp - 0x31c]
push dword [esi + 0x10c]
push dword [esi + 0x108]
push str._version__d._d__s__Build__d__n
push eax
call edi
lea eax, [ebp - 0x31c]
push eax
push dword [ebp - 0x10]
call sub.MSVCRT.dll_strcat
add esp, 0x20
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401ff1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [ecx]
push esi
test eax, eax
jne 0x402005
push 6
jmp 0x40206a
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0x400
push ecx
lea ecx, [ebp - 0x404]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40206b
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jne 0x402068
cmp eax, 1
je 0x402042
cmp eax, 2
jbe 0x402068
cmp eax, 4
ja 0x402068
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
cmp dword [esi], eax
jb 0x402068
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi], eax
xor eax, eax
jmp 0x40206b
push 0xd
pop eax
pop esi
leave
ret 0x10

Function at 0x402094
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push esi
push eax
xor esi, esi
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4020d6
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4020d9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402118
add esp, 0xc
test eax, eax
jne 0x402116
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x402152
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402118
add esp, 0xc
test eax, eax
jne 0x402197
push esi
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x402199
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402118
add esp, 0xc
test eax, eax
jne 0x4021cd
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40228f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x4022a9
or eax, 0xffffffff
jmp 0x402398
and dword [ebp - 4], 0
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, 0x409310
mov eax, dword [esi]
push 0x105
lea ecx, [eax + 1]
mov dword [esi], ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40238d
lea eax, [ebp - 0x110]
push eax
push str.Config_ManagerEnum
lea eax, [ebp - 0x218]
push ebx
push eax
call edi
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20019
lea eax, [ebp - 0x218]
push 0
push eax
push 0x80000006
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x110]
push 0x105
push eax
push str.HardWareKey
push dword [ebp - 8]
call fcn.00402078
add esp, 0x10
test eax, eax
jne 0x40237a
lea eax, [ebp - 0x110]
push eax
push str.Enum
push ebx
push dword [ebp + 8]
call edi
add esp, 0x10
lea eax, [esi + 8]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.004021cf
test eax, eax
je 0x40237a
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], 1
je 0x40237a
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x4022ba
xor eax, eax
pop edi
cmp dword [ebp - 4], eax
pop ebx
setne al
dec eax
pop esi
leave
ret 8
Function at 0x402a47
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 2
lea eax, [ebp - 0x14]
pop edi
mov dword [ebp - 0x14], 1
push esi
push esi
push esi
push eax
push esi
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp word [0x40c3dc], 5
jb 0x402aa5
push 0x12
pop edi
push esi
push edi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop edi
pop esi
leave
ret

Function at 0x402ab1
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
push dword [0x40c1c8]
push 3
push dword [0x40c2dc]
call fcn.00402436
mov ebp, dword [esp + 0x24]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
push dword [0x40c1c8]
push 0x3f1
push ebp
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
call edi
push 0x200
push dword [0x40c1c8]
push 4
push dword [0x40c2dc]
call fcn.00402436
add esp, 0x10
push dword [0x40c1c8]
push 0x3ee
push ebp
call esi
push eax
call edi
mov ebx, 0x3e9
push 5
push ebx
push ebp
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x3ea
push ebp
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x200
push dword [0x40c1c8]
push 2
push dword [0x40c2dc]
call fcn.00402436
add esp, 0x10
push str.channel_0
push dword [0x40c1c8]
push dword [0x40aa60]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [0x40aa60]
push ebx
push ebp
call esi
push eax
call edi
push str.channel_1
push dword [0x40c1c8]
push dword [0x40aa60]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [0x40aa60]
push 0x3ea
push ebp
call esi
push eax
call edi
and byte [0x40c1cc], 0
push 0x105
push dword [0x40c1c8]
mov edi, str.DriverParameter
mov esi, 0x80000002
push edi
push str.SYSTEMCurrentControlSetServices_atapiParametersDevice0
push esi
call fcn.00402094
add esp, 0x14
test eax, eax
jne 0x402bf9
push str.DmaDetectionLevel__0x1_
push dword [0x40c1c8]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x402bf9
mov byte [0x40c1cc], 1
cmp byte [0x40c1cc], 0
je 0x402c06
push 1
jmp 0x402c08
push 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_CheckDlgButton]
push ebp
call ebx
and byte [0x40c1cd], 0
push 0x105
push dword [0x40c1c8]
push edi
push str.SYSTEMCurrentControlSetServices_atapiParametersDevice1
push esi
call fcn.00402094
add esp, 0x14
test eax, eax
jne 0x402c54
push str.DmaDetectionLevel__0x1_
push dword [0x40c1c8]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x402c54
mov byte [0x40c1cd], 1
cmp byte [0x40c1cd], 0
je 0x402c61
push 1
jmp 0x402c63
push 0
push 0x3ea
push ebp
call ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403631
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
push dword [0x40aa60]
push 0xf
push dword [0x40c2dc]
call fcn.00402436
mov ebp, dword [esp + 0x24]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x10
push dword [0x40aa60]
push 0x3ee
push ebp
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebx, 0x3e9
mov edi, 0x409ca6
mov al, bl
add al, 0x17
push eax
call fcn.0040340a
test eax, eax
pop ecx
je 0x4036d7
push 5
push ebx
push ebp
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [edi - 0x436]
push eax
push ebx
push ebp
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
xor eax, eax
cmp byte [edi], 1
sete al
push eax
push ebx
push ebp
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0
push ebx
push ebp
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
add edi, 0x43a
inc ebx
lea eax, [ebx - 0x3e9]
cmp eax, 4
jl 0x403679
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x403a41
Capabilities:
Persist via run registry key
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ecx, ecx
push 1
xor ebx, ebx
mov dword [ebp - 4], ecx
mov edx, 0x409ca8
pop edi
mov ax, word [edx]
cmp ax, di
jne 0x403a69
mov eax, edi
shl eax, cl
or ebx, eax
jmp 0x403a76
cmp ax, 2
jne 0x403a76
mov eax, edi
shl eax, cl
or dword [ebp - 4], eax
add edx, 0x43a
inc ecx
cmp edx, 0x40ad90
jl 0x403a59
mov eax, dword [ebp + 8]
dec eax
je 0x403b73
dec eax
je 0x403ab1
push 0x400
push dword [0x40aa60]
push edi
push dword [0x40c2dc]
call fcn.00402436
add esp, 0x10
jmp 0x403bb3
mov esi, 0x400
push esi
push dword [0x40c1c8]
push dword [0x40c2dc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ax, word [0x40c3e0]
cmp ax, 3
jne 0x403ae9
push 0x4096c0
push dword [0x40c1c8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x403b41
cmp ax, di
jne 0x403b09
push 0x4096bc
push dword [0x40c1c8]
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x10]
push 0xa
push eax
movzx eax, bx
jmp 0x403b29
cmp ax, 2
jne 0x403b41
push 0x4096b8
push dword [0x40c1c8]
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x10]
push 0xa
push eax
movzx eax, word [ebp - 4]
push eax
call sub.MSVCRT.dll__itoa
lea eax, [ebp - 0x10]
push eax
push dword [0x40c1c8]
call sub.MSVCRT.dll_strcat
add esp, 0x1c
push dword [0x40c1c8]
push str.DMASwitch
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.00402152
push esi
push dword [0x40aa60]
push edi
push dword [0x40c2dc]
call fcn.00402436
add esp, 0x20
jmp 0x403bb3
mov esi, 0x400
push esi
push dword [0x40aa60]
push 0x28
push dword [0x40c2dc]
call fcn.00402436
push esi
push dword [0x40c1c8]
push edi
push dword [0x40c2dc]
call fcn.00402436
push dword [0x40c1c8]
push dword [0x40aa60]
call sub.MSVCRT.dll_strcat
add esp, 0x28
push 0x40024
push str.Reboot
push dword [0x40aa60]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
cmp eax, 6
pop ebx
jne 0x403bee
cmp word [0x40c3dc], 4
jb 0x403be4
call fcn.00402a47
leave
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
leave
ret
Function at 0x403e9c
Capabilities:
Delete registry key

Disassembly:
push ebx
push ebp
mov ebx, 0x10e8
push edi
push ebx
push 0x40ab70
mov ebp, str.SOFTWARECyberLinkDMASwitch
push str.Origin
mov edi, 0x80000002
push ebp
push edi
call fcn.00402094
add esp, 0x14
call fcn.00403d91
cmp eax, 0x66
jne 0x403f05
push 0x200
push dword [0x40aa60]
push 0x14
push dword [0x40c2dc]
call fcn.00402436
add esp, 0x10
push 0x40034
push str.DMA_Switch
push dword [0x40aa60]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x403f61
push esi
xor esi, esi
cmp byte [esi + 0x40ab70], 0
je 0x403f53
movzx eax, word [esi + 0x409ca4]
push eax
push str.IDEDMADRIVE_d
push dword [0x40aa60]
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esi + 0x40afa6]
push 1
push eax
lea eax, [esi + 0x40ad7a]
push dword [0x40aa60]
push eax
push edi
call fcn.004020d9
add esi, 0x43a
add esp, 0x20
cmp esi, ebx
jl 0x403f08
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0xfffffffffffffff8
pop eax
pop esi
jmp 0x403f64
push 0xfffffffffffffff9
pop eax
pop edi
pop ebp
pop ebx
ret