joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a05e
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x14
push 0x4e0be8
call fcn.00499fa4
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
jne 0x41a0b2
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4f1020
call sub.MSVCR80.dll__local_unwind4
add esp, 0xc
xor eax, eax
jmp 0x41a131
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x41a09b
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x41a09b
cmp dword [ebp - 0x1c], esi
ja 0x41a0df
cmp edi, 0x200000
jbe 0x41a0e4
mov edi, 0x200000
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x41a09b
push esi
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a09b
cmp dword [ebp - 0x1c], edi
jne 0x41a09b
push edi
push dword [ebp - 0x20]
push esi
call fcn.00419f66
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x41a09b
mov dword [ebp - 4], 0xfffffffe
call fcn.0041a13c
mov eax, dword [ebp - 0x1c]
call fcn.00499fe9
ret

Function at 0x41ab4b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41abae
cmp dword [ebp + 0xc], 1
je 0x41ab87
cmp dword [ebp + 0xc], 2
je 0x41ab87
push 0xd
pop eax
jmp 0x41abae
test edi, edi
mov eax, dword [ebp - 4]
je 0x41aba8
test eax, eax
je 0x41aba4
test al, 1
jne 0x41ab82
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x41aba8
jmp 0x41ab82
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x41acb4
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4b3fb7
call fcn.004afcf2
mov esi, ecx
call fcn.0041aa68
push dword [esi]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0041ade1
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
je 0x41add3
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41add0
lea eax, [ebp - 0x24]
mov ebx, vtable.Gdiplus::PrivateFontCollection.0
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
call sub.gdiplus.dll_GdipNewPrivateFontCollection
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
cmp eax, edi
jle 0x41adbd
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x1c], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x41ad86
mov ecx, dword [ebp - 0x14]
push 0x401190
push 0x41b070
push ecx
lea edi, [eax + 4]
push 8
push edi
mov dword [eax], ecx
call fcn.00499c16
mov eax, edi
jmp 0x41ad88
xor eax, eax
test eax, eax
mov byte [ebp - 4], 1
mov dword [esi + 4], eax
je 0x41adbd
push eax
push dword [ebp - 0x14]
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x28]
call fcn.0041b07a
test eax, eax
jne 0x41adb8
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x41adb8
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
jmp 0x41adbd
call fcn.0041aa68
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
call sub.gdiplus.dll_GdipDeletePrivateFontCollection
mov dword [ebp - 0x28], vtable.Gdiplus::FontCollection.0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040113b
call fcn.004afdca
ret

Function at 0x41afa3
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp + 0x194], eax
xor eax, eax
push 0x20e
push eax
mov dword [ebp - 0x80], eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.0040136c
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
mov eax, esi
call fcn.00499bb9
add ebp, 0x198
leave
ret
Function at 0x42f865
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 0xc]
sub edi, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
mov edx, dword [esi]
push 1
xor ebx, ebx
push edi
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x74]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x144]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x42f99e
push eax
call fcn.0041c863
mov ebx, eax
test ebx, ebx
pop ecx
je 0x42f96b
mov eax, dword [ebx + 0x14]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x42f8df
lea eax, [ebx + 0x18]
push eax
call fcn.0041d240
movzx eax, word [ebp + 0xc]
movzx edi, di
shl edi, 0x10
or edi, eax
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.0040e874
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x144], eax
jne 0x42f935
mov ecx, dword [ebx + 0x44]
xor eax, eax
cmp ecx, eax
je 0x42f927
cmp word [ecx], ax
je 0x42f927
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x42f96b
cmp dword [ebx + 0x14], eax
je 0x42f96b
mov dword [ebp - 4], 1
jmp 0x42f96b
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x42f954
lea eax, [ebx + 0x18]
push eax
call fcn.0041d240
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.0040e874
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0x144], ecx
je 0x42f97c
push 0x67
jmp 0x42f997
cmp dword [ebp - 8], ecx
je 0x42f99e
cmp dword [ebp - 0xc], ecx
je 0x42f99e
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0x140]
cmp edx, dword [eax]
jne 0x42f995
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.0042f482
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x431ad1
Capabilities:
Print debug messages

Disassembly:
push 0x10
mov eax, 0x4b3ddf
call fcn.004afcf2
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.0040136c
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.00417742
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040113b
call fcn.004afdca
ret 4
Function at 0x436343
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
jne 0x436382
mov eax, dword [0x4f9b74]
cmp eax, esi
je 0x43636d
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
jmp 0x436370
mov dword [ebp + 8], esi
cmp dword [ebp + 8], esi
jne 0x436382
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x4363ac
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp + 8], eax
je 0x4363ac
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4363ac
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
mov dword [ebx + 0x438], esi
call fcn.00436b0d
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x4363d9
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x4364f3
mov edx, eax
call fcn.0040e8de
cmp dword [ebp + 0xc], esi
mov dword [esp + 0x1c], eax
jne 0x4363f1
mov eax, dword [ebp + 8]
call fcn.0045f29e
cmp dword [ebx + 0x428], esi
je 0x436498
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp edi, dword [esp + 0xc]
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x436441
push 1
push dword [esp + 0x18]
push dword [esp + 0x14]
call edi
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
je 0x436479
push esi
push eax
push dword [esp + 0x14]
call edi
push 0xffffffffffffffec
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
je 0x436498
push esi
push esi
push 0xf
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push 0x97
lea edi, [ebx + 4]
push edi
mov dword [ebx + 0x438], esi
call fcn.00405d31
cmp dword [esp + 0x18], esi
je 0x4364dc
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp + 8], esi
je 0x4364dc
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi]
jne 0x4364dc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x1c]
call fcn.0040e8de
push dword [edi]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x43c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x438904
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0043897c
push dword [esi]
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x1c], bx
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xb
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push 0x4c8bd8
push dword [ebp - 0x20]
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x438961
push 0xa
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll_wcstoul]
add esp, 0xc
mov ebx, eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040113b
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00499bb9
leave
ret

Function at 0x438eac
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, eax
xor eax, eax
mov byte [esi], al
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
jb 0x438ee3
mov ecx, dword [ecx + 4]
jmp 0x438ee6
add ecx, 4
push ecx
call fcn.00438fa3
mov eax, esi
pop esi
ret
Function at 0x43bfaa
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0xfc
lea ebp, [esp - 4]
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp + 0xfc], eax
push 0xb0
mov eax, 0x4b6505
call fcn.004afcf2
lea eax, [ebp + 0x6c]
mov edi, ecx
push eax
mov dword [ebp - 0x18], edi
call fcn.00439c42
and dword [ebp - 4], 0
mov ecx, 0x4f7c54
lea esi, [ebp + 0xd8]
call fcn.0040144e
mov dword [ebp - 4], 1
call fcn.0043d186
mov ecx, dword [eax]
lea edx, [ebp + 0x6c]
push edx
push eax
call dword [ecx + 0xc]
add edi, 0x70
mov eax, esi
call fcn.0040ecd7
mov edi, dword [edi]
cmp dword [edi - 0xc], 0
je 0x43c163
push edi
lea esi, [ebp - 0xbc]
call fcn.004031e1
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.004035d9
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 4
cmp dword [ebp - 0xbc], eax
je 0x43c059
push dword [ebp - 0xbc]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [ebp - 0x38]
lea eax, [ebp]
call fcn.00438eac
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ebx, [ebp + 0xe0]
lea ecx, [ebp]
call fcn.00439707
mov byte [ebp - 4], 5
cmp dword [ebp + 0xf8], 0x10
mov esi, dword [ebp + 0xe4]
jae 0x43c0a0
lea esi, [ebp + 0xe4]
mov eax, dword [0x4f7c54]
mov ecx, 0x4f7c54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 6
call fcn.00401419
test al, al
jne 0x43c0cf
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.00435ae9
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.0044027b
mov ebx, dword [ebp - 0x18]
lea edi, [ebx + 0x74]
mov byte [ebp - 4], 8
call fcn.0040ecd7
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040113b
push edi
call fcn.004402b4
mov dword [esp], str.head_
push edi
call fcn.00401797
push dword [edi]
call fcn.00440387
mov esi, dword [ebp - 0x10]
pop ecx
push dword [esi - 0xc]
mov eax, edi
push esi
call fcn.004017bb
push str..png
push edi
call fcn.00401797
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43c140
call fcn.0043c1a1
lea eax, [esi - 0x10]
call fcn.0040113b
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040113b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xd8]
add eax, 0xfffffff0
call fcn.0040113b
lea eax, [ebp + 0x6c]
push eax
call fcn.0043a53d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xfc]
xor ecx, ebp
call fcn.00499bb9
add ebp, 0x100
leave
ret
Function at 0x43c1a1
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 8
mov eax, 0x4b64a1
call fcn.004afcf2
cmp dword [ebx + 0x68], 0
je 0x43c299
mov eax, dword [0x4f7c54]
mov ecx, 0x4f7c54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
lea esi, [ebx + 0x74]
mov eax, esi
lea edi, [ebp - 0x14]
call fcn.0040ecd7
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
jne 0x43c1f1
and dword [ebp - 0x10], 0
jmp 0x43c1fe
push edi
call fcn.00439b67
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x43c223
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43c223
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43c223
test al, 0x10
jne 0x43c223
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebx + 0x7c], 3
jne 0x43c255
push 1
push 0x15f92
mov eax, ebx
call fcn.0043c382
push 0
push 0x15f95
mov eax, ebx
call fcn.0043c382
push 0
push 0x15f94
mov eax, ebx
call fcn.0043c382
jmp 0x43c285
mov eax, dword [ebx + 0x78]
cmp eax, 2
je 0x43c271
cmp eax, 3
je 0x43c271
push dword [ebp - 0x10]
mov edi, ebx
call fcn.0043c29f
mov edi, dword [ebp - 0x14]
jmp 0x43c285
cmp dword [ebp - 0x10], 0
je 0x43c285
push dword [ebp - 0x10]
push 0x1637a
push ebx
call fcn.0043c3d0
push 0x16760
mov esi, ebx
call fcn.0043c362
lea eax, [edi - 0x10]
call fcn.0040113b
call fcn.004afdca
ret

Function at 0x440387
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x4b0c32
call fcn.004afcf2
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040136c
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4403c7
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, esi
call fcn.004afdca
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4403b1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x4403b1
lea ecx, [ebp - 0x10]
call fcn.0044033e
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x4403fe
xor esi, esi
jmp 0x4403b4
push eax
call fcn.00440387
test eax, eax
pop ecx
je 0x4403fa
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4403b1
call edi
cmp eax, ebx
jne 0x4403fa
jmp 0x4403b1
Function at 0x4404b1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x44053a
push ebx
call fcn.004997e3
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44052b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4c8b34
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44052b
cmp dword [ebp - 0xc], ebx
je 0x44052b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x44053a
push dword [ebp - 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x4406d1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x440734
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
cmp eax, edi
je 0x4407ea
mov eax, dword [ebp - 0x98]
dec eax
je 0x4407d6
dec eax
jne 0x4407ea
mov eax, dword [ebp - 0xa4]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x440783
cmp dword [ebp - 0xa0], edx
jne 0x44076d
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
add eax, 8
jmp 0x4407d2
cmp dword [ebp - 0xa0], edi
jne 0x4407bb
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x4407d2
cmp eax, 5
jne 0x4407ad
cmp dword [ebp - 0xa0], 2
jne 0x440794
push eax
jmp 0x4407b4
cmp dword [ebp - 0xa0], 1
jne 0x4407a1
mov edi, ecx
jmp 0x4407ea
cmp dword [ebp - 0xa0], edi
jne 0x4407ea
push 3
jmp 0x4407b4
cmp eax, 4
ja 0x4407b7
push 4
pop edi
jmp 0x4407ea
cmp eax, ecx
jb 0x4407ea
cmp dword [ebp - 0xa0], 2
jae 0x4407c8
cmp eax, ecx
jbe 0x4407ea
cmp byte [ebp + 0x72], dl
jne 0x4407ea
call fcn.00440616
mov edi, eax
jmp 0x4407ea
mov eax, dword [ebp - 0x9c]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00499bb9
add ebp, 0x78
leave
ret
Function at 0x441274
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x434
lea ebp, [esp - 4]
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp + 0x434], eax
push 0x58
mov eax, 0x4b04ff
call fcn.004afcf2
mov eax, dword [ebp + 0x440]
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x10], ecx
jb 0x4412ac
mov eax, dword [eax + 4]
jmp 0x4412af
add eax, 4
lea ecx, [ebp + 0x228]
push ecx
push 0
push 0x4c8bd8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4412cf
xor al, al
jmp 0x441384
mov esi, 0x104
push esi
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edi, eax
cmp edi, esi
ja 0x44133a
test edi, edi
je 0x44133a
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push edi
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
mov dword [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00441186
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004411cf
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp]
jmp 0x441378
lea eax, [ebp + 0x228]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00441186
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004411cf
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x434]
xor ecx, ebp
call fcn.00499bb9
add ebp, 0x438
leave
ret