joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5839c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5f63b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x6bfe40], 0
mov ebx, dword [ebp + 0xc]
je 0x405642
call fcn.004285d4
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4055f0
push 0x80004005
call fcn.00404b40
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
push ebx
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push str.AutoClose::Start._HWD:__x__Timeout:__i
push eax
mov dword [ebp - 4], 0
call fcn.004038c0
mov esi, dword [ebp + 0xc]
add esp, 0x10
mov ecx, esi
call fcn.00401270
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405642
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jle 0x405687
mov eax, dword [ebp + 8]
test eax, eax
je 0x405687
push dword [edi + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 4
push 0
push 0
push edi
push 0x405430
call fcn.0042b950
mov dword [edi + 8], eax
test eax, eax
jne 0x40569d
cmp byte [0x6bfe40], al
je 0x405687
mov ecx, str.Thread_could_not_created____exit
call fcn.00401270
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [eax + 0x28], 0
mov eax, dword [edi + 8]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4056d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00434077
Function at 0x406020
Capabilities:
Copy file
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x5f63b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov ebx, ecx
call fcn.005502f0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.005502f0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x406234
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x5c18e0
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
je 0x406234
lea eax, [ebp - 0x620]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x406103
push 0x5c18e0
lea eax, [ebp - 0x620]
push eax
call esi
push 0
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4060f3
lea eax, [ebp - 0x620]
jmp 0x40611c
cmp byte [0x6bfe40], 0
je 0x406116
mov ecx, str.Copy_kernel32_to_temp_folder_failed.
jmp 0x406111
cmp byte [0x6bfe40], 0
je 0x406116
mov ecx, str.Cannot_get_temp_folder.
call fcn.00401270
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call esi
push 0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x406224
push edi
call fcn.004278a4
add esp, 4
mov esi, eax
push esi
push edi
push 0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4061f7
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x624]
push eax
push 0x5c18dc
push esi
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x624], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4061ca
mov ecx, dword [ebp - 0x624]
push esi
movzx eax, word [ecx + 0xa]
mov dword [ebx + 0xc], eax
movzx eax, word [ecx + 8]
mov dword [ebx + 0x10], eax
movzx eax, word [ecx + 0xe]
mov dword [ebx + 0x14], eax
call fcn.004278ad
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054cf7e
mov esp, ebp
pop ebp
ret
cmp byte [0x6bfe40], 0
je 0x40620a
mov ecx, str.Query_file_version_failed_
call fcn.00401270
push esi
call fcn.004278ad
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054cf7e
mov esp, ebp
pop ebp
ret
cmp byte [0x6bfe40], 0
je 0x40620a
mov ecx, str.Cannot_get_kernel32_file_version_information_
call fcn.00401270
push esi
call fcn.004278ad
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054cf7e
mov esp, ebp
pop ebp
ret
cmp byte [0x6bfe40], 0
je 0x406247
mov ecx, str.Cannot_get_kernel32_file_version_size_
jmp 0x406242
cmp byte [0x6bfe40], 0
je 0x406247
mov ecx, str.Open_kernel32_file_failed_
call fcn.00401270
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054cf7e
mov esp, ebp
pop ebp
ret
Function at 0x408870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5f63b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
cmp byte [0x6bfe40], 0
je 0x4088ad
mov ecx, str.CNeverShowMeAgain::SetNeverShowMeAgain
call fcn.00401270
push 0x5c1a78
lea ecx, [ebp - 0x10]
call fcn.004042e0
or edi, 0xffffffff
mov dword [ebp - 4], 0
test bl, bl
je 0x408920
lea ecx, [ebp - 0x14]
call fcn.00408550
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00403f00
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4088fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x408920
cmp byte [0x6bfe40], 0
je 0x408919
mov ecx, str.System_Key_is_Empty___error
call fcn.00401270
xor bl, bl
jmp 0x408a55
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
push 0x2001f
push 0
push 0
push str.SoftwareNeroSharedNeroInfo
push SysReAllocString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00409e90
mov esi, dword [ebp - 0x20]
test eax, eax
je 0x408976
cmp byte [0x6bfe40], 0
je 0x408a48
mov ecx, str.Key_could_not_be_created___error
jmp 0x408a43
mov eax, dword [ebp - 0x10]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x408a35
lea edx, [eax + 2]
jmp 0x408990
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408990
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x10]
push 1
push 0
push 0x5c1938
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x408a35
cmp byte [0x6bfe40], al
je 0x408a31
call fcn.004285d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4089e2
push 0x80004005
call fcn.00404b40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str.SetNeverShowMeAgain_User_Value:__S
push eax
call fcn.004038c0
mov esi, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
call fcn.00401270
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408a2e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
mov bl, 1
jmp 0x408a4a
cmp byte [0x6bfe40], 0
je 0x408a48
mov ecx, str.Value_could_not_be_written___error
call fcn.00401270
xor bl, bl
test esi, esi
je 0x408a55
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x408a76
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409dd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x409de5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x409df0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409df0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40b980
Capabilities:
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x584100
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push esi
push edi
mov eax, dword [0x5f63b0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x6bfe40], 0
je 0x40b9c3
mov ecx, str.CTaskShedulerHandlerImplementaion_V2::Connect
call fcn.00401270
add edi, 4
push edi
push 0x5c25b0
push 0x17
push 0
push 0x5c25e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40ba09
cmp byte [0x6bfe40], 0
je 0x40b9f2
mov ecx, str.CoCreateInstance_failed
call fcn.00401270
xor al, al
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x44]
xorps xmm0, xmm0
push eax
movdqa xmmword [esp + 0x48], xmm0
call esi
mov dword [esp + 0x90], 0
movdqa xmm0, xmmword [esp + 0x44]
movdqa xmmword [esp + 0x54], xmm0
lea eax, [esp + 0x34]
xorps xmm0, xmm0
push eax
movdqa xmmword [esp + 0x38], xmm0
call esi
movdqa xmm0, xmmword [esp + 0x34]
movdqa xmmword [esp + 0x64], xmm0
lea eax, [esp + 0x24]
xorps xmm0, xmm0
push eax
movdqa xmmword [esp + 0x28], xmm0
call esi
movdqa xmm0, xmmword [esp + 0x24]
movdqa xmmword [esp + 0x74], xmm0
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
movdqa xmmword [esp + 0x18], xmm0
call esi
mov byte [esp + 0x90], 3
movdqa xmm0, xmmword [esp + 0x54]
mov ecx, dword [edi]
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
sub esp, 0x10
movq qword [eax], xmm0
movsd xmm0, qword [esp + 0x7c]
movq qword [eax + 8], xmm0
movdqa xmm0, xmmword [esp + 0x84]
mov eax, esp
sub esp, 0x10
movq qword [eax], xmm0
movsd xmm0, qword [esp + 0x9c]
movq qword [eax + 8], xmm0
movdqa xmm0, xmmword [esp + 0xa4]
mov eax, esp
sub esp, 0x10
movq qword [eax], xmm0
movsd xmm0, qword [esp + 0xbc]
movq qword [eax + 8], xmm0
movdqa xmm0, xmmword [esp + 0x54]
mov eax, esp
push ecx
movq qword [eax], xmm0
movsd xmm0, qword [esp + 0x60]
movq qword [eax + 8], xmm0
call dword [edx + 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, eax
lea eax, [esp + 0x14]
push eax
call esi
lea eax, [esp + 0x24]
push eax
call esi
lea eax, [esp + 0x34]
push eax
call esi
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x94], 0xffffffff
call esi
test edi, edi
jns 0x40bb63
cmp byte [0x6bfe40], 0
je 0x40b9f2
mov ecx, str.Connect_failed
call fcn.00401270
xor al, al
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x6bfe40], 0
je 0x40bb76
mov ecx, 0x5c1f48
call fcn.00401270
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40dae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5847b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5f63b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0
push 0
push 0x2001f
push 0
push 0
push str.SoftwareNeroSharedNeroInfo
push SysReAllocString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00409e90
mov esi, dword [ebp - 0x18]
test eax, eax
jne 0x40db9e
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40db8e
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40db60
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
push 1
push 0
push str.LocalTime
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40dbb1
cmp byte [0x6bfe40], 0
je 0x40dbb1
mov ecx, str.LocalTime_value_could_not_be_written_
jmp 0x40dbac
cmp byte [0x6bfe40], 0
je 0x40dbb1
mov ecx, str.Create_NeroInfo_key_failed___LocalTime
call fcn.00401270
test esi, esi
je 0x40dbbc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dbe0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40dbf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0x20019
push str.SoftwareNeroSharedNeroInfo
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.00404070
mov edi, dword [ebp - 0x18]
test eax, eax
jne 0x40dc5f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dc5f
cmp dword [ebp - 0xc], 4
cmove esi, dword [ebp - 4]
test edi, edi
je 0x40dc6a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dc87
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40dc90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584750
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5f63b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push 0
push 0x2001f
push 0
push 0
push str.SoftwareNeroSharedNeroInfo
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00409e90
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x40dd2a
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40dd3d
cmp byte [0x6bfe40], 0
je 0x40dd3d
mov ecx, str.Interval_value_could_not_be_written_
jmp 0x40dd38
cmp byte [0x6bfe40], 0
je 0x40dd3d
mov ecx, str.Create_NeroInfo_key_failed___Interval
call fcn.00401270
test esi, esi
je 0x40dd48
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40dd6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40e663
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5f63b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0
jl 0x40e6a2
call fcn.0040e578
push 7
lea ecx, [ebp - 0x14]
push ecx
movzx eax, ax
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40e6a2
lea eax, [ebp - 0x14]
push eax
call fcn.0054fc6a
pop ecx
jmp 0x40e6a4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054cf7e
leave
ret
Function at 0x40ebe5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5f63b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x40ec41
xor eax, eax
cmp word [esi], ax
je 0x40ec41
push eax
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40ec41
push eax
call fcn.00550818
mov edi, eax
pop ecx
test edi, edi
je 0x40ec41
push edi
push dword [ebp - 0x18]
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40ec64
push edi
call fcn.005507e0
pop ecx
xor eax, eax
movzx ecx, ax
mov eax, ecx
shl ecx, 0x10
or eax, ecx
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0054cf7e
leave
ret
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5c18dc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ec3a
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea ecx, [ebp - 0x10]
call fcn.004103b2
push edi
call fcn.005507e0
lea esi, [ebp - 0x10]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsw word es:[edi], word [esi]
jmp 0x40ec53

Function at 0x413ec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f63b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.005502f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x413f2d
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.004042e0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054cf7e
mov esp, ebp
pop ebp
ret
call fcn.004285d4
mov ecx, eax
test ecx, ecx
je 0x413f53
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0054cf7e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b40
int3
Function at 0x4145b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572400
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5f63b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.00413ec0
add esp, 4
mov eax, dword [ebp - 0x10]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 1
jne 0x414602
xor esi, esi
jmp 0x4146a7
push 0x5c18dc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403ce0
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.004080a0
push str..lnk
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00403ce0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
add esp, 0x24
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41465c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41467c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
neg eax
sbb esi, esi
add edx, 0xfffffff0
neg esi
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4146a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4146c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4146e8
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414e60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x414e93
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
pop ebp
ret

Function at 0x415bba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
call fcn.00415bb6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x415bd9
mov eax, dword [ebp + 8]
inc esi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x417497
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ecx, ecx
push 2
mov edi, 0x410
pop edx
xor ebx, ebx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004278a4
mov esi, eax
pop ecx
test esi, esi
jne 0x4174da
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004278a4
pop ecx
mov esi, eax
push esi
lea eax, [edi - 1]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [edi + edi]
xor edx, edx
mov word [ecx + esi - 2], dx
test eax, eax
je 0x41750e
push esi
cmp eax, edi
jle 0x417503
mov edi, ecx
call fcn.004278ad
mov esi, ebx
jmp 0x4174bc
mov ecx, dword [ebp + 8]
xor ebx, ebx
inc ebx
call fcn.00417847
test esi, esi
je 0x417519
push esi
call fcn.004278ad
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x418742
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0xffffffff
jne 0x418766
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x418797
push dword [esi + 0x10]
mov eax, dword [ecx]
push dword [esi + 8]
push 0x43
push str.CPortableWinPFile.cpp
call dword [eax + 4]
jmp 0x418797
push dword [esi + 0xc]
and dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x418797
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], eax
test ecx, ecx
je 0x418797
push dword [esi + 0x10]
mov edx, dword [ecx]
push eax
push 0x50
push str.CPortableWinPFile.cpp
call dword [edx + 4]
mov eax, dword [esi + 8]
pop esi
ret

Function at 0x4187e5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x4187fa
xor eax, eax
jmp 0x418894
push ebx
xor ebx, ebx
cmp dword [esi + 0xc], 0xffffffff
push edi
sete bl
test ebx, ebx
je 0x418825
mov eax, dword [esi]
mov edi, dword [esi + 4]
push 1
call dword [eax + 0x34]
mov dword [esi + 4], edi
test eax, eax
je 0x418825
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
jmp 0x418892
xor edi, edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41885f
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor ecx, ecx
add ecx, dword [ebp - 8]
adc edx, edi
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x418885
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], eax
test ecx, ecx
je 0x418882
push dword [esi + 0x10]
mov edx, dword [ecx]
push eax
push 0x87
push str.CPortableWinPFile.cpp
call dword [edx + 4]
mov edi, dword [esi + 8]
test ebx, ebx
je 0x418890
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4