joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431a30
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x48e012
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ae830]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [0x4ae830]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
mov dword [esp + 0xc], 0
push ecx
mov dword [esp + 0x14], esi
mov word [esp + 0x18], ax
call fcn.0046fba0
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
add esp, 0xc
mov word [esi + 4], dx
push 1
push 0x2e
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x22c], edx
push edx
mov dword [esp + 0x14], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431ac7
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00417aa0
push 0x1a
push str.BaiduCommonI18Nconf.db
mov ecx, esi
call fcn.0041c970
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046fd33
add esp, 0x220
ret
Function at 0x434000
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x48d5a9
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4ae830]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ae830]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xbc]
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.004342a0
push 0x40
lea ecx, [esp + 0x54]
push ebx
mov dword [esp + 0xbc], ebx
push ecx
mov dword [esp + 0x48], vtable.CMD5Checksum.0
call fcn.0046fba0
add esp, 0xc
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x98], 0x67452301
mov dword [esp + 0x9c], 0xefcdab89
mov dword [esp + 0xa0], 0x98badcfe
mov dword [esp + 0xa4], 0x10325476
mov byte [esp + 0xb4], 1
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x4340c2
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x34]
push edx
lea esi, [esp + 0x1c]
lea edi, [esp + 0x40]
call fcn.004391b0
mov byte [esp + 0xb4], 2
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.0042fc00
mov byte [esp + 0xb4], 3
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x434106
sub eax, esi
push eax
push ecx
mov ecx, ebp
call fcn.00402f80
mov byte [esp + 0xb4], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x434140
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb4], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434168
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x38], 0x10
jb 0x43417c
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0045352f
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0046fd33
add esp, 0xa4
ret 4
Function at 0x4341b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x4ae830]
xor eax, esp
mov dword [esp + 0x10], eax
mov al, 0x2a
mov byte [esp + 4], al
mov byte [esp + 0xc], al
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, edx
and eax, 0xfffffff0
push esi
mov byte [esp + 8], 0x54
mov byte [esp + 9], 0x5a
mov byte [esp + 0xa], 0x8f
mov byte [esp + 0xb], 0x1a
mov byte [esp + 0xd], 0x3c
mov byte [esp + 0xe], 0x4e
mov byte [esp + 0xf], 0x72
mov byte [esp + 0x10], 0xa8
mov byte [esp + 0x11], 0x1b
mov byte [esp + 0x12], 0xa
mov byte [esp + 0x13], 0xbd
mov byte [esp + 0x15], 0x4c
mov byte [esp + 0x16], 0x56
mov byte [esp + 0x17], 0x15
mov esi, 0
jbe 0x434275
push ebx
push edi
lea edi, [eax - 1]
shr edi, 4
inc edi
mov esi, edi
lea ecx, [ebp + 1]
shl esi, 4
xor eax, eax
jmp 0x434240
movzx ebx, byte [esp + eax + 0x10]
xor byte [ecx + eax - 1], bl
movzx ebx, byte [esp + eax + 0x11]
xor byte [ecx + eax], bl
movzx ebx, byte [esp + eax + 0x12]
xor byte [ecx + eax + 1], bl
movzx ebx, byte [esp + eax + 0x13]
xor byte [ecx + eax + 2], bl
add eax, 4
cmp eax, 0x10
jb 0x434240
add ecx, 0x10
sub edi, 1
jne 0x434231
pop edi
pop ebx
cmp esi, edx
jae 0x43428b
lea eax, [esp + 8]
lea ecx, [ecx]
mov cl, byte [eax]
xor byte [esi + ebp], cl
inc esi
inc eax
cmp esi, edx
jb 0x434280
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
xor ecx, esp
call fcn.0046fd33
add esp, 0x14
ret
Function at 0x437ce0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x48dea9
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4ae830]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ae830]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb8]
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
je 0x437e85
push esi
call fcn.004377b0
cmp dword [esi + 0x14], ebx
je 0x437e85
push 0x40
lea eax, [esp + 0x50]
push ebx
push eax
mov dword [esp + 0x44], vtable.CMD5Checksum.0
call fcn.0046fba0
add esp, 0xc
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x94], 0x67452301
mov dword [esp + 0x98], 0xefcdab89
mov dword [esp + 0x9c], 0x98badcfe
mov dword [esp + 0xa0], 0x10325476
push 7
push 0x49da78
mov eax, esi
mov dword [esp + 0xb8], ebx
call fcn.0041a3c0
cmp dword [esi + 0x18], 0x10
mov ecx, dword [esi + 0x14]
jb 0x437db3
mov eax, dword [esi + 4]
jmp 0x437db6
lea eax, [esi + 4]
push ecx
lea esi, [esp + 0x18]
lea edi, [esp + 0x3c]
call fcn.004391b0
mov byte [esp + 0xb0], 1
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0042fc00
mov byte [esp + 0xb0], 2
mov ecx, dword [eax]
mov eax, ecx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x437e00
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00402f80
mov byte [esp + 0xb0], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x437e3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xb0], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437e64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [ebp + 4]
call fcn.00420880
cmp dword [esp + 0x34], 0x10
jb 0x437e85
mov edx, dword [esp + 0x20]
push edx
call fcn.0045352f
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0046fd33
add esp, 0xa0
ret 4
Function at 0x437f30
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x48e896
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4ae830]
xor eax, esp
mov dword [esp + 0x294], eax
push ebx
push ebp
push esi
mov eax, dword [0x4ae830]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2b8]
mov esi, dword [esp + 0x2bc]
mov dword [esp + 0x18], ecx
push 0xffffffffffffffff
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [esp + 0x44], cx
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
call fcn.00417270
push 4
push str..
lea ecx, [esp + 0x40]
mov dword [esp + 0x2b8], ebx
call fcn.0041c970
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x437fc8
lea eax, [esp + 0x3c]
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4380b7
cmp word [esp + 0x80], 0x2e
je 0x4380a3
push 0xffffffffffffffff
push ebx
xor eax, eax
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
call fcn.00417270
push 1
push 0x49ca24
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b8], 1
call fcn.0041c970
lea eax, [esp + 0x80]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x438030
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x24]
call fcn.0041c970
test byte [esp + 0x54], 0x10
je 0x43806d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00437f30
jmp 0x438088
lea ecx, [esp + 0x1c]
call fcn.00438100
test eax, eax
je 0x438088
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00423130
mov byte [esp + 0x2b0], bl
cmp dword [esp + 0x34], 8
jb 0x4380a3
mov edx, dword [esp + 0x20]
push edx
call fcn.0045352f
add esp, 4
lea eax, [esp + 0x54]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x437fdf
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x50], 8
jb 0x4380d2
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0045352f
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.0046fd33
add esp, 0x2a4
ret 8
Function at 0x438100
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x48de50
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4ae830]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
push edi
mov eax, dword [0x4ae830]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x74], 0
call fcn.0041d1d0
add esp, 4
cmp eax, 2
je 0x438190
cmp eax, 3
jne 0x43817b
cmp dword [esi + 0x18], 8
jb 0x438171
mov esi, dword [esi + 4]
jmp 0x438174
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x28], 0x10
jb 0x43829f
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x438297
mov eax, dword [esp + 0x24]
test eax, eax
je 0x438276
cmp eax, 0xa00000
ja 0x438276
push 0xe
push 0
push str.1E385666583E1
lea ecx, [esp + 0x1c]
call fcn.0042ecd0
mov esi, 0x10
cmp eax, 0xffffffff
je 0x438269
push eax
push 0
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x1c]
call fcn.0042ec90
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 1
call fcn.004297f0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], esi
jae 0x4381f9
lea eax, [esp + 0x30]
cmp byte [eax], 0x68
jne 0x438257
mov edi, 1
lea eax, [esp + 0x2c]
call fcn.00426100
cmp byte [eax], 0x74
jne 0x438257
mov edi, 2
lea eax, [esp + 0x2c]
call fcn.00426100
cmp byte [eax], 0x74
jne 0x438257
mov edi, 3
lea eax, [esp + 0x2c]
call fcn.00426100
cmp byte [eax], 0x70
jne 0x438257
lea ecx, [esp + 0x2c]
call fcn.00402720
lea ecx, [esp + 0x48]
call fcn.00402720
lea ecx, [esp + 0x10]
call fcn.00402720
lea eax, [edi - 2]
jmp 0x4382a1
lea ecx, [esp + 0x2c]
call fcn.00402720
lea ecx, [esp + 0x48]
call fcn.00402720
cmp dword [esp + 0x28], esi
jb 0x43829f
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x438297
cmp dword [esi + 0x18], 8
jb 0x438281
mov esi, dword [esi + 4]
jmp 0x438284
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x28], 0x10
jb 0x43829f
mov edx, dword [esp + 0x14]
push edx
call fcn.0045352f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0046fd33
add esp, 0x68
ret
Function at 0x438b90
Capabilities:
Read pipe
Write pipe

Disassembly:
sub esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x24]
push 8
lea ecx, [esp + 0x1c]
push ecx
push 8
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x438bd7
add esp, 0x18
ret 4
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x10000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, 1
add esp, 0x18
ret 4

Function at 0x4398d0
Capabilities:
Hash data with md5

Disassembly:
push 0x40
lea eax, [esi + 0x14]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call fcn.0046fba0
add esp, 0xc
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x5c], 0x67452301
mov dword [esi + 0x60], 0xefcdab89
mov dword [esi + 0x64], 0x98badcfe
mov dword [esi + 0x68], 0x10325476
mov eax, esi
ret
Function at 0x43a640
Capabilities:
Delete file

Disassembly:
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [edi + 0x18], 8
push ebp
lea ebp, [edi + 4]
jb 0x43a655
mov eax, dword [ebp]
jmp 0x43a657
mov eax, ebp
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x43a70a
mov eax, dword [edi + 0x14]
xor ecx, ecx
add eax, 4
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.0045353a
add esp, 4
cmp dword [edi + 0x18], 8
mov esi, eax
jb 0x43a691
mov ebp, dword [ebp]
mov eax, dword [edi + 0x14]
push ebp
add eax, 3
push eax
push esi
call fcn.00470266
mov ecx, dword [edi + 0x14]
xor eax, eax
mov dword [esi + ecx*2], eax
mov dword [esi + ecx*2 + 4], eax
lea ecx, [esi + ecx*2]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x34], ax
mov dword [esp + 0x2c], eax
add esp, 0xc
lea eax, [esp + 0xc]
mov edx, 0x414
push eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov word [esp + 0x20], dx
mov dword [esp + 0x2a], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
push esi
sete bl
call fcn.0045352f
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x20
ret

Function at 0x43a770
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x48e2e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ae830]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
mov eax, dword [0x4ae830]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
push 0x1a
mov esi, ecx
xor eax, eax
push str.GlobalMutex_BIDUI18NGUID_
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00417aa0
mov ebp, 8
mov dword [esp + 0x34], 0
cmp dword [esi + 0x18], ebp
jb 0x43a7e0
mov esi, dword [esi + 4]
jmp 0x43a7e3
add esi, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x43a7f0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.0041c970
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x24], ebp
jae 0x43a818
lea eax, [esp + 0x10]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x43a850
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43a850
cmp dword [esp + 0x24], ebp
jb 0x43a849
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0045352f
add esp, 4
mov eax, 1
jmp 0x43a865
cmp dword [esp + 0x24], ebp
jb 0x43a863
mov edx, dword [esp + 0x10]
push edx
call fcn.0045352f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0046fd33
add esp, 0x2c
ret
Function at 0x43afb0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x48e7ed
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4ae830]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
mov eax, dword [0x4ae830]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x250], ebx
mov dword [esp + 0x18], ebx
push edi
mov dword [esp + 0x3c], edi
mov esi, ecx
mov dword [esp + 0x14], ebx
call fcn.0041e580
mov dword [esp + 0x250], ebx
cmp dword [esi + 0x18], 8
mov dword [esp + 0x18], 1
jb 0x43b021
mov esi, dword [esi + 4]
jmp 0x43b024
add esi, 4
lea eax, [esp + 0x10]
push eax
push 8
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43b137
push 0x206
lea edx, [esp + 0x42]
xor ecx, ecx
push ebx
push edx
xor esi, esi
mov word [esp + 0x48], cx
call fcn.0046fba0
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
push ecx
push ebx
push edx
mov dword [esp + 0x34], 0x104
call ebp
test eax, eax
jne 0x43b12c
inc esi
xor eax, eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43b0a3
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
call fcn.00417aa0
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
mov dword [esp + 0x254], 1
call fcn.00423130
mov byte [esp + 0x250], bl
cmp dword [esp + 0x34], 8
jb 0x43b0f3
mov eax, dword [esp + 0x20]
push eax
call fcn.0045352f
add esp, 4
push 0x208
lea ecx, [esp + 0x40]
push ebx
push ecx
mov dword [esp + 0x20], 0x104
call fcn.0046fba0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x50]
push eax
push esi
push ecx
call ebp
test eax, eax
je 0x43b088
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0046fd33
add esp, 0x244
ret
Function at 0x43b160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa1c
mov eax, dword [0x4ae830]
xor eax, esp
mov dword [esp + 0xa18], eax
mov eax, dword [esp + 0xa24]
push esi
xor esi, esi
cmp dword [esp + 0xa3c], 8
push edi
mov dword [esp + 8], esi
jae 0x43b194
lea eax, [esp + 0xa2c]
lea ecx, [esp + 8]
push ecx
push 1
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43b2f4
push 0x206
lea eax, [esp + 0x1e]
xor edx, edx
push esi
push eax
mov word [esp + 0x24], dx
call fcn.0046fba0
push 0x7fe
lea edx, [esp + 0x232]
xor ecx, ecx
push esi
push edx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x2c], esi
mov word [esp + 0x238], cx
call fcn.0046fba0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
push edx
mov dword [esp + 0x30], 0x400
call edi
test eax, eax
jne 0x43b2e9
mov edi, edi
inc esi
cmp dword [esp + 0x14], 1
jne 0x43b283
cmp dword [esp + 0xc], 0
jbe 0x43b283
cmp dword [esp + 0x10], 3
jbe 0x43b283
lea eax, [esp + 0x18]
push eax
push str.PnpInstanceID
call fcn.0046ff07
add esp, 8
test eax, eax
jne 0x43b283
lea edx, [esp + 0x220]
push edx
xor ecx, ecx
push 0x49ddfc
mov word [esp + 0x22e], cx
call fcn.0046ff07
add esp, 8
test eax, eax
je 0x43b329
push 0x208
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0046fba0
push 0x800
lea ecx, [esp + 0x230]
push 0
push ecx
call fcn.0046fba0
add esp, 0x18
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], 0x400
call edi
test eax, eax
je 0x43b230
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xa40], 8
jb 0x43b30e
mov edx, dword [esp + 0xa2c]
push edx
call fcn.0045352f
add esp, 4
xor al, al
mov ecx, dword [esp + 0xa20]
pop edi
pop esi
xor ecx, esp
call fcn.0046fd33
add esp, 0xa1c
ret 0x1c
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xa40], 8
jb 0x43b34e
mov eax, dword [esp + 0xa2c]
push eax
call fcn.0045352f
add esp, 4
mov al, 1
jmp 0x43b310
Function at 0x43e340
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x48cb3b
mov eax, dword fs:[0]
push eax
sub esp, 0xb38
mov eax, dword [0x4ae830]
xor eax, esp
mov dword [esp + 0xb34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ae830]
xor eax, esp
push eax
lea eax, [esp + 0xb4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb5c]
mov dword [esp + 0x1c], eax
xor al, al
xor ebx, ebx
mov byte [esp + 0x17], al
xor ebp, ebp
cmp al, bl
jne 0x43e523
push 0x200
lea ecx, [esp + 0x14c]
push ebx
push ecx
call fcn.0046fba0
push ebp
lea edx, [esp + 0x158]
push str..PhysicalDrive_d
push edx
mov edx, 0xff
call fcn.0043e880
add esp, 0x18
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43e515
xor eax, eax
push 0x800
lea ecx, [esp + 0x34c]
push ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.0046fba0
add esp, 0xc
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x800
lea eax, [esp + 0x354]
push eax
push 0xc
lea ecx, [esp + 0x50]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43e508
push 0xff
lea edx, [esp + 0x4d]
push ebx
push edx
call fcn.0046fba0
mov eax, dword [esp + 0x36c]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0x48], bl
jle 0x43e477
lea edi, [esp + 0x48]
lea ecx, [esp + 0x348]
call fcn.0043e550
movsx eax, byte [esp + 0x48]
push eax
call fcn.00484356
add esp, 4
test eax, eax
jne 0x43e49b
movsx ecx, byte [esp + 0x5b]
push ecx
call fcn.00484356
add esp, 4
test eax, eax
je 0x43e50e
lea eax, [esp + 0x48]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43e4b2
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x28]
call fcn.00402f80
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0xb60], ebx
call fcn.00402760
mov dword [esp + 0xb54], 0xffffffff
cmp dword [esp + 0x38], 0x10
jb 0x43e501
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0045352f
add esp, 4
mov byte [esp + 0x17], 1
jmp 0x43e50e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x17]
inc ebp
cmp ebp, 0x10
jl 0x43e390
mov ecx, dword [esp + 0xb4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb34]
xor ecx, esp
call fcn.0046fd33
add esp, 0xb44
ret 4