joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406987
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov ebx, 0x80070057
cmp dword [ebp + 0x14], esi
je 0x406a11
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x4069d7
cmp eax, 0xea
je 0x4069d7
cmp eax, esi
jle 0x406a0b
and eax, 0xffff
or eax, 0x80070000
jmp 0x406a0b
mov ebx, dword [ebp - 4]
shr ebx, 1
inc ebx
inc ebx
lea eax, [ebx + ebx]
push eax
call fcn.0040527d
mov edi, eax
pop ecx
cmp edi, esi
jne 0x4069f5
mov ebx, 0x8007000e
jmp 0x406a11
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040684e
mov ebx, eax
cmp ebx, esi
jge 0x406a1a
push edi
call fcn.004052cb
pop ecx
xor edi, edi
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x406a23
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x406a2f
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x406a3b
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18

Function at 0x406cc1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, eax
mov edi, ecx
mov esi, 0x80070057
je 0x406d7f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x406d02
mov esi, 0x8007000e
jmp 0x406d6f
inc esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x406d1b
call fcn.00404e35
mov esi, eax
jmp 0x406d6f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x406d5d
cmp eax, 2
je 0x406d5d
cmp eax, 3
je 0x406d59
cmp eax, 4
je 0x406d45
jbe 0x406d3e
cmp eax, 6
jbe 0x406d5d
mov esi, 0x80070057
jmp 0x406d6f
neg edi
sbb edi, edi
and edi, 0x7ff8fffb
add edi, 0x80070005
mov esi, edi
jmp 0x406d6f
xor esi, esi
jmp 0x406d6f
neg ebx
sbb ebx, ebx
and ebx, 0x7ff8fffb
add ebx, 0x80070005
mov esi, ebx
cmp dword [ebp - 4], 0
je 0x406d7f
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x401560
Capabilities:
Start service

Disassembly:
sub esp, 0xc
push ebx
xor eax, eax
push ebp
push esi
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
push 0x2d
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], 1
call fcn.00403600
mov esi, eax
add esp, 8
inc esi
call fcn.00402b80
test al, al
je 0x4015fc
test esi, esi
je 0x4015fc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x411894], eax
je 0x4015fc
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [0x411898], eax
je 0x4015e5
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4015fc
mov ecx, dword [0x411894]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x411894], 0
push 0x5c
push edi
call fcn.00403600
mov ebp, eax
or ecx, 0xffffffff
inc ebp
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.._
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call fcn.0040365b
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4016c1
mov edi, str.._
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebx
push 0x40000080
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 3
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
mov ecx, edx
push eax
and ecx, 3
push 3
push 0xc0000000
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov dword [0x411870], eax
call fcn.004035f0
mov eax, dword [0x411870]
add esp, 4
test eax, eax
je 0x4016c1
cmp eax, 0xffffffff
je 0x4016c1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret

Function at 0x4016d0
Capabilities:
Stop service

Disassembly:
mov eax, dword [0x411870]
sub esp, 0x1c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x411898]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
mov dword [0x411870], 0
je 0x40171a
lea ecx, [esp + 4]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edx, dword [0x411898]
push edx
call esi
mov dword [0x411898], 0
mov eax, dword [0x411894]
test eax, eax
je 0x401730
push eax
call esi
mov dword [0x411894], 0
pop esi
add esp, 0x1c
ret
Function at 0x4018f0
Capabilities:
Create thread

Disassembly:
mov al, byte [0x410030]
sub esp, 0x210
test al, al
push ebp
mov ebp, dword [esp + 0x218]
je 0x40191a
test ebp, ebp
je 0x401910
cmp ebp, 0xffffffff
jne 0x40191a
xor al, al
pop ebp
add esp, 0x210
ret
push esi
push edi
xor edi, edi
push 0x13c
mov dword [esp + 0x10], edi
call fcn.0040365b
mov esi, eax
add esp, 4
cmp esi, edi
je 0x401a30
push ebx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
test ebx, ebx
je 0x401a06
cmp ebx, 0xffffffff
je 0x401a06
mov ecx, 0x83
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, 0x4f
mov edi, esi
mov dword [esp + 0x14], ebp
rep stosd dword es:[edi], eax
mov eax, dword [0x411870]
lea ecx, [esp + 0x10]
push ecx
mov dword [esi], eax
mov dword [esi + 4], ebp
mov edi, dword [0x411868]
push 0
push esi
push 0x401a40
inc edi
push 0
push 0
mov dword [0x411884], ebp
mov dword [0x411868], edi
call fcn.004036a8
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4019f2
cmp edi, 0xffffffff
je 0x4019f2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4019f2
mov edx, dword [esp + 0x228]
push edx
call fcn.004027c0
add esp, 4
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, byte [0x41005c]
mov dword [esp + 0x14], 0
test al, al
je 0x4019f2
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00401da0
add esp, 8
mov ecx, dword [0x411868]
push ebx
dec ecx
mov dword [0x411868], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004035f0
add esp, 4
test edi, edi
pop ebx
je 0x401a30
cmp edi, 0xffffffff
je 0x401a30
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401a30
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x210
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x210
ret
Function at 0x4020d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x410030]
sub esp, 8
test al, al
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
je 0x402100
test edi, edi
mov al, 1
jne 0x4020f0
xor al, al
test ebx, ebx
je 0x402252
test al, al
je 0x402252
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x402118
mov eax, dword [ebx + 0x28]
pop edi
inc eax
pop esi
mov dword [ebx + 0x28], eax
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
push str.USRdteA.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebx + 0x24], eax
je 0x402249
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DTE_TaskInit
push eax
call esi
test eax, eax
mov dword [esp + 0x10], eax
je 0x402249
mov eax, dword [ebx + 0x24]
push str.CallProgress_TaskInit
push eax
call esi
test eax, eax
mov dword [ebx + 0x34], eax
je 0x402249
lea ebp, [ebx + 0x2c]
add edi, 0x14
push ebp
push edi
call fcn.00402030
add esp, 8
test al, al
je 0x402249
call fcn.00402ae0
test al, al
je 0x4021bb
mov ecx, dword [ebp]
push 0x411760
push ecx
call fcn.00402dd0
add esp, 8
test al, al
je 0x402249
mov edi, 0x411760
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, dword [ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x38]
mov ecx, 0x41
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp]
lea eax, [esp + 0x20]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402211
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push 0
push str.DPumpName
push ecx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp]
lea edi, [ebx + 0x30]
push eax
push edi
push 0x410038
call dword [esp + 0x1c]
mov eax, dword [edi]
add esp, 0xc
test eax, eax
je 0x402249
mov ecx, dword [ebx + 0x24]
push str._conf__3VConfigType__A
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
pop esi
mov dword [0x41188c], eax
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
push ebx
call fcn.004026e0
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x4027c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x310
mov ecx, 0xaf
xor eax, eax
push esi
push edi
lea edi, [esp + 0x5c]
push 0x2bb
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [esp + 0x31c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.NewInstance
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x5c]
add esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esi + ecx + 0x1b]
cmp ecx, 0x2bc
jae 0x4028cb
push edx
mov edx, dword [0x411870]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [0x411888]
inc eax
lea edi, [esp + 0x68]
push eax
or ecx, 0xffffffff
xor eax, eax
push str.NewInstance
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str.__s_x__x__x__s
lea ecx, [esp + ecx + 0x74]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x24], edx
add esp, 0x1c
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edx
push eax
push ecx
push edx
push edx
push edx
push 1
push edx
mov dword [esp + 0x30], edx
push edx
lea edx, [esp + 0x7c]
push edx
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4028cb
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
mov al, 1
pop esi
add esp, 0x310
ret
pop edi
xor al, al
pop esi
add esp, 0x310
ret
Function at 0x4028e0
Capabilities:
Create process on windows

Disassembly:
mov al, byte [0x410030]
mov ecx, dword [esp + 8]
sub esp, 0x310
test al, al
push ebx
push esi
mov esi, dword [esp + 0x324]
push edi
je 0x402922
mov edx, dword [esp + 0x320]
mov al, 1
test edx, edx
jne 0x40290c
xor al, al
test ecx, ecx
jne 0x402912
xor al, al
test esi, esi
je 0x402a9d
test al, al
je 0x402a9d
mov ebx, dword [ecx]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp ebx, 0xffffffff
jne 0x402944
push 0
push 1
push 0
push 0
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a9d
mov esi, dword [esi]
cmp esi, 0xffffffff
jne 0x402960
push 0
push 1
push 0
push 0
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x402a9d
mov ecx, 0xaf
xor eax, eax
lea edi, [esp + 0x60]
push 0x2bb
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402a9d
lea ecx, [esp + 0x60]
push 0x5c
push ecx
call fcn.00403600
add esp, 8
test eax, eax
jne 0x4029a0
lea eax, [esp + 0x60]
jmp 0x4029a1
inc eax
mov byte [eax], 0
mov edx, dword [0x41189c]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.USRshutA.exe
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x64]
add ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ebp + 0x1d]
pop ebp
cmp eax, 0x2bc
jae 0x402a9d
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.USRshutA.exe
lea ecx, [esp + 0x74]
push str._s__08x__08x__08x__s
push ecx
call fcn.004038bc
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x28], edx
add esp, 0x1c
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], edx
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edx
push eax
push ecx
push edx
push edx
push edx
push edx
push edx
mov dword [esp + 0x34], edx
push edx
lea edx, [esp + 0x80]
push edx
push 0
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402a9d
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x320]
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [ecx], eax
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x324]
mov edx, dword [esp + 0x328]
pop edi
mov al, 1
mov dword [ecx], ebx
mov dword [edx], esi
pop esi
pop ebx
add esp, 0x310
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x310
ret
Function at 0x402ae0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xe0
lea eax, [esp]
push ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402b6a
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.VersionNumber
push ecx
mov dword [esp + 0x28], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402b5f
lea edx, [esp + 0x18]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00402c50
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 4
jb 0x402b5d
jne 0x402b5f
cmp dword [esp + 8], 0x5a
ja 0x402b5f
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0xe0
ret

Function at 0x402b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xe0
lea eax, [esp]
push ebx
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402c3f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.CurrentVersion
push ecx
mov dword [esp + 0x28], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c34
push ebp
push esi
push edi
mov edi, 0x410208
or ecx, 0xffffffff
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00402c50
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, 4
pop edi
pop esi
pop ebp
jne 0x402c34
mov eax, dword [esp + 8]
test eax, eax
jne 0x402c34
mov bl, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0xe0
ret
Function at 0x402dd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x410030]
sub esp, 0x3f4
test al, al
push ebx
push esi
push edi
je 0x402e08
mov ecx, dword [esp + 0x404]
mov al, 1
test ecx, ecx
jne 0x402df1
xor al, al
mov ecx, dword [esp + 0x408]
test ecx, ecx
je 0x402ecb
test al, al
je 0x402ecb
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x18]
push 0x1f4
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x408]
lea eax, [esp + 0x1c]
push eax
push ecx
xor bl, bl
call fcn.00402ef0
add esp, 0xc
test al, al
je 0x402eb4
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call esi
test eax, eax
jne 0x402eb4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.ChildDevNode
push ecx
mov dword [esp + 0x28], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402ea5
mov eax, dword [esp + 0x408]
lea edx, [esp + 0x20c]
push edx
push eax
call fcn.004032f0
add esp, 8
test al, al
je 0x402ea5
mov bl, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x402ed7
mov edx, dword [0x410058]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402e0e
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x3f4
ret
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x3f4
ret
Function at 0x402ef0
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x410030]
sub esp, 0x208
test al, al
push ebx
mov ebx, dword [esp + 0x210]
je 0x402f35
test ebx, ebx
mov al, 1
jne 0x402f0f
xor al, al
mov ecx, dword [esp + 0x214]
test ecx, ecx
jne 0x402f1c
xor al, al
mov ecx, dword [esp + 0x218]
test ecx, ecx
je 0x402f2b
test al, al
jne 0x402f35
xor al, al
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], 0
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fe5
push 0x5c
push ebx
xor ebp, ebp
call fcn.00403600
mov esi, eax
add esp, 8
test esi, esi
je 0x402f90
push 0x5c
push ebx
mov byte [esi], 0
call fcn.00403600
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x402f8d
inc ebp
mov byte [esi], 0x5c
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push 0
push str.MatchingDeviceId
push ecx
mov dword [esp + 0x34], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x402fff
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0x64
jb 0x402f45
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
test eax, eax
jne 0x40302a
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x220]
push ebp
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
push str.Enum
call fcn.00403050
add esp, 0x14
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4032f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x410030]
mov edx, dword [esp + 8]
sub esp, 0x3f4
test al, al
push ebp
mov ebp, dword [esp + 0x3fc]
je 0x403325
test ebp, ebp
mov al, 1
jne 0x403313
xor al, al
test edx, edx
je 0x40331b
test al, al
jne 0x403325
xor al, al
pop ebp
add esp, 0x3f4
ret
push ebx
push esi
push edi
mov edi, str.Enum_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x210]
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x210]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0x218]
push 0
push ecx
push 0x80000002
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403443
mov edi, str.SystemCurrentControlSetServicesClass_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, 0x1f4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x14]
sub edx, ecx
push eax
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + ecx + 0x20]
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push str.Driver
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403438
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov bl, 1
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 eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
pop ebp
add esp, 0x3f4
ret
Function at 0x403450
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x410030]
mov ecx, dword [esp + 4]
sub esp, 0x3f4
test al, al
je 0x403483
test ecx, ecx
mov al, 1
jne 0x40346b
xor al, al
mov edx, dword [esp + 0x3fc]
test edx, edx
je 0x40347a
test al, al
jne 0x403483
xor al, al
add esp, 0x3f4
ret
lea eax, [esp + 4]
push ebp
xor ebp, ebp
push eax
push 0xf003f
push ebp
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40359a
push esi
lea ecx, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x20c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push ebp
push str.Driver
push ecx
mov dword [esp + 0x24], 0x1f4
call edi
test eax, eax
jne 0x40358d
mov eax, dword [esp + 0x40c]
test eax, eax
je 0x40351b
lea esi, [esp + 0x20c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403512
test cl, cl
je 0x40350e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403512
add eax, 2
add esi, 2
test cl, cl
jne 0x4034ee
xor eax, eax
jmp 0x403517
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40358d
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.HardwareID
push eax
mov dword [esp + 0x24], 0x1f4
call edi
test eax, eax
jne 0x40358d
lea ecx, [esp + 0x18]
lea ebp, [esp + 0x18]
test ecx, ecx
je 0x40358d
push 0x2c
push ebp
call fcn.00403800
mov esi, eax
add esp, 8
test esi, esi
je 0x403565
mov byte [esi], 0
inc esi
mov edx, dword [esp + 0x408]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebp
call fcn.00403670
add esp, 0xc
test eax, eax
je 0x40358d
test esi, esi
mov ebp, esi
jne 0x403550
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
test ebp, ebp
setne al
pop ebp
add esp, 0x3f4
ret