joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401240
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4515a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x43c618
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.00421080
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 0x43c650
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421069
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 0x43cbc8
call fcn.00412d92
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 fcn.0040b4d6
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 fcn.004014f0
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 fcn.0040327b
mov ebx, 0x43c650
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.00421825
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.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 fcn.004012cf
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 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.0040b4d6
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 fcn.004221b1
push ebx
call fcn.0042180c
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0042180c
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.0040b4d6
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 fcn.004221b1
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
call fcn.00422097
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 0x43da98
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.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 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 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 fcn.004014f0
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 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.0040bac9
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.0040bac9
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 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 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.0042220d
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.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.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.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 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 0x43e5ac
lea ecx, [ebp - 0x10]
call fcn.00403dfd
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 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 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, 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 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.004218ee
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.00421080
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], edi
push ebx
push eax
call fcn.00421080
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
add esp, 0x18
push dword [eax - 0xc]
call fcn.004017e6
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405efe
cmp dword [0x4539a4], 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 0x453994
call fcn.004014f0
add esp, 0x10
mov ecx, 0x4538c8
call fcn.0040a75f
xor eax, eax
jmp 0x405f7f
mov esi, ebx
cmp dword [0x4539ac], ebx
jne 0x405f18
push ebx
push ebx
push ebx
push ebx
push 0x43d294
call fcn.00412d92
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 [0x4539a8]
cmp dword [ebp - 4], 0xbc2
cmove ecx, edi
mov dword [0x4539a8], 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, 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 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.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 fcn.00412d92
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 0x4075c6
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
movzx eax, ax
cmp eax, 1
je 0x4075e9
cmp eax, 0xd
je 0x4075e9
mov eax, dword [ebp + 0xc]
jmp 0x4075f1
mov eax, dword [ebp + 0xc]
or eax, 0x100000
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push 0x4538c8
call fcn.00417bd4
add esp, 0x10
pop ebp
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 fcn.0042292f
add esp, 0x18
call fcn.0040bac9
push eax
lea ecx, [ebp - 0x34]
call fcn.004012cf
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 fcn.004017e6
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 fcn.00401872
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 fcn.0042292f
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
Function at 0x408691
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x2c
mov eax, 0x439efa
call fcn.00421920
lea esi, [ecx + 0x12c]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.004017e6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4087b0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00401872
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004013b4
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov ecx, esi
push edi
mov dword [ebp - 4], ebx
call fcn.004017e6
push eax
push ebx
push 0x4403bc
lea ecx, [ebp - 0x10]
call fcn.00408e0a
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401856
push 0xffffffffffffffff
mov ecx, esi
call fcn.00401872
lea ecx, [ebp - 0x38]
call fcn.00414373
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.004072b3
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
push 0x1001
push dword [esi]
lea ecx, [ebp - 0x38]
call fcn.004147e5
test eax, eax
jne 0x408755
mov ecx, esi
call fcn.00401451
jmp 0x408792
push str.LOCALIZATION_INI
push 0x87
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x38]
call fcn.00414b4c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], vtable.CFileException.0
lea ecx, [ecx - 0x10]
call fcn.00401856
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0041439a
call fcn.004218ee
ret

Function at 0x4087cd
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x439f2d
call fcn.00421920
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004013b4
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
mov ebx, 0x104
push ebx
mov ecx, edi
call fcn.004017e6
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401856
push 0xffffffffffffffff
mov ecx, edi
call fcn.00401872
lea ecx, [ebp - 0x2c]
call fcn.0041557b
mov eax, dword [edi]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], 0
je 0x40887a
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00415818
test eax, eax
je 0x40887a
lea ecx, [ebp - 0x2c]
call fcn.004159c0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00415ad9
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040132a
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00401856
lea ecx, [ebp - 0x2c]
call fcn.004157cc
jmp 0x40887c
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041572c
mov eax, ebx
call fcn.004218ee
ret 4