joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406900
xor eax, eax
push ebp
push 0x408e49
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408c64
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408c7e
mov eax, dword [ebp - 4]
call fcn.00406e14
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408458
cmp word [ebp - 0x21a], 0
je 0x408e33
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e58
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e94
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ec8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d4d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408efc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408e33
xor eax, eax
push ebp
push 0x408e2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408a34
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408dbc
mov eax, dword [ebp - 0x10]
call fcn.004044ac
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e6c
jmp 0x408e07
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408f3c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408e07
mov eax, dword [ebp - 0x10]
call fcn.004044ac
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408f3c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e33
cmp dword [ebp - 8], 0
je 0x408e22
mov eax, dword [ebp - 8]
call fcn.004044c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e50
lea eax, [ebp - 4]
call fcn.0040681c
ret
Function at 0x409138
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406900
xor eax, eax
push ebp
push 0x4091f8
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406ea8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406fd8
mov eax, dword [ebx]
call fcn.00409000
test al, al
jne 0x4091d5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406ea8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406fd8
mov eax, dword [ebx]
call fcn.00409000
test al, al
jne 0x4091d5
mov eax, ebx
call fcn.0040681c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091ff
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040687c
lea eax, [ebp - 4]
call fcn.0040681c
ret

Function at 0x40aa8c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41383c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413895
test eax, edx
je 0x413898
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x413853
movzx eax, word [eax]
sub eax, ecx
jmp 0x41387a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41387b
add ecx, 4
js 0x41386b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x413878
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41387a
xor eax, eax
ret
test eax, eax
je 0x4138a4
test edx, edx
jne 0x413844
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x415b20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x415b59
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406974
jmp 0x415b62
mov eax, ebx
mov edx, esi
call fcn.00406af0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415b6c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x415b8e
movzx eax, word [esp]
jmp 0x415b90
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x416e8c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x416fb1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416c94
mov esi, eax
mov eax, dword [0x41e684]
cmp byte [eax], 0
je 0x416f59
mov eax, dword [0x41e59c]
call fcn.004047d0
call fcn.00404600
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x416e5c]
call fcn.00407f10
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x416fcc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416f95
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x41e574]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x422620]
call fcn.004080fc
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416fb8
lea eax, [ebp - 4]
mov edx, dword [0x416e5c]
call fcn.00408034
ret
Function at 0x418044
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418144
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406b38
lea eax, [ebp - 4]
call fcn.00406c4c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e14
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41812e
mov eax, ebx
call fcn.004044ac
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x418127
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e14
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x418111
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x418158
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x418111
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41812e
mov eax, dword [ebp - 0x10]
call fcn.004044c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41814b
lea eax, [ebp - 4]
call fcn.0040681c
ret

Function at 0x418be4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406be0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040aa6c
mov edi, eax
cmp edi, 0x104
jbe 0x418b8f
mov eax, edi
add eax, eax
call fcn.004044ac
mov esi, eax
jmp 0x418b91
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040aa6c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418bca
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x418bb4
mov eax, esp
cmp esi, eax
je 0x418bd7
mov eax, esi
call fcn.004044c8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x418c10
cmp bl, 0
je 0x418c0c
cmp bl, 0x41
jl 0x418c07
cmp bl, 0x5a
jg 0x418c07
or bl, 0x20
xor al, bl
inc esi
jmp 0x418beb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418b50

Function at 0x418e34
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00406ea8
add esp, 0x800
pop ebx
ret
Function at 0x401b3d
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42b805
call fcn.004162d0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f7
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x401be3
je 0x401bdc
sub eax, 0x404
cmp eax, 0x12
ja case.0x401b81.1029
jmp dword [eax*4 + 0x401c2d]
mov eax, 0x113
jmp 0x401bf6
mov eax, 0x114
jmp 0x401bf6
mov eax, 0x112
jmp 0x401bf6
mov eax, 0x10d
jmp 0x401bf6
mov eax, 0x10e
jmp 0x401bf6
mov eax, 0x110
jmp 0x401bf6
mov eax, 0x111
jmp 0x401bf6
mov eax, 0x116
jmp 0x401bf6
mov eax, 0x115
jmp 0x401bf6
mov eax, 0x117
jmp 0x401bf6
mov eax, 0x118
jmp 0x401bf6
mov eax, 0x10c
jmp 0x401bf6
mov eax, 0x119
jmp 0x401bf6
cmp eax, 0x804
je 0x401bf1
mov eax, 0x10f
jmp 0x401bf6
mov eax, 0x10b
movzx eax, ax
push str.BINARYSTRING
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 8]
push eax
call fcn.004018a0
mov eax, dword [ebp + 8]
call fcn.0041636f
ret 4

Function at 0x401c79
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push 4
mov eax, 0x42b805
call fcn.004162d0
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004012f7
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
movzx eax, ax
mov ecx, 0x41d
cmp eax, ecx
jg 0x401d1f
je 0x401d18
sub eax, 0x404
cmp eax, 0x12
ja case.0x401cbd.1029
jmp dword [eax*4 + 0x401d69]
mov eax, 0x122
jmp 0x401d32
mov eax, 0x123
jmp 0x401d32
mov eax, 0x121
jmp 0x401d32
mov eax, 0x11c
jmp 0x401d32
mov eax, 0x11d
jmp 0x401d32
mov eax, 0x11f
jmp 0x401d32
mov eax, 0x120
jmp 0x401d32
mov eax, 0x125
jmp 0x401d32
mov eax, 0x124
jmp 0x401d32
mov eax, 0x126
jmp 0x401d32
mov eax, 0x127
jmp 0x401d32
mov eax, 0x11b
jmp 0x401d32
mov eax, 0x128
jmp 0x401d32
cmp eax, 0x804
je 0x401d2d
mov eax, 0x11e
jmp 0x401d32
mov eax, 0x11a
movzx eax, ax
push str.BINARYSTRING
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 8]
push eax
call fcn.004018a0
mov eax, dword [ebp + 8]
call fcn.0041636f
ret 4
Function at 0x403497
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x42ba8c
call fcn.004162d0
xor edi, edi
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], edi
call fcn.00401db5
mov esi, 0x42e030
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.004031c8
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00403268
push esi
lea ecx, [ebp - 0x18]
call fcn.004031c8
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004028bf
push eax
push esi
push dword [ebp + 0xc]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x40350a
mov ecx, dword [ebp + 8]
call fcn.004012f7
jmp 0x40359c
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x4034fd
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004028bf
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
jne 0x4034fd
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call sub.msi.dll_MsiRecordSetStreamA
cmp dword [ebp - 0x1c], edi
je 0x4034fd
call fcn.00406703
push eax
lea ecx, [ebp + 0x10]
call fcn.004011df
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00401315
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.004011ba
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.00401753
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040103d
cmp dword [ebp - 0x10], edi
je 0x4035a9
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], edi
je 0x4035b6
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040103d
mov eax, dword [ebp + 8]
call fcn.0041636f
ret 0xc
Function at 0x403cc3
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x42bbe4
call fcn.004162d0
lea eax, [ebp - 0x10]
push eax
call fcn.004035cc
xor esi, esi
push 0x44
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.004164a0
push 0x10
lea eax, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 0x68], 0x44
call fcn.004164a0
mov eax, dword [ebp - 0x10]
add esp, 0x18
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401315
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403d57
cmp dword [0x43a328], esi
je 0x403d4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str.InstallProduct:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x43a31c
call fcn.00401448
add esp, 0x10
mov ecx, 0x43a278
call fcn.004051e3
jmp 0x403da8
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x403d98
cmp dword [ebp - 0x14], 0xbc2
jne 0x403d98
cmp dword [0x43a32c], esi
jne 0x403d98
mov ecx, 0x43a278
mov dword [0x43a32c], 1
call fcn.0041afdb
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040103d
call fcn.0041636f
ret
Function at 0x403fbd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
mov edi, ecx
call fcn.004164a0
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x58], 0x44
call fcn.004164a0
add edi, 8
mov eax, dword [edi]
add esp, 0x18
push dword [eax - 0xc]
mov ecx, edi
call fcn.00401315
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404048
cmp dword [0x43a328], esi
je 0x404037
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push str.InstallUpdate:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x43a31c
call fcn.00401448
add esp, 0x10
mov ecx, 0x43a278
call fcn.004051e3
xor eax, eax
jmp 0x4040cc
xor edi, edi
cmp dword [0x43a330], esi
jne 0x404062
push esi
push esi
push esi
push esi
push 0x42d870
call fcn.0040dbaa
mov edi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, esi
je 0x40408d
mov eax, dword [edi + 0x20]
cmp eax, esi
jne 0x40407c
xor eax, eax
jmp 0x40407f
mov eax, dword [eax + 0x20]
push esi
push esi
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 0x4040ba
cmp dword [ebp - 4], 0xbc2
jne 0x4040ba
mov ecx, 0x43a278
mov dword [0x43a32c], edi
call fcn.0041afdb
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
leave
ret

Function at 0x40416c
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x42c34e
call fcn.004162d0
mov esi, ecx
push 0
lea ebx, [esi + 8]
push str.http:__
mov ecx, ebx
call fcn.004029b1
test eax, eax
je 0x4041a1
push 0
push str.ftp:__
mov ecx, ebx
call fcn.004029b1
test eax, eax
jne 0x404220
push 0x2f
mov ecx, ebx
call fcn.004028d5
mov ecx, dword [ebx]
inc eax
cmp eax, dword [ecx - 0xc]
mov dword [ebp - 0x10], eax
jne 0x4041be
mov ecx, ebx
call fcn.00401204
jmp 0x404220
lea ecx, [esi + 0x10]
push ebx
mov dword [esi + 0xc], 1
call fcn.004013fb
lea edi, [esi + 0x14]
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401315
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011ba
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.004040d0
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00403268
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0040103d
push edi
mov ecx, ebx
call fcn.004013fb
call fcn.0041636f
ret
Function at 0x404226
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x42bc83
call fcn.004162d0
mov esi, ecx
call fcn.00406703
push eax
lea ecx, [ebp - 0x10]
call fcn.004011df
xor ebx, ebx
push ebx
push 0x25
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401315
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011ba
push str.Msi.dll
lea ecx, [ebp - 0x10]
call fcn.004031c8
lea ecx, [esi + 4]
push edi
call fcn.00401315
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x10]
call sub.msi.dll_MsiMessageBoxW
push 0xffffffffffffffff
lea ecx, [esi + 4]
call fcn.004011ba
push str.Path
lea ecx, [ebp - 0x18]
call fcn.00401db5
push str.MSI_Updater
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401db5
push 0x43a320
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x43a278
mov byte [ebp - 4], 2
call fcn.0040480f
lea edi, [esi + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004013fb
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040103d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040103d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040103d
mov ecx, esi
call fcn.0040416c
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x40436c
cmp dword [esi + 0xc], ebx
jne 0x404334
push edi
mov ecx, 0x43a278
call fcn.00404a54
test eax, eax
jne 0x404334
mov ecx, edi
call fcn.00401204
jmp 0x40436c
call fcn.00406703
push eax
lea ecx, [ebp - 0x14]
call fcn.004011df
lea eax, [ebp - 0x14]
push str.__quiet__norestart__overwriteoem
push eax
mov byte [ebp - 4], 4
call fcn.00401448
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00403268
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040103d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040103d
call fcn.0041636f
ret

Function at 0x40480f
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x42b805
call fcn.004162d0
and dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004012f7
and dword [ebp - 4], 0
push 0x7d
mov dword [ebp - 0x10], 1
pop esi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
add esi, esi
push esi
mov ecx, ebx
call fcn.00401315
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push edi
push esi
push eax
push 0x42d7cc
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.004011ba
inc edi
cmp esi, edi
jbe 0x404837
mov eax, ebx
call fcn.0041636f
ret 0x10