joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d34
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 0x405d6e
cmp dword [esi + 0x840], 0xffffffff
jne 0x405d6e
add esi, 0x930
xor eax, eax
cmp word [esi], di
je 0x405e94
mov word [esi], ax
inc eax
jmp 0x405e94
push ebx
mov ebx, 0x28a0
push ebx
call fcn.0043f641
push ebx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.0043f481
lea edi, [esi + 0x848]
xor eax, eax
add esp, 0x10
cmp word [edi], ax
je 0x405e98
cmp dword [0x497800], eax
je 0x405e4c
push edi
push str.GetVolumePathNamesForVolumeName__s_...
push 3
mov dword [ebp - 0x10], eax
call fcn.004453fb
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x1450
push dword [ebp - 4]
push edi
call dword [0x497800]
test eax, eax
je 0x405e27
cmp dword [0x506bac], 3
jl 0x405e12
push dword [ebp - 4]
call fcn.00424a86
mov edi, eax
test edi, edi
je 0x405dfe
push edi
push str._OK__mp_s
push 3
call fcn.004453fb
push edi
call fcn.0043f6b6
add esp, 0x10
jmp 0x405e12
push 0x449ccc
push str._OK__mp_s
push 3
call fcn.004453fb
add esp, 0xc
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.0043f43e
add esp, 0xc
jmp 0x405e77
call fcn.00443016
push eax
push str._err_S
push 3
call fcn.004453fb
add esp, 0xc
xor eax, eax
mov word [esi + 0x930], ax
xor esi, esi
jmp 0x405f52
push dword [ebp - 4]
push edi
call fcn.00405cb3
push dword [ebp - 4]
push str.Letter_s
push 3
call fcn.004453fb
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.0043f43e
add esp, 0x18
test eax, eax
je 0x405e45
push ebx
push dword [ebp - 4]
push esi
call fcn.0043f4eb
push dword [ebp - 4]
call fcn.0043f6b6
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 0x405e45
mov esi, 0x44b4d8
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 0x405f2c
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 0x405f2c
lea eax, [ebp - 0xc]
push eax
push str.Letter_s
push 3
call fcn.004453fb
lea eax, [ebp - 0xc]
push eax
push 0x44b4d0
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.0043f43e
add esp, 0x24
test eax, eax
jne 0x405f3c
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x405ebc
jmp 0x405e45
push ebx
push dword [ebp - 4]
add esi, 0x930
push esi
call fcn.0043f4eb
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 4]
call fcn.0043f6b6
pop ecx
mov eax, esi
jmp 0x405e93
Function at 0x405f62
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 0x406116
lea edi, [esi + 0x848]
cmp word [edi], bx
je 0x406116
mov eax, dword [0x4fa86c]
push edi
push str.GetVolumeInformation__s_...
push 3
mov dword [ebp - 4], eax
call fcn.004453fb
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 [0x4fa850], ebx
jne 0x406116
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x4fa86c]
jne 0x406116
cmp eax, ebx
je 0x4060ba
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.004453fb
mov eax, dword [ebp - 4]
add esp, 0x14
cmp eax, dword [0x4fa86c]
jne 0x4060b5
push 0x44b560
lea eax, [ebp - 0x48]
push eax
mov dword [esi + 0x34f4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x406063
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 0x406063
cmp dword [ebp - 4], 0xff5
jae 0x40604b
push 0x44b558
jmp 0x406059
cmp dword [ebp - 4], 0xfff5
jae 0x406063
push 0x44b550
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 0x406118
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x34f4], eax
call fcn.00442ff4
push eax
push str._err_s
push 3
call fcn.004453fb
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 0x406116
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 0x408042
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x258
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x26c]
mov esi, dword [edi + 0xfb0]
mov eax, dword [esi + 0x14]
or dword [esi + 4], 0xffffffff
xor ebx, ebx
cmp eax, ebx
je 0x40808b
mov eax, dword [eax + 8]
test al, 4
je 0x408079
mov dword [esi + 4], 3
jmp 0x40817d
and al, 2
xor ecx, ecx
cmp al, 2
sete cl
inc ecx
mov dword [esi + 4], ecx
jmp 0x40817d
mov eax, dword [edi + 0xd48]
cmp eax, ebx
je 0x4080b5
mov ecx, dword [eax + 0xfb0]
cmp ecx, ebx
je 0x4080b5
mov ecx, dword [ecx + 0x10]
cmp ecx, ebx
je 0x4080b5
movzx eax, byte [ecx + 0x17]
cmp eax, 0xffffffff
jle 0x40817d
jmp 0x408126
cmp dword [edi + 0xfc0], ebx
je 0x40812b
cmp eax, ebx
je 0x40817d
mov ecx, dword [eax + 0xfc0]
cmp ecx, ebx
je 0x40812b
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str.ROOT_HUB_
add ecx, 0xe34
push ecx
call ebp
test eax, eax
jne 0x408150
mov eax, dword [edi + 0xd48]
mov eax, dword [eax + 0xfc0]
push str.ROOT_HUB20_
add eax, 0xe34
push eax
call ebp
test eax, eax
jne 0x408176
mov eax, dword [edi + 0xd48]
push dword [eax + 0xfc0]
call fcn.00444937
test eax, eax
je 0x40817d
mov al, byte [edi + 0xce4]
cmp al, 2
jbe 0x408176
movzx eax, al
mov dword [esi + 4], eax
jmp 0x40817d
cmp eax, ebx
je 0x40817d
mov eax, dword [eax + 0xfc0]
cmp eax, ebx
je 0x40817d
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str.ROOT_HUB_
add eax, 0xe34
push eax
call ebp
test eax, eax
je 0x408159
mov dword [esi + 4], 1
jmp 0x40817d
mov eax, dword [edi + 0xd48]
mov eax, dword [eax + 0xfc0]
push str.ROOT_HUB20_
add eax, 0xe34
push eax
call ebp
test eax, eax
je 0x40817d
mov dword [esi + 4], 2
cmp dword [esi + 4], 3
jne 0x408245
mov eax, dword [esp + 0x270]
mov ecx, dword [eax + 0xfc0]
cmp ecx, ebx
je 0x408245
mov edx, dword [eax + 0xfac]
add ecx, 0xe34
cmp dword [edx], ebx
je 0x4081c2
mov eax, dword [eax + 0xd48]
mov eax, dword [eax + 0xfc0]
cmp eax, ebx
je 0x4081c2
lea ecx, [eax + 0xe34]
push dword [esi]
lea eax, [esp + 0x14]
push ecx
push str._sPort_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ebp, 0x4f9890
push ebp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [esp + 0x18]
push eax
mov edi, str.SuperSpeedPlusPorts
push edi
call ebx
cmp eax, 1
jne 0x408200
mov dword [esi + 4], 4
jmp 0x40823e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40823e
cmp dword [eax + 0x1f], 1
jne 0x40823e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40823e
test byte [eax + 0xc], 4
je 0x40823e
push ebp
push 0
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esi + 4], 4
call ebx
test eax, eax
jne 0x40823e
push ebp
push 1
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00426504
mov edi, dword [esp + 0x26c]
cmp dword [esi + 4], 0xffffffff
jne 0x408255
movzx eax, byte [edi + 0xce4]
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 8
Function at 0x40bbdc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x81c]
push str.StartArrivalHighlight__s_
push 4
call fcn.004453fb
mov eax, dword [0x4fa1e0]
mov ecx, dword [0x4fa1dc]
add esp, 0xc
add eax, ecx
je 0x40bcd5
push edi
mov dword [esi + 0xfe0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xfdc], eax
cmp dword [0x506bac], 4
mov edi, fcn.00433f97
jl 0x40bc52
push dword [esi + 0x81c]
push dword [esi + 8]
push edi
push dword [0x4fa1dc]
push esi
push dword [0x4fa140]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.004453fb
add esp, 0x20
push edi
push dword [0x4fa1dc]
push esi
push dword [0x4fa140]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x4fa1e8], 0
pop edi
je 0x40bccd
push dword [esi + 8]
call fcn.0042f912
test eax, eax
je 0x40bccd
mov ecx, dword [esi + 0xd48]
test ecx, ecx
je 0x40bca7
call fcn.00406d9c
test eax, eax
je 0x40bccd
push dword [esi + 8]
push 0
push 0x1114
push dword [0x4fa148]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40bccd
push str.TV_NODE_INFO::StartArrivalHighlight
push 0x10d
push str..CUsbDevs.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.004453fb
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
pop esi
jmp fcn.00409ea4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x4fa140]
call fcn.00433f97
pop esi
ret

Function at 0x40c68a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x44d4d8
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40c6c2
push 0xb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp + 0x10]
jmp 0x40c6ef
mov eax, 0x7fff
cmp ebx, eax
ja 0x40c6d2
mov eax, ebx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi*2]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x40c6ba
sub ebx, dword [ebp - 4]
add edi, dword [ebp - 4]
test ebx, ebx
jne 0x40c6c7
push ebx
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c70a
Capabilities:
Manipulate console buffer
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40c7b9
push str.AttachConsole
call fcn.00424537
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c7bf
push 0xffffffffffffffff
call eax
test eax, eax
je 0x40c7bf
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
je 0x40c7bf
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x40c7b9
cmp word [ebp - 0x1c], 0
je 0x40c7b9
push edi
movsx edi, word [ebp - 0x1c]
mov eax, 0x105
cmp edi, eax
jbe 0x40c777
mov edi, eax
mov ax, word [ebp - 0x1a]
push 0x20c
push 0
mov esi, 0x4af868
push esi
mov word [0x492068], ax
call fcn.0043f481
and dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 4], ax
mov ax, word [ebp - 0x1a]
add esp, 0xc
mov word [ebp - 2], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x40c7cf
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40c7b9
push 0x10
push dword [0x492a1c]
push str.Error:_no_stdout_handle
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40eb1b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push str._r_n____________________________HID_Descriptor______________________r_n
call fcn.0040cdf8
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi]
push eax
push eax
push str.bLength__________________:_0x_02X___u_bytes__r_n
call fcn.0040cdf8
movzx eax, byte [esi + 1]
push eax
push str.bDescriptorType__________:_0x_02X__HID_Descriptor__r_n
call fcn.0040cdf8
movzx eax, word [esi + 2]
mov ecx, eax
mov edi, eax
and ecx, 0xff
push ecx
sar edi, 8
push edi
push eax
push str.bcdHID___________________:_0x_04X__HID_Version__X._02X__r_n
call fcn.0040cdf8
add esp, 0x28
cmp edi, 2
jle 0x40eb81
push edi
push str._ERROR__As_of_year_2020_there_is_no_USB_HID_spec_Version__X.x_r_n
call fcn.0040cdf8
pop ecx
pop ecx
movzx ecx, byte [esi + 4]
push ecx
call fcn.0040eb01
push eax
push ecx
push ecx
push str.bCountryCode_____________:_0x_02X___02u___s__r_n
call fcn.0040cdf8
movzx eax, byte [esi + 5]
push eax
push str.bNumDescriptors__________:_0x_02X_r_n
call fcn.0040cdf8
add esp, 0x18
push esi
call fcn.0041ff99
movzx eax, byte [esi]
sub eax, 5
push 3
cdq
pop edi
idiv edi
mov cl, byte [esi + 5]
movzx edx, cl
cmp edx, eax
jle 0x40ebd6
push str._ERROR__bLength_too_small_for_bNumDescriptors
call fcn.0040cdf8
pop ecx
jmp 0x40ecb7
mov byte [ebp + 0xf], 0
test cl, cl
jbe 0x40ecb7
push ebx
movzx edi, byte [ebp + 0xf]
lea eax, [edi + 1]
push eax
push str.Descriptor__u:_r_n
call fcn.0040cdf8
lea eax, [edi + 2]
imul eax, eax, 3
add eax, esi
movzx ebx, byte [eax]
pop ecx
pop ecx
push ebx
mov dword [ebp - 0xc], eax
call fcn.0040ea5b
push eax
push ebx
push str.bDescriptorType__________:_0x_02X___s__r_n
call fcn.0040cdf8
add esp, 0xc
test bl, bl
jns 0x40ec29
push str._CAUTION__Bit_7_is_reserved_and_should_be_0_r_n
call fcn.0040cdf8
pop ecx
mov eax, edi
imul eax, eax, 3
lea ebx, [eax + esi + 7]
movzx eax, word [ebx]
push eax
push eax
push str.wDescriptorLength________:_0x_04X___u_bytes__r_n
call fcn.0040cdf8
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4afbc8
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x40000
push esi
push dword [ebp + 8]
call fcn.00408a4b
test eax, eax
je 0x40ec92
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
jne 0x40ec83
movzx eax, word [ebx]
push eax
push 0x4afbc8
call fcn.0041fb38
push dword [ebp - 4]
push 0x4afbc8
call fcn.0041ff7d
jmp 0x40eca7
push dword [ebp - 8]
call fcn.00440220
push eax
push str.Error_reading_descriptor_:__s__due_to_a_obscure_limitation_of_the_Win32_USB_API__see_UsbTreeView.txt__r_n
call fcn.0040cdf8
pop ecx
pop ecx
inc byte [ebp + 0xf]
mov al, byte [ebp + 0xf]
cmp al, byte [esi + 5]
jb 0x40ebe3
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x40f265
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x388
push ebx
push esi
xor ebx, ebx
push 0x7f
lea eax, [ebp - 0x17]
push ebx
push eax
mov byte [ebp - 0x18], bl
call fcn.0043f481
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push dword [ebp + 0x7c]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp + 0x68], 0x80
mov dword [ebp + 0x6c], ebx
call esi
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x6c]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f42d
cmp word [ebp - 0x118], bx
jne 0x40f2de
push str._default_
lea eax, [ebp - 0x118]
push eax
call esi
push edi
xor eax, eax
push 0x1fe
mov word [ebp - 0x318], ax
lea eax, [ebp - 0x316]
push ebx
push eax
call fcn.0043f481
mov eax, dword [ebp + 0x6c]
add esp, 0xc
dec eax
je 0x40f3f0
dec eax
je 0x40f3de
dec eax
je 0x40f3c1
dec eax
je 0x40f34e
sub eax, 7
jne 0x40f410
push dword [ebp - 0x14]
lea eax, [ebp - 0x118]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x318]
push str.___24s:_REG_QWORD__08I64x___u_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
jmp 0x40f410
push dword [ebp - 0x18]
lea eax, [ebp - 0x118]
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x318]
push str.___24s:_REG_DWORD__08x___u_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
cmp dword [ebp - 0x18], ebx
je 0x40f410
movzx eax, word [ebp - 0x18]
test eax, eax
jne 0x40f410
push dword [ebp - 0x18]
call fcn.0040f20f
mov edi, eax
cmp edi, ebx
je 0x40f410
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44a910
lea eax, [ebp - 0x318]
push eax
call esi
push edi
lea eax, [ebp - 0x318]
push eax
call esi
push 0x44a90c
lea eax, [ebp - 0x318]
push eax
call esi
jmp 0x40f410
push 0x20
push dword [ebp + 0x68]
lea eax, [ebp - 0x18]
push eax
call fcn.00424e09
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_BINARY__s
jmp 0x40f400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_EXPAND_SZ___s_
jmp 0x40f400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_SZ___s_
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
pop edi
cmp word [ebp - 0x318], bx
je 0x40f42d
lea eax, [ebp - 0x318]
push eax
push str._s_r_n
call fcn.0040ce4b
pop ecx
pop ecx
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x40f4ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
xor esi, esi
mov eax, str.SYSTEMCurrentControlSetControlStorageDevicePolicies
push edi
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], str.SYSTEMCurrentControlSetControlUsbFlags
mov dword [ebp - 0x40], str.SYSTEMCurrentControlSetControlUSB
mov dword [ebp - 0x3c], str.SYSTEMCurrentControlSetControlUSBAutomaticSurpriseRemoval
mov dword [ebp - 0x38], str.SYSTEMCurrentControlSetServicesUSB
mov dword [ebp - 0x34], str.SYSTEMCurrentControlSetServicesusbhubhubg
mov dword [ebp - 0x30], str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices
mov dword [ebp - 0x2c], str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f5630d_b6bf_11d0_94f2_00a0c91efb8b
mov dword [ebp - 0x28], str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f56308_b6bf_11d0_94f2_00a0c91efb8b
mov dword [ebp - 0x24], str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f56311_b6bf_11d0_94f2_00a0c91efb8b
mov dword [ebp - 0x20], str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDeviceseec5ad98_8080_425f_922a_dabf3de3f69a
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp - 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f600
cmp dword [ebp - 4], esi
je 0x40f600
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40f5f4
cmp dword [ebp - 8], esi
je 0x40f5f4
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x40f5f4
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x250]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40f5ee
lea eax, [ebp - 0x250]
push eax
call fcn.0040f436
test eax, eax
jne 0x40f5ee
cmp dword [ebp - 0x14], esi
je 0x40f5ca
push str._r_n_________Registry_USB_Flags__r_n
call fcn.0040cdf8
pop ecx
mov dword [ebp - 0x14], esi
cmp ebx, esi
je 0x40f5df
push dword [ebp - 0xc]
push str.HKEY_LOCAL_MACHINE_s_r_n
call fcn.0040ce4b
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 4]
call fcn.0040f265
inc edi
cmp edi, dword [ebp - 8]
jb 0x40f583
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], esi
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x48]
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x40f52c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423ca0
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push 0x4f9890
push 0x40
mov esi, 0x4f07a8
push esi
mov ebx, str.HighlightCustomColors
push ebx
mov edi, 0x44d58c
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov eax, esi
mov ecx, dword [esp + 0x14]
cmp dword [eax], ecx
je 0x423cf1
add eax, 4
cmp eax, 0x4f07e8
jl 0x423cc4
xor eax, eax
cmp dword [eax*4 + 0x4f07a8], 0
je 0x423cea
inc eax
cmp eax, 0x10
jl 0x423cd8
jmp 0x423cf1
mov dword [eax*4 + 0x4f07a8], ecx
mov eax, dword [esp + 0x10]
push 0x4f0784
mov dword [0x4f0784], 0x24
mov dword [0x4f0788], eax
mov dword [0x4f0790], ecx
mov dword [0x4f0794], esi
mov dword [0x4f0798], 3
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
jne 0x423d2f
mov eax, dword [esp + 0x14]
jmp 0x423d44
push 0x4f9890
push 0x40
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
mov eax, dword [0x4f0790]
pop edi
pop esi
pop ebx
ret 8

Function at 0x424949
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
pop esi
jne 0x424973
cmp eax, 5
je 0x424973
xor eax, eax
jmp 0x424976
xor eax, eax
inc eax
ret 4

Function at 0x424979
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42499b
mov ecx, eax
xor eax, eax
inc eax
and ecx, eax
cmp cl, al
je 0x42499d
xor eax, eax
ret 4

Function at 0x4249a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
mov edi, 0x40000000
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
jne 0x424a33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x424a3c
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x3a
jne 0x424a3c
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str..tmp
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push ebx
push 0x102
push 4
push ebx
push 7
push edi
lea eax, [ebp - 0x208]
push eax
call esi
cmp eax, 0xffffffff
je 0x424a3c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x424a3e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x424a2e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4