joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a94
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x88
mov eax, dword [esp + 0x90]
push ebx
push esi
mov esi, dword [esp + 0x94]
lea ebx, [eax + 7]
shr ebx, 3
and eax, 7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
jne 0x406ac5
mov dword [esp + 0x10], 8
push ebp
push edi
lea eax, [ebx - 1]
xor edx, edx
xor ecx, ecx
xor edi, edi
test eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edi
jbe 0x406b95
mov ebp, dword [esi]
xor ebp, ecx
mov ecx, dword [esi + 4]
xor ecx, edx
mov dword [esi], ebp
test edi, edi
mov dword [esi + 4], ecx
jne 0x406b67
cmp ebx, 2
push edi
jbe 0x406b5a
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00406ec5
mov edi, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x30], edi
lea eax, [esp + 0x30]
mov ebx, 0x19
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
add ecx, edx
mov ebp, edi
mov dword [eax + 4], ecx
mov edx, dword [eax]
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
add eax, 4
shl ebp, cl
mov ecx, edx
mov edx, ebp
mov ebp, edi
shr ebp, cl
or edx, ebp
mov ebp, dword [esp + 0x34]
xor ebp, edx
dec ebx
mov dword [esp + 0x34], ebp
jne 0x406b1b
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x406b75
push 0
push esi
call fcn.00406ec5
add esp, 0xc
jmp 0x406b75
lea eax, [esp + 0x30]
push eax
push esi
call fcn.00406980
add esp, 8
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
inc edi
lea eax, [ebx - 1]
mov dword [esp + 0x10], ecx
cmp edi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edi
jb 0x406ae4
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jbe 0x406bc0
mov ebp, esi
lea ecx, [esp + 0x10]
sub ebp, ecx
mov cl, byte [esp + edi + 0x10]
lea eax, [esp + edi + 0x10]
mov dl, byte [ebp + eax]
xor cl, dl
inc edi
mov byte [eax], cl
mov eax, dword [esp + 0x18]
cmp edi, eax
jb 0x406ba7
pop edi
cmp ebx, 2
pop ebp
jbe 0x406bdb
lea eax, [esp + 0x28]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00406980
add esp, 8
jmp 0x406bfe
cmp ebx, 1
jne 0x406bed
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.00406ec5
add esp, 0xc
cmp ebx, 1
jbe 0x406c32
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
jbe 0x406c19
mov dl, byte [esi + eax - 8]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jb 0x406c0d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
pop esi
xor eax, eax
pop ebx
add esp, 0x88
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esi], edx
mov dword [esi + 4], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x88
ret
Function at 0x406c4a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x90
mov eax, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0x98]
push ebp
lea ebp, [eax + 7]
push esi
shr ebp, 3
and eax, 7
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], eax
jne 0x406c7d
mov dword [esp + 0x20], 8
xor edx, edx
cmp ebp, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
jbe 0x406d66
lea eax, [ebp - 2]
xor esi, esi
cmp eax, edx
mov dword [esp + 0x24], esi
jbe 0x406d66
jmp 0x406cad
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp esi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x406d1d
push edx
lea edx, [esp + 0x34]
push edx
push ebx
call fcn.00406ec5
mov esi, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x38], esi
lea eax, [esp + 0x38]
mov edi, 0x19
mov ecx, dword [eax]
mov edx, dword [esp + 0x34]
add ecx, edx
mov ebp, esi
mov dword [eax + 4], ecx
mov edx, dword [eax]
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
add eax, 4
shl ebp, cl
mov ecx, edx
mov edx, ebp
mov ebp, esi
shr ebp, cl
or edx, ebp
mov ebp, dword [esp + 0x3c]
xor ebp, edx
dec edi
mov dword [esp + 0x3c], ebp
jne 0x406cde
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x406d2b
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00406a09
add esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor eax, edx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
add ebx, 8
inc esi
lea eax, [ebp - 2]
cmp esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], esi
jb 0x406cab
xor edx, edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
cmp ecx, edx
mov dword [esp + 0x14], edx
jbe 0x406d8b
mov eax, ecx
lea esi, [ebx + 8]
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebp, 1
jne 0x406da0
push edx
push edx
push ebx
call fcn.00406ec5
add esp, 0xc
jmp 0x406e28
cmp ebp, 2
jne 0x406db2
push edx
push edx
push ebx
call fcn.00406ec5
add esp, 0xc
jmp 0x406dc5
lea ecx, [esp + 0x38]
push ecx
push ebx
call fcn.00406a09
add esp, 8
cmp ebp, 1
jbe 0x406e28
mov edx, dword [ebx]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x20]
xor esi, edx
mov edx, dword [esp + 0x14]
xor edx, eax
xor eax, eax
test edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
jbe 0x406e06
mov ecx, ebx
lea edx, [esp + 0x10]
sub ecx, edx
mov dl, byte [eax + ebx + 8]
lea esi, [esp + eax + 0x10]
inc eax
mov byte [esi + ecx], dl
mov dl, byte [esi]
mov byte [eax + ebx + 7], dl
cmp eax, edi
jb 0x406df0
cmp ebp, 2
jne 0x406e1a
push 0
push 0
push ebx
call fcn.00406ec5
add esp, 0xc
jmp 0x406e28
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00406a09
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x1c]
xor eax, edx
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret
Function at 0x4029aa
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 0x43cbc8
call main
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 0x4029e4
cmp dword [eax + 0x20], ebx
jne 0x4029f4
cmp edi, 0x14
jge 0x4029f4
push 0x64
inc edi
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4029d8
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 0x402c90
Capabilities:
Get file version info

Disassembly:
push 0x40
mov eax, 0x4392ab
call fcn.00421953
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call sub.version.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call main
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x30]
push dword [ebp + 0xc]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
jne 0x402d01
push dword [ebp + 0xc]
push str.Unable_to_get__s_file_version._n
push 0x453994
call main
add esp, 0xc
mov ecx, 0x4538c8
call fcn.0040a75f
push ebx
call fcn.0040b4d1
pop ecx
jmp 0x402dda
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], edi
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], edi
push eax
push 0x43cf30
push ebx
call sub.version.dll_VerQueryValueW
mov ecx, dword [ebp - 0x28]
push ebx
movzx eax, word [ecx + 0xa]
mov dword [ebp - 0x4c], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x48], eax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x44], eax
movzx eax, word [ecx + 0xc]
mov dword [ebp - 0x40], eax
call fcn.0040b4d1
pop ecx
lea eax, [ebp - 0x2c]
mov edi, 0x43d290
push eax
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call main
mov ebx, 0x43c650
mov byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x24]
call main
test eax, eax
je 0x402db7
lea esi, [ebp - 0x20]
push dword [ebp - 0x24]
call main
pop ecx
mov dword [esi], eax
lea ecx, [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x38]
push eax
call main
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call main
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401856
push ebx
lea ecx, [ebp - 0x24]
lea esi, [esi + 4]
call main
test eax, eax
jne 0x402d6f
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
call main
mov ecx, dword [ebp - 0x24]
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.00421902
ret 8
Function at 0x403b94
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x439513
call fcn.004219bf
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
call fcn.0040bac9
push eax
lea ecx, [ebp - 0x220]
call main
xor ebx, ebx
lea eax, [esi + 8]
push ebx
push 0x43da1c
mov ecx, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], eax
call main
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 main
mov ebx, eax
mov dword [ebp - 0x230], ebx
pop ecx
test ebx, ebx
je 0x403db1
lea ecx, [esi + esi]
push ecx
push 0
push ebx
call fcn.00421080
add esp, 0xc
push ebx
push esi
call edi
test eax, eax
setne al
test al, al
je 0x403db1
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00421080
push str.TRANSFORMS_
lea eax, [ebp - 0x21c]
push 0x104
push eax
call main
push ebx
call main
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call main
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 main
mov edi, eax
add esp, 0x24
mov dword [ebp - 0x22c], edi
test edi, edi
je 0x403cd5
lea ecx, [esi + esi]
push ecx
push 0
push edi
call fcn.00421080
push ebx
push esi
push edi
call main
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
call main
add esp, 0x24
mov eax, dword [ebp - 0x224]
cmp eax, 0xffffffff
jne 0x403d16
mov ecx, dword [ebp - 0x234]
and dword [ebp - 0x224], 0
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x403d0d
lea eax, [ebp - 0x220]
push str.TRANSFORMS__
push eax
call main
pop ecx
pop ecx
jmp 0x403d97
push eax
push edi
push str.TRANSFORMS__s_s_
jmp 0x403d88
mov ecx, dword [ebp - 0x228]
add eax, 0xa
push eax
push 0x22
call main
mov esi, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x224], eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x403d53
push ecx
lea eax, [ebp - 0x220]
push 0x43da98
push eax
call main
add esp, 0xc
jmp 0x403d97
mov ecx, dword [ebp - 0x228]
push eax
push 0x5c
call main
cmp eax, 0xffffffff
jne 0x403d80
push ebx
push dword [esi]
lea eax, [ebp - 0x220]
push edi
push str._s_s__s_
push eax
call main
add esp, 0x14
jmp 0x403d97
push dword [esi]
push edi
push str._s_s_
lea eax, [ebp - 0x220]
push eax
call main
add esp, 0x10
mov esi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x228]
push esi
push dword [ebp - 0x224]
call main
jmp 0x403ddb
push ebx
call fcn.0040b4d1
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
jmp 0x403df0
and dword [ebp - 4], 0
push edi
call fcn.0040b4d1
push ebx
call fcn.0040b4d1
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.00401856
call fcn.00421911
ret 4
Function at 0x404b8d
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x43972a
call fcn.00421920
cmp dword [0x4539b4], 0
je 0x404bac
call fcn.00404caf
jmp 0x404ca9
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00403eb4
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.00421080
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x68], esi
push edi
push eax
call fcn.00421080
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
add esp, 0x18
push dword [eax - 0xc]
call main
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 0x404c41
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 0x453994
call main
add esp, 0x10
mov ecx, 0x4538c8
call fcn.0040a75f
mov eax, dword [ebp - 0x10]
add eax, dword [0x4539e4]
mov dword [ebp - 0x10], eax
mov dword [0x453a38], eax
jmp 0x404c9e
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 0x404c78
cmp dword [0x4539a8], 0
jne 0x404c89
mov dword [0x4539a8], 1
test eax, eax
je 0x404c89
cmp eax, ecx
je 0x404c89
add eax, dword [0x4539e4]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x24]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0x453a38], eax
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401856
call fcn.004218ee
ret
Function at 0x4051c0
Capabilities:
Reference sql statements

Disassembly:
push 0x18
mov eax, 0x43981c
call fcn.00421920
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, 0x43de20
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x18]
call main
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call main
push esi
lea ecx, [ebp - 0x18]
call main
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 0x405263
call fcn.0040bac9
mov ecx, dword [ebp + 8]
push eax
call main
cmp dword [ebp - 0x10], 0
je 0x405242
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
je 0x405250
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 0x405333
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x405226
cmp dword [ebp - 0x10], eax
je 0x40527d
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 0x405226
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 0x405226
call fcn.0040bac9
push eax
lea ecx, [ebp + 0x10]
call main
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 main
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 main
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
push esi
call main
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 0x405318
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
je 0x405326
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.004218ee
ret 0xc
Function at 0x405c41
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x43aa02
call fcn.00421920
mov esi, ecx
push 0
lea edi, [esi + 8]
push str.http:__
mov ecx, edi
call main
test eax, eax
je 0x405c7a
push 0
push str.ftp:__
mov ecx, edi
call main
test eax, eax
jne 0x405d0d
push 0x2f
push dword [edi]
call main
pop ecx
pop ecx
test eax, eax
jne 0x405c8e
or eax, 0xffffffff
jmp 0x405c92
sub eax, dword [edi]
sar eax, 1
lea ebx, [eax + 1]
mov eax, dword [edi]
cmp ebx, dword [eax - 0xc]
jne 0x405ca5
mov ecx, edi
call fcn.00401451
jmp 0x405d0d
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 1
push edi
call main
add esi, 0x14
push 0x104
mov ecx, esi
call main
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, esi
call main
push ebx
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call main
mov eax, dword [eax]
mov ecx, esi
and dword [ebp - 4], 0
push dword [eax - 0xc]
push eax
call main
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401856
push esi
mov ecx, edi
call main
call fcn.004218ee
ret

Function at 0x405d13
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x18
mov eax, 0x4398e0
call fcn.00421920
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.0040bac9
push eax
lea ecx, [ebp - 0x10]
call main
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0
push 0x25
mov edi, 0x104
push edi
call main
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call main
push 0x43e5ac
lea ecx, [ebp - 0x10]
call main
push edi
lea ecx, [ebx + 4]
call main
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 main
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 0x453998
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x4538c8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408ff6
add ebx, 8
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call main
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.00405c41
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x405e66
cmp dword [esi + 0xc], 0
jne 0x405e2e
push ebx
mov ecx, 0x4538c8
call fcn.004087cd
test eax, eax
jne 0x405e2e
mov ecx, ebx
call fcn.00401451
jmp 0x405e66
call fcn.0040bac9
push eax
lea ecx, [ebp - 0x18]
call main
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push str.__quiet__norestart__overwriteoem
push eax
call main
mov esi, dword [ebp - 0x18]
pop ecx
pop ecx
mov ecx, ebx
push dword [esi - 0xc]
push esi
call main
lea ecx, [esi - 0x10]
call fcn.00401856
lea ecx, [edi - 0x10]
call fcn.00401856
call fcn.004218ee
ret
Function at 0x405f86
Capabilities:
Identify system language via api

Disassembly:
push 0xa0
mov eax, 0x439906
call fcn.00421920
mov esi, ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x405fa4
xor eax, eax
jmp 0x40601d
cmp dword [esi + 0xc], 0
je 0x40601a
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 0x405fca
cmp ecx, 0xd
je 0x405fca
xor eax, eax
push 0
push eax
lea ecx, [ebp - 0xac]
call main
and dword [ebp - 4], 0
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x14]
call main
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x10]
call main
lea ecx, [ebp - 0xac]
call fcn.0040c3b7
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 0x40601d
xor eax, eax
inc eax
call fcn.004218ee
ret

Function at 0x4066a3
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 0x43cbc8
call main
mov dword [esi + 0x20], eax
mov dword [eax + 0x44], 0x3f1
mov eax, dword [esi + 0x20]
push dword [eax + 0x2c]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov edi, ebx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4066dd
cmp dword [eax + 0x20], ebx
jne 0x4066ed
cmp edi, 2
jge 0x4066ed
push 0x64
inc edi
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4066d1
mov ecx, eax
pop edi
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x28], eax
pop esi
pop ebx
ret
Function at 0x407aad
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x439d82
call fcn.00421953
mov esi, ecx
mov dword [ebp - 0x4c], esi
and dword [ebp - 0x30], 0
lea edi, [ebp - 0x2c]
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x38], 0x104
stosd dword es:[edi], eax
push str.RequireIE
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040194d
xor edi, edi
lea ecx, [ebp - 0x44]
push str.Startup
mov dword [ebp - 4], edi
call fcn.0040194d
lea eax, [esi + 0xd0]
xor ebx, ebx
push eax
lea eax, [ebp - 0x48]
inc ebx
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00408ff6
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00401856
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00401856
mov eax, dword [ebp - 0x40]
cmp dword [eax - 0xc], edi
je 0x407bce
lea ecx, [ebp - 0x14]
mov esi, str._d._d._d._d
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
call main
add esp, 0x18
call fcn.0040bac9
push eax
lea ecx, [ebp - 0x34]
call main
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 5
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407bbe
push dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
call main
lea ecx, [ebp - 0x38]
push ecx
push eax
push edi
push edi
push str.Version
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x3c]
test eax, eax
je 0x407bde
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x34]
mov ebx, edi
lea ecx, [esi - 0x10]
call fcn.00401856
mov eax, dword [ebp - 0x40]
lea ecx, [eax - 0x10]
call fcn.00401856
mov eax, ebx
call fcn.00421902
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call main
cmp dword [ebp - 0x38], 0
jbe 0x407bbe
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
mov esi, dword [ebp - 0x34]
push esi
call main
add esp, 0x18
mov eax, edi
mov ecx, dword [ebp + eax - 0x30]
cmp dword [ebp + eax - 0x20], ecx
jb 0x407bc3
ja 0x407c29
add eax, 4
cmp eax, 0x10
jl 0x407c13
jmp 0x407bc3
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push eax
call fcn.0040956e
jmp 0x407bc1