joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544feb
mov eax, dword fs:[0]
push eax
sub esp, 0x65c
mov eax, dword [0x5ec938]
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 + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x640], esi
mov dword [ebp - 0x648], esi
cmp ebx, esi
je 0x4081b0
mov edx, dword [ecx + 0x65c]
lea edi, [ebp - 0x648]
push edi
lea edi, [ebp - 0x640]
push edi
add ecx, 0x65c
push str.QMUpdate
push eax
mov eax, dword [edx + 0x10]
call eax
cmp eax, esi
je 0x4081b0
mov eax, dword [ebp - 0x640]
cmp dword [eax], esi
jle 0x4081b0
cmp dword [eax + 0x210], 1
jne 0x4081b0
lea ecx, [ebp - 0x63c]
push ecx
push 0x20019
push esi
push str.SOFTWARECanonQuick_Menu
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4081d0
mov edx, dword [ebp - 0x63c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
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.0052c2ec
mov esp, ebp
pop ebp
ret 8
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x218], ax
call fcn.0052c850
add esp, 0xc
lea edx, [ebp - 0x644]
push edx
mov edx, dword [ebp - 0x63c]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x64c]
push ecx
push esi
push str.AppPath
push edx
mov dword [ebp - 0x64c], esi
mov dword [ebp - 0x644], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x4081b0
lea ecx, [ebp - 0x668]
call fcn.00438f15
push esi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x668]
mov dword [ebp - 4], esi
call fcn.00438fbc
lea ecx, [ebp - 0x668]
mov edi, eax
call fcn.00438a9f
cmp edi, esi
jne 0x408286
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x668]
call fcn.00438f47
jmp 0x4081b0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x638]
push 0x104
push eax
call fcn.0052cd4a
push str._update
lea ecx, [ebp - 0x430]
push 0x104
push ecx
call fcn.0052cd4a
add esp, 0x18
push 0x420
push 8
mov dword [ebp - 0x228], 0x8001
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x408276
mov edi, eax
mov ecx, 0x108
lea esi, [ebp - 0x638]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x668]
mov dword [ebx], eax
call fcn.00438f47
mov eax, 1
jmp 0x4081b2
Function at 0x4083e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x408488
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0052c850
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x408449
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edx, dword [ebp + 0xc]
push str.SYSTEM
push str.UserProfile
push str.CanonIJSMEX
lea ecx, [ebp - 0x20c]
push ecx
push str._s_s_s_s
push edx
push esi
call fcn.0052d99b
xor ecx, ecx
add esp, 0x1c
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 8

Function at 0x4084a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
test esi, esi
je 0x408530
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0052c850
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x408505
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 8
push str.CanonIJWSpt
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
push ecx
push edx
push esi
call fcn.0052cd4a
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 8
Function at 0x408810
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0052c850
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x230]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40887f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push edi
lea edx, [ebp - 0x20c]
push edx
call ebx
test eax, eax
je 0x4088e0
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x4088c4
push edi
lea ecx, [ebp - 0x20c]
push ecx
call ebx
test eax, eax
je 0x4088e0
lea edx, [ebp - 0x230]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4088a5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 4

Function at 0x408a40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xdb38]
mov dword [ebp - 0x24], 0
cmp eax, 5
ja 0x408a84
jne 0x408a80
cmp dword [esi + 0xdb3c], 1
jae 0x408a84
xor ecx, ecx
jmp 0x408a92
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x24]
movzx eax, cx
test eax, eax
je 0x408ab6
cmp eax, 6
je 0x408ab6
cmp eax, 9
je 0x408ab6
mov ecx, 0xffff
mov word [esi + 0xdc48], cx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov word [esi + 0xdc48], cx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54544b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5ec938]
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 edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
mov dword [ebp - 0x224], ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.0052c850
add esp, 0xc
push 0x556794
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x22c], 0x208
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x220], ebx
call fcn.00404fe0
movzx eax, word [edi + 0xdc48]
mov dword [ebp - 4], ebx
cmp eax, 9
je 0x40d8fa
cmp eax, 6
je 0x40d8fa
cmp ax, bx
jne 0x40d92b
mov eax, dword [ebp - 0x228]
jmp 0x40d909
mov eax, 0x101
mov edi, str.ProgramFilesDir__x86_
cmp dword [ebp + 0xc], ebx
jne 0x40d90e
mov edi, str.ProgramFilesDir
lea ecx, [ebp - 0x220]
push ecx
push eax
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d964
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
call fcn.004023a0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40d9f8
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [ebp - 0x220]
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x224]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d9b7
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d995
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.004026f0
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
call fcn.004023a0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.0052c2ec
mov esp, ebp
pop ebp
ret 8
Function at 0x40f0e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54568b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x5ec938]
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 esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0x424], eax
test esi, esi
je 0x40f1b0
test edi, edi
je 0x40f1b0
push 0
push 0x556794
mov ecx, esi
call fcn.004026f0
xor ecx, ecx
mov word [edi], cx
call fcn.00436219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f15c
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x414], eax
lea ecx, [ebp - 0x414]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0040d5b0
test eax, eax
jne 0x40f1d0
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f1b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.0052c2ec
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x414]
mov edx, dword [ebp - 0x424]
lea ecx, [ebp - 0x418]
push ecx
push 1
push 0
push ebx
push edx
mov dword [ebp - 0x418], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40f216
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40f1a4
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x40e]
push edx
mov word [ebp - 0x410], cx
call fcn.0052c850
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0
push str.InstallID
push eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x420], 0x400
call ebx
test eax, eax
jne 0x40f285
lea ecx, [ebp - 0x410]
push ecx
mov ecx, esi
call fcn.00402bd0
push 0x400
lea edx, [ebp - 0x410]
push 0
push edx
mov dword [ebp - 0x41c], 0
call fcn.0052c850
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0
push str.Language
push eax
call ebx
test eax, eax
jne 0x40f2e3
push 0x10
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.0052c2b8
add esp, 0xc
mov word [edi], ax
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x414]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f319
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40f1b2
Function at 0x412540
Capabilities:
Create shortcut via ishelllink
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54585b
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4125ba
lea ecx, [ebp - 0x424]
push ecx
push 0x58469c
push 1
push 0
push 0x584a0c
mov dword [ebp - 0x424], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x4125c4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0x643
jmp 0x41276d
mov eax, dword [ebp - 0x424]
lea edi, [esi + 0x208]
mov dword [ebp - 0x428], 0
mov edx, dword [eax]
push edi
push eax
mov eax, dword [edx + 0x50]
call eax
cmp word [esi + 0x618], 0
lea eax, [esi + 0x618]
je 0x412602
mov ecx, dword [ebp - 0x424]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push ecx
call eax
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov eax, dword [ebp - 0x424]
mov edx, dword [esi + 0x820]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax]
lea edx, [esi + 0x410]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax]
lea edx, [ebp - 0x428]
push edx
push 0x58499c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jne 0x412757
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.0052c850
mov eax, dword [ebp - 0x430]
push esi
push eax
push str._s_s
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0052d99b
add esp, 0x20
lea ecx, [ebp - 0x44c]
call fcn.00438f15
push 0
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0
call fcn.00438fbc
test eax, eax
je 0x4126e0
push 0x20
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x44c]
call fcn.00438a9f
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0052cd4a
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
add esp, 0xc
push 1
lea edx, [ebp - 0x420]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0x42c]
push 0
lea eax, [ebp - 0x218]
push eax
add ecx, 0xdd9c
call fcn.004269f0
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0xffffffff
call fcn.00438f47
mov eax, dword [ebp - 0x424]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 8
Function at 0x412d90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
push edi
push 0x40
xor edi, edi
lea eax, [ebp - 0x88]
push edi
push eax
mov esi, ecx
call fcn.0052c850
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [ebp + 8]
push edi
push edi
push 0x200
mov eax, 0xc
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push edx
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x8c], 0x44
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x412ed1
cmp dword [ebp + 0xc], edi
je 0x412ea6
push ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
jmp 0x412e20
mov eax, dword [esi + 0x130]
cmp eax, edi
je 0x412e7b
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x412e7b
push 1
push edi
push edi
push edi
lea ecx, [ebp - 0x48]
push ecx
call ebx
test eax, eax
je 0x412e7b
mov eax, dword [esi + 0x130]
cmp eax, edi
jne 0x412e55
xor eax, eax
jmp 0x412e58
mov eax, dword [eax + 0x20]
lea edx, [ebp - 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x412e7b
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [ebp - 0x2c]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x412e97
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412e20
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
pop ebx
mov edx, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x2c]
push eax
call esi
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x412ec4
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x206
mov dword [ebp - 0x428], ecx
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x420], ebx
mov word [ebp - 0x20c], ax
call fcn.0052c850
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x41c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4133a8
pop esi
mov eax, 0x643
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 8
push edi
cmp dword [ebp + 8], ebx
jbe 0x413505
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esi, 0x620
mov edi, edi
cmp dword [esi + 0x628], 0
je 0x4134f5
push esi
lea ecx, [esi - 0x208]
push ecx
push str._s_s
lea edx, [ebp - 0x20c]
push 0x104
push edx
mov dword [ebp - 0x420], 4
call fcn.0052d99b
add esp, 0x14
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x41c]
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
push eax
call edi
test eax, eax
jne 0x413429
inc dword [ebp - 0x418]
jmp 0x4134b3
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.0052c850
add esp, 0xc
push 0x104
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edx, [ebp - 0x420]
push edx
mov edx, dword [ebp - 0x41c]
lea eax, [ebp - 0x418]
push eax
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
push edx
call edi
test eax, eax
jne 0x4134a9
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0052cd4a
add esp, 0xc
inc dword [ebp - 0x418]
jmp 0x4134b3
mov dword [ebp - 0x418], 1
mov ecx, dword [ebp - 0x41c]
push 4
lea edx, [ebp - 0x418]
push edx
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x413527
mov ecx, dword [ebp - 0x428]
lea edx, [ebp - 0x20c]
push edx
push str.SHAREDFILE
add ecx, 0xdd9c
call fcn.00427000
inc ebx
add esi, 0xc54
cmp ebx, dword [ebp + 8]
jb 0x4133c0
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x643
pop ebx
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 8
Function at 0x414330
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54597b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5ec938]
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 + 8]
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.0052c850
add esp, 0xc
lea edx, [ebp - 0x42c]
push edx
lea ecx, [edi + 0x148]
call fcn.00409a70
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 4], 1
mov dword [ebp - 4], 0
jle 0x4143af
mov eax, dword [eax - 0xc]
push eax
mov ecx, esi
call fcn.004021c0
mov esi, dword [esi]
push str.uninst.exe
push esi
push str._s_s
lea ecx, [ebp - 0x420]
push 0x104
push ecx
call fcn.0052d99b
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4143f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x424]
push ecx
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4144d8
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.0052c850
push ebx
push str._RebootAfterProc
lea ecx, [ebp - 0x420]
push ecx
push 0x559150
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.0052d99b
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052ceda
add esp, 0x2c
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [edi + 0x148]
lea esi, [eax + 1]
call fcn.0040b760
mov eax, dword [eax]
mov ecx, dword [ebp - 0x424]
push esi
lea edx, [ebp - 0x218]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4144cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
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.0052c2ec
mov esp, ebp
pop ebp
ret 4