joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408464
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 0x4084ad
mov eax, dword [eax + 8]
test al, 4
je 0x40849b
mov dword [esi + 4], 3
jmp 0x40859f
and al, 2
xor ecx, ecx
cmp al, 2
sete cl
inc ecx
mov dword [esi + 4], ecx
jmp 0x40859f
mov eax, dword [edi + 0xd48]
cmp eax, ebx
je 0x4084d7
mov ecx, dword [eax + 0xfb0]
cmp ecx, ebx
je 0x4084d7
mov ecx, dword [ecx + 0x10]
cmp ecx, ebx
je 0x4084d7
movzx eax, byte [ecx + 0x17]
cmp eax, 0xffffffff
jle 0x40859f
jmp 0x408548
cmp dword [edi + 0xfc0], ebx
je 0x40854d
cmp eax, ebx
je 0x40859f
mov ecx, dword [eax + 0xfc0]
cmp ecx, ebx
je 0x40854d
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str.ROOT_HUB_
add ecx, 0xe34
push ecx
call ebp
test eax, eax
jne 0x408572
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 0x408598
mov eax, dword [edi + 0xd48]
push dword [eax + 0xfc0]
call fcn.004447ed
test eax, eax
je 0x40859f
mov al, byte [edi + 0xce4]
cmp al, 2
jbe 0x408598
movzx eax, al
mov dword [esi + 4], eax
jmp 0x40859f
cmp eax, ebx
je 0x40859f
mov eax, dword [eax + 0xfc0]
cmp eax, ebx
je 0x40859f
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str.ROOT_HUB_
add eax, 0xe34
push eax
call ebp
test eax, eax
je 0x40857b
mov dword [esi + 4], 1
jmp 0x40859f
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 0x40859f
mov dword [esi + 4], 2
cmp dword [esi + 4], 3
jne 0x408667
mov eax, dword [esp + 0x270]
mov ecx, dword [eax + 0xfc0]
cmp ecx, ebx
je 0x408667
mov edx, dword [eax + 0xfac]
add ecx, 0xe34
cmp dword [edx], ebx
je 0x4085e4
mov eax, dword [eax + 0xd48]
mov eax, dword [eax + 0xfc0]
cmp eax, ebx
je 0x4085e4
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, 0x4f9c98
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 0x408622
mov dword [esi + 4], 4
jmp 0x408660
mov eax, dword [esi + 0x10]
test eax, eax
je 0x408660
cmp dword [eax + 0x1f], 1
jne 0x408660
mov eax, dword [esi + 0x14]
test eax, eax
je 0x408660
test byte [eax + 0xc], 4
je 0x408660
push ebp
push 0
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esi + 4], 4
call ebx
test eax, eax
jne 0x408660
push ebp
push 1
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004266f7
mov edi, dword [esp + 0x26c]
cmp dword [esi + 4], 0xffffffff
jne 0x408677
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 0x40beff
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.004452a3
mov eax, dword [0x4fa5e8]
mov ecx, dword [0x4fa5e4]
add esp, 0xc
add eax, ecx
je 0x40bff8
push edi
mov dword [esi + 0xfe0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xfdc], eax
cmp dword [0x506fb4], 4
mov edi, fcn.00434073
jl 0x40bf75
push dword [esi + 0x81c]
push dword [esi + 8]
push edi
push dword [0x4fa5e4]
push esi
push dword [0x4fa548]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.004452a3
add esp, 0x20
push edi
push dword [0x4fa5e4]
push esi
push dword [0x4fa548]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x4fa5f0], 0
pop edi
je 0x40bff0
push dword [esi + 8]
call fcn.0042fb24
test eax, eax
je 0x40bff0
mov ecx, dword [esi + 0xd48]
test ecx, ecx
je 0x40bfca
call fcn.004071d5
test eax, eax
je 0x40bff0
push dword [esi + 8]
push 0
push 0x1114
push dword [0x4fa550]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40bff0
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.004452a3
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
pop esi
jmp fcn.0040a1a8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x4fa548]
call fcn.00434073
pop esi
ret

Function at 0x40c9ad
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x44d600
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 0x40c9e5
push 0xb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp + 0x10]
jmp 0x40ca12
mov eax, 0x7fff
cmp ebx, eax
ja 0x40c9f5
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 0x40c9dd
sub ebx, dword [ebp - 4]
add edi, dword [ebp - 4]
test ebx, ebx
jne 0x40c9ea
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 0x40ca2d
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 0x40cadc
push str.AttachConsole
call fcn.0042472a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cae2
push 0xffffffffffffffff
call eax
test eax, eax
je 0x40cae2
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
je 0x40cae2
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x40cadc
cmp word [ebp - 0x1c], 0
je 0x40cadc
push edi
movsx edi, word [ebp - 0x1c]
mov eax, 0x105
cmp edi, eax
jbe 0x40ca9a
mov edi, eax
mov ax, word [ebp - 0x1a]
push 0x20c
push 0
mov esi, 0x4af870
push esi
mov word [0x492070], ax
call fcn.0043f4d8
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 0x40caf2
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40cadc
push 0x10
push dword [0x492a24]
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 0x40ee3e
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.0040d11c
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi]
push eax
push eax
push str.bLength__________________:_0x_02X___u_bytes__r_n
call fcn.0040d11c
movzx eax, byte [esi + 1]
push eax
push str.bDescriptorType__________:_0x_02X__HID_Descriptor__r_n
call fcn.0040d11c
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.0040d11c
add esp, 0x28
cmp edi, 2
jle 0x40eea4
push edi
push str._ERROR__As_of_year_2020_there_is_no_USB_HID_spec_Version__X.x_r_n
call fcn.0040d11c
pop ecx
pop ecx
movzx ecx, byte [esi + 4]
push ecx
call fcn.0040ee24
push eax
push ecx
push ecx
push str.bCountryCode_____________:_0x_02X___02u___s__r_n
call fcn.0040d11c
movzx eax, byte [esi + 5]
push eax
push str.bNumDescriptors__________:_0x_02X_r_n
call fcn.0040d11c
add esp, 0x18
push esi
call fcn.0042018d
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 0x40eef9
push str._ERROR__bLength_too_small_for_bNumDescriptors
call fcn.0040d11c
pop ecx
jmp 0x40efda
mov byte [ebp + 0xf], 0
test cl, cl
jbe 0x40efda
push ebx
movzx edi, byte [ebp + 0xf]
lea eax, [edi + 1]
push eax
push str.Descriptor__u:_r_n
call fcn.0040d11c
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.0040ed7e
push eax
push ebx
push str.bDescriptorType__________:_0x_02X___s__r_n
call fcn.0040d11c
add esp, 0xc
test bl, bl
jns 0x40ef4c
push str._CAUTION__Bit_7_is_reserved_and_should_be_0_r_n
call fcn.0040d11c
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.0040d11c
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4afbd0
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x40000
push esi
push dword [ebp + 8]
call fcn.00408e35
test eax, eax
je 0x40efb5
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
jne 0x40efa6
movzx eax, word [ebx]
push eax
push 0x4afbd0
call fcn.0041fd2c
push dword [ebp - 4]
push 0x4afbd0
call fcn.00420171
jmp 0x40efca
push dword [ebp - 8]
call fcn.00440118
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.0040d11c
pop ecx
pop ecx
inc byte [ebp + 0xf]
mov al, byte [ebp + 0xf]
cmp al, byte [esi + 5]
jb 0x40ef06
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x40f586
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.0043f4d8
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 0x40f74e
cmp word [ebp - 0x118], bx
jne 0x40f5ff
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.0043f4d8
mov eax, dword [ebp + 0x6c]
add esp, 0xc
dec eax
je 0x40f711
dec eax
je 0x40f6ff
dec eax
je 0x40f6e2
dec eax
je 0x40f66f
sub eax, 7
jne 0x40f731
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 0x40f731
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 0x40f731
movzx eax, word [ebp - 0x18]
test eax, eax
jne 0x40f731
push dword [ebp - 0x18]
call fcn.0040f530
mov edi, eax
cmp edi, ebx
je 0x40f731
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44a900
lea eax, [ebp - 0x318]
push eax
call esi
push edi
lea eax, [ebp - 0x318]
push eax
call esi
push 0x44a8fc
lea eax, [ebp - 0x318]
push eax
call esi
jmp 0x40f731
push 0x20
push dword [ebp + 0x68]
lea eax, [ebp - 0x18]
push eax
call fcn.00424ffc
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_BINARY__s
jmp 0x40f721
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_EXPAND_SZ___s_
jmp 0x40f721
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 0x40f74e
lea eax, [ebp - 0x318]
push eax
push str._s_r_n
call fcn.0040d16f
pop ecx
pop ecx
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x40f7db
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 0x40f921
cmp dword [ebp - 4], esi
je 0x40f921
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 0x40f915
cmp dword [ebp - 8], esi
je 0x40f915
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x40f915
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 0x40f90f
lea eax, [ebp - 0x250]
push eax
call fcn.0040f757
test eax, eax
jne 0x40f90f
cmp dword [ebp - 0x14], esi
je 0x40f8eb
push str._r_n_________Registry_USB_Flags__r_n
call fcn.0040d11c
pop ecx
mov dword [ebp - 0x14], esi
cmp ebx, esi
je 0x40f900
push dword [ebp - 0xc]
push str.HKEY_LOCAL_MACHINE_s_r_n
call fcn.0040d16f
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 4]
call fcn.0040f586
inc edi
cmp edi, dword [ebp - 8]
jb 0x40f8a4
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 0x40f84d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423e93
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push 0x4f9c98
push 0x40
mov esi, 0x4f07b0
push esi
mov ebx, str.HighlightCustomColors
push ebx
mov edi, 0x44d6b4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov eax, esi
mov ecx, dword [esp + 0x14]
cmp dword [eax], ecx
je 0x423ee4
add eax, 4
cmp eax, 0x4f07f0
jl 0x423eb7
xor eax, eax
cmp dword [eax*4 + 0x4f07b0], 0
je 0x423edd
inc eax
cmp eax, 0x10
jl 0x423ecb
jmp 0x423ee4
mov dword [eax*4 + 0x4f07b0], ecx
mov eax, dword [esp + 0x10]
push 0x4f078c
mov dword [0x4f078c], 0x24
mov dword [0x4f0790], eax
mov dword [0x4f0798], ecx
mov dword [0x4f079c], esi
mov dword [0x4f07a0], 3
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
jne 0x423f22
mov eax, dword [esp + 0x14]
jmp 0x423f37
push 0x4f9c98
push 0x40
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
mov eax, dword [0x4f0798]
pop edi
pop esi
pop ebx
ret 8

Function at 0x424b3c
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 0x424b66
cmp eax, 5
je 0x424b66
xor eax, eax
jmp 0x424b69
xor eax, eax
inc eax
ret 4

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

Function at 0x424b93
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 0x424c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x424c2f
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x3a
jne 0x424c2f
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 0x424c2f
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 0x424c31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x424c21
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x424e16
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.0043f4d8
add esp, 0xc
mov edi, 0x4f1080
push edi
push 0x1000
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x424f3b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x44b8e4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x424f3b
cmp dword [ebp + 0xc], ebx
je 0x424f3b
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 0x424f36
cmp dword [ebp - 8], 4
jb 0x424f36
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 0x424f36
cmp dword [ebp + 0xc], 0x80
jae 0x424f36
push dword [ebp + 8]
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
jmp 0x424f3d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x424f44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
test byte [0x4f2084], 1
mov dword [ebp - 4], edi
jne 0x424f75
or dword [0x4f2084], 1
mov eax, dword [0x4f9f74]
neg eax
sbb eax, eax
and eax, 0x100
inc eax
mov dword [0x4f2080], eax
jmp 0x424f7a
mov eax, dword [0x4f2080]
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 0x424fa4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x424ff6
cmp eax, edi
jne 0x424fee
cmp dword [ebp - 4], edi
je 0x424fee
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 0x424fee
cmp dword [ebp + 0x14], 4
jne 0x424fee
push dword [esi]
push 0x4535b0
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 0x42510d
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 0x425176
cmp dword [ebp - 4], esi
je 0x425176
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 0x42517d
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x42517d
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
leave
ret 0x10

Function at 0x42518a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 4]
push ecx
xor eax, eax
push 2
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call esi
mov edi, eax
cmp edi, 5
jne 0x4251e8
mov ecx, dword [0x4fc954]
call fcn.0043eec9
mov dword [ebp - 8], eax
test eax, eax
jne 0x4251d8
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x425281
lea eax, [ebp - 4]
push eax
push 2
push 0
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 3
je 0x4251f2
cmp edi, 2
jne 0x42522d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 5
jne 0x42522d
cmp dword [ebp - 8], 0
jne 0x425221
mov ecx, dword [0x4fc954]
call fcn.0043eec9
mov dword [ebp - 8], eax
test eax, eax
je 0x4251c9
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x425263
cmp dword [ebp - 4], esi
je 0x425263
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x425273
mov ecx, dword [0x4fc954]
call fcn.0043ef13
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
pop ebx
leave
ret 0x10