joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1114738
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01114888
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x111475e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x111474a
add dl, dl
jne 0x1114769
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11147bc
xor eax, eax
add dl, dl
jne 0x1114776
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x111485d
add dl, dl
jne 0x1114785
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1114790
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x111479b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11147a6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11147b2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1114755
mov eax, 1
add dl, dl
jne 0x11147ca
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11147d5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11147c1
sub eax, ebx
mov ebx, 1
jne 0x1114808
mov ecx, 1
add dl, dl
jne 0x11147ee
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11147f9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11147e5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1114755
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x111481f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x111482a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1114816
cmp eax, 0x7d00
jae 0x111484d
cmp eax, 0x500
jb 0x1114848
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1114755
cmp eax, 0x7f
ja 0x1114850
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1114755
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x111487e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1114755
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x878
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x874], eax
push esi
push edi
mov ecx, 0x10
mov esi, str.software_binx8632pcdstart.exe
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
push 0x206
lea eax, [esp + 0x46c]
push edi
push eax
mov dword [esp + 0x470], edi
call fcn.00401550
push 0x206
lea ecx, [esp + 0x60]
push edi
push ecx
mov dword [esp + 0x64], edi
call fcn.00401550
push 0x206
lea edx, [esp + 0x690]
push edi
push edx
mov dword [esp + 0x694], edi
call fcn.00401550
add esp, 0x24
push 0x105
lea eax, [esp + 0x468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x464]
push 0x5c
push ecx
call fcn.00401203
add esp, 8
cmp eax, edi
je 0x4011c2
xor edx, edx
push 0x206
mov word [eax + 2], dx
lea eax, [esp + 0x260]
push edi
push eax
mov dword [esp + 0x264], edi
call fcn.00401550
push str.r__ccsUNICODE
push str.cdstart.cfg
call fcn.00401524
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x401125
push esi
lea ecx, [esp + 0x25c]
push 0x105
push ecx
call fcn.0040139f
add esp, 0xc
test eax, eax
je 0x401112
lea edx, [esp + 0x258]
push 0xa
push edx
call fcn.004011dd
add esp, 8
cmp eax, edi
je 0x40111c
xor ecx, ecx
mov word [eax], cx
jmp 0x40111c
xor edx, edx
mov word [esp + 0x258], dx
push esi
call fcn.00401323
add esp, 4
lea eax, [esp + 0x464]
push eax
lea ecx, [esp + 0x50]
push 0x105
push ecx
call fcn.0040122f
add esp, 0xc
cmp word [esp + 0x258], di
je 0x40115d
lea edx, [esp + 0x258]
push edx
push 0x105
lea eax, [esp + 0x54]
push eax
jmp 0x40116c
lea ecx, [esp + 8]
push ecx
push 0x105
lea edx, [esp + 0x54]
push edx
call fcn.0040122f
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x674]
push 0x105
push ecx
call fcn.0040122f
lea edx, [esp + 0x67c]
push 0x5c
push edx
call fcn.00401203
add esp, 0x14
cmp eax, edi
je 0x4011a6
xor ecx, ecx
mov word [eax], cx
push 5
lea edx, [esp + 0x674]
push edx
push edi
lea eax, [esp + 0x58]
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x87c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040153b
add esp, 0x878
ret 0x10

Function at 0x40153b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401545
repz ret
jmp fcn.004027eb
Function at 0x4072a3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040393e
and dword [ebp - 4], 0
cmp dword [0x40e934], 0
mov ebx, eax
jne 0x407354
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407405
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407405
push eax
call fcn.004038cc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e934], eax
call esi
push eax
call fcn.004038cc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e938], eax
call esi
push eax
call fcn.004038cc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e93c], eax
call esi
push eax
call fcn.004038cc
pop ecx
mov dword [0x40e944], eax
test eax, eax
je 0x407354
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004038cc
pop ecx
mov dword [0x40e940], eax
mov eax, dword [0x40e940]
cmp eax, ebx
je 0x4073ac
cmp dword [0x40e944], ebx
je 0x4073ac
push eax
call fcn.00403947
push dword [0x40e944]
mov esi, eax
call fcn.00403947
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4073ac
test edi, edi
je 0x4073ac
call esi
test eax, eax
je 0x4073a3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4073a3
test byte [ebp - 0xc], 1
jne 0x4073ac
or dword [ebp + 0x10], 0x200000
jmp 0x4073e5
mov eax, dword [0x40e938]
cmp eax, ebx
je 0x4073e5
push eax
call fcn.00403947
pop ecx
test eax, eax
je 0x4073e5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4073e5
mov eax, dword [0x40e93c]
cmp eax, ebx
je 0x4073e5
push eax
call fcn.00403947
pop ecx
test eax, eax
je 0x4073e5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e934]
call fcn.00403947
pop ecx
test eax, eax
je 0x407405
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407407
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401028
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x4042b0], eax
call sub.COMCTL32.dll_InitCommonControls
push 1
push 0
push 0
push dword [0x4042b0]
call 0x401028
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x40113d
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x4042b0]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 5
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.Mosaic32
push 0x190
push dword [0x4042b0]
call sub.USER32.dll_LoadIconA
mov dword [ebp - 0x18], eax
push 0x191
push dword [0x4042b0]
call sub.USER32.dll_LoadIconA
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.USER32.dll_RegisterClassExA
push 0x12d
push dword [0x4042b0]
call sub.USER32.dll_LoadMenuA
mov dword [0x4042b4], eax
push 0
push dword [ebp + 8]
push dword [0x4042b4]
push 0
push 0x186
push 0x102
push 0x80000000
push 0x80000000
push 0xca0000
push section..data
push str.Mosaic32
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push dword [ebp + 0x14]
push dword [ebp - 0x50]
call sub.USER32.dll_ShowWindow
push dword [ebp - 0x50]
call sub.USER32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_GetMessageA
or eax, eax
je 0x401136
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_DispatchMessageA
jmp 0x40110f
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x401e3b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push edi
push esi
push dword [0x4042d0]
call sub.GDI32.dll_DeleteObject
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push 0x4043c8
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401e8f
push 0
push section..data
push str.Error:_Could_not_open_bitmap_file.
push 0
call sub.USER32.dll_MessageBoxA
push 0x6a
push dword [ebp + 8]
call main
pop esi
pop edi
leave
ret 4
mov dword [ebp - 4], eax
push 0
push dword [ebp - 4]
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 8], eax
push eax
push 2
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
push eax
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.KERNEL32.dll_ReadFile
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x14], ecx
jne 0x401ed3
or eax, eax
jne 0x401ef5
push 0
push section..data
push str.Error:_Failed_reading_from_bitmap_file.
push 0
call sub.USER32.dll_MessageBoxA
push 0x6a
push dword [ebp + 8]
call main
jmp 0x401f7b
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00401f99
or eax, eax
jne 0x401f26
push 0
push section..data
push str.ERROR:_Bitmap_is_invalid.
push 0
call sub.USER32.dll_MessageBoxA
push 0x6a
push dword [ebp + 8]
call main
jmp 0x401f7b
cmp eax, 1
jne 0x401f51
mov ecx, dword [ebp - 0x10]
mov edx, ecx
mov edx, dword [edx + 0xa]
add edx, ecx
add ecx, 0xe
push 0
push ecx
push edx
push 4
push ecx
push dword [0x4042cc]
call sub.GDI32.dll_CreateDIBitmap
mov dword [0x4042d0], eax
jmp 0x401f7b
cmp eax, 2
jne 0x401f7b
push 0
push section..data
push str.ERROR:_This_bitmap_is_not_200x200_pixels.
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0x4043c8
mov byte [eax], 0
push 0x6a
push dword [ebp + 8]
call main
push dword [ebp - 0xc]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebp - 0xc]
call sub.KERNEL32.dll_GlobalFree
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
pop esi
pop edi
leave
ret 4
Function at 0x1556058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.015561a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x155607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x155606a
add dl, dl
jne 0x1556089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15560dc
xor eax, eax
add dl, dl
jne 0x1556096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x155617d
add dl, dl
jne 0x15560a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15560b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15560bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15560c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x15560d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1556075
mov eax, 1
add dl, dl
jne 0x15560ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15560f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15560e1
sub eax, ebx
mov ebx, 1
jne 0x1556128
mov ecx, 1
add dl, dl
jne 0x155610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1556119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1556105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1556075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x155613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x155614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1556136
cmp eax, 0x7d00
jae 0x155616d
cmp eax, 0x500
jb 0x1556168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1556075
cmp eax, 0x7f
ja 0x1556170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1556075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x155619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1556075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4017d0
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 0x40189d
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 0x40189d
mov eax, dword [esp + 0x10]
push str.IODRV
test eax, eax
je 0x401889
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 0x4018b0
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 0x40191d
mov eax, dword [0x41785c]
lea edx, [esp + 0x110]
test eax, eax
mov edi, str._syswow64
jne 0x4018f2
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 0x401952
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 0x401a10
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 0x401a2f
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 0x401a79
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 0x401ad0
Capabilities:
Create service
Start service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x100
test eax, eax
push esi
push edi
je 0x401bbc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401b02
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 0x401b89
mov eax, dword [0x41785c]
push str.AsIO.sys
test eax, eax
je 0x401b33
lea eax, [esp + 0xc]
push str.SysWow64drivers_s
push eax
jmp 0x401b3d
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 0x401b89
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 0x401bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x401bb0
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 0x401c20
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
test eax, eax
push esi
push edi
jne 0x401c38
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 0x401c90
push 0xf01ff
push str.AsIO
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401c89
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 0x401f80
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 0x402075
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 0x402080
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 0x4020db
cmp eax, 2
jne 0x4021c8
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 0x4021c8
mov eax, dword [esp + 0x90]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
test eax, eax
jbe 0x402108
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 0x402127
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 0x402158
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 0x40218a
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 0x4021c4
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
Function at 0x4021d0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 8]
push esi
xor ebx, ebx
xor esi, esi
push eax
push 0x20008
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4022dc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push edx
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 0
mov byte [esp + 0x46], 0
mov byte [esp + 0x47], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x49], 5
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4022dc
mov ecx, dword [esp + 0xc]
push ebp
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push ecx
mov dword [esp + 0x24], ebx
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.0040a32e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x4022c0
mov eax, dword [esi]
xor edi, edi
cmp eax, ebx
jbe 0x4022c0
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [esi + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp]
push eax
push ecx
call ebx
test eax, eax
jne 0x4022b8
mov eax, dword [esi]
inc edi
add ebp, 8
cmp edi, eax
jb 0x40229d
jmp 0x4022c0
mov dword [esp + 0x1c], 1
push esi
call fcn.0040a357
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov esi, dword [esp + 0x1c]
pop edi
xor ebx, ebx
pop ebp
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4022eb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
add esp, 0x18
ret