joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401550
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x144
mov dword [ebp - 0x124], 0xa
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x116]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
movsx ebx, byte [ebp - 0x116]
lea eax, [ebp - 0x120]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
sub ebx, 0x41
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4015c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.00401550
mov dword [esp], 0x40169c
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020fe
sub eax, 0x40169c
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401665
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.00401463
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014c4
mov cl, bl
mov dword [esp + 8], esi
lea eax, [ebx + 0x1b800]
sar eax, cl
mov ecx, 0x40300c
shl ebx, cl
mov dword [esp + 4], eax
add ebx, ecx
mov dword [esp], ebx
call fcn.00401e01
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403cf8
nop
nop
sub eax, 0x403c9e
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

Function at 0x403afb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov edx, dword [0x406070]
mov ebx, eax
add edx, eax
mov eax, 0x406074
call fcn.00403a51
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x405ba4
push eax
sub edi, fcn.00405332
push edi
push fcn.00405332
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x403b6a
mov eax, fcn.00405332
mov ebx, esi
mov edx, edi
call fcn.00403a51
mov edx, 0x1c000
mov eax, 0x406074
mov ebx, esi
call fcn.00402219
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 1
call fcn.0040474d
mov eax, 0x406074
lea edi, [esi + 0x1c000]
xor edx, edx
or edi, esi
inc esi
div esi
lea ebx, [ebp - 2]
mov edx, edi
call fcn.00405332
lea esp, [ebp + 0x82]
jmp 0x403bc3
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
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.00421c60
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.00421c51
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.00413957
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, 0x439fa8
call fcn.00422533
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.0040c095
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.0040b324
push ebx
call fcn.0040c09e
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.0040c09e
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.00422405
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.004224e2
ret 8
Function at 0x403b6d
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x43a210
call fcn.0042259f
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
call fcn.0040c68d
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.0040c095
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.00421c60
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.00421c60
push 0x43ea34
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00422de0
push ebx
call fcn.004223ec
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004223ec
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.0040c095
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.00421c60
push ebx
push esi
push edi
call fcn.00422de0
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
call fcn.00422c77
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.0040c09e
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
jmp 0x403dc9
and dword [ebp - 4], 0
push edi
call fcn.0040c09e
push ebx
call fcn.0040c09e
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.00401856
call fcn.004224f1
ret 4
Function at 0x404be5
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x43a427
call fcn.00422500
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.00421c60
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x68], esi
push edi
push eax
call fcn.00421c60
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.0040b324
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.004224ce
ret
Function at 0x4057de
Capabilities:
Reference sql statements

Disassembly:
push 0x18
mov eax, 0x43a563
call fcn.00422500
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.0040c68d
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.0040c68d
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.004224ce
ret 0xc
Function at 0x405fb2
Capabilities:
Copy file

Disassembly:
push 0xa40
mov eax, 0x43a633
call fcn.00422533
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.00421c60
xor eax, eax
push esi
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00421c60
xor eax, eax
push esi
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.00421c60
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.0040c095
mov dword [ebp - 0xa40], eax
xor ecx, ecx
mov eax, edi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c095
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.0040c095
push 0x20a
push 0
push esi
mov edi, eax
call fcn.00421c60
push 0x20a
push 0
push edi
call fcn.00421c60
add esp, 0x48
push 0x20a
push 0
push dword [ebp - 0xa40]
call fcn.00421c60
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.0042324a
add esp, 0x30
test eax, eax
jne 0x406232
push esi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00422de0
push edi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00422c77
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.004223ec
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.00421c60
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.00421c60
push dword [ebp - 0xa3c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00422de0
push 0x43df30
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00422c77
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00422c77
push dword [ebp - 0xa44]
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00422de0
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.00422de0
add esp, 0xc
push dword [ebp - 0xa40]
call fcn.0040c09e
push esi
call fcn.0040c09e
push edi
call fcn.0040c09e
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.004224e2
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.0040c095
mov esi, eax
pop ecx
test esi, esi
je 0x4062c3
lea ecx, [edi + edi]
push ecx
push 0
push esi
call fcn.00421c60
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.0040c09e
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, 0x43bfaa
call fcn.00422500
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.00422e3c
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.004224ce
ret
Function at 0x4067ce
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x18
mov eax, 0x43a683
call fcn.00422500
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.0040c68d
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.0040c68d
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.004224ce
ret