joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48eab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e4218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x511ed0]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
push edx
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push str.select__from_IRSLOG_where_DM___s_and_PS___s_and_KY___s_and_SDM_s_and_RDM_s_and_RSDM_s_
push edx
call fcn.004d2912
lea eax, [esp + 0x38]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x54]
push edx
mov edx, dword [edi + 8]
push eax
push ecx
push edx
call fcn.00466a00
mov eax, dword [esp + 0x48]
add esp, 0x38
cmp eax, 1
jl 0x48eb5d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + eax*4 + 0x14]
lea ecx, [esi + 0x1c]
push edx
call fcn.004d3a06
mov ebx, 1
mov eax, dword [esp + 0x18]
push eax
call fcn.0043f790
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00466d00
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004d387d
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x48eba0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e4238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x511ed0]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 0x20]
push ecx
mov ecx, dword [eax + 0x1c]
push edx
mov edx, dword [eax + 0x18]
push ecx
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push str.insert_into_IRSLOG_DM_UT_PS_KY_VE_FG_SDM_RDM_RSDM_values__s__s__s__s__s__s__s__s__s__
push ecx
call fcn.004d2912
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x34]
push edx
push 0
push 0
push eax
push ecx
call fcn.004651a0
mov edx, dword [esp + 0x48]
add esp, 0x40
push edx
call fcn.0043f790
add esp, 4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004d387d
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x48ec60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e4258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x511ed0]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 0x20]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
push str.Update_IRSLOG_Set_VE_s_UT_s_FG_s_Where_SDM_sand_RDM_s_and_RSDM_s_and_DM_s_and_PS_s_and_KY_s
push ecx
call fcn.004d2912
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x34]
push edx
push 0
push 0
push eax
push ecx
call fcn.004651a0
mov edx, dword [esp + 0x48]
add esp, 0x40
push edx
call fcn.0043f790
add esp, 4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004d387d
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x48f910
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e440b
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.0048f7b0
mov ebx, eax
push ebx
call fcn.0048f820
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0048c360
add esp, 0x10
cmp eax, ebp
je 0x48f9b2
cmp edi, ebp
je 0x48f989
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48f996
push ebx
call fcn.004ae9be
add esp, 4
mov ecx, dword [esi + 4]
push ebp
push ebp
push ecx
call fcn.004db330
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x48fac8
cmp edi, ebp
je 0x48f9bf
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48f9cc
push ebx
call fcn.004ae9be
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.004d38eb
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.00466a00
mov eax, dword [esp + 0x28]
mov esi, 1
add esp, 0x18
cmp eax, esi
jl 0x48fa66
cmp esi, 1
jne 0x48fa5d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0x20]
push edx
call fcn.004d38eb
mov eax, dword [esp + 0x20]
push 0x50a228
push eax
call fcn.004adbb0
add esp, 8
test eax, eax
jne 0x48fa54
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.004d387d
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jle 0x48fa22
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f790
mov edx, dword [esp + 0x28]
push edx
call fcn.00466d00
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
je 0x48fa89
cmp edi, ebp
jne 0x48faa2
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.004651a0
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call fcn.0048ad60
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004d387d
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 0x48f92d
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e440b
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.0048f7b0
mov ebx, eax
push ebx
call fcn.0048f820
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0048c360
add esp, 0x10
cmp eax, ebp
je 0x48f9b2
cmp edi, ebp
je 0x48f989
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48f996
push ebx
call fcn.004ae9be
add esp, 4
mov ecx, dword [esi + 4]
push ebp
push ebp
push ecx
call fcn.004db330
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x48fac8
cmp edi, ebp
je 0x48f9bf
push edi
call fcn.004ae9be
add esp, 4
cmp ebx, ebp
je 0x48f9cc
push ebx
call fcn.004ae9be
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.004d38eb
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.00466a00
mov eax, dword [esp + 0x28]
mov esi, 1
add esp, 0x18
cmp eax, esi
jl 0x48fa66
cmp esi, 1
jne 0x48fa5d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax*4]
lea ecx, [esp + 0x20]
push edx
call fcn.004d38eb
mov eax, dword [esp + 0x20]
push 0x50a228
push eax
call fcn.004adbb0
add esp, 8
test eax, eax
jne 0x48fa54
mov edi, esi
lea ecx, [esp + 0x20]
call fcn.004d387d
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jle 0x48fa22
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043f790
mov edx, dword [esp + 0x28]
push edx
call fcn.00466d00
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, ebp
je 0x48fa89
cmp edi, ebp
jne 0x48faa2
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.004651a0
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call fcn.0048ad60
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004d387d
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 0x48ffb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e44c8
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 0x48ffe3
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov ecx, dword [0x511ed0]
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.004d2912
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.004651a0
mov edx, dword [esp + 0x30]
push edx
call fcn.0043f790
add esp, 0x30
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.004d387d
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4908d0
Capabilities:
Create thread

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

Function at 0x490a80
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 0x490b60
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 0x490ace
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 0x490af8
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 0x490b22
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 0x490b4c
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 0x491830
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x492c70
push 0
push 0
call fcn.004ae155
add esp, 0x1c
ret
Function at 0x494460
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 0x4944eb
mov dl, byte [edi + ebx]
cmp dl, 0x7f
jg case.default.0x4944a2
cmp dl, 0x3d
je 0x4944f9
movsx ecx, dl
mov dl, byte [ecx + 0x4f12ac]
cmp dl, 0xff
je case.default.0x4944a2
cmp esi, 3
ja case.default.0x4944a2
jmp dword [esi*4 + 0x494508]
shl dl, 2
mov byte [eax], dl
mov esi, 1
jmp case.default.0x4944a2
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.0x4944a2
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.0x4944a2
mov cl, byte [eax]
or cl, dl
mov byte [eax], cl
inc eax
xor esi, esi
inc edi
cmp edi, ebp
jl 0x494482
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 0x495680
Capabilities:
Create thread

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

Disassembly:
sub esp, 0xa0
mov eax, dword [str.IRNPF]
mov cx, word [0x509290]
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 0x517348
push str.UnInstallDriver
stosw word es:[edi], ax
call fcn.0043ce30
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 0x499d7b
push 0x517348
push str.Opened_the_SCM
call fcn.0043ce30
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 0x499d7b
push 0x517348
push str.Opened_the_IRNPF_service_in_the_SCM
call fcn.0043ce30
add esp, 8
lea eax, [esp + 0x10]
push eax
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push 0x517348
test edi, edi
jne 0x499d0b
push str.Failed_to_stop_the_IRNPF_service
jmp 0x499d10
push str.IRNPF_service_stopped
call fcn.0043ce30
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 0x517348
jne 0x499d51
push str.Delete_IRNPF_service_failed
call fcn.0043ce30
add esp, 8
xor edi, edi
push 0x3e8
call ebx
dec esi
test esi, esi
jg 0x499d24
jmp 0x499d5e
push str.Delete_IRNPF_service_success
call fcn.0043ce30
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 0x499d90
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 0x499dc2
mov eax, 1
add esp, 0xa4
ret
mov ecx, dword [str.IRNP]
mov dl, byte [0x511988]
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 0x517348
push str.UnInstallDriver
stosb byte es:[edi], al
call fcn.0043ce30
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 0x499edb
push 0x517348
push str.Opened_the_SCM
call fcn.0043ce30
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 0x499edb
push 0x517348
push str.Opened_the_IRNP_service_in_the_SCM
call fcn.0043ce30
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push 0x517348
test edi, edi
jne 0x499e77
push str.Failed_to_stop_the_IRNP_service
jmp 0x499e7c
push str.IRNP_service_stopped
call fcn.0043ce30
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 0x517348
jne 0x499ebd
push str.Delete_IRNP_service_failed
call fcn.0043ce30
add esp, 8
xor edi, edi
push 0x3e8
call ebx
dec esi
test esi, esi
jg 0x499e90
jmp 0x499eca
push str.Delete_IRNP_service_success
call fcn.0043ce30
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 0x499ef0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x208
mov eax, dword [str.IRNPF]
mov cx, word [0x509290]
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.0049cea0
lea eax, [esp + 0x114]
push eax
call fcn.0049cdb0
push 0x517348
push str.InstallDriver
call fcn.0043ce30
add esp, 0x10
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x499f94
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 0x49a026
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0x431
jne 0x49a078
push 0x517348
push str.Service_IRNPF.sys_already_exists
call fcn.0043ce30
add esp, 8
xor ebp, ebp
mov byte [esp + 0xc], 1
push str.WINPCAPSUCC3.exe
call fcn.00418d30
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 0x517348
push str.Created_service_for_IRNPF.sys
call fcn.0043ce30
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 0x49a062
push str.IRNPAPFAIL4.exe
call fcn.00418d30
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x499ff8
push str.WINPCAPSUCC2.exe
call fcn.00418d30
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x499ff8
push str.IRNPAPFAIL3.exe
call fcn.00418d30
push 0x517348
push str.InstallDriver_failed
call fcn.0043ce30
add esp, 0xc
jmp 0x49a005
Function at 0x49c4b0
Capabilities:
Enumerate processes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e56db
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
mov esi, dword [esp + 0x144]
test esi, esi
je 0x49c5f1
lea eax, [esp + 8]
push esi
push eax
call fcn.00405830
add esp, 8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x49c533
mov ecx, dword [esp + 0x148]
push 0x31
push eax
push ecx
call fcn.004af060
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x13c], 0xffffffff
call fcn.004d387d
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 0x49c56a
lea ecx, [esp + 8]
mov dword [esp + 0x13c], eax
call fcn.004d387d
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], 0x128
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 0x49c5d8
cmp dword [esp + 0x1c], esi
je 0x49c5ad
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x49c596
jmp 0x49c5d8
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.004d387d
pop edi
pop ebp
mov ecx, dword [esp + 0x134]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x49c930
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 [0x517568]
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 0x49ca99
mov al, byte [esp + 0x114]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test al, 0x10
jne 0x49c9f7
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 0x49c9d2
lea ecx, [esp + 0x14]
push ebp
push ecx
call fcn.004af770
add esp, 8
test eax, eax
jle 0x49c9f7
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 0x49ca82
test byte [esp + 0x118], 0x10
jne 0x49ca6f
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 0x49ca4a
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004af770
add esp, 8
test eax, eax
jle 0x49ca6f
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 0x49ca0a
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