joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40439f
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x42e58e
call fcn.004181ba
mov esi, ecx
call fcn.004070dc
push eax
lea ecx, [ebp - 0x10]
call fcn.004011e0
xor ebx, ebx
push ebx
push 0x25
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401307
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011b6
push str.Msi.dll
lea ecx, [ebp - 0x10]
call fcn.00402c94
lea ecx, [esi + 4]
push edi
call fcn.00401307
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.004011b6
push str.Path
lea ecx, [ebp - 0x18]
call fcn.00401a4a
push str.MSI_Updater
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401a4a
push 0x43f3a0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x43f2f8
mov byte [ebp - 4], 2
call fcn.004048a0
lea edi, [esi + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004013f1
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.004042e5
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4044e5
cmp dword [esi + 0xc], ebx
jne 0x4044ad
push edi
mov ecx, 0x43f2f8
call fcn.00404ae5
test eax, eax
jne 0x4044ad
mov ecx, edi
call fcn.00401205
jmp 0x4044e5
call fcn.004070dc
push eax
lea ecx, [ebp - 0x14]
call fcn.004011e0
lea eax, [ebp - 0x14]
push str.__quiet__norestart__overwriteoem
push eax
mov byte [ebp - 4], 4
call fcn.0040143e
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00402d34
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401038
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401038
call fcn.00418292
ret

Function at 0x4048a0
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x42e045
call fcn.004181ba
and dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004012e9
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.00401307
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 0x4307d8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.004011b6
inc edi
cmp esi, edi
jbe 0x4048c8
mov eax, ebx
call fcn.00418292
ret 0x10
Function at 0x404ae5
Capabilities:
Query environment variable

Disassembly:
push 0x1c
mov eax, 0x42e6d2
call fcn.004181ba
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp + 8]
call fcn.00401780
and dword [ebp - 4], 0
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401307
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.004011b6
lea ecx, [ebp - 0x28]
call fcn.0041148a
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 1
je 0x404b9d
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00411522
test eax, eax
je 0x404b9d
lea ecx, [ebp - 0x28]
call fcn.0041118a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.00411793
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004013f1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401038
lea ecx, [ebp - 0x28]
call fcn.004110a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004114b3
xor eax, eax
inc eax
jmp 0x404bab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004114b3
xor eax, eax
call fcn.00418292
ret 4
Function at 0x40509f
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x102c]
mov eax, 0x102c
call fcn.00418540
push 0xffffffffffffffff
push 0x42e70d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x43df70]
xor eax, ebp
mov dword [ebp + 0x1028], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x103c]
mov esi, dword [ebp + 0x1034]
mov dword [ebp - 0x24], ecx
call fcn.00401205
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [esi]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004023ee
push eax
push ebx
push esi
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x40520c
push str.SELECT__Message__FROM__Error__WHERE_Error.Error
lea ecx, [ebp - 0x1c]
call fcn.00401a4a
push 9
xor eax, eax
pop ecx
mov word [ebp + 0x1000], ax
lea edi, [ebp + 0x1002]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
push 0x14
lea eax, [ebp + 0x1000]
push eax
push dword [ebp + 0x1038]
mov byte [ebp - 4], 1
call fcn.0041885d
add esp, 0x10
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c94
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004023ee
push eax
push esi
push edi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x4051e7
push ebx
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x4051e7
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.004023ee
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x4051e7
push 0xffe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.00418320
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push 1
push dword [ebp - 0x18]
mov dword [ebp - 0x20], 0x800
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x4051e7
mov ecx, dword [ebp - 0x24]
lea eax, [ebp]
push eax
call fcn.004019af
cmp dword [ebp - 0x18], ebx
je 0x4051f4
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], ebx
je 0x405201
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401038
cmp dword [ebp - 0x10], ebx
je 0x405219
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1028]
xor ecx, ebp
call fcn.004181ab
add ebp, 0x102c
leave
ret
Function at 0x4052ca
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x42e745
call fcn.004181ba
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb0], ebx
je 0x4053c7
mov eax, dword [esi + 0xd8]
cmp eax, dword [0x4345c0]
jne 0x40539e
call fcn.004070dc
push eax
lea ecx, [ebp - 0x10]
call fcn.004011e0
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401307
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x405333
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401038
jmp 0x4053c7
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011b6
push str.BootStrap.log
lea ecx, [ebp - 0x10]
call fcn.00402c94
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
call fcn.00405055
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
lea ecx, [esi + 0xd4]
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 0x40538d
call fcn.00401038
lea ecx, [edi - 0x10]
jmp 0x405329
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 0x4053c7
add esi, 0xd4
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.00401205
call fcn.00418292
ret
Function at 0x4053cd
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x28
mov eax, 0x42e778
call fcn.004181ba
lea esi, [ecx + 0xd0]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.00401307
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4054e8
push 0xffffffffffffffff
mov ecx, esi
call fcn.004011b6
push esi
lea ecx, [ebp - 0x10]
call fcn.00401780
xor ebx, ebx
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00401307
push eax
push ebx
push 0x4320fc
lea ecx, [ebp - 0x10]
call fcn.004046cd
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.004011b6
lea ecx, [ebp - 0x20]
call fcn.00411be7
push ebx
push edi
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.00405055
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.00411fce
test eax, eax
jne 0x405489
mov ecx, esi
call fcn.00401205
jmp 0x4054cb
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.0041191d
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.00411cc2
call fcn.00418292
ret

Function at 0x4054ee
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x42e79b
call fcn.004181ba
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor ebx, ebx
xor esi, esi
call fcn.00401a4a
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40556c
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x405543
cmp eax, 2
je 0x405543
push edi
jmp 0x405547
lea ecx, [edi + edi]
push ecx
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x405591
mov edi, 0x43f39c
push str.Failed_to_register_value:
mov ecx, edi
call fcn.004019af
push dword [ebp + 0x14]
mov ecx, edi
call fcn.00402c94
mov ecx, 0x43f2f8
call fcn.004052ca
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401038
mov eax, esi
call fcn.00418292
ret
Function at 0x4055a4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405606
push edi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call esi
cmp edi, ebx
pop edi
jne 0x405606
inc ebx
jmp 0x40562b
mov esi, 0x43f39c
push str.Failed_to_register_DWORD_value:
mov ecx, esi
call fcn.004019af
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00402c94
mov ecx, 0x43f2f8
call fcn.004052ca
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x405723
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push edi
push 4
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
jne 0x40575d
push str.OpenSCManager_failed
mov ecx, 0x43f39c
call fcn.004019af
mov ecx, 0x43f2f8
call fcn.004052ca
xor eax, eax
jmp 0x4057df
push esi
push 4
push str.MSIServer
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x405796
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.OpenService_failed
mov ecx, 0x43f39c
call fcn.004019af
mov ecx, 0x43f2f8
call fcn.004052ca
xor eax, eax
jmp 0x4057de
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4057c7
push str.QueryServiceStatusEx_failed
mov ecx, 0x43f39c
call fcn.004019af
mov ecx, 0x43f2f8
call fcn.004052ca
jmp 0x4057d0
cmp dword [ebp - 0x20], 4
jne 0x4057d0
xor ebx, ebx
inc ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x405be3
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x20
mov eax, 0x42e81b
call fcn.004181ba
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0xc0], ebx
jne 0x405cf6
cmp dword [esi + 0x100], ebx
jne 0x405c45
cmp dword [esi + 0xfc], ebx
je 0x405c40
push 0x90
lea eax, [ebp - 0x1c]
push eax
call fcn.0040588b
mov eax, dword [eax]
push ebx
push 0x10024
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.0040523c
add esp, 0xc
cmp eax, 6
jne 0x405c45
mov byte [ebp - 0xd], bl
jmp 0x405c49
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x405c5a
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401038
cmp byte [ebp - 0xd], bl
jne 0x405cf6
lea edi, [esi + 0xd0]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x405c7e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.00401205
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 0x405cd6
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 0x405cd6
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 0x405cf6
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.00418292
ret
Function at 0x4065d9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x38
mov eax, 0x42e9d7
call fcn.004181ba
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.00401a4a
push str.Startup
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00401a4a
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.004048a0
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 0x406679
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401038
mov eax, ebx
call fcn.00418292
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.004188f9
add esp, 0x18
call fcn.004070dc
push eax
lea ecx, [ebp - 0x10]
call fcn.004011e0
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 0x4066d5
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401038
jmp 0x406666
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00401307
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 0x406704
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4066c8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011b6
cmp dword [ebp - 0x18], ebx
jbe 0x4066c8
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.004188f9
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp + eax - 0x34]
mov edx, dword [ebp + eax - 0x44]
cmp ecx, edx
jb 0x40674e
ja 0x40675b
add eax, 4
cmp eax, 0x10
jl 0x406738
lea ecx, [edi - 0x10]
call fcn.00401038
jmp 0x406663
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00405fc2
lea ecx, [edi - 0x10]
jmp 0x4066ce
Function at 0x40813e
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 0x408162
cmp dword [edi + 0x54], 0
jne 0x408162
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00412ec3
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.004080ff
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 0x40d733
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 0x40d77a
call fcn.00412ec3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d77a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40d796
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d2ab
mov esi, eax
test edi, edi
je 0x40d794
test ebx, ebx
je 0x40d794
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f629
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x43df70]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x40f6c1
push 0x434214
push 4
push eax
call fcn.00418ac2
push eax
call fcn.00401652
add esp, 0x10
push ebx
push edi
call fcn.00418cd1
mov edi, dword [eax]
call fcn.00418cd1
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00418c6e
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00418cd1
cmp dword [eax], ebx
je 0x40f6d8
call fcn.00418cd1
push dword [eax]
call fcn.00406e4d
pop ecx
jmp 0x40f6df
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40f66c
jmp 0x40f766
call fcn.00418cd1
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x40f762
cmp dword [ebp - 0x234], esi
jae 0x40f762
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00418320
add esp, 0xc
push 0x433f74
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x40f751
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40f751
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40f751
push ebx
push ebx
push esi
jmp 0x40f75a
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40f764
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004181ab
leave
ret

Function at 0x4181ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43df70]
jne 0x4181b5
repz ret
jmp fcn.00421d7c
Function at 0x427c05
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.0041d8d3
and dword [ebp - 4], 0
cmp dword [0x441e30], 0
mov ebx, eax
jne 0x427cb6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x427d67
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x427d67
push eax
call fcn.0041d861
mov dword [esp], 0x435a20
push edi
mov dword [0x441e30], eax
call esi
push eax
call fcn.0041d861
mov dword [esp], 0x435a0c
push edi
mov dword [0x441e34], eax
call esi
push eax
call fcn.0041d861
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x441e38], eax
call esi
push eax
call fcn.0041d861
pop ecx
mov dword [0x441e40], eax
test eax, eax
je 0x427cb6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d861
pop ecx
mov dword [0x441e3c], eax
mov eax, dword [0x441e3c]
cmp eax, ebx
je 0x427d0e
cmp dword [0x441e40], ebx
je 0x427d0e
push eax
call fcn.0041d8dc
push dword [0x441e40]
mov esi, eax
call fcn.0041d8dc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x427d0e
test edi, edi
je 0x427d0e
call esi
test eax, eax
je 0x427d05
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x427d05
test byte [ebp - 0xc], 1
jne 0x427d0e
or dword [ebp + 0x10], 0x200000
jmp 0x427d47
mov eax, dword [0x441e34]
cmp eax, ebx
je 0x427d47
push eax
call fcn.0041d8dc
pop ecx
test eax, eax
je 0x427d47
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x427d47
mov eax, dword [0x441e38]
cmp eax, ebx
je 0x427d47
push eax
call fcn.0041d8dc
pop ecx
test eax, eax
je 0x427d47
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441e30]
call fcn.0041d8dc
pop ecx
test eax, eax
je 0x427d67
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x427d69
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x781d2156
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x626a3417
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219