joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4297be
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4297e9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x4298d5
push esi
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x429819
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x4298d4
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x429840
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x429808
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
push 4
pop eax
push edi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00424576
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push dword [ebp - 8]
call esi
mov esi, dword [ebp + 0x14]
push 0x4761ce
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x4298b6
movzx eax, byte [esi + ebx]
push eax
push str._02X
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add dword [ebp - 0x10], 2
add esp, 0xc
inc esi
cmp esi, dword [ebp - 4]
jb 0x429896
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x18]
call fcn.00424686
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x429911
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x48b174], 0
jne 0x42991f
call fcn.004298d8
mov ecx, dword [esp + 8]
push esi
or esi, 0xffffffff
test ecx, ecx
je 0x42994e
mov eax, dword [esp + 8]
push edi
movzx edi, byte [eax]
mov edx, esi
and edx, 0xff
xor edx, edi
mov edi, dword [0x48b174]
shr esi, 8
xor esi, dword [edi + edx*4]
inc eax
dec ecx
jne 0x429930
pop edi
cmp dword [esp + 0x10], 0
not esi
je 0x42996a
push esi
push str._08X
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, esi
pop esi
ret

Function at 0x429b35
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [esp + 0x10]
mov edi, eax
lea eax, [edi + 2]
push eax
mov ecx, ebx
call fcn.00424699
mov eax, dword [ebx]
and word [eax], 0
inc edi
push edi
push dword [ebx]
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
pop ebx
ret 4
Function at 0x42c6e0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp edx, esi
push edi
mov dword [ebp - 4], esi
jne 0x42c734
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x42c712
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], eax
mov edx, eax
jne 0x42c734
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x42c72f
xor eax, eax
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 0xffffffff
je 0x42c77e
cmp edx, esi
je 0x42c77e
push 9
pop ecx
xor eax, eax
push 0x28
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
pop eax
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov esi, dword [ebp - 0x1c]
jmp 0x42c781
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00402905
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x42d03a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
je 0x42d04d
or dword [ebp + 0x14], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042460b
cmp dword [ebp + 8], ebx
je 0x42d06b
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [eax]
lea ecx, [ebp - 0x1c]
call fcn.00409aca
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [ebp - 0x20]
mov esi, eax
shl edi, 2
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00424576
cmp esi, ebx
mov dword [ebp - 0x10], ebx
jne 0x42d17d
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
jle 0x42d17d
mov esi, dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov byte [esi], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp byte [esi], 0x7b
jne 0x42d140
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jl 0x42d109
cmp dword [ebp - 0x10], eax
jge 0x42d14d
inc dword [ebp - 0x10]
cmp dword [ebp + 8], ebx
je 0x42d140
lea ecx, [ebp - 4]
call fcn.0042460b
push str.Name
push esi
lea esi, [ebp - 4]
call fcn.0042cf95
pop ecx
pop ecx
push dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x42d15c
mov ecx, esi
call fcn.00424686
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x42d0db
jmp 0x42d17d
jne 0x42d17d
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push esi
call fcn.0042a108
jmp 0x42d17d
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
call fcn.0042a1e5
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.0042a108
lea ecx, [ebp - 4]
call fcn.00424686
cmp dword [ebp - 8], ebx
pop edi
je 0x42d18c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp byte [eax], bl
je 0x42d1ac
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
cmp word [ecx], bx
jne 0x42d1ac
push str.Name
push eax
call fcn.0042cf95
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 0x18]
call fcn.00424686
lea ecx, [ebp - 0x1c]
call fcn.00424686
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42e64e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00403993
cmp dword [ebp - 8], ebx
je 0x42e693
push dword [ebp - 8]
call fcn.00429d9b
mov edi, edx
cmp edi, ebx
pop ecx
mov esi, eax
jg 0x42e697
jl 0x42e693
cmp esi, ebx
jae 0x42e697
xor esi, esi
xor edi, edi
lea ecx, [ebp - 4]
call fcn.00424559
cmp edi, ebx
jl 0x42e6e1
jg 0x42e6a9
cmp esi, ebx
jbe 0x42e6e1
lea eax, [esi + 5]
push eax
lea ecx, [ebp - 4]
call fcn.0042459d
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp eax, edi
jl 0x42e6db
jg 0x42e6d9
cmp ecx, esi
jbe 0x42e6db
mov ecx, esi
mov eax, dword [ebp - 4]
mov byte [ecx + eax], bl
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 4]
call fcn.00409aca
lea ecx, [ebp - 4]
call fcn.00424686
lea ecx, [ebp - 8]
call fcn.00402905
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42eb88
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov byte [ebp - 0x28], bl
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00403993
cmp dword [ebp - 4], ebx
je 0x42ebdc
push ebx
lea eax, [ebp - 8]
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00426ea7
add esp, 0xc
mov bl, al
lea ecx, [ebp - 4]
call fcn.00402905
mov al, bl
pop ebx
leave
ret
Function at 0x42efef
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov dword [ebp - 0xc], ebx
jne 0x42f018
push 0x100000
lea ecx, [ebp - 0xc]
call fcn.0042459d
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
push 5
pop ecx
xor eax, eax
mov esi, 0x47aadc
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push 0x1b
lea eax, [edi + 4]
pop ecx
or word [eax - 4], 0xffff
or word [eax - 2], 0xffff
mov word [eax], bx
add eax, 6
dec ecx
jne 0x42f038
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], 0x41
add edi, 2
mov dword [ebp - 0x14], 0x1a
mov ax, word [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov word [ebp - 0x38], ax
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ebx
test ecx, eax
je 0x42f13e
mov ax, word [ebp - 8]
mov word [edi + 2], ax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
je 0x42f0a6
cmp eax, 2
jne 0x42f13e
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 4]
call fcn.00403993
cmp dword [ebp - 4], ebx
je 0x42f13e
mov esi, dword [ebp + 0xc]
push 0x20
push ebx
push esi
mov dword [ebp - 0x1d0], ebx
call fcn.00461780
or dword [esi + 0x14], 0xffffffff
add esp, 0xc
push ebx
lea eax, [ebp - 0x1d0]
push eax
push 0x20
push esi
push ebx
push ebx
push 0x74004
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x42f107
mov ax, word [esi + 0x14]
mov word [edi - 2], ax
push ebx
mov dword [ebp - 0x1d0], ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or dword [esi + 4], 0xffffffff
push ebx
lea eax, [ebp - 0x1d0]
push eax
push 0xc
push esi
push ebx
push ebx
push 0x2d1080
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x42f13e
mov ax, word [esi + 4]
mov word [edi], ax
lea ecx, [ebp - 4]
call fcn.00402905
inc dword [ebp - 8]
inc dword [ebp - 0x10]
add edi, 6
dec dword [ebp - 0x14]
jne 0x42f068
push ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ebp - 0xc]
call fcn.00424686
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43037d
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.004617f0
pop ecx
mov edi, eax
lea ecx, [ebp - 4]
mov ebx, edi
call fcn.00424559
cmp byte [ebp + 0x10], 0
jne 0x4303f2
cmp edi, 0x14
jge 0x4303a8
push 0x14
pop ebx
lea eax, [ebx + 2]
push eax
lea ecx, [ebp - 4]
call fcn.0042459d
mov esi, dword [ebp - 4]
lea eax, [ebx + 2]
push eax
push 0
push esi
call fcn.00461780
inc edi
push edi
push dword [ebp + 8]
push esi
call fcn.00461a50
add esp, 0x18
xor ecx, ecx
test ebx, ebx
jle 0x4303f0
mov eax, ecx
cdq
push 0x14
pop edi
idiv edi
mov edi, dword [ebp - 4]
mov al, byte [edx + 0x479884]
xor byte [ecx + edi], al
inc ecx
cmp ecx, ebx
jl 0x4303d7
mov edi, ebx
lea eax, [edi + edi*2 + 0xd]
mov edi, dword [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00424699
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
inc eax
inc eax
mov word [eax], cx
cmp byte [esi], cl
jne 0x430418
mov esi, eax
jmp 0x4304e8
mov word [eax], 0x23
inc eax
inc eax
lea edi, [ebx + esi]
mov word [eax], cx
movzx ebx, byte [esi]
inc esi
mov byte [ebp + 0xb], 8
mov cl, byte [ebp + 0xb]
cmp cl, 6
jge 0x43043d
test cl, cl
jle 0x43049f
cmp esi, edi
jne 0x4304a1
mov dl, bl
and dl, 0x3f
cmp byte [ebp + 0x10], 0
je 0x430453
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x430484
test dl, dl
jne 0x43045c
add dl, 0x2b
jmp 0x430482
cmp dl, 1
jne 0x430466
add dl, 0x2e
jmp 0x430482
cmp dl, 0xc
jae 0x430470
add dl, 0x2e
jmp 0x430482
cmp dl, 0x26
jae 0x43047a
add dl, 0x35
jmp 0x430482
cmp dl, 0x40
jae 0x430482
add dl, 0x3b
mov cl, dl
movzx cx, cl
mov word [eax], cx
inc eax
inc eax
shr ebx, 6
add byte [ebp + 0xb], 0xfa
jns 0x43042d
mov word [eax], 0x3d
inc eax
inc eax
jmp 0x43042d
cmp esi, edi
jae 0x4304d5
movzx edx, byte [esi]
add byte [ebp + 0xb], 8
shl edx, cl
or ebx, edx
inc esi
cmp esi, edi
jae 0x4304d5
movzx edx, byte [esi]
mov cl, byte [ebp + 0xb]
add byte [ebp + 0xb], 8
shl edx, cl
or ebx, edx
inc esi
cmp esi, edi
jae 0x4304d5
movzx edx, byte [esi]
mov cl, byte [ebp + 0xb]
shl edx, cl
or ebx, edx
inc esi
add byte [ebp + 0xb], 8
cmp byte [ebp + 0xb], 0
jg 0x43042d
and word [eax], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
lea ecx, [ebp - 4]
call fcn.00424686
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x430536
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43057a
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x430572
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push eax
mov ecx, edi
call fcn.0042a1b7
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
pop esi
pop edi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
ret
Function at 0x43124d
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esi]
call fcn.0042572e
add esp, 0x10
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
pop esi
ret
Function at 0x431d97
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push esi
push 0x48b164
push str.OLEPRO32.DLL
push str.OleLoadPicture
call fcn.0042584c
add esp, 0x10
cmp dword [0x48b160], esi
je 0x431e8d
cmp dword [0x48b164], esi
je 0x431e8d
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call fcn.00403993
cmp dword [ebp - 4], esi
je 0x431e81
push ebx
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x431e6f
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
lea ecx, [ebp - 4]
call fcn.00402905
lea eax, [ebp - 8]
push eax
push esi
push edi
call dword [0x48b160]
cmp dword [ebp - 8], esi
je 0x431e68
lea eax, [ebp - 0xc]
push eax
push 0x47d95c
push esi
push esi
push dword [ebp - 8]
call dword [0x48b164]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 8]
cmp eax, esi
pop edi
pop ebx
je 0x431e7e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402905
mov eax, esi
jmp 0x431e8f
xor eax, eax
pop esi
leave
ret
Function at 0x4322f1
Capabilities:
Delete file
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 4], esi
mov dword [ebp - 4], esi
jg 0x432310
xor eax, eax
jmp 0x4324d4
push 0x48b5d4
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
call fcn.00431d2a
lea ecx, [ebp - 0xc]
call fcn.00409538
push dword [edi + 4]
push dword [edi]
call fcn.00428952
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x43234f
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x432354
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp dword [ebp - 4], esi
je 0x43236e
mov eax, dword [0x48b158]
cmp eax, esi
mov edi, dword [ebp - 4]
je 0x432367
cmp dword [ebp - 0xc], esi
jne 0x432367
call eax
mov esi, edi
jmp 0x4324c7
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x2e4]
push eax
push 0x475d10
mov word [ebp - 0x2e4], si
call edi
cmp eax, esi
jg 0x4323c4
push ebx
lea eax, [ebp - 0x2e4]
push eax
push str.TEMP
call edi
cmp eax, esi
jg 0x4323c4
mov eax, dword [0x48b158]
cmp eax, esi
je 0x4324c6
cmp dword [ebp - 0xc], esi
jne 0x4324c6
call eax
jmp 0x4324c6
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 0x63
lea edi, [ebp + eax*2 - 0x2e4]
call fcn.004264c1
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push str.pecmd_bmp._lu._lu.tmp
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push 0x80
push 1
push esi
push 5
push 0x40000000
lea eax, [ebp - 0x2e4]
push eax
lea ecx, [ebp - 8]
call fcn.00403993
cmp dword [ebp - 8], esi
jne 0x432439
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec dword [ebp - 0x10]
jns 0x4323d5
lea ecx, [ebp - 8]
call fcn.00402905
jmp 0x4323a7
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
mov dword [ebp - 0x14], esi
push dword [eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea ecx, [ebp - 8]
call fcn.00402905
push 0x10
push esi
push esi
push esi
lea eax, [ebp - 0x2e4]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x43249c
lea eax, [ebp - 0x2e4]
push eax
call fcn.00431d97
mov edi, eax
cmp edi, esi
pop ecx
je 0x43249c
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edi
call dword [eax + 0xc]
cmp dword [ebp - 4], esi
jne 0x43249c
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00402905
mov eax, dword [0x48b158]
cmp eax, esi
je 0x4324c4
cmp dword [ebp - 0xc], esi
jne 0x4324c4
call eax
mov esi, edi
pop ebx
push 0x48b5d4
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x432988
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
cmp ax, 0x61
jb 0x4329a2
cmp ax, 0x7a
ja 0x4329a2
and eax, 0xffdf
push ebx
push esi
push 0x5c
pop ecx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
mov word [ebp - 0x1c], ax
mov word [ebp - 0x24], ax
push ebx
lea eax, [ebp - 0x2c]
push eax
mov word [ebp - 0x1a], 0x3a
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], bx
mov word [ebp - 0x2c], cx
mov word [ebp - 0x2a], cx
mov word [ebp - 0x28], 0x2e
mov word [ebp - 0x26], cx
mov word [ebp - 0x22], 0x3a
mov word [ebp - 0x20], bx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x432a41
push edi
push ebx
lea eax, [ebp - 0x30]
push eax
push 0xc
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push 0x2d1080
push esi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, ebx
pop edi
je 0x432a41
mov esi, dword [ebp - 0x3c]
cmp esi, 0xffffffff
je 0x432a41
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
push eax
push esi
mov dword [ebp - 8], ebx
call fcn.00428bfb
cmp eax, ebx
pop ecx
pop ecx
jne 0x432a49
xor eax, eax
inc eax
jmp 0x432ae6
push ebx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
mov eax, dword [ebp - 0x14]
shr eax, 0xe
and al, 1
mov byte [ebp - 1], al
mov dword [ebp - 0xc], 1
mov esi, 0x208
push ebx
push esi
cmp al, bl
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
mov word [ebp - 0x248], bx
je 0x432aad
call dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
jmp 0x432ab3
call dword [sym.imp.SETUPAPI.dll_CM_Query_And_Remove_SubTreeW]
cmp eax, ebx
jne 0x432abc
cmp dword [ebp - 0x10], ebx
je 0x432ad9
push 0xc8
mov ecx, 0x48aec0
call fcn.0040ac88
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jg 0x432adb
mov al, byte [ebp - 1]
jmp 0x432a8a
mov bl, 1
neg bl
sbb ebx, ebx
and ebx, 0xfffffffe
inc ebx
inc ebx
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x432aea
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, esi
call fcn.00432988
and word [ebp - 0xc], 0
and word [ebp - 2], 0
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
je 0x432b4a
cmp ebx, 2
je 0x432b5a
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x48aec0
call fcn.0042ee15
pop ebx
leave
ret