joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100113c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10068c90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x10011493
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x118]
push eax
call fcn.1001470c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0xe], 0x75732074
mov dword [ebp - 8], 0x74726f
mov dword [ebp - 0x13], 0x6174736e
mov word [ebp - 0xa], 0x7070
mov byte [ebp - 0x14], 0x69
mov byte [ebp - 0xf], 0x6e
call fcn.10014410
add esp, 0xc
test eax, eax
jne 0x100114c2
push sym.gphelper.dll__HookSetWindowPos_28
push 0x10069c0c
call fcn.100120a0
add esp, 8
test eax, eax
je 0x100114c2
push sym.gphelper.dll__HookSetForegroundWindow_4
push 0x10069bdc
call fcn.100120a0
add esp, 8
test eax, eax
je 0x100114c2
push sym.gphelper.dll__HookSetActiveWindow_4
push 0x10069cd8
call fcn.100120a0
add esp, 8
test eax, eax
je 0x100114c2
push sym.gphelper.dll__HookBringWindowToTop_4
push 0x10069c74
call fcn.100120a0
add esp, 8
jmp 0x100114c2
test eax, eax
jne 0x100114c2
push 0x10069c0c
call fcn.10012270
push 0x10069bdc
call fcn.10012270
push 0x10069cd8
call fcn.10012270
push 0x10069c74
call fcn.10012270
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.10014377
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10011fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10011ff5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10012034
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10012030
lea ebx, [ebx]
cmp esi, edx
jae 0x10012034
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10012020
cmp esi, edx
jb 0x10012039
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100120a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
push edi
xor edi, edi
call fcn.10012330
push esi
call fcn.10012380
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.10012380
push 0x50
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x6c]
xorps xmm0, xmm0
push edi
push eax
movlpd qword [ebp - 0x74], xmm0
call fcn.10013720
lea eax, [ebp - 0x74]
push eax
push 5
push ebx
call fcn.10012900
mov esi, eax
add esp, 0x20
mov dword [ebp - 0x1c], esi
cmp esi, 5
jb 0x10012254
push esi
push ebx
call fcn.10012760
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push ebx
call fcn.10012410
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x1001224f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push esi
push ebx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10012233
lea eax, [ebp - 8]
push eax
push 0x40
push 0x6c
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10012214
xor ecx, ecx
lea eax, [edi + 0x2c]
test esi, esi
je 0x1001218b
mov edx, eax
sub ebx, eax
mov al, byte [ebx + edx]
mov byte [edx], al
mov byte [edi + ecx + 0x4c], al
inc ecx
lea edx, [edx + 1]
cmp ecx, esi
jb 0x10012177
mov ebx, dword [ebp - 0x18]
lea eax, [esi + ebx]
push eax
lea eax, [esi + 0x2c]
add eax, edi
push eax
call fcn.100123c0
mov ecx, dword [ebp - 0x10]
add esp, 8
cmp ecx, ebx
jae 0x100121aa
mov eax, ebx
sub eax, ecx
jmp 0x100121ae
mov eax, ecx
sub eax, ebx
push ecx
cmp eax, 0x7fff0000
jbe 0x100121dd
lea esi, [edi + 0xc]
push esi
call fcn.100123c0
sub eax, edi
sub eax, 0xc
push eax
push esi
push dword [ebp - 4]
call fcn.10010170
push esi
push ebx
call fcn.100123c0
mov esi, dword [ebp - 0x1c]
add esp, 0x1c
jmp 0x100121e6
push ebx
call fcn.100123c0
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], eax
push esi
lea eax, [edi + 0x2c]
push eax
push dword [ebp - 4]
mov dword [edi + 4], esi
mov dword [edi], ebx
call fcn.10010170
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x6c
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push esi
push ebx
push dword [ebp - 4]
call fcn.10010170
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
je 0x10012242
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x2c]
mov dword [ecx], eax
jmp 0x1001224f
push 1
push edi
call fcn.10012560
add esp, 8
xor edi, edi
call fcn.100126c0
call fcn.10012370
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
call fcn.10012330
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.10012520
mov esi, eax
add esp, 4
test esi, esi
je 0x1001231a
push dword [esi + 4]
push dword [esi]
call fcn.10012760
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [esi + 4]
mov dword [ebp - 8], eax
push dword [esi]
mov dword [ebp - 4], edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10012315
mov edx, dword [esi]
xor ecx, ecx
cmp dword [esi + 4], ecx
jbe 0x100122dd
nop
mov al, byte [esi + ecx + 0x4c]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [esi + 4]
jb 0x100122d0
push dword [esi + 4]
mov edi, dword [ebp - 8]
push dword [esi]
push edi
call fcn.10010170
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [esi + 4]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [esi]
push 0
push esi
mov dword [ebx], eax
mov edi, 1
call fcn.10012560
add esp, 8
call fcn.100126c0
call fcn.10012370
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012410
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
xor edi, edi
cmp dword [0x10069cf4], 0x40
jae 0x10012518
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
add esi, ecx
cmp esi, 0x80000000
jae 0x1001243c
lea esi, [edi + 1]
jmp 0x10012442
sub esi, 0x7fff0000
push ebx
mov ebx, dword [ebp + 0x14]
add ebx, ecx
cmp ebx, 0x80000000
jae 0x10012458
add ebx, 0x7ff80000
jmp 0x1001245d
mov ebx, 0xfff80000
xorps xmm0, xmm0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], edi
movq qword [ebp - 0x3c], xmm0
movq qword [ebp - 0x34], xmm0
movq qword [ebp - 0x2c], xmm0
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, ebx
jae 0x10012516
lea esp, [esp]
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100124e7
cmp dword [ebp - 0xc], 0x10000
jne 0x100124db
mov eax, dword [ebp - 0x10]
cmp eax, 0x6c
jb 0x100124de
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jb 0x100124de
lea eax, [ecx - 1]
add eax, esi
xor edx, edx
div ecx
push 0x20
push 0x3000
push 0x6c
imul eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x100124eb
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
add esi, eax
cmp esi, ebx
jb 0x10012490
test edi, edi
je 0x10012516
xor eax, eax
lea ecx, [ecx]
cmp dword [eax*4 + 0x10069d28], 0
je 0x10012509
inc eax
cmp eax, 0x40
jb 0x100124f0
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
inc dword [0x10069cf4]
mov dword [eax*4 + 0x10069d28], edi
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100125b0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x10068c90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x10012668
test esi, esi
je 0x10012668
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x100126a3
push edi
lea eax, [ebp - 0x2d0]
push eax
push esi
mov dword [ebp - 0x2d0], 0x10001
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10012691
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x218]
cmp ecx, ebx
jb 0x10012664
mov eax, dword [ebp + 0x10]
add eax, ebx
cmp ecx, eax
jae 0x10012664
push esi
call edx
cmp edi, 3
jge 0x10012677
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
push eax
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x10012621
pop ebx
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014377
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014377
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014377
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10014377
mov esp, ebp
pop ebp
ret

Function at 0x100126c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.10010390
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call fcn.10010390
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x10069cfc], esi
jbe 0x1001271f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ebx, [ebx]
mov eax, dword [0x10069cf8]
push dword [eax + esi*4]
call edi
mov eax, dword [0x10069cf8]
push dword [eax + esi*4]
call ebx
inc esi
cmp esi, dword [0x10069cfc]
jb 0x10012700
pop edi
pop ebx
push dword [0x10069cf8]
call fcn.100155d2
add esp, 4
mov dword [0x10069cf8], 0
push dword [ebp - 4]
mov dword [0x10069cfc], 0
call fcn.10010390
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10017a37
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10068c90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10022046
mov dword [ebp - 0x14], eax
cmp dword [0x10069e8c], edi
jne 0x10017b28
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10017ab5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10017c08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10017c08
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10017c08
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10069e8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10069e90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10069e94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10069e9c], eax
test eax, eax
je 0x10017b25
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10069e98], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10017b4d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10017b40
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10017b62
push 4
pop eax
jmp 0x10017c0a
cmp dword [ebp - 0x14], edi
je 0x10017b62
push dword [0x10069e8c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10017b47
mov eax, dword [0x10069e98]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10017bc0
cmp dword [0x10069e9c], esi
je 0x10017bc0
push eax
call ebx
push dword [0x10069e9c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10017bc0
test eax, eax
je 0x10017bc0
call ecx
test eax, eax
je 0x10017bb5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10017bb5
test byte [ebp - 8], 1
jne 0x10017bc0
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10017bf0
mov eax, dword [0x10069e90]
cmp eax, esi
je 0x10017bed
push eax
call ebx
test eax, eax
je 0x10017bed
call eax
mov edi, eax
test edi, edi
je 0x10017bed
mov eax, dword [0x10069e94]
cmp eax, esi
je 0x10017bed
push eax
call ebx
test eax, eax
je 0x10017bed
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10069e8c]
call ebx
test eax, eax
je 0x10017c08
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10017c0a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014377
leave
ret
Function at 0x10032aeb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001b99b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x10032b23
xor eax, eax
jmp 0x10032b4f
cmp esi, dword [ebp - 4]
je 0x10032b4c
cmp dword [ebp + 0xc], 0
je 0x10032b4c
push dword [edi + 0x9c]
call fcn.100326f9
push dword [edi + 0x9c]
mov esi, eax
call fcn.10016659
pop ecx
pop ecx
cmp esi, eax
je 0x10032b1f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x401690
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
push 0
push str.SOFTWAREASUSIODRV
push 0x80000002
call edi
test eax, eax
jne 0x40175d
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Version
push ecx
call esi
mov edx, dword [esp + 8]
push str.RefCount
push edx
call esi
mov eax, dword [esp + 8]
push str.ReleaseTime
push eax
call esi
mov ecx, dword [esp + 8]
push str.InstalledTime
push ecx
call esi
mov edx, dword [esp + 8]
push str.UninFile
push edx
call esi
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push str.SOFTWAREASUS
push 0x80000002
call edi
test eax, eax
jne 0x40175d
mov eax, dword [esp + 0x10]
push str.IODRV
test eax, eax
je 0x401749
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 8]
push ecx
call esi
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyA]
mov ecx, dword [esp + 8]
push ecx
call esi
xor eax, eax
pop edi
pop esi
pop ecx
ret
Function at 0x401770
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x400
lea eax, [esp + 0x300]
push ebx
push ebp
push esi
push edi
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [esp + 0x414]
test eax, eax
je 0x4017dd
mov eax, dword [0x4167d8]
lea edx, [esp + 0x110]
test eax, eax
mov edi, str._syswow64
jne 0x4017b2
mov edi, str._system32
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x210]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.AsIO.sys
jmp 0x401812
mov edi, str._system
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x210]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.AsIO.vxd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x310]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x210]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_sdrivers_s
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x14
lea edx, [esp + 0x10]
push 0x80
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x110]
push str.AsIO.dll
lea edx, [esp + 0x314]
mov ebp, eax
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s_s_s
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x10]
push 0x80
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call ebx
pop edi
or eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x400
ret

Function at 0x4018d0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4018ef
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401939
xor eax, eax
add esp, 0x14
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x401990
Capabilities:
Create service
Start service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x100
test eax, eax
push esi
push edi
je 0x401a7c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4019c2
pop edi
pop esi
add esp, 0x100
ret
push 0xf01ff
push str.AsIO
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401a49
mov eax, dword [0x4167d8]
push str.AsIO.sys
test eax, eax
je 0x4019f3
lea eax, [esp + 0xc]
push str.SysWow64drivers_s
push eax
jmp 0x4019fd
lea ecx, [esp + 0xc]
push str.system32drivers_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 8]
push 0
push 0
push 0
push 0
push 0
push edx
push 1
push 1
push 1
push 0xf01ff
push str.AsIO
push str.AsIO
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x401a49
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x100
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x401a70
pop edi
xor eax, eax
pop esi
add esp, 0x100
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x100
ret

Function at 0x401ae0
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
test eax, eax
push esi
push edi
jne 0x401af8
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x401b50
push 0xf01ff
push str.AsIO
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401b49
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
Function at 0x401e40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SOFTWAREASUSIODRV
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f35
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x14]
push esi
push edx
push eax
mov eax, dword [esp + 0x1c]
push str.Version
push eax
mov dword [esp + 0x20], 4
call edi
lea ecx, [esp + 8]
lea edx, [esi + 0x84]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.RefCount
push ecx
mov dword [esp + 0x20], 4
call edi
lea edx, [esp + 8]
lea eax, [esi + 4]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.ReleaseTime
push edx
mov dword [esp + 0x20], 0x40
call edi
lea eax, [esp + 8]
lea ecx, [esi + 0x44]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.InstalledTime
push eax
mov dword [esp + 0x20], 0x40
call edi
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
add esi, 0x88
push ecx
lea edx, [esp + 0x14]
push esi
push edx
push 0
push str.UninFile
push eax
mov dword [esp + 0x20], 0xff
call edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x401f40
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SOFTWAREASUSIODRV
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401f9b
cmp eax, 2
jne 0x402088
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREASUSIODRV
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402088
mov eax, dword [esp + 0x90]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
test eax, eax
jbe 0x401fc8
mov ecx, dword [esp + 8]
lea eax, [esp + 0x98]
push 4
push eax
push 4
push 0
push str.RefCount
push ecx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x401fe7
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.Version
push eax
call esi
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402018
lea edi, [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 8]
dec ecx
push ecx
lea ecx, [esp + 0x5c]
push ecx
push 1
push eax
push str.InstalledTime
push edx
call esi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40204a
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push 1
push 0
push str.ReleaseTime
push ecx
call esi
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402084
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x9c]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push str.UninFile
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 8
ret