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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x100c2354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x10090ea4
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10090ea4
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1006a7b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2d8]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call esi
test eax, eax
jne 0x10090e79
xor edi, edi
mov dword [ebp - 0x2dc], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10090e68
lea eax, [ebp - 0x2e0]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2d8]
call esi
test eax, eax
jne 0x10090e32
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e8], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2e4], 0x104
push eax
lea eax, [ebp - 0x2e8]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10090e2a
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.1006a7b0
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.10090ec0
add esp, 0x18
test eax, eax
je 0x10090e2a
cmp byte [ebp - 0x68], 0
je 0x10090dec
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x10090e2a
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x10090e19
mov al, byte [esi + ecx]
test al, al
je 0x10090e19
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10090e00
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e0]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10090d40
push dword [ebp - 0x2d8]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x10090ea4
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.10091e90
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ff7e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.1002ff7e
mov esp, ebp
pop ebp
ret
Function at 0x10090fe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x100c2354]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1009115f
cmp dword [ebp + 0xc], 0x20
jb 0x1009115f
push 0x400
lea eax, [ebp - 0x504]
mov dword [ebp - 0x50c], 1
push 0
push eax
mov dword [ebp - 0x508], 0x400
call fcn.1006a7b0
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x100b18dc
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x1009115f
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10091070
sub ecx, edx
cmp ecx, 0x40
jne 0x1009115f
lea edx, [ecx + 0x40]
push esi
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x504]
mov eax, ecx
sub esi, eax
lea eax, [edx - 0x60]
test eax, eax
je 0x100910ac
mov al, byte [esi + ecx]
test al, al
je 0x100910ac
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10091096
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4e4]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x104]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x100910e9
mov al, byte [esi + ecx]
test al, al
je 0x100910e9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100910d0
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x504]
push eax
call fcn.1006a7b0
push 0x400
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10091170
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x1009115f
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push edi
call fcn.10091e90
neg eax
pop edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ff7e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1002ff7e
mov esp, ebp
pop ebp
ret
Function at 0x10091a30
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.10030670
mov eax, dword [0x100c2354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x10091b9d
cmp dword [ebp + 0xc], 0
je 0x10091b9d
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.1004dde0
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10091b80
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.1006a7b0
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10091b75
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.1006a7b0
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.10092b90
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.10091e90
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x10091b8a
inc esi
cmp esi, 0x10
jl 0x10091a70
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ff7e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1002ff7e
mov esp, ebp
pop ebp
ret
Function at 0x10091bb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100c2354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x10091c98
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1006a7b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x10091c98
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10091c07
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x10091c98
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10091c30
mov eax, dword [0x100a6718]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10091c45
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10091c60
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ff7e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1002ff7e
mov esp, ebp
pop ebp
ret
Function at 0x10091cb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x100c2354]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.1006a7b0
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.10091170
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10091d1a
mov al, byte [edi + ecx]
test al, al
je 0x10091d1a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10091d01
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x10091d3b
inc eax
sub ecx, 1
jne 0x10091d30
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x10091d90
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x10091d85
lea edi, [ebp - 0x84]
mov eax, 0x7fffffff
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x10091d84
mov bl, byte [edi + ecx]
test bl, bl
je 0x10091d84
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x10091d70
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.1006a7b0
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x100b18dc
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x10091e4a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10091e14
test cl, cl
je 0x10091e10
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10091e14
add eax, 2
add esi, 2
test cl, cl
jne 0x10091df4
xor eax, eax
jmp 0x10091e19
sbb eax, eax
or eax, 1
test eax, eax
je 0x10091e4a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10091e26
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push 0x80000002
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10091e53
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x100b18dc
push str.SoftwareComMaster
push 0x80000002
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002ff7e
mov esp, ebp
pop ebp
ret
Function at 0x412565
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004123e4

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6be27f23
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x14384f2a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4b2e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x70000]
push edi
jmp 0x4b2e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b2e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2e70
mov eax, 1
add ebx, ebx
jne 0x4b2e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b2ea4
jne 0x4b2ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2ec3
dec eax
add ebx, ebx
jne 0x4b2eb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b2e88
add ebx, ebx
jne 0x4b2ebf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b2f15
xor ecx, ecx
sub eax, 3
jb 0x4b2edb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b2f4a
sar eax, 1
mov ebp, eax
jmp 0x4b2ee6
add ebx, ebx
jne 0x4b2ee6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2eb4
inc ecx
add ebx, ebx
jne 0x4b2ef4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b2eb4
add ebx, ebx
jne 0x4b2f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b2ef6
jne 0x4b2f12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b2ef6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b2f34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b2f26
jmp 0x4b2e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b2f34
add edi, ecx
jmp 0x4b2e76
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b2f52
cmp byte [edi], 0x13
jne 0x4b2f52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b2f57
lea edi, [esi + 0xae000]
mov eax, dword [edi]
or eax, eax
je 0x4b2fcf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb4654]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb47a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b2f84
mov ecx, edi
jns 0x4b2fb3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb47ac]
or eax, eax
je 0x4b2fc9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b2fa1
call dword [esi + 0xb47bc]
mov ebp, dword [esi + 0xb47b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b3003
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x4013e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp word [esi], bx
je 0x40151e
push esi
push str.GetDriverInfoReg__s_...
push 3
call fcn.0044def7
push esi
lea eax, [ebp - 0x610]
push str.SYSTEMCurrentControlSetControlClass_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test byte [0x4a5638], 1
mov dword [ebp + 8], ebx
jne 0x40144a
or dword [0x4a5638], 1
mov eax, dword [0x50ac1c]
neg eax
sbb eax, eax
and eax, 0x100
inc eax
mov dword [0x4a5634], eax
jmp 0x40144f
mov eax, dword [0x4a5634]
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
lea eax, [ebp - 0x610]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401509
cmp dword [ebp + 8], ebx
je 0x401509
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.InfPath
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x104
call esi
test eax, eax
jne 0x4014e1
push 0x5c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
lea eax, [ebp - 0x210]
push eax
je 0x4014cb
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4014e1
push 0x50ad20
push str._sinf_s
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push ebx
push str.DriverDate
push dword [ebp + 8]
mov dword [ebp - 4], 0x104
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40151e
call fcn.0044b48b
push eax
push str._err_S
push 2
call fcn.0044def7
add esp, 0xc
pop esi
pop ebx
leave
ret 0xc
Function at 0x4020cf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
je 0x40220c
cmp dword [edi + 8], ebx
je 0x40220c
cmp dword [0x50bb7c], ebx
jne 0x40220c
mov si, word [ebp + 8]
push 0x3a
pop eax
push 0x5c
mov word [ebp - 6], ax
pop eax
mov word [ebp - 4], ax
xor eax, eax
push 0x66
mov word [ebp - 2], ax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 8], si
call fcn.00448216
add esp, 0xc
push 0x34
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x40215e
call fcn.0044b469
push eax
lea eax, [ebp - 8]
push eax
movzx eax, si
push eax
push str.CheckNewDriveLetter__c___GetVolumeNameForVolumeMountPoint__s___err_s
push 4
call fcn.0044def7
add esp, 0x14
jmp 0x40220c
mov eax, dword [edi + 8]
push dword [eax + 0x18]
lea eax, [ebp - 0x70]
push eax
movzx eax, si
push eax
push str.CheckNewDriveLetter__c_...____vn_s__c_i
push 4
call fcn.0044def7
mov eax, dword [edi + 8]
add esp, 0x14
cmp dword [eax + 0x18], ebx
jle 0x4021fe
mov dword [ebp + 8], 0x1c
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + eax]
test esi, esi
je 0x4021f1
cmp dword [0x517934], 4
jl 0x4021c7
lea eax, [esi + 0x930]
push eax
lea eax, [esi + 0x848]
push eax
push dword [esi + 0x840]
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
push str._Volumes__2i__used_i_present_i_devnum__2i_vn_s_mp_s
push 4
call fcn.0044def7
add esp, 0x20
cmp dword [esi + 8], 0
je 0x4021f1
cmp dword [esi + 0xc], 0
je 0x4021f1
cmp dword [esi + 0x840], 0xffffffff
jle 0x4021f1
lea eax, [ebp - 0x70]
push eax
lea eax, [esi + 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402215
mov eax, dword [edi + 8]
add dword [ebp + 8], 4
inc ebx
cmp ebx, dword [eax + 0x18]
jl 0x40218a
push str._not_found_in_list
push 4
call fcn.0044def7
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, esi
call fcn.0040663a
mov ecx, dword [0x50d7e8]
push 1
push dword [esi + 0x14]
call fcn.004082ee
mov edi, eax
test edi, edi
je 0x40224f
push 1
mov ecx, edi
call fcn.0040b812
push edi
call fcn.00433d7c
test eax, eax
jne 0x40224f
push str.cndl
call fcn.0043caa0
cmp dword [0x4a2b20], 0
je 0x402275
mov ecx, dword [0x50d7e8]
push 0
push dword [esi + 0x10]
call fcn.004082ee
test eax, eax
je 0x402275
push 1
mov ecx, eax
call fcn.0040b812
lea eax, [esi + 0x18]
jmp 0x40220e
Function at 0x402993
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push dword [ebp + 8]
call fcn.00401d13
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x402a84
push ebx
push edi
lea edi, [esi + 0x10a8]
mov dword [ebp + 8], eax
cmp word [edi], ax
jne 0x402a31
cmp word [esi + 0xc30], ax
je 0x402a31
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
push edi
lea eax, [esi + 0xc38]
push eax
call ebx
test eax, eax
jne 0x402a31
push 0x45339c
lea eax, [esi + 0xc30]
push eax
call fcn.00428a12
test eax, eax
je 0x402a31
lea eax, [esi + 0xc30]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x453148
push 0x45339c
lea eax, [ebp - 0x208]
push eax
call fcn.00429755
push 0x104
push edi
lea eax, [ebp - 0x200]
push eax
call ebx
cmp word [edi], 0
mov ebx, dword [ebp + 0xc]
je 0x402a49
push edi
call fcn.0042b1c6
mov dword [ebx], eax
mov dword [ebp + 8], 1
lea eax, [esi + 0x13b0]
cmp word [eax], 0
je 0x402a64
push eax
call fcn.0042b1c6
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov dword [ebx + ecx*4], eax
add esi, 0x1330
cmp word [esi], 0
je 0x402a7f
push esi
call fcn.0042b1c6
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov dword [ebx + ecx*4], eax
mov eax, dword [ebp + 8]
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x402e73
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 8], 0
push edi
je 0x403032
cmp dword [0x517934], 4
jl 0x402eb2
lea eax, [esi + 0xc30]
push eax
lea eax, [esi + 0xfc8]
push eax
push str.CDevList::CheckForChangedComPort_ddn_s_devpath_s
push 4
call fcn.0044def7
add esp, 0x10
push 0x4535ac
lea ebx, [esi + 0xfc8]
push ebx
call fcn.00428960
test eax, eax
je 0x403032
lea edi, [esi + 0x13b0]
cmp word [edi], 0
je 0x403032
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00448216
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push edi
lea eax, [ebp - 0x20c]
push eax
push str.newkn_s_oldkn_s
push 4
call fcn.0044def7
add esp, 0x10
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403032
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
push dword [esi + 4]
push str.Devs__i__DosDeviceName_s_ComKernelName_s__now_ComKernelName_s_____re_check
push 3
call fcn.0044def7
push str.Device_Parameters
lea eax, [esi + 0xe38]
push eax
push str.SystemCurrentControlSetEnum
lea eax, [ebp - 0x60c]
push 0x4534d0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
push 0x40
push ebx
push str.PortName
lea eax, [ebp - 0x60c]
push eax
push 0x80000002
call fcn.00428246
test eax, eax
je 0x403032
push ebx
push str.new_res_PortName_s
push 4
call fcn.0044def7
add esp, 0xc
push 0x208
lea eax, [ebp - 0xa1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x403032
lea eax, [ebp - 0xa1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push ebx
push dword [esi + 4]
push str.Devs__i__new_DosDeviceName_s_ComKernelName_s
push 3
call fcn.0044def7
add esp, 0x14
push 0
lea eax, [ebp + 8]
push eax
lea edi, [esi + 0x1738]
push edi
lea eax, [ebp - 4]
push eax
push 0xd
push dword [esi + 0x10]
mov dword [ebp + 8], 0x100
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Registry_PropertyW]
push 0x453470
push edi
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov ecx, dword [0x50d7e8]
push 0
push dword [esi + 0x10]
call fcn.004082ee
test eax, eax
je 0x40302d
push 1
mov ecx, eax
call fcn.0040b812
xor eax, eax
inc eax
jmp 0x403034
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4