joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a4a
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0xc], ebx
je 0x406c4a
lea edi, [esi + 0x848]
cmp word [edi], bx
je 0x406c4a
mov eax, dword [0x511010]
push edi
push str.GetVolumeInformation__s_...
push 3
mov dword [ebp - 4], eax
call fcn.00451479
add esp, 0xc
push 0x20
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x101
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [0x510ff4], ebx
jne 0x406c4a
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x511010]
jne 0x406c4a
cmp eax, ebx
je 0x406bee
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x254]
push eax
push str._Label_s_Serial_08X_FileSystem_s
push 3
call fcn.00451479
mov eax, dword [ebp - 4]
add esp, 0x14
cmp eax, dword [0x511010]
jne 0x406be9
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [esi + 0x35b4], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
je 0x406b9d
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x10]
cmp eax, 0x200
jne 0x406b3d
push str.512_Byte
lea eax, [esi + 0x3300]
push eax
call edi
jmp 0x406b5d
test eax, 0x3ff
jne 0x406b5d
shr eax, 0xa
push eax
lea eax, [esi + 0x3300]
push str._u_KB
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x457d20
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x406b9d
cmp dword [ebp - 4], ebx
je 0x406b9d
cmp dword [ebp - 4], 0xff5
jae 0x406b85
push 0x457d18
jmp 0x406b93
cmp dword [ebp - 4], 0xfff5
jae 0x406b9d
push 0x457d10
lea eax, [ebp - 0x50]
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 + 0x3324]
push str._04X__04X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
lea eax, [esi + 0x3338]
push eax
call edi
lea eax, [ebp - 0x50]
push eax
lea eax, [esi + 0x353a]
push eax
call edi
mov eax, dword [ebp - 8]
mov dword [esi + 0x3320], eax
mov byte [esi + 0x357a], bl
xor eax, eax
inc eax
jmp 0x406c4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x35b4], eax
call fcn.0044e457
push eax
push str._err_s
push 3
call fcn.00451479
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x35b4], 0x80310000
mov word [esi + 0x3324], ax
mov word [esi + 0x3338], ax
mov word [esi + 0x353a], ax
mov dword [esi + 0x3320], ebx
jne 0x406c4a
push str.locked_by_BitLocker
add esi, 0x357a
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40727e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x420
cmp word [eax], 0x5c
jne 0x407293
add eax, 8
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x218]
push eax
call fcn.00429123
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4072d0
leave
ret 0xc
push esi
push 0x457ed4
push 0
lea ecx, [ebp - 0x10]
call fcn.00448fd1
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x407304
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 8]
push dword [eax + esi*8]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407308
inc esi
cmp esi, dword [ebp - 4]
jl 0x4072e7
xor esi, esi
jmp 0x407323
mov eax, dword [ebp - 8]
push dword [eax + esi*8 + 4]
push 0x457ec4
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
add esp, 0xc
inc esi
lea ecx, [ebp - 0x10]
call fcn.00448e82
mov eax, esi
pop esi
jmp 0x4072cc
Function at 0x407d2b
Capabilities:
Get disk information

Disassembly:
push esi
lea esi, [ecx + 0x1154]
push dword [esi]
mov ecx, dword [0x512c64]
call fcn.0040121c
test eax, eax
je 0x407e18
mov esi, dword [esi]
mov ecx, dword [0x512c64]
push ebx
push ebp
push edi
push esi
call fcn.00404bbc
xor ebx, ebx
push ebx
push dword [esi + 0x14]
lea edi, [esi + 8]
push edi
lea eax, [esi + 0x3a74]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
xor ebp, ebp
inc ebp
test eax, eax
jne 0x407d7b
mov dword [esi + 0xc], ebp
jmp 0x407d84
mov dword [edi], 0x2d
mov dword [esi + 0xc], ebx
cmp dword [esi + 0xc], ebx
je 0x407e15
cmp dword [esi + 0x3abc], ebx
jne 0x407d9d
cmp dword [esi + 0x3ab8], ebx
je 0x407e15
lea edi, [esi + 0x3ab0]
cmp dword [edi], 0xffffffff
jne 0x407db6
lea eax, [esi + 0xc34]
push eax
call fcn.00430534
mov dword [edi], eax
cmp dword [esi + 0x3ab8], ebx
je 0x407e15
cmp dword [esi + 0x3bc4], ebx
jne 0x407ddc
mov eax, dword [0x512c64]
push dword [esi + 0x14]
mov ecx, dword [eax + 8]
call fcn.004063eb
mov dword [esi + 0x3bc4], eax
mov eax, dword [esi + 0x3bc4]
cmp eax, ebx
je 0x407df8
pop edi
mov dword [eax + 0xc], ebp
mov ecx, dword [esi + 0x3bc4]
pop ebp
pop ebx
pop esi
jmp fcn.0040681c
push dword [esi + 0x14]
lea eax, [esi + 0xc34]
push eax
mov eax, dword [0x512c64]
mov ecx, dword [eax + 8]
call fcn.00407341
mov dword [esi + 0x3bc4], eax
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x40e328
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 1
jne 0x40bce6
cmp dword [esi + 8], 0
je 0x40bce6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x1184]
push eax
lea eax, [esi + 0xd90]
push eax
push dword [esi + 8]
push dword [0x5106a4]
call fcn.0042c6a6
push eax
push esi
push str.TV_NODE_INFO::SetItemColors____0x_08Ix___s___s__age_u
push 4
call fcn.00451479
mov eax, dword [esi + 8]
add esp, 0x18
cmp eax, dword [0x511008]
jne 0x40bca3
cmp dword [0x510758], 0
je 0x40bce5
call edi
mov ecx, dword [0x510750]
mov edx, dword [0x510754]
sub eax, dword [esi + 0x1184]
add edx, ecx
cmp eax, edx
jae 0x40bcde
push str.set_g_AnyTreeItemColoredtrue
push 5
mov dword [0x510744], 1
call fcn.00451479
pop ecx
pop ecx
pop edi
mov ecx, esi
pop esi
jmp fcn.00407bf5
and dword [esi + 0x1188], 0
pop edi
pop esi
ret
push esi
mov esi, ecx
push dword [esi + 0x828]
push str.StartArrivalHighlight__s_
push 4
call fcn.00451479
mov eax, dword [0x510750]
mov ecx, dword [0x510754]
add esp, 0xc
add ecx, eax
je 0x40e3ed
push edi
mov dword [esi + 0x1188], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1184], eax
cmp dword [0x51cdd4], 4
mov edi, fcn.00443375
jl 0x40e39e
push dword [esi + 0x828]
push dword [esi + 8]
push edi
push dword [0x510750]
push esi
push dword [0x51069c]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.00451479
add esp, 0x20
push edi
push dword [0x510750]
push esi
push dword [0x51069c]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x51075c], 0
pop edi
je 0x40e3e5
push dword [esi + 8]
call fcn.00437587
test eax, eax
je 0x40e3e5
cmp dword [esi + 0xde0], 0
je 0x40e3e5
mov ecx, esi
call fcn.00407efb
test eax, eax
je 0x40e3e5
push 1
mov ecx, esi
call fcn.0040c258
mov ecx, esi
pop esi
jmp 0x40bc43
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x51069c]
call fcn.00443375
pop esi
ret
Function at 0x40e407
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 1
jne 0x40e4f5
lea eax, [esi + 0xd90]
push eax
push dword [esi + 0x828]
push esi
push str.StartRemovalHighlight____pTNI0x_08Ix____s___s
push 4
call fcn.00451479
mov eax, dword [0x510750]
mov ecx, dword [0x510754]
add esp, 0x14
add ecx, eax
je 0x40e4dd
push edi
mov dword [esi + 0x1188], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1184], eax
cmp dword [0x51cdd4], 4
mov edi, fcn.00443375
jl 0x40e48e
push dword [esi + 0x828]
push dword [esi + 8]
push edi
push dword [0x510750]
push esi
push dword [0x51069c]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.00451479
add esp, 0x20
push edi
push dword [0x510750]
push esi
push dword [0x51069c]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x51075c], 0
pop edi
je 0x40e4d5
push dword [esi + 8]
call fcn.00437587
test eax, eax
je 0x40e4d5
cmp dword [esi + 0xde0], 0
je 0x40e4d5
mov ecx, esi
call fcn.00407efb
test eax, eax
je 0x40e4d5
push 1
mov ecx, esi
call fcn.0040c258
mov ecx, esi
pop esi
jmp 0x40bc43
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x51069c]
call fcn.00443375
pop esi
ret

Function at 0x40ff7c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x45ac44
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 0x40ffb4
push 0xb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp + 0x10]
jmp 0x40ffe1
mov eax, 0x7fff
cmp ebx, eax
ja 0x40ffc4
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 0x40ffac
sub ebx, dword [ebp - 4]
add edi, dword [ebp - 4]
test ebx, ebx
jne 0x40ffb9
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 0x40fffc
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 0x4100ab
push str.AttachConsole
call fcn.00428dfb
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4100b1
push 0xffffffffffffffff
call eax
test eax, eax
je 0x4100b1
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
je 0x4100b1
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4100ab
cmp word [ebp - 0x1c], 0
je 0x4100ab
push edi
movsx edi, word [ebp - 0x1c]
mov eax, 0x105
cmp edi, eax
jbe 0x410069
mov edi, eax
mov ax, word [ebp - 0x1a]
push 0x20c
push 0
mov esi, 0x4c5750
push esi
mov word [0x4a70a0], ax
call fcn.0044b15e
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 0x4100c1
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x4100ab
push 0x10
push dword [0x4a7ad4]
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 0x41242f
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.004106df
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi]
push eax
push eax
push str.bLength__________________:_0x_02X___u_bytes__r_n
call fcn.004106df
movzx eax, byte [esi + 1]
push eax
push str.bDescriptorType__________:_0x_02X__HID_Descriptor__r_n
call fcn.004106df
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.004106df
add esp, 0x28
cmp edi, 2
jle 0x412495
push edi
push str._ERROR__As_of_year_2020_there_is_no_USB_HID_spec_Version__X.x_r_n
call fcn.004106df
pop ecx
pop ecx
movzx ecx, byte [esi + 4]
push ecx
call fcn.00412415
push eax
push ecx
push ecx
push str.bCountryCode_____________:_0x_02X___02u___s__r_n
call fcn.004106df
movzx eax, byte [esi + 5]
push eax
push str.bNumDescriptors__________:_0x_02X_r_n
call fcn.004106df
add esp, 0x18
push esi
call fcn.004245a4
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 0x4124ea
push str._ERROR__bLength_too_small_for_bNumDescriptors
call fcn.004106df
pop ecx
jmp 0x4125cb
mov byte [ebp + 0xf], 0
test cl, cl
jbe 0x4125cb
push ebx
movzx edi, byte [ebp + 0xf]
lea eax, [edi + 1]
push eax
push str.Descriptor__u:_r_n
call fcn.004106df
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.0041236f
push eax
push ebx
push str.bDescriptorType__________:_0x_02X___s__r_n
call fcn.004106df
add esp, 0xc
test bl, bl
jns 0x41253d
push str._CAUTION__Bit_7_is_reserved_and_should_be_0_r_n
call fcn.004106df
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.004106df
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4c5ab8
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x40000
push esi
push dword [ebp + 8]
call fcn.0040a32b
test eax, eax
je 0x4125a6
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
jne 0x412597
movzx eax, word [ebx]
push eax
push 0x4c5ab8
call fcn.00424143
push dword [ebp - 4]
push 0x4c5ab8
call fcn.00424588
jmp 0x4125bb
push dword [ebp - 8]
call fcn.0044c5a0
push eax
push str.Error_reading_descriptor_:__s__due_to_a_obscure_limitation_of_the_Win32_USB_API__see_F1_Help__r_n
call fcn.004106df
pop ecx
pop ecx
inc byte [ebp + 0xf]
mov al, byte [ebp + 0xf]
cmp al, byte [esi + 5]
jb 0x4124f7
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x412c31
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.0044b15e
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 0x412df9
cmp word [ebp - 0x118], bx
jne 0x412caa
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.0044b15e
mov eax, dword [ebp + 0x6c]
add esp, 0xc
dec eax
je 0x412dbc
dec eax
je 0x412daa
dec eax
je 0x412d8d
dec eax
je 0x412d1a
sub eax, 7
jne 0x412ddc
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___I64u_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
jmp 0x412ddc
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 0x412ddc
movzx eax, word [ebp - 0x18]
test eax, eax
jne 0x412ddc
push dword [ebp - 0x18]
call fcn.00412bdb
mov edi, eax
cmp edi, ebx
je 0x412ddc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x456f20
lea eax, [ebp - 0x318]
push eax
call esi
push edi
lea eax, [ebp - 0x318]
push eax
call esi
push 0x456f1c
lea eax, [ebp - 0x318]
push eax
call esi
jmp 0x412ddc
push 0x20
push dword [ebp + 0x68]
lea eax, [ebp - 0x18]
push eax
call fcn.00429788
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_BINARY__s
jmp 0x412dcc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_EXPAND_SZ___s_
jmp 0x412dcc
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 0x412df9
lea eax, [ebp - 0x318]
push eax
push str._s_r_n
call fcn.00410732
pop ecx
pop ecx
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x412e86
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 0x412fcc
cmp dword [ebp - 4], esi
je 0x412fcc
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 0x412fc0
cmp dword [ebp - 8], esi
je 0x412fc0
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x412fc0
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 0x412fba
lea eax, [ebp - 0x250]
push eax
call fcn.00412e02
test eax, eax
jne 0x412fba
cmp dword [ebp - 0x14], esi
je 0x412f96
push str._r_n_________Registry_USB_Flags__r_n
call fcn.004106df
pop ecx
mov dword [ebp - 0x14], esi
cmp ebx, esi
je 0x412fab
push dword [ebp - 0xc]
push str.HKEY_LOCAL_MACHINE_s_r_n
call fcn.00410732
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 4]
call fcn.00412c31
inc edi
cmp edi, dword [ebp - 8]
jb 0x412f4f
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 0x412ef8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4283e8
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push 0x50fcf0
push 0x40
mov esi, 0x506700
push esi
mov ebx, str.HighlightCustomColors
push ebx
mov edi, 0x45acf8
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov eax, esi
mov ecx, dword [esp + 0x14]
cmp dword [eax], ecx
je 0x428439
add eax, 4
cmp eax, 0x506740
jl 0x42840c
xor eax, eax
cmp dword [eax*4 + 0x506700], 0
je 0x428432
inc eax
cmp eax, 0x10
jl 0x428420
jmp 0x428439
mov dword [eax*4 + 0x506700], ecx
mov eax, dword [esp + 0x10]
push 0x5066dc
mov dword [0x5066dc], 0x24
mov dword [0x5066e0], eax
mov dword [0x5066e8], ecx
mov dword [0x5066ec], esi
mov dword [0x5066f0], 3
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
jne 0x428477
mov eax, dword [esp + 0x14]
jmp 0x42848c
push 0x50fcf0
push 0x40
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
mov eax, dword [0x5066e8]
pop edi
pop esi
pop ebx
ret 8

Function at 0x428f91
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
and dword [esi], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
cmp eax, 0x200
jb 0x428fc2
mov eax, dword [esp + 0x14]
mov dword [eax], 0x4561e0
jmp 0x429052
call edi
push eax
mov edi, 0x5067d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call ebx
test eax, eax
jbe 0x429052
mov ecx, dword [esi]
mov ebx, dword [esp + 0x14]
mov dword [ebx + ecx*4], edi
inc dword [esi]
mov edi, dword [esi]
xor ecx, ecx
test eax, eax
jbe 0x429045
lea edx, [ecx*2 + 0x5067d8]
cmp word [edx], 0x22
jne 0x429019
movzx edx, word [ecx*2 + 0x5067da]
inc ecx
test dx, dx
je 0x42900c
cmp dx, 0x22
jne 0x428ff8
lea edx, [ecx*2 + 0x5067d8]
cmp word [edx], 0
je 0x429052
cmp word [edx], 0x20
jne 0x429040
xor edi, edi
mov word [edx], di
inc ecx
cmp word [ecx*2 + 0x5067d8], 0x20
je 0x429024
mov edi, dword [esi]
lea edx, [ecx*2 + 0x5067d8]
mov dword [ebx + edi*4], edx
inc dword [esi]
mov edi, dword [esi]
inc ecx
cmp ecx, eax
jb 0x428feb
mov eax, dword [ebx + edi*4 - 4]
cmp word [eax], 0
jne 0x429052
dec edi
mov dword [esi], edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x4292c0
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 0x4292ea
cmp eax, 5
je 0x4292ea
xor eax, eax
jmp 0x4292ed
xor eax, eax
inc eax
ret 4

Function at 0x4292f0
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 0x429312
mov ecx, eax
xor eax, eax
inc eax
and ecx, eax
cmp cl, al
je 0x429314
xor eax, eax
ret 4