joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41e55b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41e57f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41e59a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x423466
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4234a8
call fcn.00428c7d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4234a8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42349f
xor eax, eax
jmp 0x4234b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004234b6
pop edi
pop esi
pop ebx
ret 4
Function at 0x401240
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4535a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x43d618
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401279
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401279
push 0xc00
call eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00421c40
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x4012b6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x43d650
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421c2b
mov esp, ebp
pop ebp
ret

Function at 0x4029a2
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
push ebx
push ebx
push 0x43dbc8
call fcn.00413931
mov dword [esi + 0xc], eax
mov dword [eax + 0x44], 0x3f1
mov eax, dword [esi + 0xc]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, ebx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4029dc
cmp dword [eax + 0x20], ebx
jne 0x4029ec
cmp edi, 0x14
jge 0x4029ec
push 0x64
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4029d0
mov ecx, eax
pop edi
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x14], eax
pop esi
pop ebx
ret
Function at 0x402c88
Capabilities:
Get file version info

Disassembly:
push 0x40
mov eax, 0x439f88
call fcn.00422513
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.0040c06f
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x3c]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x402cf9
push dword [ebp + 0xc]
push str.Unable_to_get__s_file_version._n
push 0x455994
call fcn.004014f0
add esp, 0xc
mov ecx, 0x4558c8
call fcn.0040b2fe
push ebx
call fcn.0040c078
pop ecx
jmp 0x402dd2
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
push eax
push 0x43df30
push ebx
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x38]
push ebx
movzx eax, word [ecx + 0xa]
mov dword [ebp - 0x20], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x1c], eax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
mov dword [ebp - 0x14], eax
call fcn.0040c078
pop ecx
lea eax, [ebp - 0x40]
mov edi, 0x43e290
push eax
push edi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 8]
call fcn.00403273
mov ebx, 0x43d650
mov byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x34]
call fcn.004027aa
test eax, eax
je 0x402daf
lea esi, [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.004223e5
pop ecx
mov dword [esi], eax
lea ecx, [ebp + 8]
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x48]
push eax
call fcn.00403273
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040132a
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401856
push ebx
lea ecx, [ebp - 0x34]
lea esi, [esi + 4]
call fcn.004027aa
test eax, eax
jne 0x402d67
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004027ce
mov ecx, dword [ebp - 0x34]
mov edi, eax
neg edi
sbb edi, edi
lea ecx, [ecx - 0x10]
neg edi
call fcn.00401856
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401856
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, edi
call fcn.004224c2
ret 8
Function at 0x403b6d
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x43a1f0
call fcn.0042257f
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
call fcn.0040c667
push eax
lea ecx, [ebp - 0x220]
call fcn.004012cf
xor ebx, ebx
lea eax, [esi + 8]
push ebx
push 0x43ea1c
mov ecx, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], eax
call fcn.0040428c
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
mov byte [ebp - 4], 1
call edi
xor ecx, ecx
mov esi, eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c06f
mov ebx, eax
mov dword [ebp - 0x230], ebx
pop ecx
test ebx, ebx
je 0x403d8a
lea ecx, [esi + esi]
push ecx
push 0
push ebx
call fcn.00421c40
add esp, 0xc
push ebx
push esi
call edi
test eax, eax
setne al
test al, al
je 0x403d8a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00421c40
push 0x43ea34
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00422dc0
push ebx
call fcn.004223cc
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004223cc
add eax, 2
xor ecx, ecx
add esi, eax
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c06f
mov edi, eax
add esp, 0x24
mov dword [ebp - 0x22c], edi
test edi, edi
je 0x403cae
lea ecx, [esi + esi]
push ecx
push 0
push edi
call fcn.00421c40
push ebx
push esi
push edi
call fcn.00422dc0
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
call fcn.00422c57
add esp, 0x24
mov eax, dword [ebp - 0x224]
cmp eax, 0xffffffff
jne 0x403cef
mov ecx, dword [ebp - 0x234]
and dword [ebp - 0x224], 0
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x403ce6
lea eax, [ebp - 0x220]
push str.TRANSFORMS__
push eax
call fcn.004014f0
pop ecx
pop ecx
jmp 0x403d70
push eax
push edi
push str.TRANSFORMS__s_s_
jmp 0x403d61
mov ecx, dword [ebp - 0x228]
add eax, 0xa
push eax
push 0x22
call fcn.004042c6
mov esi, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x224], eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x403d2c
push ecx
lea eax, [ebp - 0x220]
push 0x43ea98
push eax
call fcn.004014f0
add esp, 0xc
jmp 0x403d70
mov ecx, dword [ebp - 0x228]
push eax
push 0x5c
call fcn.004042c6
cmp eax, 0xffffffff
jne 0x403d59
push ebx
push dword [esi]
lea eax, [ebp - 0x220]
push edi
push str._s_s__s_
push eax
call fcn.004014f0
add esp, 0x14
jmp 0x403d70
push dword [esi]
push edi
push str._s_s_
lea eax, [ebp - 0x220]
push eax
call fcn.004014f0
add esp, 0x10
mov esi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x228]
push esi
push dword [ebp - 0x224]
call fcn.00404b55
jmp 0x403db4
push ebx
call fcn.0040c078
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
jmp 0x403dc9
and dword [ebp - 4], 0
push edi
call fcn.0040c078
push ebx
call fcn.0040c078
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.00401856
call fcn.004224d1
ret 4
Function at 0x404be5
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x43a407
call fcn.004224e0
cmp dword [0x4559b4], 0
je 0x404c04
call fcn.00404d07
jmp 0x404d01
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00403e8d
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.00421c40
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x68], esi
push edi
push eax
call fcn.00421c40
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
add esp, 0x18
push dword [eax - 0xc]
call fcn.004017e6
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404c99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push str.InstallProduct:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x455994
call fcn.004014f0
add esp, 0x10
mov ecx, 0x4558c8
call fcn.0040b2fe
mov eax, dword [ebp - 0x10]
add eax, dword [0x4559e8]
mov dword [ebp - 0x10], eax
mov dword [0x455a3c], eax
jmp 0x404cf6
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
mov ecx, 0xbc2
cmp eax, ecx
jne 0x404cd0
cmp dword [0x4559a8], 0
jne 0x404ce1
mov dword [0x4559a8], 1
test eax, eax
je 0x404ce1
cmp eax, ecx
je 0x404ce1
add eax, dword [0x4559e8]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x455a3c], eax
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401856
call fcn.004224ae
ret
Function at 0x4057de
Capabilities:
Reference sql statements

Disassembly:
push 0x18
mov eax, 0x43a543
call fcn.004224e0
xor edi, edi
lea ecx, [ebp - 0x18]
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
mov dword [ebp - 0x24], edi
call fcn.0040194d
mov esi, 0x43ee40
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x18]
call fcn.00403dd6
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00403dff
push esi
lea ecx, [ebp - 0x18]
call fcn.00403dd6
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x405881
call fcn.0040c667
mov ecx, dword [ebp + 8]
push eax
call fcn.004012cf
cmp dword [ebp - 0x10], 0
je 0x405860
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
je 0x40586e
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, dword [ebp + 8]
jmp 0x405951
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x405844
cmp dword [ebp - 0x10], eax
je 0x40589b
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push dword [ebp - 0x14]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x405844
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], edi
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
push eax
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetStreamA
cmp dword [ebp - 0x1c], 0
je 0x405844
call fcn.0040c667
push eax
lea ecx, [ebp + 0x10]
call fcn.004012cf
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 0x10]
inc eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], eax
inc eax
push eax
call fcn.004017e6
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetStreamA
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.00401872
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
push esi
call fcn.004013b4
mov edi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, esi
mov dword [edi], eax
call fcn.00401856
cmp dword [ebp - 0x10], 0
je 0x405936
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
je 0x405944
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, edi
call fcn.004224ae
ret 0xc
Function at 0x405fb2
Capabilities:
Copy file

Disassembly:
push 0xa40
mov eax, 0x43a613
call fcn.00422513
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xa3c]
mov ebx, dword [ebp + 8]
and dword [ebp - 0xa4c], 0
push 0x43d650
mov dword [ebp - 0xa44], eax
call fcn.0040194d
and dword [ebp - 4], 0
xor eax, eax
mov esi, 0x206
mov word [ebp - 0xa38], ax
push esi
push eax
lea eax, [ebp - 0xa36]
push eax
call fcn.00421c40
xor eax, eax
push esi
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00421c40
xor eax, eax
push esi
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.00421c40
xor ecx, ecx
mov edi, 0x105
push 2
pop esi
mov eax, edi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c06f
mov dword [ebp - 0xa40], eax
xor ecx, ecx
mov eax, edi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c06f
mov esi, eax
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c06f
push 0x20a
push 0
push esi
mov edi, eax
call fcn.00421c40
push 0x20a
push 0
push edi
call fcn.00421c40
add esp, 0x48
push 0x20a
push 0
push dword [ebp - 0xa40]
call fcn.00421c40
mov eax, 0x104
push eax
push edi
push eax
push esi
push eax
push dword [ebp - 0xa40]
push eax
lea eax, [ebp - 0xa38]
push eax
push dword [ebp - 0xa44]
call fcn.0042322a
add esp, 0x30
test eax, eax
jne 0x406232
push esi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00422dc0
push edi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00422c57
lea eax, [ebp - 0xa48]
push eax
call fcn.00406270
add esp, 0x1c
push eax
lea ecx, [ebp - 0xa3c]
mov byte [ebp - 4], 1
call fcn.0040132a
mov ecx, dword [ebp - 0xa48]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00401856
push dword [ebp - 0xa3c]
call fcn.004223cc
pop ecx
test eax, eax
je 0x406232
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00421c40
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.00421c40
push dword [ebp - 0xa3c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00422dc0
push 0x43df30
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00422c57
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00422c57
push dword [ebp - 0xa44]
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00422dc0
add esp, 0x48
lea eax, [ebp - 0x218]
push eax
call fcn.0040425f
pop ecx
test eax, eax
jne 0x406232
lea eax, [ebp - 0x628]
push eax
call fcn.0040425f
pop ecx
test eax, eax
je 0x406232
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x406232
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00422dc0
add esp, 0xc
push dword [ebp - 0xa40]
call fcn.0040c078
push esi
call fcn.0040c078
push edi
call fcn.0040c078
add esp, 0xc
lea ecx, [ebp - 0x830]
push ecx
mov ecx, ebx
call fcn.0040194d
mov ecx, dword [ebp - 0xa3c]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, ebx
call fcn.004224c2
ret
Function at 0x406270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor eax, eax
push edi
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ecx, ecx
mov edi, eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c06f
mov esi, eax
pop ecx
test esi, esi
je 0x4062c3
lea ecx, [edi + edi]
push ecx
push 0
push esi
call fcn.00421c40
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
test al, al
je 0x4062c3
push esi
jmp 0x4062cc
push esi
call fcn.0040c078
pop ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.0040194d
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4066fc
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x43bf82
call fcn.004224e0
mov esi, ecx
push 0
lea edi, [esi + 8]
push str.http:__
mov ecx, edi
call fcn.0040428c
test eax, eax
je 0x406735
push 0
push str.ftp:__
mov ecx, edi
call fcn.0040428c
test eax, eax
jne 0x4067c8
push 0x2f
push dword [edi]
call fcn.00422e1c
pop ecx
pop ecx
test eax, eax
jne 0x406749
or eax, 0xffffffff
jmp 0x40674d
sub eax, dword [edi]
sar eax, 1
lea ebx, [eax + 1]
mov eax, dword [edi]
cmp ebx, dword [eax - 0xc]
jne 0x406760
mov ecx, edi
call fcn.00401451
jmp 0x4067c8
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 1
push edi
call fcn.0040132a
add esi, 0x14
push 0x104
mov ecx, esi
call fcn.004017e6
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00401872
push ebx
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00406bc8
mov eax, dword [eax]
mov ecx, esi
and dword [ebp - 4], 0
push dword [eax - 0xc]
push eax
call fcn.00403dff
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401856
push esi
mov ecx, edi
call fcn.0040132a
call fcn.004224ae
ret
Function at 0x4067ce
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x18
mov eax, 0x43a663
call fcn.004224e0
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.0040c667
push eax
lea ecx, [ebp - 0x10]
call fcn.004012cf
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0
push 0x25
mov edi, 0x104
push edi
call fcn.004017e6
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00401872
push 0x43f7c4
lea ecx, [ebp - 0x10]
call fcn.00403dd6
push edi
lea ecx, [ebx + 4]
call fcn.004017e6
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
push 0
push 0
push ecx
push eax
push edi
call sub.msi.dll_MsiMessageBoxW
push 0xffffffffffffffff
lea ecx, [ebx + 4]
call fcn.00401872
push str.Path
lea ecx, [ebp - 0x18]
call fcn.0040194d
push str.MSI_Updater
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040194d
push 0x455998
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x4558c8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409ae5
add ebx, 8
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.0040132a
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401856
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401856
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00401856
mov esi, dword [ebp - 0x20]
mov ecx, esi
call fcn.004066fc
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x406921
cmp dword [esi + 0xc], 0
jne 0x4068e9
push ebx
mov ecx, 0x4558c8
call fcn.004092bc
test eax, eax
jne 0x4068e9
mov ecx, ebx
call fcn.00401451
jmp 0x406921
call fcn.0040c667
push eax
lea ecx, [ebp - 0x18]
call fcn.004012cf
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push str.__quiet__norestart__overwriteoem
push eax
call fcn.004014f0
mov esi, dword [ebp - 0x18]
pop ecx
pop ecx
mov ecx, ebx
push dword [esi - 0xc]
push esi
call fcn.00403dff
lea ecx, [esi - 0x10]
call fcn.00401856
lea ecx, [edi - 0x10]
call fcn.00401856
call fcn.004224ae
ret
Function at 0x40692f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
mov esi, ecx
call fcn.00421c40
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], edi
push ebx
push eax
call fcn.00421c40
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
add esp, 0x18
push dword [eax - 0xc]
call fcn.004017e6
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4069b9
cmp dword [0x4559a4], ebx
je 0x4069a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push str.InstallUpdate:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x455994
call fcn.004014f0
add esp, 0x10
mov ecx, 0x4558c8
call fcn.0040b2fe
xor eax, eax
jmp 0x406a3a
mov esi, ebx
cmp dword [0x4559ac], ebx
jne 0x4069d3
push ebx
push ebx
push ebx
push ebx
push 0x43e294
call fcn.00413931
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x4069fe
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4069ed
mov eax, ebx
jmp 0x4069f0
mov eax, dword [eax + 0x20]
push ebx
push ebx
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor edi, edi
inc edi
test eax, eax
je 0x406a28
mov ecx, dword [0x4559a8]
cmp dword [ebp - 4], 0xbc2
cmove ecx, edi
mov dword [0x4559a8], ecx
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406a41
Capabilities:
Identify system language via api

Disassembly:
push 0xa0
mov eax, 0x43a689
call fcn.004224e0
mov esi, ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x406a5f
xor eax, eax
jmp 0x406ad8
cmp dword [esi + 0xc], 0
je 0x406ad5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
movzx ecx, ax
xor eax, eax
inc eax
cmp cx, ax
je 0x406a85
cmp ecx, 0xd
je 0x406a85
xor eax, eax
push 0
push eax
lea ecx, [ebp - 0xac]
call fcn.00401991
and dword [ebp - 4], 0
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040132a
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040132a
lea ecx, [ebp - 0xac]
call fcn.0040cf55
lea ecx, [ebp - 0xac]
lea esi, [eax - 1]
neg esi
sbb esi, esi
or dword [ebp - 4], 0xffffffff
call fcn.004019dc
lea eax, [esi + 1]
jmp 0x406ad8
xor eax, eax
inc eax
call fcn.004224ae
ret