joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406194
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 0x4061ce
cmp dword [esi + 0x840], 0xffffffff
jne 0x4061ce
add esi, 0x930
xor eax, eax
cmp word [esi], di
je 0x4062f4
mov word [esi], ax
inc eax
jmp 0x4062f4
push ebx
mov ebx, 0x28a0
push ebx
call fcn.00442eef
push ebx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.00442d2f
lea edi, [esi + 0x848]
xor eax, eax
add esp, 0x10
cmp word [edi], ax
je 0x4062f8
cmp dword [0x49e5b0], eax
je 0x4062ac
push edi
push str.GetVolumePathNamesForVolumeName__s_...
push 3
mov dword [ebp - 0x10], eax
call fcn.004487a4
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x1450
push dword [ebp - 4]
push edi
call dword [0x49e5b0]
test eax, eax
je 0x406287
cmp dword [0x50da14], 3
jl 0x406272
push dword [ebp - 4]
call fcn.004263f1
mov edi, eax
test edi, edi
je 0x40625e
push edi
push str._OK__mp_s
push 3
call fcn.004487a4
push edi
call fcn.00442f64
add esp, 0x10
jmp 0x406272
push 0x44d044
push str._OK__mp_s
push 3
call fcn.004487a4
add esp, 0xc
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.00442cec
add esp, 0xc
jmp 0x4062d7
call fcn.00445dc2
push eax
push str._err_S
push 3
call fcn.004487a4
add esp, 0xc
xor eax, eax
mov word [esi + 0x930], ax
xor esi, esi
jmp 0x4063b2
push dword [ebp - 4]
push edi
call fcn.00406113
push dword [ebp - 4]
push str.Letter_s
push 3
call fcn.004487a4
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.00442cec
add esp, 0x18
test eax, eax
je 0x4062a5
push ebx
push dword [ebp - 4]
push esi
call fcn.00442d99
push dword [ebp - 4]
call fcn.00442f64
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 0x4062a5
mov esi, 0x44e978
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 0x40638c
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 0x40638c
lea eax, [ebp - 0xc]
push eax
push str.Letter_s
push 3
call fcn.004487a4
lea eax, [ebp - 0xc]
push eax
push 0x44e970
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.00442cec
add esp, 0x24
test eax, eax
jne 0x40639c
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x40631c
jmp 0x4062a5
push ebx
push dword [ebp - 4]
add esi, 0x930
push esi
call fcn.00442d99
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 4]
call fcn.00442f64
pop ecx
mov eax, esi
jmp 0x4062f3
Function at 0x4063c2
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 0x406576
lea edi, [esi + 0x848]
cmp word [edi], bx
je 0x406576
mov eax, dword [0x501820]
push edi
push str.GetVolumeInformation__s_...
push 3
mov dword [ebp - 4], eax
call fcn.004487a4
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 [0x501804], ebx
jne 0x406576
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x501820]
jne 0x406576
cmp eax, ebx
je 0x40651a
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.004487a4
mov eax, dword [ebp - 4]
add esp, 0x14
cmp eax, dword [0x501820]
jne 0x406515
push 0x44ea00
lea eax, [ebp - 0x48]
push eax
mov dword [esi + 0x34f4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4064c3
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 0x4064c3
cmp dword [ebp - 4], 0xff5
jae 0x4064ab
push 0x44e9f8
jmp 0x4064b9
cmp dword [ebp - 4], 0xfff5
jae 0x4064c3
push 0x44e9f0
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 0x406578
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x34f4], eax
call fcn.00445da0
push eax
push str._err_s
push 3
call fcn.004487a4
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 0x406576
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 0x40c6fc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x820]
push str.StartArrivalHighlight__s_
push 4
call fcn.004487a4
mov eax, dword [0x501174]
mov ecx, dword [0x501170]
add esp, 0xc
add eax, ecx
je 0x40c7e7
push edi
mov dword [esi + 0xfe0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xfdc], eax
cmp dword [0x50da14], 4
mov edi, fcn.00436e1f
jl 0x40c772
push dword [esi + 0x820]
push dword [esi + 8]
push edi
push dword [0x501170]
push esi
push dword [0x5010bc]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.004487a4
add esp, 0x20
push edi
push dword [0x501170]
push esi
push dword [0x5010bc]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x50117c], 0
pop edi
je 0x40c7df
push dword [esi + 8]
call fcn.0043183e
test eax, eax
je 0x40c7df
cmp dword [esi + 0xd5c], 0
je 0x40c7b9
mov ecx, esi
call fcn.0040719f
test eax, eax
je 0x40c7df
mov ecx, esi
call fcn.004070ac
jmp 0x40c7df
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.004487a4
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
pop esi
jmp fcn.0040a753
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x5010bc]
call fcn.00436e1f
pop esi
ret

Function at 0x40db18
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x450df8
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 0x40db50
push 0xb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp + 0x10]
jmp 0x40db7d
mov eax, 0x7fff
cmp ebx, eax
ja 0x40db60
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 0x40db48
sub ebx, dword [ebp - 4]
add edi, dword [ebp - 4]
test ebx, ebx
jne 0x40db55
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 0x40db98
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 0x40dc47
push str.AttachConsole
call fcn.00425eb4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40dc4d
push 0xffffffffffffffff
call eax
test eax, eax
je 0x40dc4d
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
je 0x40dc4d
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x40dc47
cmp word [ebp - 0x1c], 0
je 0x40dc47
push edi
movsx edi, word [ebp - 0x1c]
mov eax, 0x105
cmp edi, eax
jbe 0x40dc05
mov edi, eax
mov ax, word [ebp - 0x1a]
push 0x20c
push 0
mov esi, 0x4b6658
push esi
mov word [0x498098], ax
call fcn.00442d2f
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 0x40dc5d
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40dc47
push 0x10
push dword [0x498aa4]
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 0x40ff9d
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.0040e27b
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi]
push eax
push eax
push str.bLength__________________:_0x_02X___u_bytes__r_n
call fcn.0040e27b
movzx eax, byte [esi + 1]
push eax
push str.bDescriptorType__________:_0x_02X__HID_Descriptor__r_n
call fcn.0040e27b
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.0040e27b
add esp, 0x28
cmp edi, 2
jle 0x410003
push edi
push str._ERROR__As_of_year_2020_there_is_no_USB_HID_spec_Version__X.x_r_n
call fcn.0040e27b
pop ecx
pop ecx
movzx ecx, byte [esi + 4]
push ecx
call fcn.0040ff83
push eax
push ecx
push ecx
push str.bCountryCode_____________:_0x_02X___02u___s__r_n
call fcn.0040e27b
movzx eax, byte [esi + 5]
push eax
push str.bNumDescriptors__________:_0x_02X_r_n
call fcn.0040e27b
add esp, 0x18
push esi
call fcn.004216ed
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 0x410058
push str._ERROR__bLength_too_small_for_bNumDescriptors
call fcn.0040e27b
pop ecx
jmp 0x410139
mov byte [ebp + 0xf], 0
test cl, cl
jbe 0x410139
push ebx
movzx edi, byte [ebp + 0xf]
lea eax, [edi + 1]
push eax
push str.Descriptor__u:_r_n
call fcn.0040e27b
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.0040fedd
push eax
push ebx
push str.bDescriptorType__________:_0x_02X___s__r_n
call fcn.0040e27b
add esp, 0xc
test bl, bl
jns 0x4100ab
push str._CAUTION__Bit_7_is_reserved_and_should_be_0_r_n
call fcn.0040e27b
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.0040e27b
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4b69c8
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x40000
push esi
push dword [ebp + 8]
call fcn.00409284
test eax, eax
je 0x410114
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
jne 0x410105
movzx eax, word [ebx]
push eax
push 0x4b69c8
call fcn.0042128c
push dword [ebp - 4]
push 0x4b69c8
call fcn.004216d1
jmp 0x410129
push dword [ebp - 8]
call fcn.00443f98
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.0040e27b
pop ecx
pop ecx
inc byte [ebp + 0xf]
mov al, byte [ebp + 0xf]
cmp al, byte [esi + 5]
jb 0x410065
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x4106e5
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.00442d2f
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 0x4108ad
cmp word [ebp - 0x118], bx
jne 0x41075e
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.00442d2f
mov eax, dword [ebp + 0x6c]
add esp, 0xc
dec eax
je 0x410870
dec eax
je 0x41085e
dec eax
je 0x410841
dec eax
je 0x4107ce
sub eax, 7
jne 0x410890
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 0x410890
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 0x410890
movzx eax, word [ebp - 0x18]
test eax, eax
jne 0x410890
push dword [ebp - 0x18]
call fcn.0041068f
mov edi, eax
cmp edi, ebx
je 0x410890
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44dd28
lea eax, [ebp - 0x318]
push eax
call esi
push edi
lea eax, [ebp - 0x318]
push eax
call esi
push 0x44dd24
lea eax, [ebp - 0x318]
push eax
call esi
jmp 0x410890
push 0x20
push dword [ebp + 0x68]
lea eax, [ebp - 0x18]
push eax
call fcn.00426774
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_BINARY__s
jmp 0x410880
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_EXPAND_SZ___s_
jmp 0x410880
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 0x4108ad
lea eax, [ebp - 0x318]
push eax
push str._s_r_n
call fcn.0040e2ce
pop ecx
pop ecx
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x41093a
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 0x410a80
cmp dword [ebp - 4], esi
je 0x410a80
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 0x410a74
cmp dword [ebp - 8], esi
je 0x410a74
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x410a74
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 0x410a6e
lea eax, [ebp - 0x250]
push eax
call fcn.004108b6
test eax, eax
jne 0x410a6e
cmp dword [ebp - 0x14], esi
je 0x410a4a
push str._r_n_________Registry_USB_Flags__r_n
call fcn.0040e27b
pop ecx
mov dword [ebp - 0x14], esi
cmp ebx, esi
je 0x410a5f
push dword [ebp - 0xc]
push str.HKEY_LOCAL_MACHINE_s_r_n
call fcn.0040e2ce
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 4]
call fcn.004106e5
inc edi
cmp edi, dword [ebp - 8]
jb 0x410a03
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 0x4109ac
pop edi
pop esi
pop ebx
leave
ret
Function at 0x425531
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push 0x5007f0
push 0x40
mov esi, 0x4f7650
push esi
mov ebx, str.HighlightCustomColors
push ebx
mov edi, 0x450eac
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov eax, esi
mov ecx, dword [esp + 0x14]
cmp dword [eax], ecx
je 0x425582
add eax, 4
cmp eax, 0x4f7690
jl 0x425555
xor eax, eax
cmp dword [eax*4 + 0x4f7650], 0
je 0x42557b
inc eax
cmp eax, 0x10
jl 0x425569
jmp 0x425582
mov dword [eax*4 + 0x4f7650], ecx
mov eax, dword [esp + 0x10]
push 0x4f762c
mov dword [0x4f762c], 0x24
mov dword [0x4f7630], eax
mov dword [0x4f7638], ecx
mov dword [0x4f763c], esi
mov dword [0x4f7640], 3
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
jne 0x4255c0
mov eax, dword [esp + 0x14]
jmp 0x4255d5
push 0x5007f0
push 0x40
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
mov eax, dword [0x4f7638]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4262b4
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 0x4262de
cmp eax, 5
je 0x4262de
xor eax, eax
jmp 0x4262e1
xor eax, eax
inc eax
ret 4

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

Function at 0x42630b
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 0x42639e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4263a7
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x3a
jne 0x4263a7
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 0x4263a7
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 0x4263a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x426399
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42658e
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.00442d2f
add esp, 0xc
mov edi, 0x4f7f68
push edi
push 0x1000
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4266b3
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x44ec18
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4266b3
cmp dword [ebp + 0xc], ebx
je 0x4266b3
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 0x4266ae
cmp dword [ebp - 8], 4
jb 0x4266ae
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 0x4266ae
cmp dword [ebp + 0xc], 0x80
jae 0x4266ae
push dword [ebp + 8]
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
jmp 0x4266b5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4266bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
test byte [0x4f8f6c], 1
mov dword [ebp - 4], edi
jne 0x4266ed
or dword [0x4f8f6c], 1
mov eax, dword [0x500acc]
neg eax
sbb eax, eax
and eax, 0x100
inc eax
mov dword [0x4f8f68], eax
jmp 0x4266f2
mov eax, dword [0x4f8f68]
mov esi, dword [ebp + 0x14]
xor ecx, ecx
mov word [esi], cx
lea ecx, [ebp - 4]
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 0x42671c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42676e
cmp eax, edi
jne 0x426766
cmp dword [ebp - 4], edi
je 0x426766
push ebx
lea eax, [ebp + 0x18]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0x14], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
pop ebx
jne 0x426766
cmp dword [ebp + 0x14], 4
jne 0x426766
push dword [esi]
push 0x44fac4
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