joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438b30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], edi
cmp dword [edi + 0x14], ebx
jbe 0x438b9d
nop dword [eax + eax]
mov esi, dword [edi + 0x10]
mov esi, dword [esi + ebx*4]
add esi, 0x184
cmp dword [esi + 8], 0
je 0x438b97
call eax
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp eax, ecx
jb 0x438b80
mov eax, dword [esi]
mov ecx, esi
push 0x64
call dword [eax + 4]
mov dword [esi + 8], 0
jmp 0x438b92
imul eax, eax, 0x64
xor edx, edx
mov edi, dword [esi]
div ecx
mov ecx, esi
push eax
call dword [edi + 4]
mov edi, dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
inc ebx
cmp ebx, dword [edi + 0x14]
jb 0x438b50
mov edi, dword [edi + 0x20]
test edi, edi
je 0x438be2
add edi, 0x184
cmp dword [edi + 8], 0
je 0x438be2
call eax
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0x438bd3
mov eax, dword [edi]
mov ecx, edi
push 0x64
call dword [eax + 4]
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
imul eax, eax, 0x64
xor edx, edx
mov esi, dword [edi]
div ecx
mov ecx, edi
push eax
call dword [esi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x10c], esi
call fcn.0048acb0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x108], 0
jne 0x449d7c
xor ecx, ecx
jmp 0x449d8e
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x449d85
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.00409e40
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00466907
mov esp, ebp
pop ebp
ret
Function at 0x44c390
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3b9e
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x44c4db
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x44c3f8
xor ecx, ecx
jmp 0x44c409
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44c400
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00409e40
push 0x516498
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00448de0
push str.Report.exe
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00448de0
add esp, 8
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x44c476
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44c45b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407610
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00406a90
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x44c48b
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407610
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x44c4b2
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407610
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x44c4ea
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407610
jmp 0x44c4ea
push 0xa
push str.Report.exe
lea ecx, [ebp - 0x28]
call fcn.00409e40
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push esi
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44c51d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407610
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.00466907
mov esp, ebp
pop ebp
ret
Function at 0x44c540
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x536014]
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, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 4], ebx
test esi, esi
je 0x44c5dc
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
cmp byte [esi], bl
jne 0x44c5a1
xor ecx, ecx
jmp 0x44c5af
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44c5a6
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00409e40
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
mov edi, dword [ebp - 0x40]
cmp edx, 0x10
mov eax, dword [ebp - 0x30]
mov ebx, 1
cmovae ecx, edi
cmp byte [eax + ecx - 1], 0x5c
je 0x44c5e2
mov byte [ebp - 0x41], bl
jmp 0x44c5e6
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
mov byte [ebp - 0x41], 0
test bl, 1
je 0x44c5fd
cmp edx, 0x10
jb 0x44c5fd
lea eax, [edx + 1]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00407610
cmp byte [ebp - 0x41], 0
je 0x44c630
cmp byte [esi], 0
jne 0x44c60c
xor ecx, ecx
jmp 0x44c61a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44c611
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00409e40
push 0x5c
push 1
lea ecx, [ebp - 0x28]
call fcn.00426d00
push 0xc
push str.regsvr32.exe
lea ecx, [ebp - 0x28]
call fcn.00409a60
push 0x38
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0048acb0
add esp, 0xc
mov dword [ebp - 0x88], 0x3c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x84], 0x440
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0xffffffffffffffff
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44c6c6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407610
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.00466907
mov esp, ebp
pop ebp
ret
Function at 0x44c8e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3c38
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0x104
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push 1
push 0
push str.SoftwarePhotoViewerInstall
push 0x80000001
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44c9b4
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x44c97a
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x44c987
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00426d00
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push str.Path
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [esi + 0x14], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x44c9d9
xor ecx, ecx
jmp 0x44c9e9
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44c9e0
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00409e40
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x44ca07
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407610
mov eax, esi
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.00466907
mov esp, ebp
pop ebp
ret

Function at 0x44d660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x38
lea eax, [ebp - 0x244]
mov dword [ebp - 0x248], 0x3c
push 0
push eax
call fcn.0048acb0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x23c], str.runas
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x234], str._regall
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x244], 0x400
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret
Function at 0x452180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4586
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x536014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00466950
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004cb7b6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x459e30
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4b88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x536014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov ebx, ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x459e7c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x459e68
lea edi, [eax + 1]
push edi
call fcn.00466d69
mov esi, eax
mov dword [ebp - 0x20], esi
push edi
push 0
push esi
mov dword [ebp - 4], 0
call fcn.0048acb0
add esp, 0x10
push esi
push dword [ebp - 0x14]
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x459ef6
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push str.StringFileInfo080404b0FileVersion
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x459ef6
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.00414730
mov edi, 1
jmp 0x459ef8
xor edi, edi
test esi, esi
je 0x459f07
push 1
push esi
call fcn.00466918
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45abf0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x45ac59
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466907
mov esp, ebp
pop ebp
ret
Function at 0x45b450
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [ebp - 8], esi
test esi, esi
je 0x45b5af
lea ecx, [esi*8]
mov eax, 0x2aaaaaab
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [esi*8]
lea eax, [ecx + ecx*2]
add eax, eax
sub edx, eax
sub edx, 2
je 0x45b499
sub edx, 2
jne 0x45b49c
add ecx, 2
jmp 0x45b49c
add ecx, 3
mov eax, dword [ebp + 0xc]
inc ecx
cmp dword [eax], ecx
jge 0x45b4b1
pop esi
mov dword [eax], ecx
mov eax, 0xfffffff0
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x55555556
imul esi
push edi
mov edi, dword [ebp + 8]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
xor eax, eax
test ecx, ecx
jle 0x45b546
dec ecx
mov eax, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 4], eax
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
shl ecx, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
lea eax, [eax + edx*4]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 2], al
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x45b4e2
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, esi
jge 0x45b5a1
movzx edx, byte [ebx]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, esi
jge 0x45b55b
movzx ecx, byte [ebx + 1]
jmp 0x45b55d
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], al
cmp dword [ebp - 0xc], esi
jge 0x45b596
and ecx, 0xf
mov al, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 2], al
jmp 0x45b59a
mov byte [edi + 2], 0x3d
mov byte [edi + 3], 0x3d
add edi, 4
mov ecx, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 8]
mov dword [ecx], eax
mov byte [edi], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b5c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 8], ecx
push edi
mov edx, ecx
xor edi, edi
xor ecx, ecx
xor esi, esi
test ebx, ebx
jle 0x45b6b9
nop
mov al, byte [esi + edx]
cmp al, 0x3d
jne 0x45b5ed
inc edi
cmp edi, 2
jg 0x45b636
cmp al, 0x7f
ja 0x45b636
movzx eax, al
mov al, byte [eax + 0x5122b0]
cmp al, 0x7f
je 0x45b636
cmp al, 0x40
jae 0x45b606
test edi, edi
jne 0x45b636
inc esi
inc ecx
cmp esi, ebx
jl 0x45b5e0
test ecx, ecx
je 0x45b6b9
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 0xc]
lea eax, [eax*2 + 7]
sar eax, 3
cmp dword [ecx], eax
jge 0x45b642
pop edi
pop esi
mov dword [ecx], eax
mov eax, 0xfffffff0
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffee
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 4], ecx
mov edi, 3
test esi, esi
jle 0x45b6b1
movzx ecx, byte [edx]
mov dl, byte [ecx + 0x5122b0]
xor ecx, ecx
cmp dl, 0x40
sete cl
shl ebx, 6
sub edi, ecx
movzx ecx, dl
and ecx, 0x3f
or ebx, ecx
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 4
jne 0x45b6a5
xor ecx, ecx
mov dword [ebp - 4], ecx
test edi, edi
jle 0x45b690
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
inc eax
cmp edi, 1
jle 0x45b69d
mov ecx, ebx
shr ecx, 8
mov byte [eax], cl
inc eax
cmp edi, 2
jle 0x45b6a5
mov byte [eax], bl
inc eax
mov edx, dword [ebp - 8]
dec esi
inc edx
mov dword [ebp - 8], edx
test esi, esi
jg 0x45b655
mov ecx, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bd60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa84
mov eax, dword [0x536014]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.SOFTWARERegisteredApplications]
push ebx
push esi
movups xmmword [ebp - 0x48], xmm0
push edi
movups xmm0, xmmword [0x516a18]
mov dword [ebp - 0xa7c], ecx
mov edi, 0x80004005
mov dword [ebp - 0xa74], edx
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0xa60], 0x80000002
movups xmm0, xmmword [0x516a28]
mov dword [ebp - 0xa5c], 0x20119
mov dword [ebp - 0xa58], 0x80000002
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0xa54], 0x20219
movups xmm0, xmmword [0x516a38]
mov dword [ebp - 0xa50], 0x80000001
mov dword [ebp - 0xa4c], 0x20019
movups xmmword [ebp - 0x18], xmm0
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0xa70]
mov dword [ebp - 0xa70], 0
push eax
push 0x20019
push 0
lea esi, [ecx*8]
inc ecx
mov ebx, dword [ebp + esi - 0xa60]
lea eax, [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 0xa80], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45bfa5
push 0x800
push eax
lea eax, [ebp - 0xa48]
push eax
call fcn.0048acb0
add esp, 0xc
mov dword [ebp - 0xa64], 0x800
lea eax, [ebp - 0xa64]
push eax
lea eax, [ebp - 0xa48]
push eax
push 0
push 0
push dword [ebp - 0xa74]
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45bf99
mov dword [ebp - 0xa6c], eax
lea eax, [ebp - 0xa6c]
push eax
push dword [ebp + esi - 0xa5c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xa48]
push 0
push eax
push ebx
call esi
test eax, eax
jne 0x45bf99
mov dword [ebp - 0xa68], eax
lea eax, [ebp - 0xa68]
push eax
push 0x20019
push 0
push 0x516a48
push dword [ebp - 0xa6c]
call esi
test eax, eax
jne 0x45bf8b
xor ebx, ebx
nop dword [eax]
nop dword [eax + eax]
push 0x200
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.0048acb0
add esp, 0xc
mov dword [ebp - 0xa78], 0x200
lea eax, [ebp - 0xa64]
mov dword [ebp - 0xa64], 0x800
push eax
lea eax, [ebp - 0xa48]
push eax
push 0
push 0
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x248]
push eax
push ebx
push dword [ebp - 0xa68]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
inc ebx
test esi, esi
jne 0x45bf6b
mov ecx, dword [ebp - 0xa7c]
lea edx, [ebp - 0x248]
push esi
push edx
lea edx, [ebp - 0xa48]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x10]
mov edi, eax
test edi, edi
jne 0x45bf7b
cmp esi, 0x103
jne 0x45bef0
push dword [ebp - 0xa68]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
jmp 0x45bf91
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xa6c]
call esi
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xa80]
cmp ecx, 3
jb 0x45be00
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466907
mov esp, ebp
pop ebp
ret
Function at 0x45c650
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4d98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x536014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
call fcn.0045b780
mov ecx, 0x600
cmp ax, cx
jb 0x45c80e
call fcn.0041baa0
mov edx, dword [eax]
cmp edx, vtable.ATL::CAtlStringMgr.0
jne 0x45c6a7
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x45c6ac
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push dword [esi]
push str.__s___d
push eax
call fcn.00416b10
add esp, 0x10
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x2001f
push str.SOFTWARERegisteredApplications
push 0x80000002
call fcn.0041bbb0
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x45c7b6
mov edi, dword [ebp + 8]
mov edx, dword [edi]
test edx, edx
je 0x45c73e
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c716
sub ecx, dword [ebp - 0x14]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebx]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x14
lea ecx, [ebp - 0x20]
push dword [edi]
push 0x80000002
call fcn.0045e520
test eax, eax
je 0x45c77e
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x45c762
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.004147e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push 2
push dword [eax]
push str.ApplicationDescription
call fcn.0045e5a0
push 2
push esi
push str.ApplicationIcon
lea ecx, [ebp - 0x20]
call fcn.0045e5a0
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push 2
push dword [eax]
push str.ApplicationName
call fcn.0045e5a0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x45c7c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45c80e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45c80c
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret