joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d713
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.0044d31e
mov eax, dword [0x50a1fc]
mov ecx, dword [0x50a1f8]
add esp, 0xc
add eax, ecx
je 0x40d800
push edi
mov dword [esi + 0xfec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xfe8], eax
cmp dword [0x5168ac], 4
mov edi, fcn.0043ae90
jl 0x40d789
push dword [esi + 0x824]
push dword [esi + 8]
push edi
push dword [0x50a1f8]
push esi
push dword [0x50a13c]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.0044d31e
add esp, 0x20
push edi
push dword [0x50a1f8]
push esi
push dword [0x50a13c]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x50a204], 0
pop edi
je 0x40d7f8
push dword [esi + 8]
call fcn.00434e94
test eax, eax
je 0x40d7f8
cmp dword [esi + 0xd60], 0
je 0x40d7d2
mov ecx, esi
call fcn.00407ca1
test eax, eax
je 0x40d7f8
push 1
mov ecx, esi
call fcn.00407857
jmp 0x40d7f8
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.0044d31e
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
pop esi
jmp fcn.0040b63e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x50a13c]
call fcn.0043ae90
pop esi
ret

Function at 0x40ece2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x4563cc
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 0x40ed1a
push 0xb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp + 0x10]
jmp 0x40ed47
mov eax, 0x7fff
cmp ebx, eax
ja 0x40ed2a
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 0x40ed12
sub ebx, dword [ebp - 4]
add edi, dword [ebp - 4]
test ebx, ebx
jne 0x40ed1f
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 0x40ed62
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 0x40ee11
push str.AttachConsole
call fcn.00427791
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ee17
push 0xffffffffffffffff
call eax
test eax, eax
je 0x40ee17
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
je 0x40ee17
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x40ee11
cmp word [ebp - 0x1c], 0
je 0x40ee11
push edi
movsx edi, word [ebp - 0x1c]
mov eax, 0x105
cmp edi, eax
jbe 0x40edcf
mov edi, eax
mov ax, word [ebp - 0x1a]
push 0x20c
push 0
mov esi, 0x4bf6a8
push esi
mov word [0x4a1098], ax
call fcn.004476fd
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 0x40ee27
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40ee11
push 0x10
push dword [0x4a1ab4]
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 0x4111a8
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.0040f447
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi]
push eax
push eax
push str.bLength__________________:_0x_02X___u_bytes__r_n
call fcn.0040f447
movzx eax, byte [esi + 1]
push eax
push str.bDescriptorType__________:_0x_02X__HID_Descriptor__r_n
call fcn.0040f447
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.0040f447
add esp, 0x28
cmp edi, 2
jle 0x41120e
push edi
push str._ERROR__As_of_year_2020_there_is_no_USB_HID_spec_Version__X.x_r_n
call fcn.0040f447
pop ecx
pop ecx
movzx ecx, byte [esi + 4]
push ecx
call fcn.0041118e
push eax
push ecx
push ecx
push str.bCountryCode_____________:_0x_02X___02u___s__r_n
call fcn.0040f447
movzx eax, byte [esi + 5]
push eax
push str.bNumDescriptors__________:_0x_02X_r_n
call fcn.0040f447
add esp, 0x18
push esi
call fcn.00422f80
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 0x411263
push str._ERROR__bLength_too_small_for_bNumDescriptors
call fcn.0040f447
pop ecx
jmp 0x411344
mov byte [ebp + 0xf], 0
test cl, cl
jbe 0x411344
push ebx
movzx edi, byte [ebp + 0xf]
lea eax, [edi + 1]
push eax
push str.Descriptor__u:_r_n
call fcn.0040f447
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.004110e8
push eax
push ebx
push str.bDescriptorType__________:_0x_02X___s__r_n
call fcn.0040f447
add esp, 0xc
test bl, bl
jns 0x4112b6
push str._CAUTION__Bit_7_is_reserved_and_should_be_0_r_n
call fcn.0040f447
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.0040f447
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4bfa18
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x40000
push esi
push dword [ebp + 8]
call fcn.00409edc
test eax, eax
je 0x41131f
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
jne 0x411310
movzx eax, word [ebx]
push eax
push 0x4bfa18
call fcn.00422b1f
push dword [ebp - 4]
push 0x4bfa18
call fcn.00422f64
jmp 0x411334
push dword [ebp - 8]
call fcn.00448a28
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.0040f447
pop ecx
pop ecx
inc byte [ebp + 0xf]
mov al, byte [ebp + 0xf]
cmp al, byte [esi + 5]
jb 0x411270
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x4118f0
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.004476fd
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 0x411ab8
cmp word [ebp - 0x118], bx
jne 0x411969
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.004476fd
mov eax, dword [ebp + 0x6c]
add esp, 0xc
dec eax
je 0x411a7b
dec eax
je 0x411a69
dec eax
je 0x411a4c
dec eax
je 0x4119d9
sub eax, 7
jne 0x411a9b
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 0x411a9b
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 0x411a9b
movzx eax, word [ebp - 0x18]
test eax, eax
jne 0x411a9b
push dword [ebp - 0x18]
call fcn.0041189a
mov edi, eax
cmp edi, ebx
je 0x411a9b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x452ea8
lea eax, [ebp - 0x318]
push eax
call esi
push edi
lea eax, [ebp - 0x318]
push eax
call esi
push 0x452ea4
lea eax, [ebp - 0x318]
push eax
call esi
jmp 0x411a9b
push 0x20
push dword [ebp + 0x68]
lea eax, [ebp - 0x18]
push eax
call fcn.0042811e
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_BINARY__s
jmp 0x411a8b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_EXPAND_SZ___s_
jmp 0x411a8b
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 0x411ab8
lea eax, [ebp - 0x318]
push eax
push str._s_r_n
call fcn.0040f49a
pop ecx
pop ecx
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x411b45
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 0x411c8b
cmp dword [ebp - 4], esi
je 0x411c8b
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 0x411c7f
cmp dword [ebp - 8], esi
je 0x411c7f
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp - 8], esi
jbe 0x411c7f
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 0x411c79
lea eax, [ebp - 0x250]
push eax
call fcn.00411ac1
test eax, eax
jne 0x411c79
cmp dword [ebp - 0x14], esi
je 0x411c55
push str._r_n_________Registry_USB_Flags__r_n
call fcn.0040f447
pop ecx
mov dword [ebp - 0x14], esi
cmp ebx, esi
je 0x411c6a
push dword [ebp - 0xc]
push str.HKEY_LOCAL_MACHINE_s_r_n
call fcn.0040f49a
pop ecx
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 4]
call fcn.004118f0
inc edi
cmp edi, dword [ebp - 8]
jb 0x411c0e
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 0x411bb7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426dc5
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
push 0x5097a8
push 0x40
mov esi, 0x500660
push esi
mov ebx, str.HighlightCustomColors
push ebx
mov edi, 0x456480
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov eax, esi
mov ecx, dword [esp + 0x14]
cmp dword [eax], ecx
je 0x426e16
add eax, 4
cmp eax, 0x5006a0
jl 0x426de9
xor eax, eax
cmp dword [eax*4 + 0x500660], 0
je 0x426e0f
inc eax
cmp eax, 0x10
jl 0x426dfd
jmp 0x426e16
mov dword [eax*4 + 0x500660], ecx
mov eax, dword [esp + 0x10]
push 0x50063c
mov dword [0x50063c], 0x24
mov dword [0x500640], eax
mov dword [0x500648], ecx
mov dword [0x50064c], esi
mov dword [0x500650], 3
call dword [sym.imp.COMDLG32.dll_ChooseColorW]
test eax, eax
jne 0x426e54
mov eax, dword [esp + 0x14]
jmp 0x426e69
push 0x5097a8
push 0x40
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
mov eax, dword [0x500648]
pop edi
pop esi
pop ebx
ret 8

Function at 0x427927
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 0x427958
mov eax, dword [esp + 0x14]
mov dword [eax], 0x452148
jmp 0x4279e8
call edi
push eax
mov edi, 0x500738
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call ebx
test eax, eax
jbe 0x4279e8
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 0x4279db
lea edx, [ecx*2 + 0x500738]
cmp word [edx], 0x22
jne 0x4279af
movzx edx, word [ecx*2 + 0x50073a]
inc ecx
test dx, dx
je 0x4279a2
cmp dx, 0x22
jne 0x42798e
lea edx, [ecx*2 + 0x500738]
cmp word [edx], 0
je 0x4279e8
cmp word [edx], 0x20
jne 0x4279d6
xor edi, edi
mov word [edx], di
inc ecx
cmp word [ecx*2 + 0x500738], 0x20
je 0x4279ba
mov edi, dword [esi]
lea edx, [ecx*2 + 0x500738]
mov dword [ebx + edi*4], edx
inc dword [esi]
mov edi, dword [esi]
inc ecx
cmp ecx, eax
jb 0x427981
mov eax, dword [ebx + edi*4 - 4]
cmp word [eax], 0
jne 0x4279e8
dec edi
mov dword [esi], edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x427c56
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 0x427c80
cmp eax, 5
je 0x427c80
xor eax, eax
jmp 0x427c83
xor eax, eax
inc eax
ret 4

Function at 0x427c86
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 0x427ca8
mov ecx, eax
xor eax, eax
inc eax
and ecx, eax
cmp cl, al
je 0x427caa
xor eax, eax
ret 4
Function at 0x427cad
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 0x427d40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x427d49
mov eax, dword [ebp + 8]
cmp word [eax + 2], 0x3a
jne 0x427d49
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 0x427d49
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 0x427d4b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x427d3b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x427f30
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.004476fd
add esp, 0xc
mov edi, 0x501390
push edi
push 0x1000
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x428055
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x453f30
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x428055
cmp dword [ebp + 0xc], ebx
je 0x428055
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 0x428050
cmp dword [ebp - 8], 4
jb 0x428050
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 0x428050
cmp dword [ebp + 0xc], 0x80
jae 0x428050
push dword [ebp + 8]
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
jmp 0x428057
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42805e
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 [0x502394], 1
mov dword [ebp - 4], eax
mov dword [ebp + 0x18], edi
jne 0x428097
or dword [0x502394], 1
mov eax, dword [0x509b3c]
neg eax
sbb eax, eax
and eax, 0x100
inc eax
mov dword [0x502390], eax
jmp 0x42809c
mov eax, dword [0x502390]
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 0x4280c6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x428118
cmp eax, edi
jne 0x428110
cmp dword [ebp + 0x18], edi
je 0x428110
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 0x428110
cmp dword [ebp + 0x14], 4
jne 0x428110
push dword [esi]
push 0x454f68
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 0x42822f
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 0x428298
cmp dword [ebp - 4], esi
je 0x428298
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 0x42829f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x42829f
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 0x4282ac
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 0x42830a
mov ecx, dword [0x50c794]
call fcn.004471c1
mov dword [ebp - 8], eax
test eax, eax
jne 0x4282fa
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4283a3
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 0x428314
cmp edi, 2
jne 0x42834f
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 0x42834f
cmp dword [ebp - 8], 0
jne 0x428343
mov ecx, dword [0x50c794]
call fcn.004471c1
mov dword [ebp - 8], eax
test eax, eax
je 0x4282eb
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x428385
cmp dword [ebp - 4], esi
je 0x428385
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 0x428395
mov ecx, dword [0x50c794]
call fcn.0044720b
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

Function at 0x4283e1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 4]
push ecx
xor eax, eax
mov edi, 0x20006
push edi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov ebx, eax
cmp ebx, 5
jne 0x42843f
mov ecx, dword [0x50c794]
call fcn.004471c1
mov dword [ebp - 8], eax
test eax, eax
jne 0x42842e
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42849e
lea eax, [ebp - 4]
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x42847f
cmp dword [ebp - 4], ebx
je 0x42847f
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test ebx, ebx
je 0x428476
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.RegDeleteValue__s___s___err_u
push 1
call fcn.0044d31e
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x428490
mov ecx, dword [0x50c794]
call fcn.0044720b
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret 0xc