joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405620
Capabilities:
Get process heap flags
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0xac
cmp word [eax], 0
mov dword [ebp - 0x90], edx
je 0x405649
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405640
sub eax, ebx
mov dword [esp + 4], 0
add eax, 0x26
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x40587b
xor eax, eax
nop
movzx ecx, word [ebx + eax]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x405680
mov dword [esp + 4], str..update_timestamp
mov dword [esp], edi
call sym._lstrcatW_8
mov esi, dword [sym.imp.ucrtbase.dll__wopen]
sub esp, 8
mov dword [esp + 4], 2
mov dword [esp], edi
call esi
mov ebx, eax
cmp eax, 0xffffffff
je 0x4057fd
lea eax, [ebp - 0x7c]
mov dword [esp + 8], 0x63
mov dword [ebp - 0x8c], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__read]
test eax, eax
js 0x40573b
mov byte [ebp + eax - 0x7c], 0
mov eax, dword [ebp - 0x8c]
mov dword [esp + 8], 7
mov dword [esp + 4], str.disable
mov dword [esp], eax
call sym._strncmp
mov esi, eax
test eax, eax
je 0x4057c6
mov eax, dword [ebp - 0x8c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strtoul]
cmp eax, dword [ebp - 0x90]
je 0x40586a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__lseek]
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__chsize]
mov eax, dword [ebp - 0x90]
mov dword [esp + 4], str._lu_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sym._sprintf.constprop.0
mov dword [esp], ebx
mov esi, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__write]
cmp esi, eax
je 0x405871
test byte [0x40a160], 4
jne 0x405836
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__chsize]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__close]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.ucrtbase.dll__errno]
cmp dword [eax], 2
je 0x40580c
xor esi, esi
jmp 0x4057cf
mov dword [esp + 8], 0x1b6
mov dword [esp + 4], 0x301
mov dword [esp], edi
call esi
mov ebx, eax
cmp eax, 0xffffffff
je 0x405808
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
jmp 0x405765
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0xc], str.failed_to_update_timestamp_in__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.update_timestamp
mov dword [esp + 4], 0x40a160
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x4057b3
xor esi, esi
jmp 0x4057c6
mov esi, 1
jmp 0x4057c6
xor esi, esi
jmp 0x4057f3
Function at 0x401370
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
call fcn.0040d3b7
add esp, 8
test eax, eax
jne 0x401397
call fcn.0040a840
mov edi, eax
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
or eax, 0xffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x34], 0x402e50
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0x402e80
mov dword [esp + 0x30], eax
call esi
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x4013e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401499
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x40140e
call esi
test eax, eax
jne 0x401451
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.004011e0
add esp, 4
test eax, eax
jne 0x401426
lea ebx, [eax + 1]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x401446
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40143e
call esi
jmp 0x401446
mov dword [esp + 0x14], 0xffffffff
test ebx, ebx
jne 0x401451
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x401471
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x401469
call esi
jmp 0x401471
mov dword [esp + 0x1c], 0xffffffff
test ebx, ebx
je 0x401499
cmp edi, dword [ebp + 0xc]
je 0x401499
mov ecx, dword [ebp + 8]
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d50
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x402d61
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x402d7f
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x402db6
test ecx, ecx
je 0x402daf
test esi, esi
ja 0x402d70
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x402dd0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x402de1
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x402dff
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x402e36
test ecx, ecx
je 0x402e2f
test esi, esi
ja 0x402df0
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x402fa0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x214], eax
test edi, edi
jle 0x40305e
cmp edi, 2
jg 0x40305e
push 0
push 0
push 0xf0
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x403056
push str.SoftwareContentGuard
lea eax, [esp + 0x10]
push 0x104
push eax
mov dword [esp + 0x10], 0
call fcn.0040b1a9
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0x41f30c
push 0
lea eax, [esp + 0x28]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403056
mov edx, dword [esp]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push eax
push str.360CHECK_MSG
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0040b218
add esp, 0x218
ret
Function at 0x4030c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x284
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x280], eax
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0x20019
mov ecx, 0x18
mov esi, str.SYSTEMCurrentControlSetServicesZhuDongFangYu
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40311f
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0040b218
add esp, 0x284
ret
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
push str.SoftwareContentGuard
lea eax, [esp + 0x84]
push 0x104
push eax
mov dword [esp + 0x1c], 1
call fcn.0040b1a9
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0x41f30c
push 0
lea eax, [esp + 0x9c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4031c5
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
push str.360CHECK_MSG
mov edi, 4
push ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
call esi
cmp dword [esp + 8], edi
jne 0x4031c5
cmp dword [esp + 0x10], 0
je 0x403106
push 0
push 0x403080
push 0
push 0x102
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov ecx, dword [esp + 0x288]
pop edi
pop esi
xor ecx, esp
call fcn.0040b218
add esp, 0x284
ret

Function at 0x403330
Capabilities:
Set registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x210], eax
push str.SoftwareContentGuard
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040b1a9
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0x41f30c
push 0
lea eax, [esp + 0x24]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4033af
mov edx, dword [esp]
push 4
lea ecx, [esp + 0x21c]
push ecx
push 4
push eax
push str.AutoUpdate
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040b218
add esp, 0x214
ret
Function at 0x403480
Capabilities:
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x214], eax
test edi, edi
jle 0x40353e
cmp edi, 2
jg 0x40353e
push 0
push 0
push 0xf0
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x403536
push str.SoftwareContentGuard
lea eax, [esp + 0x10]
push 0x104
push eax
mov dword [esp + 0x10], 0
call fcn.0040b1a9
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0x41f30c
push 0
lea eax, [esp + 0x28]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403536
mov edx, dword [esp]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push eax
push str.AVASTCHECK_MSG
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0040b218
add esp, 0x218
ret

Function at 0x4035a0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x630
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x62c], eax
push esi
push edi
mov ecx, 0x19
mov esi, str.X:Program_FilesAVAST_SoftwareAVASTAvastSvc.exe
lea edi, [esp + 0x224]
rep movsd dword es:[edi], dword [esi]
push 0x1a2
lea eax, [esp + 0x28e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0040b920
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x32]
push edx
mov word [esp + 0x34], cx
call fcn.0040b920
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov cx, word [esp + 0x1c]
lea edx, [esp + 0x224]
push 0
push edx
mov word [esp + 0x22c], cx
call fcn.0040b905
add esp, 8
test eax, eax
je 0x403645
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.0040b218
add esp, 0x630
ret
push str.SoftwareContentGuard
lea eax, [esp + 0x430]
push 0x104
push eax
mov dword [esp + 0x1c], 1
call fcn.0040b1a9
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0x41f30c
push 0
lea eax, [esp + 0x448]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4036e2
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
push str.AVASTCHECK_MSG
mov esi, 4
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 8], esi
jne 0x4036e2
cmp dword [esp + 0x10], 0
je 0x40362c
push 0
push 0x403560
push 0
push 0x102
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov ecx, dword [esp + 0x634]
pop edi
pop esi
xor ecx, esp
call fcn.0040b218
add esp, 0x630
ret
Function at 0x403770
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipeUsbEntCGService_v4
mov dword [esp + 0x2c], eax
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4037eb
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x4037f6
call ebp
sub eax, dword [esp + 0x10]
cmp eax, 0xea60
ja 0x4037f6
push 0x64
call ebx
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipeUsbEntCGService_v4
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4037b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x403860
Capabilities:
Read file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push edx
push edi
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x4038bb
cmp dword [esp + 8], 0
jbe 0x4038bb
push 0xe
push 0x41f4b8
push edi
call fcn.0040ba94
add esp, 0xc
test eax, eax
jne 0x4038b1
mov ecx, dword [esp + 8]
cmp byte [ecx + edi - 1], 3
je 0x4038b9
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov eax, esi
pop edi
pop esi
pop ecx
ret 8

Function at 0x403950
Capabilities:
Get file version info

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
mov edi, eax
lea eax, [esp + 0xc]
push eax
xor ebp, ebp
push edi
mov dword [esp + 0x14], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x403978
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
push ebx
push esi
call fcn.0040bc50
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x403992
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
mov ecx, dword [esp + 0x10]
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push str.StringFileInfo040904b0ProductVersion
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403a07
mov esi, dword [esp + 0x14]
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
xor edi, edi
lea esp, [esp]
push esi
call fcn.0040bc2a
push 0x2c
push esi
mov dword [esp + edi*4 + 0x28], eax
call fcn.0040ba6e
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4039f4
inc edi
add esi, 2
cmp edi, 4
jl 0x4039d0
cmp dword [esp + 0x1c], 6
jl 0x403a07
cmp dword [esp + 0x28], 0x11
jl 0x403a07
mov ebp, 1
push ebx
call fcn.0040bc09
add esp, 4
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x1c
ret
Function at 0x403a20
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x208], eax
lea eax, [esp]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.KASHUUsbQuickStartUsbEntCGService.exe
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp]
push 0
push edx
call fcn.0040b905
add esp, 8
test eax, eax
je 0x403a7f
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040b218
add esp, 0x20c
ret
lea eax, [esp]
call fcn.00403950
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040b218
add esp, 0x20c
ret

Function at 0x404010
Capabilities:
Get file version info

Disassembly:
sub esp, 0x818
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x814], eax
push ebx
mov ebx, dword [esp + 0x824]
push ebp
or eax, 0xffffffff
push esi
push edi
mov edi, dword [esp + 0x82c]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
je 0x404130
push esi
call fcn.0040bc50
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebp, eax
push ebp
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404121
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push str.VarFileInfoTranslation
xor edi, edi
push ebp
mov dword [esp + 0x2c], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x4040aa
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.00403ff0
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404121
mov esi, dword [esp + 0x18]
push esi
call fcn.0040bc2a
push 0x2c
push esi
mov dword [ebx + edi*4], eax
call fcn.0040ba6e
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404114
inc edi
add esi, 2
cmp edi, 4
jl 0x4040e2
push ebp
call fcn.0040bc09
mov eax, dword [esp + 0x14]
add esp, 4
jmp 0x404132
cmp edi, 3
jne 0x404121
mov dword [esp + 0x10], 1
push ebp
call fcn.0040bc09
mov eax, dword [esp + 0x14]
add esp, 4
jmp 0x404132
mov eax, ebp
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b218
add esp, 0x818
ret
Function at 0x404410
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x48
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x44], eax
movzx eax, di
push eax
lea ecx, [esp + 0x28]
push str._04x
push ecx
call fcn.004041e0
add esp, 0xc
push esi
push 0x10
lea edx, [esp + 0xc]
push edx
push 0x41f30c
lea eax, [esp + 0x34]
push eax
push 0x41f734
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x404460
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404460
sub eax, edx
sar eax, 1
je 0x404494
push 0x10
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.0040d27b
add esp, 0xc
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0040b218
add esp, 0x48
ret
mov ecx, dword [esp + 0x44]
xor ecx, esp
mov ax, di
call fcn.0040b218
add esp, 0x48
ret

Function at 0x4044b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x21c], eax
push str.SoftwareContentGuard
lea eax, [esp + 0x18]
push 0x104
push eax
mov dword [esp + 0xc], 0
call fcn.0040b1a9
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0xf003f
push 0
push 0x41f30c
push 0
lea eax, [esp + 0x30]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404549
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0
push str.USBSTART_LANGUAGE
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
mov eax, dword [esp]
xor ecx, esp
call fcn.0040b218
add esp, 0x220
ret

Function at 0x405720
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x41e308
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4290b8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.00404c20
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405780
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00404ef0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00404c20
cmp dword [esp + 0x28], 8
jb 0x4057cd
mov eax, dword [esp + 0x14]
push eax
call fcn.0040bc09
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x406370
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41e43b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x4ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4290b8]
xor eax, esp
push eax
lea eax, [esp + 0x4c4]
mov dword fs:[0], eax
lea eax, [esp + 0xb0]
push eax
push 0x104
mov esi, ecx
call fcn.00406bf0
xor edi, edi
add esp, 8
cmp eax, edi
je 0x406567
cmp eax, 0x104
ja 0x406567
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x2bc]
push str._sUsbRemove.ini
push edx
call fcn.00404200
add esp, 0xc
lea eax, [esp + 0x2b8]
push eax
push 0x40
lea ecx, [esp + 0x38]
push ecx
push 0x41f30c
push str.UsbStart
push str.Language
or ebp, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x30]
lea edx, [eax + 2]
cmp esi, edi
jne 0x406450
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406426
sub eax, edx
sar eax, 1
cmp eax, 1
jb 0x406563
mov ebp, 1
mov eax, ebp
jmp 0x406569
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406450
sub eax, edx
sar eax, 1
cmp eax, 1
jne 0x406485
lea edx, [esp + 0x30]
push edx
call fcn.0040bc2a
mov ebp, eax
add esp, 4
cmp ebp, 4
jne 0x406563
xor ebp, ebp
mov eax, ebp
jmp 0x406569
lea eax, [esp + 0x30]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406490
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x406563
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
xor ebp, ebp
call fcn.00405380
push esi
mov dword [esp + 0x4d0], edi
call fcn.00405fb0
mov esi, eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add esp, 4
add ecx, edx
lea ebx, [ebp + 8]
je 0x406538
push edi
mov ecx, esi
call fcn.00405680
cmp dword [eax + 0x18], ebx
jb 0x4064f8
mov eax, dword [eax + 4]
jmp 0x4064fb
add eax, 4
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebx
jae 0x406509
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0040d3b7
add esp, 8
test eax, eax
je 0x406535
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x4064e6
jmp 0x406538
lea ebp, [edi + 1]
mov ecx, esi
call fcn.00405a50
mov ecx, dword [esi]
push ecx
call fcn.0040bc09
push esi
call fcn.0040bc09
add esp, 8
cmp dword [esp + 0x2c], ebx
jb 0x406563
mov edx, dword [esp + 0x18]
push edx
call fcn.0040bc09
add esp, 4
mov eax, ebp
jmp 0x406569
xor eax, eax
mov ecx, dword [esp + 0x4c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4ac]
xor ecx, esp
call fcn.0040b218
add esp, 0x4bc
ret