joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40678e
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 0x406942
lea edi, [esi + 0x848]
cmp word [edi], bx
je 0x406942
mov eax, dword [0x509694]
push edi
push str.GetVolumeInformation__s_...
push 3
mov dword [ebp - 4], eax
call fcn.0044c79b
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 [0x509678], ebx
jne 0x406942
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x509694]
jne 0x406942
cmp eax, ebx
je 0x4068e6
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.0044c79b
mov eax, dword [ebp - 4]
add esp, 0x14
cmp eax, dword [0x509694]
jne 0x4068e1
push 0x452c78
lea eax, [ebp - 0x48]
push eax
mov dword [esi + 0x3574], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40688f
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 0x40688f
cmp dword [ebp - 4], 0xff5
jae 0x406877
push 0x452c70
jmp 0x406885
cmp dword [ebp - 4], 0xfff5
jae 0x40688f
push 0x452c68
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 + 0x32e4]
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 + 0x32f8]
push eax
call edi
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 0x34fa]
push eax
call edi
mov eax, dword [ebp - 8]
mov dword [esi + 0x32e0], eax
mov byte [esi + 0x353a], bl
xor eax, eax
inc eax
jmp 0x406944
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x3574], eax
call fcn.00449d30
push eax
push str._err_s
push 3
call fcn.0044c79b
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x3574], 0x80310000
mov word [esi + 0x32e4], ax
mov word [esi + 0x32f8], ax
mov word [esi + 0x34fa], ax
mov dword [esi + 0x32e0], ebx
jne 0x406942
push str.locked_by_BitLocker
add esi, 0x353a
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ec2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x420
cmp word [eax], 0x5c
jne 0x406ed7
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.004276d0
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 0x406f14
leave
ret 0xc
push esi
push str.Volume
push 0
lea ecx, [ebp - 0x10]
call fcn.0044491e
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x406f48
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 0x406f4c
inc esi
cmp esi, dword [ebp - 4]
jl 0x406f2b
xor esi, esi
jmp 0x406f67
mov eax, dword [ebp - 8]
push dword [eax + esi*8 + 4]
push 0x452dec
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.004447cf
mov eax, esi
pop esi
jmp 0x406f10
Function at 0x4077ab
Capabilities:
Get disk information

Disassembly:
push esi
lea esi, [ecx + 0xfd0]
push dword [esi]
mov ecx, dword [0x50b370]
call fcn.0040121c
test eax, eax
je 0x40789b
mov esi, dword [esi]
mov ecx, dword [0x50b370]
push ebx
push ebp
push edi
push esi
call fcn.004049bc
xor ebx, ebx
push ebx
push dword [esi + 0x10]
lea edi, [esi + 0x39f4]
push edi
lea eax, [esi + 0x39f0]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
xor ebp, ebp
inc ebp
test eax, eax
jne 0x4077fe
mov dword [esi + 8], ebp
jmp 0x407807
mov dword [edi], 0x2d
mov dword [esi + 8], ebx
cmp dword [esi + 8], ebx
je 0x407898
cmp dword [esi + 0x3a3c], ebx
jne 0x407820
cmp dword [esi + 0x3a38], ebx
je 0x407898
lea edi, [esi + 0x3a30]
cmp dword [edi], 0xffffffff
jne 0x407839
lea eax, [esi + 0xc30]
push eax
call fcn.0042dc15
mov dword [edi], eax
cmp dword [esi + 0x3a38], ebx
je 0x407898
cmp dword [esi + 0x3b04], ebx
jne 0x40785f
mov eax, dword [0x50b370]
push dword [esi + 0x10]
mov ecx, dword [eax + 8]
call fcn.0040615b
mov dword [esi + 0x3b04], eax
mov eax, dword [esi + 0x3b04]
cmp eax, ebx
je 0x40787b
pop edi
mov dword [eax + 0xc], ebp
mov ecx, dword [esi + 0x3b04]
pop ebp
pop ebx
pop esi
jmp fcn.00406560
push dword [esi + 0x10]
lea eax, [esi + 0xc30]
push eax
mov eax, dword [0x50b370]
mov ecx, dword [eax + 8]
call fcn.00406f79
mov dword [esi + 0x3b04], eax
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x40d427
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x824]
push str.StartArrivalHighlight__s_
push 4
call fcn.0044c79b
mov eax, dword [0x508ddc]
mov ecx, dword [0x508dd8]
add esp, 0xc
add eax, ecx
je 0x40d512
push edi
mov dword [esi + 0xfe8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xfe4], eax
cmp dword [0x515894], 4
mov edi, fcn.0043a306
jl 0x40d49d
push dword [esi + 0x824]
push dword [esi + 8]
push edi
push dword [0x508dd8]
push esi
push dword [0x508d24]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.0044c79b
add esp, 0x20
push edi
push dword [0x508dd8]
push esi
push dword [0x508d24]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x508de4], 0
pop edi
je 0x40d50a
push dword [esi + 8]
call fcn.0043455e
test eax, eax
je 0x40d50a
cmp dword [esi + 0xd60], 0
je 0x40d4e4
mov ecx, esi
call fcn.00407981
test eax, eax
je 0x40d50a
mov ecx, esi
call fcn.00407751
jmp 0x40d50a
push str.TV_NODE_INFO::StartArrivalHighlight
push 0x112
push str..CUsbDevs.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.0044c79b
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
pop esi
jmp fcn.0040b352
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x508d24]
call fcn.0043a306
pop esi
ret

Function at 0x40e9f3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x4553d4
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 0x40ea2b
push 0xb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp + 0x10]
jmp 0x40ea58
mov eax, 0x7fff
cmp ebx, eax
ja 0x40ea3b
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 0x40ea23
sub ebx, dword [ebp - 4]
add edi, dword [ebp - 4]
test ebx, ebx
jne 0x40ea30
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 0x40ea73
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 0x40eb22
push str.AttachConsole
call fcn.0042746f
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40eb28
push 0xffffffffffffffff
call eax
test eax, eax
je 0x40eb28
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
je 0x40eb28
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x40eb22
cmp word [ebp - 0x1c], 0
je 0x40eb22
push edi
movsx edi, word [ebp - 0x1c]
mov eax, 0x105
cmp edi, eax
jbe 0x40eae0
mov edi, eax
mov ax, word [ebp - 0x1a]
push 0x20c
push 0
mov esi, 0x4be6a8
push esi
mov word [0x4a0098], ax
call fcn.00446b72
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 0x40eb38
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40eb22
push 0x10
push dword [0x4a0aac]
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 0x410eb7
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.0040f156
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi]
push eax
push eax
push str.bLength__________________:_0x_02X___u_bytes__r_n
call fcn.0040f156
movzx eax, byte [esi + 1]
push eax
push str.bDescriptorType__________:_0x_02X__HID_Descriptor__r_n
call fcn.0040f156
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.0040f156
add esp, 0x28
cmp edi, 2
jle 0x410f1d
push edi
push str._ERROR__As_of_year_2020_there_is_no_USB_HID_spec_Version__X.x_r_n
call fcn.0040f156
pop ecx
pop ecx
movzx ecx, byte [esi + 4]
push ecx
call fcn.00410e9d
push eax
push ecx
push ecx
push str.bCountryCode_____________:_0x_02X___02u___s__r_n
call fcn.0040f156
movzx eax, byte [esi + 5]
push eax
push str.bNumDescriptors__________:_0x_02X_r_n
call fcn.0040f156
add esp, 0x18
push esi
call fcn.00422c70
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 0x410f72
push str._ERROR__bLength_too_small_for_bNumDescriptors
call fcn.0040f156
pop ecx
jmp 0x411053
mov byte [ebp + 0xf], 0
test cl, cl
jbe 0x411053
push ebx
movzx edi, byte [ebp + 0xf]
lea eax, [edi + 1]
push eax
push str.Descriptor__u:_r_n
call fcn.0040f156
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.00410df7
push eax
push ebx
push str.bDescriptorType__________:_0x_02X___s__r_n
call fcn.0040f156
add esp, 0xc
test bl, bl
jns 0x410fc5
push str._CAUTION__Bit_7_is_reserved_and_should_be_0_r_n
call fcn.0040f156
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.0040f156
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4bea18
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x40000
push esi
push dword [ebp + 8]
call fcn.00409bf0
test eax, eax
je 0x41102e
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
jne 0x41101f
movzx eax, word [ebx]
push eax
push 0x4bea18
call fcn.0042280f
push dword [ebp - 4]
push 0x4bea18
call fcn.00422c54
jmp 0x411043
push dword [ebp - 8]
call fcn.00447eb9
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.0040f156
pop ecx
pop ecx
inc byte [ebp + 0xf]
mov al, byte [ebp + 0xf]
cmp al, byte [esi + 5]
jb 0x410f7f
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x4115ff
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.00446b72
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 0x4117c7
cmp word [ebp - 0x118], bx
jne 0x411678
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.00446b72
mov eax, dword [ebp + 0x6c]
add esp, 0xc
dec eax
je 0x41178a
dec eax
je 0x411778
dec eax
je 0x41175b
dec eax
je 0x4116e8
sub eax, 7
jne 0x4117aa
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 0x4117aa
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 0x4117aa
movzx eax, word [ebp - 0x18]
test eax, eax
jne 0x4117aa
push dword [ebp - 0x18]
call fcn.004115a9
mov edi, eax
cmp edi, ebx
je 0x4117aa
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x451e80
lea eax, [ebp - 0x318]
push eax
call esi
push edi
lea eax, [ebp - 0x318]
push eax
call esi
push 0x451e7c
lea eax, [ebp - 0x318]
push eax
call esi
jmp 0x4117aa
push 0x20
push dword [ebp + 0x68]
lea eax, [ebp - 0x18]
push eax
call fcn.00427d35
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_BINARY__s
jmp 0x41179a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_EXPAND_SZ___s_
jmp 0x41179a
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 0x4117c7
lea eax, [ebp - 0x318]
push eax
push str._s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x411854
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 0x41199a
cmp dword [ebp - 4], esi
je 0x41199a
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 0x41198e
cmp dword [ebp - 8], esi
je 0x41198e
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x41198e
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 0x411988
lea eax, [ebp - 0x250]
push eax
call fcn.004117d0
test eax, eax
jne 0x411988
cmp dword [ebp - 0x14], esi
je 0x411964
push str._r_n_________Registry_USB_Flags__r_n
call fcn.0040f156
pop ecx
mov dword [ebp - 0x14], esi
cmp ebx, esi
je 0x411979
push dword [ebp - 0xc]
push str.HKEY_LOCAL_MACHINE_s_r_n
call fcn.0040f1a9
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 4]
call fcn.004115ff
inc edi
cmp edi, dword [ebp - 8]
jb 0x41191d
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 0x4118c6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426ab4
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push 0x508398
push 0x40
mov esi, 0x4ff660
push esi
mov ebx, str.HighlightCustomColors
push ebx
mov edi, 0x45548c
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov eax, esi
mov ecx, dword [esp + 0x14]
cmp dword [eax], ecx
je 0x426b05
add eax, 4
cmp eax, 0x4ff6a0
jl 0x426ad8
xor eax, eax
cmp dword [eax*4 + 0x4ff660], 0
je 0x426afe
inc eax
cmp eax, 0x10
jl 0x426aec
jmp 0x426b05
mov dword [eax*4 + 0x4ff660], ecx
mov eax, dword [esp + 0x10]
push 0x4ff63c
mov dword [0x4ff63c], 0x24
mov dword [0x4ff640], eax
mov dword [0x4ff648], ecx
mov dword [0x4ff64c], esi
mov dword [0x4ff650], 3
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
jne 0x426b43
mov eax, dword [esp + 0x14]
jmp 0x426b58
push 0x508398
push 0x40
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
mov eax, dword [0x4ff648]
pop edi
pop esi
pop ebx
ret 8

Function at 0x42786d
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 0x427897
cmp eax, 5
je 0x427897
xor eax, eax
jmp 0x42789a
xor eax, eax
inc eax
ret 4

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

Function at 0x4278c4
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 0x427957
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x427960
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x3a
jne 0x427960
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 0x427960
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 0x427962
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x427952
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x427b47
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0x13c
push ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00446b72
add esp, 0xc
mov edi, 0x4fff88
push edi
push 0x1000
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x427c6c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x452f08
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x427c6c
cmp dword [ebp + 0xc], ebx
je 0x427c6c
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov word [esi], cx
mov cx, word [eax + 8]
mov word [esi + 2], cx
mov cx, word [eax + 0xe]
mov word [esi + 4], cx
mov cx, word [eax + 0xc]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov word [esi + 6], cx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
movzx eax, cx
push eax
movzx eax, word [esi + 4]
push eax
movzx eax, word [esi + 2]
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 0xc]
push str._u._u._u._u
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 8], 4
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x427c67
cmp dword [ebp - 8], 4
jb 0x427c67
mov eax, dword [ebp - 0xc]
and dword [ebp + 8], 0
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x6c]
push str.StringFileInfo_04x_04xCompanyName
push eax
call ebx
and dword [ebp + 0xc], 0
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x427c67
cmp dword [ebp + 0xc], 0x80
jae 0x427c67
push dword [ebp + 8]
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
jmp 0x427c6e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x427c75
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push esi
push edi
add eax, eax
xor edi, edi
test byte [0x500f8c], 1
mov dword [ebp - 4], eax
mov dword [ebp + 0x18], edi
jne 0x427cae
or dword [0x500f8c], 1
mov eax, dword [0x50872c]
neg eax
sbb eax, eax
and eax, 0x100
inc eax
mov dword [0x500f88], eax
jmp 0x427cb3
mov eax, dword [0x500f88]
mov esi, dword [ebp + 0x14]
xor ecx, ecx
mov word [esi], cx
lea ecx, [ebp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 5
jne 0x427cdd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x427d2f
cmp eax, edi
jne 0x427d27
cmp dword [ebp + 0x18], edi
je 0x427d27
push ebx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0x14], edi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
pop ebx
jne 0x427d27
cmp dword [ebp + 0x14], 4
jne 0x427d27
push dword [esi]
push 0x453f70
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
cmp word [esi], di
setne al
pop edi
pop esi
leave
ret 0x14

Function at 0x427e46
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x427eaf
cmp dword [ebp - 4], esi
je 0x427eaf
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp - 4]
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x427eb6
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x427eb6
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
leave
ret 0x10