joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029a2
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
push ebx
push ebx
push 0x43dbc8
call 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 0x4029dc
cmp dword [eax + 0x20], ebx
jne 0x4029ec
cmp edi, 0x14
jge 0x4029ec
push 0x64
inc edi
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4029d0
mov ecx, eax
pop edi
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x14], eax
pop esi
pop ebx
ret

Function at 0x402c88
Capabilities:
Get file version info

Disassembly:
push 0x40
mov eax, 0x439f88
call fcn.00422513
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edi
call sub.version.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call main
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x3c]
push dword [ebp + 0xc]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
jne 0x402cf9
push dword [ebp + 0xc]
push str.Unable_to_get__s_file_version._n
push 0x455994
call main
add esp, 0xc
mov ecx, 0x4558c8
call fcn.0040b2fe
push ebx
call fcn.0040c078
pop ecx
jmp 0x402dd2
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
push eax
push 0x43df30
push ebx
call sub.version.dll_VerQueryValueW
mov ecx, dword [ebp - 0x38]
push ebx
movzx eax, word [ecx + 0xa]
mov dword [ebp - 0x20], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x1c], eax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
mov dword [ebp - 0x14], eax
call fcn.0040c078
pop ecx
lea eax, [ebp - 0x40]
mov edi, 0x43e290
push eax
push edi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 8]
call main
mov ebx, 0x43d650
mov byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x34]
call main
test eax, eax
je 0x402daf
lea esi, [ebp - 0x30]
push dword [ebp - 0x34]
call main
pop ecx
mov dword [esi], eax
lea ecx, [ebp + 8]
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x48]
push eax
call main
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call main
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401856
push ebx
lea ecx, [ebp - 0x34]
lea esi, [esi + 4]
call main
test eax, eax
jne 0x402d67
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call main
mov ecx, dword [ebp - 0x34]
mov edi, eax
neg edi
sbb edi, edi
lea ecx, [ecx - 0x10]
neg edi
call fcn.00401856
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401856
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, edi
call fcn.004224c2
ret 8
Function at 0x403b6d
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x43a1f0
call fcn.0042257f
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
call fcn.0040c667
push eax
lea ecx, [ebp - 0x220]
call main
xor ebx, ebx
lea eax, [esi + 8]
push ebx
push 0x43ea1c
mov ecx, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x228], eax
call 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 0x403d8a
lea ecx, [esi + esi]
push ecx
push 0
push ebx
call fcn.00421c40
add esp, 0xc
push ebx
push esi
call edi
test eax, eax
setne al
test al, al
je 0x403d8a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00421c40
push 0x43ea34
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 0x403cae
lea ecx, [esi + esi]
push ecx
push 0
push edi
call fcn.00421c40
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 0x403cef
mov ecx, dword [ebp - 0x234]
and dword [ebp - 0x224], 0
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x403ce6
lea eax, [ebp - 0x220]
push str.TRANSFORMS__
push eax
call main
pop ecx
pop ecx
jmp 0x403d70
push eax
push edi
push str.TRANSFORMS__s_s_
jmp 0x403d61
mov ecx, dword [ebp - 0x228]
add eax, 0xa
push eax
push 0x22
call main
mov esi, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x224], eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x403d2c
push ecx
lea eax, [ebp - 0x220]
push 0x43ea98
push eax
call main
add esp, 0xc
jmp 0x403d70
mov ecx, dword [ebp - 0x228]
push eax
push 0x5c
call main
cmp eax, 0xffffffff
jne 0x403d59
push ebx
push dword [esi]
lea eax, [ebp - 0x220]
push edi
push str._s_s__s_
push eax
call main
add esp, 0x14
jmp 0x403d70
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 0x403db4
push ebx
call fcn.0040c078
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
jmp 0x403dc9
and dword [ebp - 4], 0
push edi
call fcn.0040c078
push ebx
call fcn.0040c078
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.00401856
call fcn.004224d1
ret 4
Function at 0x404be5
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x43a407
call fcn.004224e0
cmp dword [0x4559b4], 0
je 0x404c04
call fcn.00404d07
jmp 0x404d01
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00403e8d
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.00421c40
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x68], esi
push edi
push eax
call fcn.00421c40
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 0x404c99
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push str.InstallProduct:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x455994
call main
add esp, 0x10
mov ecx, 0x4558c8
call fcn.0040b2fe
mov eax, dword [ebp - 0x10]
add eax, dword [0x4559e8]
mov dword [ebp - 0x10], eax
mov dword [0x455a3c], eax
jmp 0x404cf6
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
mov ecx, 0xbc2
cmp eax, ecx
jne 0x404cd0
cmp dword [0x4559a8], 0
jne 0x404ce1
mov dword [0x4559a8], 1
test eax, eax
je 0x404ce1
cmp eax, ecx
je 0x404ce1
add eax, dword [0x4559e8]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x24]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0x455a3c], eax
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401856
call fcn.004224ae
ret
Function at 0x4057de
Capabilities:
Reference sql statements

Disassembly:
push 0x18
mov eax, 0x43a543
call fcn.004224e0
xor edi, edi
lea ecx, [ebp - 0x18]
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
mov dword [ebp - 0x24], edi
call fcn.0040194d
mov esi, 0x43ee40
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x18]
call 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 0x405881
call fcn.0040c667
mov ecx, dword [ebp + 8]
push eax
call main
cmp dword [ebp - 0x10], 0
je 0x405860
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
je 0x40586e
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, dword [ebp + 8]
jmp 0x405951
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x405844
cmp dword [ebp - 0x10], eax
je 0x40589b
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push dword [ebp - 0x14]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x405844
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], edi
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
push eax
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetStreamA
cmp dword [ebp - 0x1c], 0
je 0x405844
call fcn.0040c667
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 0x405936
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
je 0x405944
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, edi
call fcn.004224ae
ret 0xc
Function at 0x405fb2
Capabilities:
Copy file

Disassembly:
push 0xa40
mov eax, 0x43a613
call fcn.00422513
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xa3c]
mov ebx, dword [ebp + 8]
and dword [ebp - 0xa4c], 0
push 0x43d650
mov dword [ebp - 0xa44], eax
call fcn.0040194d
and dword [ebp - 4], 0
xor eax, eax
mov esi, 0x206
mov word [ebp - 0xa38], ax
push esi
push eax
lea eax, [ebp - 0xa36]
push eax
call fcn.00421c40
xor eax, eax
push esi
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00421c40
xor eax, eax
push esi
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.00421c40
xor ecx, ecx
mov edi, 0x105
push 2
pop esi
mov eax, edi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call main
mov dword [ebp - 0xa40], eax
xor ecx, ecx
mov eax, edi
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call main
mov esi, eax
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
push 0x20a
push 0
push esi
mov edi, eax
call fcn.00421c40
push 0x20a
push 0
push edi
call fcn.00421c40
add esp, 0x48
push 0x20a
push 0
push dword [ebp - 0xa40]
call fcn.00421c40
mov eax, 0x104
push eax
push edi
push eax
push esi
push eax
push dword [ebp - 0xa40]
push eax
lea eax, [ebp - 0xa38]
push eax
push dword [ebp - 0xa44]
call main
add esp, 0x30
test eax, eax
jne 0x406232
push esi
lea eax, [ebp - 0x420]
push 0x104
push eax
call main
push edi
lea eax, [ebp - 0x420]
push 0x104
push eax
call main
lea eax, [ebp - 0xa48]
push eax
call main
add esp, 0x1c
push eax
lea ecx, [ebp - 0xa3c]
mov byte [ebp - 4], 1
call main
mov ecx, dword [ebp - 0xa48]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00401856
push dword [ebp - 0xa3c]
call main
pop ecx
test eax, eax
je 0x406232
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00421c40
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.00421c40
push dword [ebp - 0xa3c]
lea eax, [ebp - 0x218]
push 0x104
push eax
call main
push 0x43df30
lea eax, [ebp - 0x218]
push 0x104
push eax
call main
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call main
push dword [ebp - 0xa44]
lea eax, [ebp - 0x628]
push 0x104
push eax
call main
add esp, 0x48
lea eax, [ebp - 0x218]
push eax
call main
pop ecx
test eax, eax
jne 0x406232
lea eax, [ebp - 0x628]
push eax
call main
pop ecx
test eax, eax
je 0x406232
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
je 0x406232
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push 0x104
push eax
call main
add esp, 0xc
push dword [ebp - 0xa40]
call fcn.0040c078
push esi
call fcn.0040c078
push edi
call fcn.0040c078
add esp, 0xc
lea ecx, [ebp - 0x830]
push ecx
mov ecx, ebx
call fcn.0040194d
mov ecx, dword [ebp - 0xa3c]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, ebx
call fcn.004224c2
ret
Function at 0x4066fc
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x43bf82
call fcn.004224e0
mov esi, ecx
push 0
lea edi, [esi + 8]
push str.http:__
mov ecx, edi
call main
test eax, eax
je 0x406735
push 0
push str.ftp:__
mov ecx, edi
call main
test eax, eax
jne 0x4067c8
push 0x2f
push dword [edi]
call main
pop ecx
pop ecx
test eax, eax
jne 0x406749
or eax, 0xffffffff
jmp 0x40674d
sub eax, dword [edi]
sar eax, 1
lea ebx, [eax + 1]
mov eax, dword [edi]
cmp ebx, dword [eax - 0xc]
jne 0x406760
mov ecx, edi
call fcn.00401451
jmp 0x4067c8
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 1
push edi
call 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.004224ae
ret

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

Disassembly:
push 0x18
mov eax, 0x43a663
call fcn.004224e0
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.0040c667
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 0x43f7c4
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 0x455998
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x4558c8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00409ae5
add ebx, 8
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call 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.004066fc
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x406921
cmp dword [esi + 0xc], 0
jne 0x4068e9
push ebx
mov ecx, 0x4558c8
call fcn.004092bc
test eax, eax
jne 0x4068e9
mov ecx, ebx
call fcn.00401451
jmp 0x406921
call fcn.0040c667
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.004224ae
ret
Function at 0x406a41
Capabilities:
Identify system language via api

Disassembly:
push 0xa0
mov eax, 0x43a689
call fcn.004224e0
mov esi, ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x406a5f
xor eax, eax
jmp 0x406ad8
cmp dword [esi + 0xc], 0
je 0x406ad5
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 0x406a85
cmp ecx, 0xd
je 0x406a85
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.0040cf55
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 0x406ad8
xor eax, eax
inc eax
call fcn.004224ae
ret

Function at 0x40715f
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
push ebx
push ebx
push 0x43dbc8
call 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 0x407199
cmp dword [eax + 0x20], ebx
jne 0x4071a9
cmp edi, 2
jge 0x4071a9
push 0x64
inc edi
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x40718d
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 0x40859c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x43aadf
call fcn.00422513
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.00409ae5
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 0x4086bd
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.0040c667
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 0x4086ad
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 0x4086cd
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.004224c2
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call main
cmp dword [ebp - 0x38], 0
jbe 0x4086ad
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 0x4086b2
ja 0x408718
add eax, 4
cmp eax, 0x10
jl 0x408702
jmp 0x4086b2
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push eax
call fcn.0040a05d
jmp 0x4086b0
Function at 0x409180
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x2c
mov eax, 0x43ac57
call fcn.004224e0
lea esi, [ecx + 0x130]
mov edi, 0x104
push edi
mov ecx, esi
call main
push eax
push edi
call dword [sym.imp.kernel32.dll_GetTempPathW]
test eax, eax
je 0x40929f
push 0xffffffffffffffff
mov ecx, esi
call main
mov eax, dword [esi]
sub eax, 0x10
push eax
call main
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov ecx, esi
push edi
mov dword [ebp - 4], ebx
call main
push eax
push ebx
push 0x44160c
lea ecx, [ebp - 0x10]
call fcn.004098f9
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 main
lea ecx, [ebp - 0x38]
call fcn.00415039
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.00407d6f
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
push 0x1001
push dword [esi]
lea ecx, [ebp - 0x38]
call main
test eax, eax
jne 0x409244
mov ecx, esi
call fcn.00401451
jmp 0x409281
push 0x441614
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 main
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.00415060
call fcn.004224ae
ret

Function at 0x4092bc
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x43ac8a
call fcn.004224e0
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call main
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 main
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 main
lea ecx, [ebp - 0x2c]
call fcn.0041623c
mov eax, dword [edi]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], 0
je 0x409369
push 0
push eax
lea ecx, [ebp - 0x2c]
call main
test eax, eax
je 0x409369
lea ecx, [ebp - 0x2c]
call fcn.00416681
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041679a
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call main
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00401856
lea ecx, [ebp - 0x2c]
call fcn.0041648d
jmp 0x40936b
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004163ed
mov eax, ebx
call fcn.004224ae
ret 4