joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
mov ebp, dword [esp + 0x440]
push esi
push edi
mov edi, dword [esp + 0x444]
xor esi, esi
push 0x424
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.0041d8e0
mov ecx, dword [esp + 0x44c]
add esp, 0xc
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4010aa
lea edx, [esp + 0x10]
push edx
push ebx
mov dword [esp + 0x18], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x4010a3
lea esp, [esp]
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.0041d83f
add esp, 8
test eax, eax
je 0x401093
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x401070
jmp 0x4010a3
mov ecx, 0x10a
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x438]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d8d0
add esp, 0x42c
ret

Function at 0x402c00
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x124
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x120], eax
push 0x104
lea eax, [esp + 0x20]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402cb6
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x402cb6
push 0x447554
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x402cb6
push 0xc
lea eax, [esp + 4]
push str.Z3N3aXRjaA
push eax
call fcn.004194c0
mov eax, dword [esp + 0x10]
add esp, 0xc
cmp dword [esp + 0x18], 0x10
jae 0x402c77
lea eax, [esp + 4]
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push str.dgswitch
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
lea ecx, [esp]
jne 0x402cb1
call fcn.00402b10
mov eax, 1
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x124
ret
call fcn.00402b10
mov ecx, dword [esp + 0x120]
xor ecx, esp
xor eax, eax
call fcn.0041d8d0
add esp, 0x124
ret
Function at 0x404970
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x444acb
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x45c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x474]
mov dword fs:[0], eax
mov eax, dword [esp + 0x488]
mov ebx, dword [esp + 0x484]
xor esi, esi
push 0x206
lea ecx, [esp + 0x66]
push esi
push ecx
mov dword [esp + 0x2c], eax
mov word [esp + 0x6c], si
call fcn.0041d8e0
add esp, 0xc
cmp ebx, esi
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x14], esi
je 0x404af2
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x88]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x404af2
cmp eax, esi
jne 0x404af2
xor edi, edi
cmp ecx, esi
jbe 0x404af2
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea esp, [esp]
lea eax, [esp + 0x30]
push eax
push esi
push esi
push esi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x27c]
push edx
push edi
push ebx
mov dword [esp + 0x3c], 0x104
call ebp
cmp eax, esi
jne 0x404ae5
lea eax, [esp + 0x268]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], esi
mov word [esp + 0x40], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x404a90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x44]
call fcn.00402e60
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x480], esi
call fcn.00404480
cmp dword [esp + 0x54], 8
mov dword [esp + 0x47c], 0xffffffff
jb 0x404ae5
mov edx, dword [esp + 0x40]
push edx
call fcn.0041d698
add esp, 4
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x404a50
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x46c
ret 8
Function at 0x4054a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444b38
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edx, dword [0x4476fc]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x4476f4]
mov dword [esp + 0xc], eax
mov eax, dword [0x447700]
mov esi, ecx
mov ecx, dword [0x4476f8]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 8], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
mov dword [esp + 0x38], eax
je 0x405572
cmp dword [esi + 4], eax
je 0x405572
lea edx, [esp + 8]
push edx
push 0x449b34
lea eax, [esp + 0x24]
push eax
call ecx
test eax, eax
mov eax, dword [esp + 8]
jl 0x405572
test eax, eax
je 0x405572
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
test esi, esi
mov eax, dword [esp + 8]
jge 0x405595
test eax, eax
mov dword [esp + 0x38], 0xffffffff
je 0x40556e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
jmp 0x4055ab
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40558e
cmp dword [esi + 4], 0
je 0x40558e
push esi
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push edx
call ecx
jmp 0x405550
mov esi, 0x80004005
jmp 0x40555a
test eax, eax
mov dword [esp + 0x38], 0xffffffff
je 0x4055a9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x34
ret

Function at 0x4058e0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x4058a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x4535e4], eax
mov eax, ecx
ret
Function at 0x4059a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x414
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x424]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405a63
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x34], 0x200
call edi
test eax, eax
jne 0x405a4e
nop
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.004059a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x405a7a
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push ecx
mov dword [esp + 0x34], 0x200
call edi
test eax, eax
je 0x405a10
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
mov ecx, dword [esp + 0x418]
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d8d0
add esp, 0x414
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x405a61

Function at 0x405c20
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
mov ebx, dword [esp + 0x23c]
test ebx, ebx
jne 0x405c58
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x230
ret
push edi
push 0x228
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.0041d8e0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x405c9e
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x230
ret
push esi
lea ecx, [esp + 0xc]
push ecx
push edi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x405d03
lea edx, [esp + 0x30]
push edx
mov esi, ebx
call fcn.0041eacf
add esp, 4
mov cx, word [eax]
cmp cx, word [esi]
jne 0x405ceb
test cx, cx
je 0x405ce7
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x405ceb
add eax, 4
add esi, 4
test cx, cx
jne 0x405cc5
xor eax, eax
jmp 0x405cf0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405d24
lea eax, [esp + 0xc]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405cb6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x230
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
pop esi
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041d8d0
add esp, 0x230
ret
Function at 0x405e40
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
mov edi, ecx
call fcn.00405df0
test eax, eax
je 0x405e7b
mov eax, 1
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x20c
ret
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x405ede
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0x447870
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
add edi, 0x14
push edi
push str.DGPNPSEV
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x405ef7
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x20c
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [esp + 0x210]
pop esi
pop edi
xor ecx, esp
mov eax, 1
call fcn.0041d8d0
add esp, 0x20c
ret

Function at 0x405f20
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
call fcn.00405df0
test eax, eax
jne 0x405f39
mov eax, 1
pop esi
add esp, 0x1c
ret
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x405f6c
push 0x10020
add esi, 0x14
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x405f74
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
push ebx
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
setne al
pop esi
add esp, 0x1c
ret

Function at 0x406140
Capabilities:
Modify service
Start service

Disassembly:
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call esi
test eax, eax
jne 0x406164
push 0xf003f
push eax
push eax
call esi
test eax, eax
je 0x4061ad
push 0xf01ff
push str.DGPNPSEV
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4061a6
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0x110
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x406400
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x406413
push 0x80004005
call fcn.00401ac0
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x40648d
mov ecx, dword [edi]
test ecx, ecx
jbe 0x406488
mov edx, dword [esp + 0x14]
test edx, edx
jbe 0x406483
cmp edx, 2
jbe 0x406474
cmp edx, 7
jne 0x406483
test cl, 1
jne 0x406483
shr ecx, 1
cmp ecx, 1
jb 0x406483
cmp word [esi + ecx*2 - 2], 0
jne 0x406483
cmp ecx, 1
jbe 0x40648d
cmp word [esi + ecx*2 - 4], 0
jmp 0x406481
test cl, 1
jne 0x406483
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40648d
mov eax, 0xd
mov word [esi], 0
pop esi
pop edi
ret 0xc

Function at 0x406ee0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x444c50
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.00405f20
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0x20006
xor ebx, ebx
push ebx
push str.AppID
push SysReAllocString
mov dword [esp + 0x30], ebx
call esi
cmp eax, ebx
jne 0x406fe8
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push 0x20006
push ebx
push str.124B3515_E16D_4B21_A529_058AE6E567C1
push edi
mov dword [esp + 0x34], ebx
call esi
mov esi, eax
cmp esi, ebx
je 0x406f69
cmp edi, ebx
je 0x406f65
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x406fe8
mov esi, dword [esp + 0x20]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [esp + 0x38], ebx
je 0x406fd2
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.DriverGenius_Core_Service
call edi
add eax, 1
lea edx, [eax + eax]
push edx
push str.DriverGenius_Core_Service
push 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.LocalService
push esi
call ebx
push str._Service
call edi
add eax, 1
add eax, eax
push eax
push str._Service
push 1
push 0
push str.ServiceParameters
push esi
call ebx
mov ecx, ebp
call fcn.00405e40
mov edi, dword [esp + 0x1c]
test esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x406fdf
push esi
call ebx
test edi, edi
je 0x406fe6
push edi
call ebx
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x407170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444c78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edx, dword [0x4478e4]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x4478dc]
mov dword [esp + 0xc], eax
mov eax, dword [0x4478e8]
mov esi, ecx
mov ecx, dword [0x4478e0]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 8], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
mov dword [esp + 0x38], eax
je 0x407242
cmp dword [esi + 4], eax
je 0x407242
lea edx, [esp + 8]
push edx
push 0x449b34
lea eax, [esp + 0x24]
push eax
call ecx
test eax, eax
mov eax, dword [esp + 8]
jl 0x407242
test eax, eax
je 0x407242
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
test esi, esi
mov eax, dword [esp + 8]
jge 0x407265
test eax, eax
mov dword [esp + 0x38], 0xffffffff
je 0x40723e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
jmp 0x40727b
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40725e
cmp dword [esi + 4], 0
je 0x40725e
push esi
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push edx
call ecx
jmp 0x407220
mov esi, 0x80004005
jmp 0x40722a
test eax, eax
mov dword [esp + 0x38], 0xffffffff
je 0x407279
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x34
ret

Function at 0x407620
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.KSD_01
mov esi, ecx
call edi
mov ecx, esi
call fcn.004061e0
test eax, eax
je 0x40768c
push ebx
push str.KSD_02
call edi
push str.dgdectrl.dll
lea ebx, [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, ebx
mov dword [ebx], eax
call fcn.004053e0
mov ecx, esi
call fcn.00407170
test eax, eax
pop ebx
jl 0x40768c
push str.KSD_03
call edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov esi, dword [esi]
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
push esi
call ecx
pop edi
pop esi
ret
Function at 0x407850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [ecx]
push ebx
push ebp
xor edx, edx
cmp eax, edx
push esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
je 0x40792e
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x28]
push ecx
push edx
push ebx
push eax
call ebp
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x40789b
cmp eax, 2
jne 0x40792e
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.00407080
mov ecx, dword [esi]
mov eax, dword [esp + 0x10]
sub ecx, 0x10
shr eax, 1
mov edx, 1
sub edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
add eax, 1
sub ecx, eax
or edx, ecx
jge 0x4078cd
push eax
mov ecx, esi
call fcn.004072a0
mov edi, dword [esi]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx]
push edi
lea eax, [esp + 0x28]
push eax
push 0
push ebx
push edx
call ebp
test eax, eax
jne 0x40792e
mov eax, dword [esp + 0x10]
shr eax, 1
mov word [edi + eax*2], 0
mov edx, dword [esi]
test edx, edx
jne 0x407900
xor eax, eax
jmp 0x407916
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407905
sub eax, edi
sar eax, 1
js 0x40793c
cmp eax, dword [edx - 8]
jg 0x40793c
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
push 0x80070057
call fcn.00401ac0
int3
Function at 0x407bb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x444d90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov ebx, 1
xor esi, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov eax, dword [0x45392c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45392c
mov dword [esp + 0x2c], esi
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x2c], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x493e0
jbe 0x407c1e
mov dword [esp + 0x18], esi
jmp 0x407cb0
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x407c2d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
push str.SOFTWAREMyDriversDriverGeniusUpdate_boot
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
jne 0x407cb0
lea ecx, [esp + 0x1c]
push ecx
push str.boottime
lea ecx, [esp + 0x1c]
call fcn.00407850
test eax, eax
je 0x407cb0
mov edx, dword [esp + 0x1c]
push 0xa
push esi
push edx
call fcn.0041f68f
push esi
mov ebx, eax
mov ebp, edx
call fcn.0041f3a3
mov esi, edx
add esp, 0x10
cmp esi, ebp
mov edi, eax
mov dword [esp + 0x18], 0
jg 0x407c91
jl 0x407ca7
cmp edi, ebx
jb 0x407ca7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub edi, ebx
sbb esi, ebp
xor ecx, ecx
cmp esi, ecx
jg 0x407cb0
jl 0x407ca7
cmp edi, eax
jae 0x407cb0
mov ecx, dword [esp + 0x20]
call fcn.00407a70
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407cd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407ce4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x408060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
push 0
call fcn.00407f70
add esp, 4
push 1
push 0x447b48
mov ecx, ebx
call fcn.00407950
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408080
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, ebx
call fcn.00407950
test edi, edi
je 0x4080d7
cmp dword [ebx + 0x18], 8
jb 0x4080a7
mov ebx, dword [ebx + 4]
jmp 0x4080aa
add ebx, 4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4080cc
test al, 0x10
jne 0x4080cc
xor ecx, ecx
mov eax, 1
test al, al
setne cl
xor eax, eax
pop ebx
mov dword [edi], ecx
ret
xor ecx, ecx
xor eax, eax
test al, al
setne cl
mov dword [edi], ecx
xor eax, eax
pop ebx
ret
Function at 0x408480
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x444eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x453854], eax
mov eax, dword [0x45392c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45392c
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x234]
push eax
lea ecx, [esp + 0x10]
push 0x447b80
xor edi, edi
push ecx
mov dword [esp + 0x38], edi
call fcn.00407a50
add esp, 0xc
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
push 1
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.004072f0
cmp dword [esi + 0x238], edi
je 0x40851d
push 4
mov ecx, esi
call fcn.00406110
push edi
push edi
push 0x45360c
push 0x408260
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, esi
mov dword [0x45360c], eax
call fcn.00407620
push esi
push edi
push 0x407e50
call fcn.0041f81b
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041d698
mov eax, dword [esp + 0x24]
push eax
call fcn.0041dee2
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0041dee2
mov edx, dword [esp + 0x34]
push edx
call fcn.0041dee2
mov eax, dword [esp + 0x3c]
push eax
call fcn.0041dee2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x20
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret