joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ab17
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4cc040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49ab62
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049afcf
test al, al
jne 0x49ab5c
sub edx, 2
cmp edx, edi
jne 0x49ab42
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49ab84
lea eax, [edi + 2]
cmp edx, eax
je 0x49ab84
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a710
add esp, 0x10
jmp 0x49ac7e
push esi
lea ecx, [ebp - 0x255]
call fcn.0049afcf
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49abc7
push dword [ebp - 0x25c]
jmp 0x49ab74
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49ac04
cmp word [ebp - 0x226], 0
je 0x49ac25
cmp word [ebp - 0x226], ax
jne 0x49ac04
cmp word [ebp - 0x224], 0
je 0x49ac25
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a710
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49ac71
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49abde
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49ac59
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49ac7e
push 0x49a0f8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004053f3
add esp, 0x10
jmp 0x49ac4e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402fc7
leave
ret

Function at 0x4a05e0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004041fb
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a064f
cmp esi, dword [ebp - 4]
je 0x4a064a
cmp dword [ebp + 0xc], 0
je 0x4a064a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a0627
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a0008
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a0651
xor eax, eax
inc eax
jmp 0x4a0651
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x6e8b3eff
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x599331b0
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401fda
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 0x4020d2
cmp dword [edi + 8], ebx
je 0x4020d2
cmp dword [0x4fac58], ebx
jne 0x4020d2
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.0043f4d8
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
je 0x4020d2
mov eax, dword [edi + 8]
push dword [eax]
lea eax, [ebp - 0x70]
push eax
movzx eax, si
push eax
push str.CheckNewDriveLetter__c_...____vn_s__c_i
push 4
call fcn.004452a3
mov eax, dword [edi + 8]
add esp, 0x14
cmp dword [eax], ebx
jle 0x4020d2
mov esi, dword [eax + ebx*4 + 4]
test esi, esi
je 0x4020ca
push dword [esi + 0x840]
lea ecx, [esi + 0x930]
push dword [esi + 0xc]
lea eax, [esi + 0x848]
push dword [esi + 8]
push ecx
push eax
push ebx
push str._Volumes__i__vn_s_mp_s_used_i_present_i_devnum_i
push 4
call fcn.004452a3
add esp, 0x20
cmp dword [esi + 8], 0
je 0x4020ca
cmp dword [esi + 0xc], 0
je 0x4020ca
cmp dword [esi + 0x840], 0
je 0x4020ca
lea eax, [ebp - 0x70]
push eax
lea eax, [esi + 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4020db
mov eax, dword [edi + 8]
inc ebx
cmp ebx, dword [eax]
jl 0x40206e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, esi
call fcn.00405d56
mov ecx, dword [0x4fc948]
push 1
push dword [esi + 0x14]
call fcn.004076dc
test eax, eax
je 0x402104
push 1
mov ecx, eax
call fcn.0040a1f8
call fcn.004321ab
cmp dword [0x492a68], 0
je 0x40212a
mov ecx, dword [0x4fc948]
push 0
push dword [esi + 0x10]
call fcn.004076dc
test eax, eax
je 0x40212a
push 1
mov ecx, eax
call fcn.0040a1f8
lea eax, [esi + 0x18]
jmp 0x4020d4
Function at 0x402810
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push dword [ebp + 8]
call fcn.00401c52
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x402901
push ebx
push edi
lea edi, [esi + 0x10a4]
mov dword [ebp + 8], eax
cmp word [edi], ax
jne 0x4028ae
cmp word [esi + 0xc2c], ax
je 0x4028ae
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
push edi
lea eax, [esi + 0xc34]
push eax
call ebx
test eax, eax
jne 0x4028ae
push 0x449f5c
lea eax, [esi + 0xc2c]
push eax
call fcn.00425740
test eax, eax
je 0x4028ae
lea eax, [esi + 0xc2c]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x449d24
push 0x449f5c
lea eax, [ebp - 0x208]
push eax
call fcn.0042632e
push 0x104
push edi
lea eax, [ebp - 0x200]
push eax
call ebx
cmp word [edi], 0
mov ebx, dword [ebp + 0xc]
je 0x4028c6
push edi
call fcn.0042737a
mov dword [ebx], eax
mov dword [ebp + 8], 1
lea eax, [esi + 0x13ac]
cmp word [eax], 0
je 0x4028e1
push eax
call fcn.0042737a
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov dword [ebx + ecx*4], eax
add esi, 0x132c
cmp word [esi], 0
je 0x4028fc
push esi
call fcn.0042737a
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 0x402ceb
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 0x402e5d
push 0x44a140
lea ebx, [esi + 0xfc4]
push ebx
call fcn.0042568e
test eax, eax
je 0x402e5d
lea edi, [esi + 0x13ac]
cmp word [edi], 0
je 0x402e5d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0043f4d8
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
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402e5d
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.004452a3
push str.Device_Parameters
lea eax, [esi + 0xe34]
push eax
push str.SystemCurrentControlSetEnum
lea eax, [ebp - 0x60c]
push 0x44a07c
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.00424f44
test eax, eax
je 0x402e5d
push 0x208
lea eax, [ebp - 0xa1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x402e5d
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.004452a3
add esp, 0x14
push 0
lea eax, [ebp + 8]
push eax
lea edi, [esi + 0x1734]
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 0x44a030
push edi
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov ecx, dword [0x4fc948]
push 0
push dword [esi + 0x10]
call fcn.004076dc
test eax, eax
je 0x402e58
push 1
mov ecx, eax
call fcn.0040a1f8
xor eax, eax
inc eax
jmp 0x402e5f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404d4b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
push 0x1c
pop esi
mov dword [ebp - 0x14], ecx
push 6
pop ebx
xor eax, eax
mov ecx, ebx
lea edi, [ebp - 0x60]
mov dword [ebp - 0x64], esi
rep stosd dword es:[edi], eax
mov ecx, ebx
mov edx, 0x46d034
mov dword [ebp - 0x464], ebx
lea edi, [ebp - 0x44]
xor ebx, ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0x4497e4
mov dword [ebp - 0x20], 0x46d044
mov dword [ebp - 0x1c], 0x46d094
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edx
push 0x12
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x404f1b
lea eax, [ebp - 0x48]
push eax
push ebx
jmp 0x404efd
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x400
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x404ef3
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
call fcn.00401ad5
mov esi, eax
cmp esi, ebx
je 0x404ef3
lea eax, [ebp - 0x460]
push eax
lea edi, [esi + 0xc2c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x404e3f
push 0x40
lea eax, [esi + 0x12ac]
push eax
lea eax, [esi + 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, dword [ebp - 4]
cmp edi, 3
jg 0x404e9b
lea eax, [ebp - 0x460]
push eax
call fcn.00429e68
cmp edi, ebx
mov dword [esi + 0x3a20], eax
jl 0x404e78
xor ecx, ecx
inc ecx
cmp edi, ecx
jle 0x404e72
push 2
pop ecx
cmp edi, ecx
je 0x404e72
push 3
pop ecx
cmp edi, ecx
jne 0x404e78
mov dword [esi + 0x3a24], ecx
push eax
mov eax, dword [esi + 0x3a24]
push dword [eax*4 + 0x49201c]
lea eax, [esi + 0x1084]
push str._S_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp edi, ebx
jl 0x404ed1
cmp edi, 1
jle 0x404eb6
cmp edi, 2
jne 0x404ed1
push dword [esi + 0x3a20]
push str..CdRom_i
jmp 0x404ec1
push dword [esi + 0x3a20]
push str..PhysicalDrive_i
lea eax, [esi + 0x1044]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esi + 0x1044]
cmp word [eax], bx
je 0x404eec
push 0x40
add esi, 0x132c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x10]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x404dcb
push dword [ebp - 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x28]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x404da5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405605
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x200
lea eax, [ebp - 0xc08]
push eax
push dword [ebp + 0x14]
call fcn.004274ee
push 0x7fe
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x808], 0x20
call fcn.0043f4d8
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0x806]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
inc eax
cmp eax, 0x124
jl 0x4056a0
push str.CStatusText::PrintfStatusText
push 0x53
push str..CStatusText.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.004452a3
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov word [ebp - 0x5c2], ax
cmp dword [0x506fb4], 4
jl 0x4056c0
lea eax, [ebp - 0x808]
push eax
push ebx
push str.STATUS__u_:__s
push 4
call fcn.004452a3
add esp, 0x10
push edi
lea eax, [ebp - 0x808]
push eax
push dword [esi + ebx*4 + 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp word [ebp - 0x808], 0
mov dword [esi + ebx*4 + 0x2c], eax
jne 0x405718
or ebx, 0xffffffff
call edi
mov ecx, dword [esi]
mov dword [ebp + 8], eax
xor eax, eax
test ecx, ecx
jle 0x405718
lea edx, [esi + 0x2c]
mov edi, dword [edx - 0x28]
cmp word [edi], 0
je 0x405710
mov edi, dword [edx]
sub edi, dword [ebp + 8]
cmp edi, 0xffffffff
jae 0x405710
mov ebx, eax
inc eax
add edx, 4
cmp eax, ecx
jl 0x4056fb
and dword [ebp - 4], 0
pop edi
test ebx, ebx
jl 0x405757
cmp dword [0x506fb4], 5
jl 0x405740
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push str.SB_SETTEXT__i___s
push 5
call fcn.004452a3
add esp, 0x10
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push 0x40b
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x405775
lea eax, [ebp - 4]
push eax
push 0x64
push 2
push 0x449d24
push dword [ebp + 0xc]
push 0x40b
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp dword [ebp + 0x10], 0
je 0x40578f
push 0x405595
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
pop ebx
leave
ret

Function at 0x405c63
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x405c8c
dec eax
je 0x405c87
dec eax
dec eax
jne 0x405c87
push 2
pop eax
jmp 0x405cd0
xor eax, eax
inc eax
jmp 0x405cd0
add esi, 8
push esi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [ebp - 0x10], ax
push 0x104
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x44b2f0
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
neg eax
sbb eax, eax
and eax, 2
inc eax
pop esi
leave
ret 4
Function at 0x405cd5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x44b4b8]
mov dword [ebp - 8], eax
mov eax, dword [0x44b4bc]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
xor eax, eax
push 0x41
mov word [esi], ax
pop eax
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jb 0x405d39
cmp eax, 3
jbe 0x405d14
cmp eax, 5
jne 0x405d39
push 0x34
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x405d39
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x405d46
inc word [ebp - 8]
cmp word [ebp - 8], 0x5a
jbe 0x405cfb
jmp 0x405d51
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
leave
ret 8
Function at 0x405d56
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
cmp dword [esi + 0xc], edi
jne 0x405d90
cmp dword [esi + 0x840], 0xffffffff
jne 0x405d90
add esi, 0x930
xor eax, eax
cmp word [esi], di
je 0x405eb6
mov word [esi], ax
inc eax
jmp 0x405eb6
push ebx
mov ebx, 0x28a0
push ebx
call fcn.0043f698
push ebx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.0043f4d8
lea edi, [esi + 0x848]
xor eax, eax
add esp, 0x10
cmp word [edi], ax
je 0x405eba
cmp dword [0x497808], eax
je 0x405e6e
push edi
push str.GetVolumePathNamesForVolumeName__s_...
push 3
mov dword [ebp - 0x10], eax
call fcn.004452a3
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x1450
push dword [ebp - 4]
push edi
call dword [0x497808]
test eax, eax
je 0x405e49
cmp dword [0x506fb4], 3
jl 0x405e34
push dword [ebp - 4]
call fcn.00424c79
mov edi, eax
test edi, edi
je 0x405e20
push edi
push str._OK__mp_s
push 3
call fcn.004452a3
push edi
call fcn.0043f70d
add esp, 0x10
jmp 0x405e34
push 0x449cbc
push str._OK__mp_s
push 3
call fcn.004452a3
add esp, 0xc
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.0043f495
add esp, 0xc
jmp 0x405e99
call fcn.00442f0e
push eax
push str._err_S
push 3
call fcn.004452a3
add esp, 0xc
xor eax, eax
mov word [esi + 0x930], ax
xor esi, esi
jmp 0x405f74
push dword [ebp - 4]
push edi
call fcn.00405cd5
push dword [ebp - 4]
push str.Letter_s
push 3
call fcn.004452a3
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.0043f495
add esp, 0x18
test eax, eax
je 0x405e67
push ebx
push dword [ebp - 4]
push esi
call fcn.0043f542
push dword [ebp - 4]
call fcn.0043f70d
xor eax, eax
add esp, 0x10
inc eax
pop ebx
pop edi
pop esi
leave
ret
lea eax, [esi + 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x405e67
mov esi, 0x44b4c8
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push 0x41
pop eax
movsw word es:[edi], word [esi]
mov word [ebp - 0xc], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x405f4e
mov eax, dword [ebp - 0x10]
add eax, 0x428
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x405f4e
lea eax, [ebp - 0xc]
push eax
push str.Letter_s
push 3
call fcn.004452a3
lea eax, [ebp - 0xc]
push eax
push 0x44b4c0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0x10]
push ebx
lea eax, [esi + 0x930]
push eax
push dword [ebp - 4]
call fcn.0043f495
add esp, 0x24
test eax, eax
jne 0x405f5e
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x405ede
jmp 0x405e67
push ebx
push dword [ebp - 4]
add esi, 0x930
push esi
call fcn.0043f542
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 4]
call fcn.0043f70d
pop ecx
mov eax, esi
jmp 0x405eb5
Function at 0x405f84
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0xc], ebx
je 0x406138
lea edi, [esi + 0x848]
cmp word [edi], bx
je 0x406138
mov eax, dword [0x4fac74]
push edi
push str.GetVolumeInformation__s_...
push 3
mov dword [ebp - 4], eax
call fcn.004452a3
add esp, 0xc
push 0x20
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x101
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [0x4fac58], ebx
jne 0x406138
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x4fac74]
jne 0x406138
cmp eax, ebx
je 0x4060dc
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x24c]
push eax
push str._Label_s_Serial_08X_FileSystem_s
push 3
call fcn.004452a3
mov eax, dword [ebp - 4]
add esp, 0x14
cmp eax, dword [0x4fac74]
jne 0x4060d7
push 0x44b550
lea eax, [ebp - 0x48]
push eax
mov dword [esi + 0x34f4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x406085
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x406085
cmp dword [ebp - 4], 0xff5
jae 0x40606d
push 0x44b548
jmp 0x40607b
cmp dword [ebp - 4], 0xfff5
jae 0x406085
push 0x44b540
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 8]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [esi + 0x3264]
push str._04X__04X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
lea eax, [esi + 0x3278]
push eax
call edi
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 0x347a]
push eax
call edi
mov eax, dword [ebp - 8]
mov dword [esi + 0x3260], eax
mov byte [esi + 0x34ba], bl
xor eax, eax
inc eax
jmp 0x40613a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x34f4], eax
call fcn.00442eec
push eax
push str._err_s
push 3
call fcn.004452a3
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x34f4], 0x80310000
mov word [esi + 0x3264], ax
mov word [esi + 0x3278], ax
mov word [esi + 0x347a], ax
mov dword [esi + 0x3260], ebx
jne 0x406138
push str.locked_by_BitLocker
add esi, 0x34ba
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4067fd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x4068c5
cmp dword [esi], 1
jne 0x4068c5
cmp dword [esi + 0xc], edi
je 0x4068c5
lea eax, [esi + 0x848]
push eax
push str.GetVolumeInformationAsync__s_...
push 3
call fcn.004452a3
add esp, 0xc
cmp dword [esi + 0x34f0], edi
je 0x406852
push str._busy____abort
push 3
call fcn.004452a3
pop ecx
pop ecx
jmp 0x4068eb
cmp dword [esi + 0x34ec], edi
je 0x406861
push str._already_done____abort
jmp 0x406844
cmp dword [esi + 0x31d0], 6
jne 0x406897
cmp dword [esi + 0x31d4], edi
jne 0x406897
push str._no_media____abort
push 3
call fcn.004452a3
pop ecx
pop ecx
push str.no_media
add esi, 0x31e0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
jmp 0x4068ed
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4064dc
push edi
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4068eb
push dword [ebp + 8]
push str.thread_GetVolumeInformation_ThreadProc_created_ThreadId_04u
push 3
call fcn.004452a3
add esp, 0xc
jmp 0x4068eb
push str.CStorageVolumes::GetVolumeInformationAsync
push 0x3e4
push str..CStorageVolumes.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.004452a3
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebp
ret 4