joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f51
Capabilities:
Reference sql statements

Disassembly:
push 0x14
mov eax, 0x42d547
call fcn.0041755a
xor edi, edi
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], edi
call fcn.00401a49
mov esi, 0x430230
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00402c5e
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00402cfe
push esi
lea ecx, [ebp - 0x18]
call fcn.00402c5e
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.004023f0
push eax
push esi
push dword [ebp + 0xc]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x402fc4
mov ecx, dword [ebp + 8]
call fcn.00401308
jmp 0x403056
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x402fb7
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004023f0
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
cmp eax, edi
jne 0x402fb7
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 0x402fb7
call fcn.00406510
push eax
lea ecx, [ebp + 0x10]
call fcn.004011ff
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.00401326
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.004011d5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
call fcn.0040177f
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401038
cmp dword [ebp - 0x10], edi
je 0x403063
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], edi
je 0x403070
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401038
mov eax, dword [ebp + 8]
call fcn.00417632
ret 0xc
Function at 0x40379b
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x42d69f
call fcn.0041755a
lea eax, [ebp - 0x10]
push eax
call fcn.00403086
xor esi, esi
push 0x44
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.004176c0
push 0x10
lea eax, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 0x68], 0x44
call fcn.004176c0
mov eax, dword [ebp - 0x10]
add esp, 0x18
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401326
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 0x40382f
cmp dword [0x43e388], esi
je 0x403823
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str.InstallProduct:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x43e37c
call fcn.0040145d
add esp, 0x10
mov ecx, 0x43e2d8
call fcn.00404a84
jmp 0x403880
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 0x403870
cmp dword [ebp - 0x14], 0xbc2
jne 0x403870
cmp dword [0x43e38c], esi
jne 0x403870
mov ecx, 0x43e2d8
mov dword [0x43e38c], 1
call fcn.00403fbb
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.00401038
call fcn.00417632
ret
Function at 0x403a95
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.004176c0
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x58], 0x44
call fcn.004176c0
add edi, 8
mov eax, dword [edi]
add esp, 0x18
push dword [eax - 0xc]
mov ecx, edi
call fcn.00401326
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 0x403b20
cmp dword [0x43e388], esi
je 0x403b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push str.InstallUpdate:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x43e37c
call fcn.0040145d
add esp, 0x10
mov ecx, 0x43e2d8
call fcn.00404a84
xor eax, eax
jmp 0x403ba4
xor edi, edi
cmp dword [0x43e390], esi
jne 0x403b3a
push esi
push esi
push esi
push esi
push 0x42fad0
call fcn.0040dda3
mov edi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, esi
je 0x403b65
mov eax, dword [edi + 0x20]
cmp eax, esi
jne 0x403b54
xor eax, eax
jmp 0x403b57
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 0x403b92
cmp dword [ebp - 4], 0xbc2
jne 0x403b92
mov ecx, 0x43e2d8
mov dword [0x43e38c], edi
call fcn.00403fbb
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 0x403c6f
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x42e275
call fcn.0041755a
mov esi, ecx
push 0
lea ebx, [esi + 8]
push str.http:__
mov ecx, ebx
call fcn.004024e2
test eax, eax
je 0x403ca4
push 0
push str.ftp:__
mov ecx, ebx
call fcn.004024e2
test eax, eax
jne 0x403d23
push 0x2f
mov ecx, ebx
call fcn.00402406
mov ecx, dword [ebx]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ecx - 0xc]
jne 0x403cc1
mov ecx, ebx
call fcn.00401224
jmp 0x403d23
lea ecx, [esi + 0x10]
push ebx
mov dword [esi + 0xc], 1
call fcn.00401410
lea edi, [esi + 0x14]
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401326
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011d5
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00403ba8
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00402cfe
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401038
push edi
mov ecx, ebx
call fcn.00401410
call fcn.00417632
ret
Function at 0x403d29
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x42d73e
call fcn.0041755a
mov esi, ecx
call fcn.00406510
push eax
lea ecx, [ebp - 0x10]
call fcn.004011ff
xor ebx, ebx
push ebx
push 0x25
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401326
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011d5
push str.Msi.dll
lea ecx, [ebp - 0x10]
call fcn.00402c5e
lea ecx, [esi + 4]
push edi
call fcn.00401326
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.004011d5
push str.Path
lea ecx, [ebp - 0x18]
call fcn.00401a49
push str.MSI_Updater
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401a49
push 0x43e380
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x43e2d8
mov byte [ebp - 4], 2
call fcn.00404231
lea edi, [esi + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00401410
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401038
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401038
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.00401038
mov ecx, esi
call fcn.00403c6f
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x403e6f
cmp dword [esi + 0xc], ebx
jne 0x403e37
push edi
mov ecx, 0x43e2d8
call fcn.00404476
test eax, eax
jne 0x403e37
mov ecx, edi
call fcn.00401224
jmp 0x403e6f
call fcn.00406510
push eax
lea ecx, [ebp - 0x14]
call fcn.004011ff
lea eax, [ebp - 0x14]
push str.__quiet__norestart__overwriteoem
push eax
mov byte [ebp - 4], 4
call fcn.0040145d
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00402cfe
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401038
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401038
call fcn.00417632
ret

Function at 0x404231
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x42d4be
call fcn.0041755a
and dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00401308
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.00401326
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 0x42f7a8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.004011d5
inc edi
cmp esi, edi
jbe 0x404259
mov eax, ebx
call fcn.00417632
ret 0x10
Function at 0x404476
Capabilities:
Query environment variable

Disassembly:
push 0x1c
mov eax, 0x42d882
call fcn.0041755a
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp + 8]
call fcn.0040177f
and dword [ebp - 4], 0
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401326
push esi
mov esi, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401038
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011d5
lea ecx, [ebp - 0x28]
call fcn.00410846
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 1
je 0x40452e
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.004108de
test eax, eax
je 0x40452e
lea ecx, [ebp - 0x28]
call fcn.00410546
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.00410b4f
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00401410
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401038
lea ecx, [ebp - 0x28]
call fcn.00410460
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041086f
xor eax, eax
inc eax
jmp 0x40453c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041086f
xor eax, eax
call fcn.00417632
ret 4
Function at 0x404a84
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x42d8d3
call fcn.0041755a
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb0], ebx
je 0x404b81
mov eax, dword [esi + 0xd0]
cmp eax, dword [0x4330b0]
jne 0x404b58
call fcn.00406510
push eax
lea ecx, [ebp - 0x10]
call fcn.004011ff
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401326
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x404aed
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401038
jmp 0x404b81
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011d5
push str.BootStrap.log
lea ecx, [ebp - 0x10]
call fcn.00402c5e
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
call fcn.004049ac
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
lea ecx, [esi + 0xcc]
mov eax, dword [ecx]
push 0x1021
push edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x24], vtable.CFileException.0
test eax, eax
jne 0x404b47
call fcn.00401038
lea ecx, [edi - 0x10]
jmp 0x404ae3
call fcn.00401038
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00401038
lea edi, [esi + 0xa4]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x404b81
add esi, 0xcc
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov ecx, edi
call fcn.00401224
call fcn.00417632
ret
Function at 0x404b87
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x28
mov eax, 0x42d906
call fcn.0041755a
lea esi, [ecx + 0xc8]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.00401326
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404ca2
push 0xffffffffffffffff
mov ecx, esi
call fcn.004011d5
push esi
lea ecx, [ebp - 0x10]
call fcn.0040177f
xor ebx, ebx
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00401326
push eax
push ebx
push 0x430dc8
lea ecx, [ebp - 0x10]
call fcn.00404070
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
or edi, 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 4], edi
call fcn.00401038
push edi
mov ecx, esi
call fcn.004011d5
lea ecx, [ebp - 0x20]
call fcn.00410fa3
push ebx
push edi
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.004049ac
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push 0x1001
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0041138a
test eax, eax
jne 0x404c43
mov ecx, esi
call fcn.00401224
jmp 0x404c85
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 dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x20]
call fcn.00410cd9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.00401038
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.0041107e
call fcn.00417632
ret
Function at 0x405095
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x20
mov eax, 0x42d986
call fcn.0041755a
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0xf8], ebx
jne 0x4050eb
cmp dword [esi + 0xf4], ebx
je 0x4050e6
push 0x90
lea eax, [ebp - 0x1c]
push eax
call fcn.00404d3d
mov eax, dword [eax]
push ebx
push 0x10024
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.004049f6
add esp, 0xc
cmp eax, 6
jne 0x4050eb
mov byte [ebp - 0xd], bl
jmp 0x4050ef
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x405100
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401038
cmp byte [ebp - 0xd], bl
jne 0x40519c
lea edi, [esi + 0xc8]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x405124
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.00401224
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0xb4], ebx
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40517c
lea eax, [ebp - 0x28]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
cmp esi, ebx
je 0x40517c
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, ebx
je 0x40519c
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call edi
call fcn.00417632
ret
Function at 0x405a7f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x38
mov eax, 0x42db1f
call fcn.0041755a
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], ebx
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.RequireIE
lea ecx, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0x104
call fcn.00401a49
push str.Startup
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00401a49
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404231
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401038
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00401038
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], ebx
jne 0x405b1f
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401038
mov eax, ebx
call fcn.00417632
ret
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov edi, str._d._d._d._d
push edi
push eax
call fcn.00417b3e
add esp, 0x18
call fcn.00406510
push eax
lea ecx, [ebp - 0x10]
call fcn.004011ff
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
mov byte [ebp - 4], 5
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405b7b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401038
jmp 0x405b0c
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00401326
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
test eax, eax
je 0x405baa
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405b6e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011d5
cmp dword [ebp - 0x18], ebx
jbe 0x405b6e
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.00417b3e
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp + eax - 0x34]
mov edx, dword [ebp + eax - 0x44]
cmp ecx, edx
jb 0x405bf4
ja 0x405c01
add eax, 4
cmp eax, 0x10
jl 0x405bde
lea ecx, [edi - 0x10]
call fcn.00401038
jmp 0x405b09
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00405468
lea ecx, [edi - 0x10]
jmp 0x405b74
Function at 0x407572
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x407596
cmp dword [edi + 0x54], 0
jne 0x407596
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041227f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00407533
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40cb7b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40cbc2
call fcn.0041227f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40cbc2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40cbde
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040c6f3
mov esi, eax
test edi, edi
je 0x40cbdc
test ebx, ebx
je 0x40cbdc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41754b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43cf70]
jne 0x417555
repz ret
jmp fcn.00420ffc
Function at 0x426e83
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041cb53
and dword [ebp - 4], 0
cmp dword [0x440e00], 0
mov ebx, eax
jne 0x426f34
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x426fe5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x426fe5
push eax
call fcn.0041cae1
mov dword [esp], 0x434510
push edi
mov dword [0x440e00], eax
call esi
push eax
call fcn.0041cae1
mov dword [esp], 0x4344fc
push edi
mov dword [0x440e04], eax
call esi
push eax
call fcn.0041cae1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x440e08], eax
call esi
push eax
call fcn.0041cae1
pop ecx
mov dword [0x440e10], eax
test eax, eax
je 0x426f34
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041cae1
pop ecx
mov dword [0x440e0c], eax
mov eax, dword [0x440e0c]
cmp eax, ebx
je 0x426f8c
cmp dword [0x440e10], ebx
je 0x426f8c
push eax
call fcn.0041cb5c
push dword [0x440e10]
mov esi, eax
call fcn.0041cb5c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x426f8c
test edi, edi
je 0x426f8c
call esi
test eax, eax
je 0x426f83
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x426f83
test byte [ebp - 0xc], 1
jne 0x426f8c
or dword [ebp + 0x10], 0x200000
jmp 0x426fc5
mov eax, dword [0x440e04]
cmp eax, ebx
je 0x426fc5
push eax
call fcn.0041cb5c
pop ecx
test eax, eax
je 0x426fc5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x426fc5
mov eax, dword [0x440e08]
cmp eax, ebx
je 0x426fc5
push eax
call fcn.0041cb5c
pop ecx
test eax, eax
je 0x426fc5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x440e00]
call fcn.0041cb5c
pop ecx
test eax, eax
je 0x426fe5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x426fe7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret