joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40692f
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.00421c60
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], edi
push ebx
push eax
call fcn.00421c60
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 0x4069b9
cmp dword [0x4559a4], ebx
je 0x4069a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push str.InstallUpdate:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x455994
call fcn.004014f0
add esp, 0x10
mov ecx, 0x4558c8
call fcn.0040b324
xor eax, eax
jmp 0x406a3a
mov esi, ebx
cmp dword [0x4559ac], ebx
jne 0x4069d3
push ebx
push ebx
push ebx
push ebx
push 0x43e294
call fcn.00413957
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x4069fe
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4069ed
mov eax, ebx
jmp 0x4069f0
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 0x406a28
mov ecx, dword [0x4559a8]
cmp dword [ebp - 4], 0xbc2
cmove ecx, edi
mov dword [0x4559a8], 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 0x406a41
Capabilities:
Identify system language via api

Disassembly:
push 0xa0
mov eax, 0x43a6a9
call fcn.00422500
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 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.0040cf7b
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.004224ce
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 fcn.00413957
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 0x4080af
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 0x4080d2
cmp eax, 0xd
je 0x4080d2
mov eax, dword [ebp + 0xc]
jmp 0x4080da
mov eax, dword [ebp + 0xc]
or eax, 0x100000
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push 0x4558c8
call fcn.004188bf
add esp, 0x10
pop ebp
ret
Function at 0x40859c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x43aaff
call fcn.00422533
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 fcn.0042382f
add esp, 0x18
call fcn.0040c68d
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 0x4086ad
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 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.004224e2
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call fcn.00401872
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 fcn.0042382f
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, 0x43ac77
call fcn.00422500
lea esi, [ecx + 0x130]
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 0x40929f
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 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 fcn.00401872
lea ecx, [ebp - 0x38]
call fcn.0041505f
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 fcn.004154e7
test eax, eax
jne 0x409244
mov ecx, esi
call fcn.00401451
jmp 0x409281
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.0041584e
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.00415086
call fcn.004224ce
ret

Function at 0x4092bc
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x43acaa
call fcn.00422500
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.00416262
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 fcn.004164ff
test eax, eax
je 0x409369
lea ecx, [ebp - 0x2c]
call fcn.004166a7
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004167c0
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.004164b3
jmp 0x40936b
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00416413
mov eax, ebx
call fcn.004224ce
ret 4
Function at 0x409910
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ad58
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.00423450
mov eax, dword [0x4535a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov esi, dword [ebp + 8]
call fcn.00401451
xor ecx, ecx
lea eax, [ebp - 0x1044]
push eax
push ecx
push dword [esi]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1044], ecx
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x409ab5
push str.SELECT__Message__FROM__Error__WHERE_Error.Error
lea ecx, [ebp - 0x1048]
call fcn.0040194d
push 9
xor eax, eax
mov byte [ebp - 4], 1
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
push 0xa
push 0x14
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
call fcn.004238c6
add esp, 0x10
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x1048]
push eax
call fcn.00403dd6
xor esi, esi
mov dword [ebp - 0x103c], esi
lea eax, [ebp - 0x1040]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x1048]
mov dword [ebp - 0x1040], esi
push dword [ebp - 0x1044]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x409a7f
push esi
push dword [ebp - 0x1040]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x409a7f
cmp dword [ebp - 0x103c], eax
je 0x409a10
push dword [ebp - 0x103c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x103c], esi
push eax
push dword [ebp - 0x1040]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x409a7f
push 0xffe
mov word [ebp - 0x1038], ax
lea eax, [ebp - 0x1036]
push esi
push eax
call fcn.00421c60
add esp, 0xc
mov dword [ebp - 0x104c], 0x800
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1038]
push eax
push 1
push dword [ebp - 0x103c]
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x409a7f
lea eax, [ebp - 0x1038]
mov ecx, ebx
push eax
call fcn.00401ec8
cmp dword [ebp - 0x103c], 0
je 0x409a93
push dword [ebp - 0x103c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1040], 0
je 0x409aa7
push dword [ebp - 0x1040]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1048]
lea ecx, [ecx - 0x10]
call fcn.00401856
cmp dword [ebp - 0x1044], 0
je 0x409ac9
push dword [ebp - 0x1044]
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 - 0x10]
xor ecx, ebp
call fcn.00421c51
mov esp, ebp
pop ebp
ret
Function at 0x409ae5
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x43b52d
call fcn.00422500
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.0040c68d
mov ecx, dword [ebp + 8]
push eax
call fcn.004012cf
push 0x7d
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
pop ebx
mov eax, dword [ebp + 0x14]
add ebx, ebx
mov ecx, dword [ebp + 8]
push ebx
mov esi, dword [eax]
call fcn.004017e6
push esi
push ebx
push eax
mov eax, dword [ebp + 0x10]
push 0x43d650
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call fcn.00401872
lea ecx, [esi + 1]
cmp ebx, ecx
jbe 0x409b14
mov eax, dword [ebp + 8]
call fcn.004224ce
ret 0x10
Function at 0x40afdb
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x2c
mov eax, 0x43af8d
call fcn.00422533
mov esi, ecx
mov dword [ebp - 0x24], esi
xor edi, edi
cmp dword [esi + 0xec], edi
jne 0x40b1b8
cmp dword [esi + 0xe4], edi
jne 0x40b1b8
call fcn.0040c68d
push eax
lea ecx, [ebp - 0x34]
call fcn.004012cf
mov dword [ebp - 4], edi
call fcn.0040c68d
push eax
lea ecx, [ebp - 0x2c]
call fcn.004012cf
mov byte [ebp - 4], 1
call fcn.0040c68d
push eax
lea ecx, [ebp - 0x38]
call fcn.004012cf
push dword [esi + 0x50]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00401ec8
mov ecx, dword [esi + 0x110]
test ecx, ecx
je 0x40b060
call fcn.00405053
test eax, eax
jne 0x40b060
push str.Adobe_Acrobat_Reader
jmp 0x40b065
push 0x43fb7c
lea ecx, [ebp - 0x2c]
call fcn.00401ec8
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
push 0x90
push eax
mov ecx, esi
mov dword [esi + 0x50], ebx
call fcn.00409b5a
push ebx
push dword [eax]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
call fcn.004014f0
mov ecx, dword [ebp - 0x30]
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401856
cmp dword [esi + 0x164], edi
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
jne 0x40b1a0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x160], 0
je 0x40b0df
push 0
push 0x10024
push esi
call fcn.004080af
add esp, 0xc
cmp eax, 6
jne 0x40b1a0
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x130]
mov dword [eax + 0x50], edi
mov dword [ebp - 0x30], ecx
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], 0
je 0x40b105
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x30]
call fcn.00401451
mov eax, dword [ebp - 0x24]
and dword [eax + 0xe0], 0
lea eax, [ebp - 0x28]
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b167
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
test eax, eax
je 0x40b167
xor ecx, ecx
lea eax, [ebp - 0x20]
push ecx
push ecx
push ecx
push eax
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 0x24], eax
push 1
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp dword [ebp - 0x24], 0
je 0x40b191
xor ecx, ecx
lea eax, [ebp - 0x20]
push ecx
push ecx
push ecx
push eax
push ecx
push dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp - 0x28], 0
je 0x40b1a0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi - 0x10]
call fcn.00401856
lea ecx, [ebx - 0x10]
call fcn.00401856
lea ecx, [esi - 0x10]
call fcn.00401856
call fcn.004224e2
ret
Function at 0x40b2bc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4535a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x11c
lea eax, [ebp - 0x120]
push edi
xor esi, esi
push esi
push eax
call fcn.00421c60
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x40b312
xor eax, eax
inc eax
cmp dword [ebp - 0x118], 2
cmove esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00421c51
mov esp, ebp
pop ebp
ret

Function at 0x40b7ed
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x43b018
call fcn.00422500
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.0040194d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov ebx, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b869
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x40b840
cmp ecx, 2
je 0x40b840
push ebx
jmp 0x40b844
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
push ecx
push esi
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]
test esi, esi
jne 0x40b88e
mov ebx, 0x455994
push 0x43ff14
mov ecx, ebx
call fcn.00401ec8
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00403dd6
mov ecx, 0x4558c8
call fcn.0040b324
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, esi
call fcn.004224ce
ret

Function at 0x40b8a1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b903
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b903
inc edi
jmp 0x40b928
mov esi, 0x455994
push str.Failed_to_register_DWORD_value:
mov ecx, esi
call fcn.00401ec8
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00403dd6
mov ecx, 0x4558c8
call fcn.0040b324
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f9ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40f9ff
call fcn.00419489
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f9ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40fa1b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040bc51
mov ebx, eax
test edi, edi
je 0x40fa19
test esi, esi
je 0x40fa19
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4333b5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4535a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00429102
mov dword [ebp - 0x14], eax
cmp dword [0x45895c], esi
jne 0x4334a8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x433435
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x433588
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x433588
push 0x445a44
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433588
push eax
call ebx
push 0x445a50
push edi
mov dword [0x45895c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x445a60
push edi
mov dword [0x458960], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x458964], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45896c], eax
test eax, eax
je 0x4334a5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x458968], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4334cd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4334c0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4334e2
push 4
pop eax
jmp 0x43358a
cmp dword [ebp - 0x14], esi
je 0x4334e2
push dword [0x45895c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4334c7
mov eax, dword [0x458968]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x433540
cmp dword [0x45896c], edi
je 0x433540
push eax
call ebx
push dword [0x45896c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x433540
test eax, eax
je 0x433540
call ecx
test eax, eax
je 0x433535
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x433535
test byte [ebp - 8], 1
jne 0x433540
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x433570
mov eax, dword [0x458960]
cmp eax, edi
je 0x43356d
push eax
call ebx
test eax, eax
je 0x43356d
call eax
mov esi, eax
test esi, esi
je 0x43356d
mov eax, dword [0x458964]
cmp eax, edi
je 0x43356d
push eax
call ebx
test eax, eax
je 0x43356d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45895c]
call ebx
test eax, eax
je 0x433588
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x43358a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421c51
mov esp, ebp
pop ebp
ret