joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015580
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003fc4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp edx, esi
je 0x1001572d
mov ecx, dword [ebx + 4]
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 4]
push edi
mov edi, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
xor ecx, eax
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*8]
mov ecx, dword [eax]
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
lea ebx, [ebx]
cmp edi, eax
mov eax, edi
mov edi, dword [edi]
push 0x10
push eax
sete bl
mov dword [ebp - 0x2c], edi
call fcn.10018037
mov edx, dword [ebp - 0x10]
add esp, 8
dec dword [edx + 8]
test bl, bl
jne 0x1001566e
mov eax, dword [ebp - 0x20]
cmp edi, esi
jne 0x10015630
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x1001571d
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
jmp 0x1001571d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jne 0x10015680
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x10015683
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
cmp edi, esi
je 0x1001571d
mov edi, edi
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor ecx, eax
movzx eax, byte [edi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + ecx*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
cmp edi, eax
mov eax, edi
mov edi, dword [edi]
push 0x10
push eax
sete bl
mov dword [ebp - 0x2c], edi
call fcn.10018037
mov eax, dword [ebp - 0x10]
add esp, 8
dec dword [eax + 8]
test bl, bl
jne 0x10015701
cmp edi, esi
je 0x10015718
mov eax, dword [ebp + 0xc]
jmp 0x100156d7
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov dword [eax + 4], edx
cmp edi, esi
je 0x1001571d
mov edx, dword [ebp - 0x10]
jmp 0x10015690
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
mov dword [edi + 4], eax
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x10032a04
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003287a
Function at 0x1003cee0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003cf0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003cf0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1068c30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x57000]
push edi
or ebp, 0xffffffff
jmp 0x1068c52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1068c59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1068c48
mov eax, 1
add ebx, ebx
jne 0x1068c6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1068c60
jne 0x1068c7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1068c60
xor ecx, ecx
sub eax, 3
jb 0x1068c90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1068d02
mov ebp, eax
add ebx, ebx
jne 0x1068c9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1068ca8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1068ccc
inc ecx
add ebx, ebx
jne 0x1068cb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1068cad
jne 0x1068cc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1068cad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1068cec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1068cdd
jmp 0x1068c4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1068cec
add edi, ecx
jmp 0x1068c4e
pop esi
mov edi, esi
mov ecx, 0x6be
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1068d0a
cmp byte [edi], 9
jne 0x1068d0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1068d0f
lea edi, [esi + 0x64000]
mov eax, dword [edi]
or eax, eax
je 0x1068d87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x69180]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6930c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1068d3c
mov ecx, edi
jns 0x1068d6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x69314]
or eax, eax
je 0x1068d81
mov dword [ebx], eax
add ebx, 4
jmp 0x1068d59
call dword [esi + 0x69310]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1068db8
cmp al, 0xef
ja 0x1068dab
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1068d8d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1068d9a
mov ebp, dword [esi + 0x69318]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1068dec
sub esp, 0xffffff80
jmp 0x10019b0
Function at 0x401240
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4505a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x43b618
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.00420bb0
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 0x43b650
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420b95
mov esp, ebp
pop ebp
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 0x43bbc8
call fcn.004127a5
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, 0x438ddc
call fcn.00421483
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 fcn.0040afab
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 0x452994
call fcn.004014f0
add esp, 0xc
mov ecx, 0x4528c8
call fcn.0040a303
push ebx
call fcn.0040afb4
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 0x43bf30
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.0040afb4
pop ecx
lea eax, [ebp - 0x2c]
mov edi, 0x43c290
push eax
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.0040327b
mov ebx, 0x43b650
mov byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x24]
call fcn.004027ad
test eax, eax
je 0x402db7
lea esi, [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.00421355
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 fcn.0040327b
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0040132a
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 fcn.004027ad
test eax, eax
jne 0x402d6f
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004027d1
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.00421432
ret 8
Function at 0x403b94
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x439067
call fcn.004214ef
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
call fcn.0040b5a3
push eax
lea ecx, [ebp - 0x220]
call fcn.004012cf
xor ebx, ebx
lea eax, [esi + 8]
push ebx
push 0x43ca1c
mov ecx, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], eax
call fcn.00404286
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.0040afab
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.00420bb0
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.00420bb0
push str.TRANSFORMS_
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00421ce1
push ebx
call fcn.0042133c
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0042133c
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.0040afab
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.00420bb0
push ebx
push esi
push edi
call fcn.00421ce1
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
call fcn.00421bc7
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 fcn.004014f0
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 fcn.004042c0
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 0x43ca98
push eax
call fcn.004014f0
add esp, 0xc
jmp 0x403d97
mov ecx, dword [ebp - 0x228]
push eax
push 0x5c
call fcn.004042c0
cmp eax, 0xffffffff
jne 0x403d80
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 0x403d97
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.00404afd
jmp 0x403ddb
push ebx
call fcn.0040afb4
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
jmp 0x403df0
and dword [ebp - 4], 0
push edi
call fcn.0040afb4
push ebx
call fcn.0040afb4
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.00401856
call fcn.00421441
ret 4
Function at 0x404b8d
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x43927e
call fcn.00421450
cmp dword [0x4529b4], 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.00420bb0
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x68], esi
push edi
push eax
call fcn.00420bb0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
add esp, 0x18
push dword [eax - 0xc]
call fcn.004017de
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 0x452994
call fcn.004014f0
add esp, 0x10
mov ecx, 0x4528c8
call fcn.0040a303
mov eax, dword [ebp - 0x10]
add eax, dword [0x4529e0]
mov dword [ebp - 0x10], eax
mov dword [0x452a30], 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 [0x4529a8], 0
jne 0x404c89
mov dword [0x4529a8], 1
test eax, eax
je 0x404c89
cmp eax, ecx
je 0x404c89
add eax, dword [0x4529e0]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x452a30], eax
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401856
call fcn.0042141e
ret
Function at 0x4051c0
Capabilities:
Reference sql statements

Disassembly:
push 0x18
mov eax, 0x439370
call fcn.00421450
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, 0x43ce20
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x18]
call fcn.00403dfd
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00403e26
push esi
lea ecx, [ebp - 0x18]
call fcn.00403dfd
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.0040b5a3
mov ecx, dword [ebp + 8]
push eax
call fcn.004012cf
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.0040b5a3
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.004017de
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 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.0042141e
ret 0xc
Function at 0x405c41
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x439d50
call fcn.00421450
mov esi, ecx
push 0
lea edi, [esi + 8]
push str.http:__
mov ecx, edi
call fcn.00404286
test eax, eax
je 0x405c7a
push 0
push str.ftp:__
mov ecx, edi
call fcn.00404286
test eax, eax
jne 0x405d0d
push 0x2f
push dword [edi]
call fcn.00421d3d
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 fcn.0040132a
add esi, 0x14
push 0x104
mov ecx, esi
call fcn.004017de
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.0040610d
mov eax, dword [eax]
mov ecx, esi
and dword [ebp - 4], 0
push dword [eax - 0xc]
push eax
call fcn.00403e26
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.0042141e
ret
Function at 0x405d13
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x18
mov eax, 0x439434
call fcn.00421450
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.0040b5a3
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.004017de
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00401872
push 0x43d5ac
lea ecx, [ebp - 0x10]
call fcn.00403dfd
push edi
lea ecx, [ebx + 4]
call fcn.004017de
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 0x452998
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x4528c8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408fc3
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.00405c41
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x405e66
cmp dword [esi + 0xc], 0
jne 0x405e2e
push ebx
mov ecx, 0x4528c8
call fcn.00408797
test eax, eax
jne 0x405e2e
mov ecx, ebx
call fcn.00401451
jmp 0x405e66
call fcn.0040b5a3
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.00403e26
lea ecx, [esi - 0x10]
call fcn.00401856
lea ecx, [edi - 0x10]
call fcn.00401856
call fcn.0042141e
ret
Function at 0x405e74
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.00420bb0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], edi
push ebx
push eax
call fcn.00420bb0
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
add esp, 0x18
push dword [eax - 0xc]
call fcn.004017de
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 0x405efe
cmp dword [0x4529a4], ebx
je 0x405eed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push str.InstallUpdate:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x452994
call fcn.004014f0
add esp, 0x10
mov ecx, 0x4528c8
call fcn.0040a303
xor eax, eax
jmp 0x405f7f
mov esi, ebx
cmp dword [0x4529ac], ebx
jne 0x405f18
push ebx
push ebx
push ebx
push ebx
push 0x43c294
call fcn.004127a5
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x405f43
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x405f32
mov eax, ebx
jmp 0x405f35
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 0x405f6d
mov ecx, dword [0x4529a8]
cmp dword [ebp - 4], 0xbc2
cmove ecx, edi
mov dword [0x4529a8], 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 0x405f86
Capabilities:
Identify system language via api

Disassembly:
push 0xa0
mov eax, 0x43945a
call fcn.00421450
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 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.0040be91
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.0042141e
ret