joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490390
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e55bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x34]
mov eax, dword [esi + 4]
push 0x4000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [esi + 4]
setne dl
xor ebp, ebp
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call fcn.00490230
mov ebx, eax
push ebx
call fcn.004902a0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0048cbc0
add esp, 0x10
cmp eax, ebp
je 0x490432
cmp edi, ebp
je 0x490409
push edi
call fcn.004afcac
add esp, 4
cmp ebx, ebp
je 0x490416
push ebx
call fcn.004afcac
add esp, 4
mov ecx, dword [esi + 4]
push ebp
push ebp
push ecx
call fcn.004dc440
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x490548
cmp edi, ebp
je 0x49043f
push edi
call fcn.004afcac
add esp, 4
cmp ebx, ebp
je 0x49044c
push ebx
call fcn.004afcac
add esp, 4
push str.select_count___from__sqlite_master_where_typetable_and_nameConfig
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
xor edi, edi
call fcn.004d49fb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0xdc], ebp
call fcn.00467260
mov eax, dword [esp + 0x28]
mov esi, 1
add esp, 0x18
cmp eax, esi
jl 0x4904e6
cmp esi, 1
jne 0x4904dd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0x20]
push edx
call fcn.004d49fb
mov eax, dword [esp + 0x20]
push 0x50b4b0
push eax
call fcn.004aebf6
add esp, 8
test eax, eax
jne 0x4904d4
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.004d498d
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jle 0x4904a2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043fff0
mov edx, dword [esp + 0x28]
push edx
call fcn.00467560
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
je 0x490509
cmp edi, ebp
jne 0x490522
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ebp
push ebp
push str.create_table_Config_Key_varchar_256__UpdateTime_varchar_256___String_varchar_2048___Comment_varchar_2048___
push ecx
call fcn.00465a00
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call fcn.0048b5c0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004d498d
mov eax, 1
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret
Function at 0x4903ad
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e55bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x34]
mov eax, dword [esi + 4]
push 0x4000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
xor edx, edx
cmp eax, 0xffffffff
mov eax, dword [esi + 4]
setne dl
xor ebp, ebp
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call fcn.00490230
mov ebx, eax
push ebx
call fcn.004902a0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0048cbc0
add esp, 0x10
cmp eax, ebp
je 0x490432
cmp edi, ebp
je 0x490409
push edi
call fcn.004afcac
add esp, 4
cmp ebx, ebp
je 0x490416
push ebx
call fcn.004afcac
add esp, 4
mov ecx, dword [esi + 4]
push ebp
push ebp
push ecx
call fcn.004dc440
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x490548
cmp edi, ebp
je 0x49043f
push edi
call fcn.004afcac
add esp, 4
cmp ebx, ebp
je 0x49044c
push ebx
call fcn.004afcac
add esp, 4
push str.select_count___from__sqlite_master_where_typetable_and_nameConfig
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
xor edi, edi
call fcn.004d49fb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
mov dword [esp + 0xdc], ebp
call fcn.00467260
mov eax, dword [esp + 0x28]
mov esi, 1
add esp, 0x18
cmp eax, esi
jl 0x4904e6
cmp esi, 1
jne 0x4904dd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0x20]
push edx
call fcn.004d49fb
mov eax, dword [esp + 0x20]
push 0x50b4b0
push eax
call fcn.004aebf6
add esp, 8
test eax, eax
jne 0x4904d4
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.004d498d
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jle 0x4904a2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043fff0
mov edx, dword [esp + 0x28]
push edx
call fcn.00467560
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
je 0x490509
cmp edi, ebp
jne 0x490522
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ebp
push ebp
push str.create_table_Config_Key_varchar_256__UpdateTime_varchar_256___String_varchar_2048___Comment_varchar_2048___
push ecx
call fcn.00465a00
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call fcn.0048b5c0
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004d498d
mov eax, 1
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret
Function at 0x490a30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e5678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
test eax, eax
mov esi, ecx
jne 0x490a63
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov ecx, dword [0x51347c]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push str.insert_into_Config_Key_UpdateTime_String_Comment_values__s__s__s__s__
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
call fcn.004d3a22
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push eax
push ecx
call fcn.00465a00
mov edx, dword [esp + 0x30]
push edx
call fcn.0043fff0
add esp, 0x30
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.004d498d
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x491350
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x4912e0
push 0
push 0
call fcn.004af505
add esp, 0x1c
ret

Function at 0x491500
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4915e0
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea ecx, [esp + 4]
push edi
push ecx
push 0
push 0
call esi
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x49154e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 8]
push edx
push eax
call edi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea eax, [esp + 8]
push eax
push 0x19
push 0
call esi
test eax, eax
jl 0x491578
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
push ecx
push edx
call edi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea eax, [esp + 8]
push eax
push 0xb
push 0
call esi
test eax, eax
jl 0x4915a2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 8]
push ecx
push edx
call edi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea eax, [esp + 8]
push eax
push 0x17
push 0
call esi
test eax, eax
jl 0x4915cc
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
push ecx
push edx
call edi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
xor eax, eax
pop esi
add esp, 8
ret 0x10
xor eax, eax
add esp, 8
ret 0x10
Function at 0x4922b0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x4937c0
push 0
push 0
call fcn.004af505
add esp, 0x1c
ret
Function at 0x493a00
Capabilities:
Create process on windows
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e5ad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ecx + 0x14]
push ebp
mov dword [esp + 0x10], ecx
mov ebp, dword [eax]
cmp ebp, eax
je 0x493bb8
push ebx
push esi
push edi
xor ebx, ebx
lea esi, [ebp + 8]
push ebx
lea ecx, [esp + 0x24]
mov al, byte [esi + 0x44]
lea edi, [esi + 0x44]
mov byte [esp + 0x24], al
call fcn.00407190
mov ecx, dword [0x4ea898]
push ecx
push ebx
push edi
lea ecx, [esp + 0x2c]
call fcn.00406bb0
mov edx, dword [0x4ea898]
lea ecx, [esp + 0x20]
push edx
push ebx
push esi
mov dword [esp + 0x44], ebx
call fcn.00406a10
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x493a7b
mov eax, 0x4ea894
push eax
lea ecx, [esp + 0x1c]
call fcn.004d49fb
mov edi, str..old
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x38], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..old
lea ecx, [esp + 0x28]
call fcn.00406af0
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x493ab5
mov eax, 0x4ea894
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00492b50
test eax, eax
je 0x493b5e
mov ecx, esi
call fcn.00492b80
test eax, eax
je 0x493b5e
mov ecx, esi
call fcn.00492df0
mov eax, dword [0x51347c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push 0x5120f8
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 3
call fcn.004d4b16
push 0x50a16c
lea ecx, [esp + 0x14]
call fcn.004d4b16
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0x50001
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x493b42
mov edx, dword [esp + 0x18]
push eax
push ebx
push str._SILENT
push edx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call fcn.004d498d
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.004d498d
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], bl
call fcn.004d498d
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
cmp ecx, ebx
je 0x493b97
mov al, byte [ecx - 1]
cmp al, bl
je 0x493b8d
cmp al, 0xff
je 0x493b8d
dec al
mov byte [ecx - 1], al
jmp 0x493b97
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov eax, dword [esp + 0x1c]
mov ebp, dword [ebp]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x2c], ebx
cmp ebp, ecx
jne 0x493a2f
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4952e0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
xor edi, edi
not ecx
dec ecx
mov ebp, ecx
test ebp, ebp
jle 0x49536b
mov dl, byte [edi + ebx]
cmp dl, 0x7f
jg case.default.0x495322
cmp dl, 0x3d
je 0x495379
movsx ecx, dl
mov dl, byte [ecx + 0x4f22ac]
cmp dl, 0xff
je case.default.0x495322
cmp esi, 3
ja case.default.0x495322
jmp dword [esi*4 + 0x495388]
shl dl, 2
mov byte [eax], dl
mov esi, 1
jmp case.default.0x495322
mov cl, dl
mov esi, 2
shr cl, 4
or byte [eax], cl
inc eax
shl dl, 4
mov byte [eax], dl
jmp case.default.0x495322
mov cl, dl
mov esi, 3
shr cl, 2
or byte [eax], cl
inc eax
shl dl, 6
mov byte [eax], dl
jmp case.default.0x495322
mov cl, byte [eax]
or cl, dl
mov byte [eax], cl
inc eax
xor esi, esi
inc edi
cmp edi, ebp
jl 0x495302
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov byte [eax], 0
pop ebp
sub eax, ecx
pop ebx
ret
mov edx, dword [esp + 0x18]
pop edi
sub eax, edx
pop esi
pop ebp
inc eax
pop ebx
ret
Function at 0x496550
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x496580
push 0
push 0
call fcn.004af505
add esp, 0x1c
ret
Function at 0x49ab90
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0xa0
mov eax, dword [str.IRNPF]
mov cx, word [0x50a3e0]
push ebp
push esi
push edi
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], cx
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
push 0x518908
push str.UnInstallDriver
stosw word es:[edi], ax
call fcn.0043d690
add esp, 8
xor edi, edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x49acbb
push 0x518908
push str.Opened_the_SCM
call fcn.0043d690
add esp, 8
lea edx, [esp + 0x2c]
push 0xf01ff
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
je 0x49acbb
push 0x518908
push str.Opened_the_IRNPF_service_in_the_SCM
call fcn.0043d690
add esp, 8
lea eax, [esp + 0x10]
push eax
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push 0x518908
test edi, edi
jne 0x49ac4b
push str.Failed_to_stop_the_IRNPF_service
jmp 0x49ac50
push str.IRNPF_service_stopped
call fcn.0043d690
add esp, 8
mov esi, 2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push 0x518908
jne 0x49ac91
push str.Delete_IRNPF_service_failed
call fcn.0043d690
add esp, 8
xor edi, edi
push 0x3e8
call ebx
dec esi
test esi, esi
jg 0x49ac64
jmp 0x49ac9e
push str.Delete_IRNPF_service_success
call fcn.0043d690
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xa0
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xa0
ret
Function at 0x49acd0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0xa4
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSet_servicesIRNP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x49ad02
mov eax, 1
add esp, 0xa4
ret
mov ecx, dword [str.IRNP]
mov dl, byte [0x512ec8]
push ebp
push esi
push edi
mov dword [esp + 0x30], ecx
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x518908
push str.UnInstallDriver
stosb byte es:[edi], al
call fcn.0043d690
add esp, 8
xor edi, edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x49ae1b
push 0x518908
push str.Opened_the_SCM
call fcn.0043d690
add esp, 8
lea eax, [esp + 0x30]
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
je 0x49ae1b
push 0x518908
push str.Opened_the_IRNP_service_in_the_SCM
call fcn.0043d690
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push 0x518908
test edi, edi
jne 0x49adb7
push str.Failed_to_stop_the_IRNP_service
jmp 0x49adbc
push str.IRNP_service_stopped
call fcn.0043d690
add esp, 8
mov esi, 2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push 0x518908
jne 0x49adfd
push str.Delete_IRNP_service_failed
call fcn.0043d690
add esp, 8
xor edi, edi
push 0x3e8
call ebx
dec esi
test esi, esi
jg 0x49add0
jmp 0x49ae0a
push str.Delete_IRNP_service_success
call fcn.0043d690
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xa4
ret
Function at 0x49ae30
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x208
mov eax, dword [str.IRNPF]
mov cx, word [0x50a3e0]
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 5
mov esi, str.IResearch_IRNPF_Driver
lea edi, [esp + 0x90]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x1a
lea edi, [esp + 0xa7]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x110]
mov byte [esp + 0xc], 0
push edx
xor ebp, ebp
stosb byte es:[edi], al
call fcn.0049de90
lea eax, [esp + 0x114]
push eax
call fcn.0049dda0
push 0x518908
push str.InstallDriver
call fcn.0043d690
add esp, 0x10
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x49aed4
pop edi
pop esi
pop ebp
add esp, 0x208
ret
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x120]
push 0
push ecx
push 1
push 2
push 1
lea edx, [esp + 0xb4]
push 0xf01ff
lea eax, [esp + 0x38]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x49af66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0x431
jne 0x49afb8
push 0x518908
push str.Service_IRNPF.sys_already_exists
call fcn.0043d690
add esp, 8
xor ebp, ebp
mov byte [esp + 0xc], 1
push str.WINPCAPSUCC3.exe
call fcn.004180b0
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
pop edi
pop esi
and eax, 0xff
pop ebp
add esp, 0x208
ret
push 0x518908
push str.Created_service_for_IRNPF.sys
call fcn.0043d690
add esp, 8
mov byte [esp + 0xc], 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x49afa2
push str.IRNPAPFAIL4.exe
call fcn.004180b0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x49af38
push str.WINPCAPSUCC2.exe
call fcn.004180b0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x49af38
push str.IRNPAPFAIL3.exe
call fcn.004180b0
push 0x518908
push str.InstallDriver_failed
call fcn.0043d690
add esp, 0xc
jmp 0x49af45
Function at 0x49d4a0
Capabilities:
Enumerate processes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e68db
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
mov esi, dword [esp + 0x144]
test esi, esi
je 0x49d5e1
lea eax, [esp + 8]
push esi
push eax
call fcn.00405ce0
add esp, 8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x49d523
mov ecx, dword [esp + 0x148]
push 0x31
push eax
push ecx
call fcn.004b0350
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x13c], 0xffffffff
call fcn.004d498d
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
add esp, 0x138
ret
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49d55a
lea ecx, [esp + 8]
mov dword [esp + 0x13c], eax
call fcn.004d498d
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
add esp, 0x138
ret
push ebp
push edi
lea edx, [esp + 0x14]
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], pe_nt_image_headers32
push edx
rep stosd dword es:[edi], eax
push ebx
call sub.KERNEL32.dll_Process32First
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x49d5c8
cmp dword [esp + 0x1c], esi
je 0x49d59d
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x49d586
jmp 0x49d5c8
push ebx
call ebp
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0xffffffff
call fcn.004d498d
pop edi
pop ebp
mov ecx, dword [esp + 0x134]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x49d920
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
sub esp, 0x248
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov ebp, dword [esp + 0x258]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp], 0
mov eax, dword [0x518b48]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x114]
push ecx
push str.ProData.dat
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x49da89
mov al, byte [esp + 0x114]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test al, 0x10
jne 0x49d9e7
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x14c]
push 0x104
push eax
call ebx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49d9c2
lea ecx, [esp + 0x14]
push ebp
push ecx
call fcn.004b0b80
add esp, 8
test eax, eax
jle 0x49d9e7
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x49da72
test byte [esp + 0x118], 0x10
jne 0x49da5f
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x14c]
push 0x104
push edx
call ebx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49da3a
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004b0b80
add esp, 8
test eax, eax
jle 0x49da5f
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x49d9fa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x248
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x248
ret
Function at 0x49dda0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e6970
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x51347c]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp + 0x18], 0
mov dword [esp], eax
lea eax, [esp + 0xc]
mov byte [esp + 0x18], 1
push eax
push 1
push 0
push str.SYSTEMCurrentControlSet_servicesIRNPF
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49de5e
push esi
push 0x104
call fcn.004d46ce
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
push 0
push 0
push str.ImagePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49de54
push edi
push esi
lea ecx, [esp + 0xc]
call fcn.004d4b16
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push edi
call fcn.004d4b16
push 0
push edi
lea ecx, [esp + 0x10]
call fcn.004d36aa
test eax, eax
pop edi
jge 0x49de54
call fcn.0049ab90
push esi
call fcn.004d46f7
add esp, 4
pop esi
lea ecx, [esp]
mov byte [esp + 0x18], 0
call fcn.004d498d
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.004d498d
mov ecx, dword [esp + 0x10]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x49de90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esp + 0x114]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ax, word [esp + 0xc]
mov ecx, edx
mov edi, str.iResearchCommon_npf.sys
mov word [ecx], ax
mov al, byte [esp + 0xe]
mov byte [ecx + 2], al
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x104
ret