joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404225
xor eax, eax
jmp 0x4042b2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 2
push 0x400
mov edx, dword [ebp + 8]
push edx
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40429d
push 0x4d21b8
push 0x4e7f50
call fcn.00427440
add esp, 8
push str.CryptQueryObject_failed.
push 0x4e7f50
call fcn.00427440
add esp, 8
xor eax, eax
jmp 0x4042b2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret
Function at 0x40a000
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x40a019
cmp dword [ebp + 0x14], 0
jne 0x40a019
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 8], 0
je 0x40a030
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp + 8], 0
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0
je 0x40a050
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x40a070
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xc], 0
je 0x40a090
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], 0
pop ebp
ret
Function at 0x41fc90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
push 0x14
lea eax, [ebp - 0x18]
push eax
call fcn.0041fde0
add esp, 8
push 1
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x41fcda
push str.InitializeSecurityDescriptor_failed.
call fcn.00425270
add esp, 4
call fcn.00425590
xor eax, eax
jmp 0x41fdcf
push 0
push 0
push 1
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x41fd07
push str.SetSecurityDescriptorDacl_failed.
call fcn.00425270
add esp, 4
call fcn.00425590
xor eax, eax
jmp 0x41fdcf
push 0xc
lea eax, [ebp - 0x24]
push eax
call fcn.0041fde0
add esp, 8
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
push eax
push 0
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp - 0x28]
mov dword [edx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
push edx
push str.hMutex___d__dwError___d_n
call fcn.00425270
add esp, 0xc
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0
jne 0x41fd74
call fcn.00425590
xor eax, eax
jmp 0x41fdcf
mov dword [ebp - 0x34], 0
push 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41fd9c
cmp dword [ebp - 0x2c], 0x80
jne 0x41fdb9
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
push ecx
push str.GetOwnership_Success___d_
call fcn.00425270
add esp, 8
mov eax, 1
jmp 0x41fdcf
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
push str.GetOwnership_Fail___d____Another_process_is_processing_update.
call fcn.00425270
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret
Function at 0x420b60
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0xc00000e5
mov dword [ebp - 0x2c], 0
cmp dword [ebp + 8], 0
jne 0x420bb8
mov eax, 0xc000000d
jmp 0x420d47
push 0
push 0x4e5b34
push 0x4e5b2c
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x420bdc
jmp 0x420d0a
push 0
push 0x20
push 0x4e5b0c
push 0x4e5af0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x420c02
jmp 0x420d0a
push 0
lea edx, [ebp - 8]
push edx
push 4
lea eax, [ebp - 0x24]
push eax
push 0x4e5ad4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x420c2b
jmp 0x420d0a
push 0
lea edx, [ebp - 8]
push edx
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x4e5abc
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x420c54
jmp 0x420d0a
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00420e40
add esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x420c77
mov eax, 0xc0000017
jmp 0x420d47
mov ecx, dword [ebp - 0x10]
shr ecx, 3
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x200]
cmp eax, dword [ebp - 0x30]
jae 0x420c97
mov dword [ebp - 0x28], 0xc0000023
jmp 0x420d0a
push 0
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x420cc2
jmp 0x420d0a
push 1
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x404]
push edx
mov eax, dword [ebp + 8]
add eax, 0x204
push eax
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x420d02
jmp 0x420d0a
xor ecx, ecx
jne 0x420bb8
cmp dword [ebp - 0x1c], 0
je 0x420d1d
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x20], 0
je 0x420d2f
mov eax, dword [ebp - 0x20]
push eax
call fcn.00420e80
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x420d44
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret
Function at 0x424b50
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x424b6b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jae 0x424b8f
imul ecx, dword [ebp + 0xc], 0x6c078965
add ecx, 0x269ec3
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + edx*4], ecx
jmp 0x424b62
mov esp, ebp
pop ebp
ret 8
Function at 0x424fe0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
push 0
lea eax, [ebp - 0x10c]
push eax
call fcn.00487cb0
add esp, 0xc
push 0x20a
push 0
lea ecx, [ebp - 0x318]
push ecx
call fcn.00487cb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x344], eax
xor edx, edx
mov dword [ebp - 0x328], edx
mov dword [ebp - 0x324], edx
mov dword [ebp - 0x320], edx
mov dword [ebp - 0x31c], edx
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [0x4e5a30], 0xffffffff
jne 0x425069
cmp dword [0x4e7f44], 0
jne 0x425069
jmp 0x42525c
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x338], ecx
mov edx, dword [ebp - 0x338]
push edx
mov eax, dword [ebp + 8]
push eax
push 0xffffffffffffffff
push 0x105
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00425670
add esp, 0x14
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x338], 0
cmp dword [0x4e7f3c], 0
jne 0x4250b7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x4e7f3c], eax
cmp dword [0x4e7f44], 0
je 0x425164
lea edx, [ebp - 0x10c]
push edx
movzx eax, word [ebp - 0x31c]
push eax
movzx ecx, word [ebp - 0x31e]
push ecx
movzx edx, word [ebp - 0x320]
push edx
movzx eax, word [ebp - 0x322]
push eax
movzx ecx, word [ebp - 0x326]
push ecx
movzx edx, word [ebp - 0x328]
push edx
push 0x4d4964
mov eax, dword [0x4e7f3c]
push eax
push 0x4d4a2c
push 0xffffffffffffffff
lea ecx, [ebp - 0x318]
push ecx
call fcn.00425610
add esp, 0x30
lea edx, [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x4e7f40], 0
je 0x425164
lea eax, [ebp - 0x318]
push eax
push 0x4d4b0c
push 2
call fcn.00497c40
add esp, 4
push eax
call fcn.004257d0
add esp, 0xc
push 2
call fcn.00497c40
add esp, 4
push eax
call fcn.00497f94
add esp, 4
cmp dword [0x4e5a30], 0xffffffff
je 0x42524f
mov dword [ebp - 0x32c], 0
lea ecx, [ebp - 0x10c]
push ecx
movzx edx, word [ebp - 0x31c]
push edx
movzx eax, word [ebp - 0x31e]
push eax
movzx ecx, word [ebp - 0x320]
push ecx
movzx edx, word [ebp - 0x322]
push edx
movzx eax, word [ebp - 0x326]
push eax
movzx ecx, word [ebp - 0x328]
push ecx
push 0x4d4cbc
mov edx, dword [0x4e7f3c]
push edx
push 0x4d4d84
push 0xffffffffffffffff
lea eax, [ebp - 0x318]
push eax
call fcn.00425610
add esp, 0x30
lea ecx, [ebp - 0x318]
mov dword [ebp - 0x334], ecx
mov edx, dword [ebp - 0x334]
add edx, 1
mov dword [ebp - 0x33c], edx
mov eax, dword [ebp - 0x334]
mov cl, byte [eax]
mov byte [ebp - 0x32d], cl
add dword [ebp - 0x334], 1
cmp byte [ebp - 0x32d], 0
jne 0x4251ef
mov edx, dword [ebp - 0x334]
sub edx, dword [ebp - 0x33c]
mov dword [ebp - 0x340], edx
push 0
lea eax, [ebp - 0x32c]
push eax
mov ecx, dword [ebp - 0x340]
push ecx
lea edx, [ebp - 0x318]
push edx
mov eax, dword [0x4e5a30]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [0x4e5a30]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [ebp - 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret
Function at 0x4258e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 1
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
or ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x425930
xor eax, eax
jmp 0x42597e
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x425963
xor eax, eax
jmp 0x42597e
cmp dword [ebp - 8], 1
je 0x425979
cmp dword [ebp - 8], 7
je 0x425979
cmp dword [ebp - 8], 2
je 0x425979
xor eax, eax
jmp 0x42597e
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret 0x18

Function at 0x425990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
or edx, 0xf003f
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4259fb
xor eax, eax
jmp 0x425a33
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x425a2e
xor eax, eax
jmp 0x425a33
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret 0x18
Function at 0x425a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x108], 4
mov dword [ebp - 0x10c], 0x100
mov dword [ebp - 0x118], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0x18]
or ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x425acc
xor eax, eax
jmp 0x425b3f
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x114], 0
je 0x425b14
xor eax, eax
jmp 0x425b3f
cmp dword [ebp - 0x108], 4
je 0x425b21
xor eax, eax
jmp 0x425b3f
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret 0x14

Function at 0x425b50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 0x14]
or edx, 0xf003f
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x425bad
xor eax, eax
jmp 0x425bd7
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x425bd2
xor eax, eax
jmp 0x425bd7
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret 0x10
Function at 0x425da0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x224], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jbe 0x425df7
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.00497fe8
add esp, 4
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x425e07
xor eax, eax
jmp 0x425fd2
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x234], 0
push 0x20a
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.00487cb0
add esp, 0xc
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x425e75
push str.GetFileVersionInfo___failed._n
call fcn.00425270
add esp, 4
jmp 0x425faa
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x425eab
push str.VerQueryValue_Translation___failed._n
call fcn.00425270
add esp, 4
jmp 0x425faa
mov dword [ebp - 0x228], 0
jmp 0x425ec6
mov eax, dword [ebp - 0x228]
add eax, 1
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x214]
shr ecx, 2
cmp dword [ebp - 0x228], ecx
jae 0x425faa
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x218], 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
movzx edx, word [ecx + eax*4 + 2]
push edx
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
movzx edx, word [ecx + eax*4]
push edx
push str.StringFileInfo_04x_04x_s
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.00425c60
add esp, 0x18
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x425f94
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0048b0bd
add esp, 0xc
test eax, eax
jne 0x425f92
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
push str.VerQueryValue__s_:__s_n
call fcn.00425270
add esp, 0xc
mov dword [ebp - 0x230], 1
jmp 0x425fa5
mov ecx, dword [ebp + 8]
push ecx
push str.VerQueryValue__s___failed._n
call fcn.00425270
add esp, 8
jmp 0x425eb7
cmp dword [ebp - 0x224], 0
je 0x425fcc
mov edx, dword [ebp - 0x224]
push edx
call fcn.0048c5e4
add esp, 4
mov dword [ebp - 0x224], 0
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret
Function at 0x427090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.00487cb0
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Panasonic
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x210]
call fcn.004271d0
movzx ecx, al
test ecx, ecx
jne 0x427106
xor al, al
jmp 0x4271c1
push str.UrNotice
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x210]
call fcn.004271d0
movzx ecx, al
test ecx, ecx
jne 0x427138
xor al, al
jmp 0x4271c1
push str.UNSvc.log
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 0x210]
cmp dword [ecx], 0xffffffff
je 0x427177
mov edx, dword [ebp - 0x210]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x210]
mov dword [ecx], 0xffffffff
push 0
push 0x20
push 4
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x210]
mov dword [ecx], eax
mov edx, dword [ebp - 0x210]
cmp dword [edx], 0xffffffff
jne 0x4271aa
xor al, al
jmp 0x4271c1
push 2
push 0
push 0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret

Function at 0x4271d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x427201
mov ecx, dword [ebp + 8]
push ecx
call fcn.00497ff4
add esp, 4
test eax, eax
je 0x427201
mov ecx, dword [ebp - 4]
call fcn.004276f0
xor al, al
jmp 0x427203
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x427210
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x4e500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x427233
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x427243
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 4]
test eax, eax
jne 0x427243
jmp 0x427428
push 0x105
push 0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00487cb0
add esp, 0xc
push 0x20a
push 0
lea edx, [ebp - 0x318]
push edx
call fcn.00487cb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x344], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xffffffffffffffff
push 0x105
lea eax, [ebp - 0x10c]
push eax
call fcn.00425670
add esp, 0x14
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x338], 0
cmp dword [0x4e7fbc], 0
jne 0x4272c9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x4e7fbc], eax
lea ecx, [ebp - 0x10c]
push ecx
push 0x4d928c
push 0x4d7bec
lea edx, [ebp - 0x318]
push edx
call fcn.004277d0
add esp, 0x10
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x427301
lea edx, [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x42741b
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x42741b
xor edx, edx
mov dword [ebp - 0x328], edx
mov dword [ebp - 0x324], edx
mov dword [ebp - 0x320], edx
mov dword [ebp - 0x31c], edx
mov dword [ebp - 0x32c], 0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x10c]
push ecx
movzx edx, word [ebp - 0x31c]
push edx
movzx eax, word [ebp - 0x31e]
push eax
movzx ecx, word [ebp - 0x320]
push ecx
movzx edx, word [ebp - 0x322]
push edx
movzx eax, word [ebp - 0x326]
push eax
movzx ecx, word [ebp - 0x328]
push ecx
push str.UNSvc
mov edx, dword [0x4e7fbc]
push edx
push 0x4d7c84
lea eax, [ebp - 0x318]
push eax
call fcn.004277d0
add esp, 0x2c
lea ecx, [ebp - 0x318]
mov dword [ebp - 0x334], ecx
mov edx, dword [ebp - 0x334]
add edx, 1
mov dword [ebp - 0x33c], edx
mov eax, dword [ebp - 0x334]
mov cl, byte [eax]
mov byte [ebp - 0x32d], cl
add dword [ebp - 0x334], 1
cmp byte [ebp - 0x32d], 0
jne 0x4273bc
mov edx, dword [ebp - 0x334]
sub edx, dword [ebp - 0x33c]
mov dword [ebp - 0x340], edx
push 0
lea eax, [ebp - 0x32c]
push eax
mov ecx, dword [ebp - 0x340]
push ecx
lea edx, [ebp - 0x318]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a792
mov esp, ebp
pop ebp
ret