joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424ab0
Capabilities:
Access peb ldr_data
Get file size
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edde1
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x533014]
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 eax, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x14
mov dword [ebp - 0x3c], eax
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00463756
add esp, 4
mov edi, eax
mov dword [ebp - 0x34], edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
mov dword [edi + 4], 0
mov dword [edi + 0xc], edi
mov dword [edi + 8], 0x425590
mov dword [edi], vtable.PdfFileAccessImpl.0
mov dword [edi + 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x38]
mov dword [edi + 0x10], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x38]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x14], edi
mov edi, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov esi, dword [edi + 0x14]
mov edx, ebx
lea eax, [esi + 4]
neg esi
sbb esi, esi
and esi, eax
call fcn.00448bd0
cmp dword [eax + 0x14], 0x10
jb 0x424bc3
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.pdfium.dll__FPDF_LoadCustomDocument_8]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x424be2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407610
call dword [sym.imp.pdfium.dll__FPDF_GetLastError_0]
push dword [edi]
mov dword [edi + 0x10], eax
call dword [sym.imp.pdfium.dll__FPDF_GetPageCount_4]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x30]
mov dword [edi + 0x34], eax
cmp dword [edi + 4], 0
jne 0x424c35
push 0x44
lea esi, [edi + 0x3c]
push 0
push esi
call fcn.00487ab0
add esp, 0xc
mov dword [esi], 1
push esi
push dword [edi]
call dword [sym.imp.pdfium.dll__FPDFDOC_InitFormFillEnvironment_8]
mov dword [edi + 4], eax
mov eax, edi
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.0046370d
mov esp, ebp
pop ebp
ret 8
Function at 0x436150
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 0x4361bd
nop dword [eax + eax]
mov esi, dword [edi + 0x10]
mov esi, dword [esi + ebx*4]
add esi, 0x184
cmp dword [esi + 8], 0
je 0x4361b7
call eax
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp eax, ecx
jb 0x4361a0
mov eax, dword [esi]
mov ecx, esi
push 0x64
call dword [eax + 4]
mov dword [esi + 8], 0
jmp 0x4361b2
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 0x436170
mov edi, dword [edi + 0x20]
test edi, edi
je 0x436202
add edi, 0x184
cmp dword [edi + 8], 0
je 0x436202
call eax
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4361f3
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 0x447100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x533014]
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.00487ab0
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 0x44716c
xor ecx, ecx
jmp 0x44717e
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x447175
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.0046370d
mov esp, ebp
pop ebp
ret
Function at 0x4496a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f083e
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x533014]
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 0x4497eb
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x449708
xor ecx, ecx
jmp 0x449719
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x449710
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00409e40
push 0x5133d8
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004461d0
push str.Report.exe
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004461d0
add esp, 8
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x449786
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44976b
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 0x44979b
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 0x4497c2
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 0x4497fa
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407610
jmp 0x4497fa
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 0x44982d
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.0046370d
mov esp, ebp
pop ebp
ret
Function at 0x449850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0878
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x533014]
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 0x4498ec
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
cmp byte [esi], bl
jne 0x4498b1
xor ecx, ecx
jmp 0x4498bf
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4498b6
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 0x4498f2
mov byte [ebp - 0x41], bl
jmp 0x4498f6
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
mov byte [ebp - 0x41], 0
test bl, 1
je 0x44990d
cmp edx, 0x10
jb 0x44990d
lea eax, [edx + 1]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00407610
cmp byte [ebp - 0x41], 0
je 0x449940
cmp byte [esi], 0
jne 0x44991c
xor ecx, ecx
jmp 0x44992a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x449921
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00409e40
push 0x5c
push 1
lea ecx, [ebp - 0x28]
call fcn.00424930
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.00487ab0
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 0x4499d6
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.0046370d
mov esp, ebp
pop ebp
ret
Function at 0x449bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f08d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x533014]
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 0x449cc4
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x449c8a
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 0x449c97
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00424930
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 0x449ce9
xor ecx, ecx
jmp 0x449cf9
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x449cf0
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00409e40
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x449d17
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.0046370d
mov esp, ebp
pop ebp
ret

Function at 0x44a970
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x533014]
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.00487ab0
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.0046370d
mov esp, ebp
pop ebp
ret
Function at 0x44efb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f11a6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x533014]
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.00463756
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004c85a0
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 0x456c80
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f17a8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x533014]
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 0x456ccc
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 0x456cb8
lea edi, [eax + 1]
push edi
call fcn.00463b6f
mov esi, eax
mov dword [ebp - 0x20], esi
push edi
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00487ab0
add esp, 0x10
push esi
push dword [ebp - 0x14]
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x456d46
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 0x456d46
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
call fcn.00414450
mov edi, 1
jmp 0x456d48
xor edi, edi
test esi, esi
je 0x456d57
push 1
push esi
call fcn.0046371e
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 0x4579f0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x533014]
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 0x457a59
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.0046370d
mov esp, ebp
pop ebp
ret
Function at 0x458250
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 0x4583af
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 0x458299
sub edx, 2
jne 0x45829c
add ecx, 2
jmp 0x45829c
add ecx, 3
mov eax, dword [ebp + 0xc]
inc ecx
cmp dword [eax], ecx
jge 0x4582b1
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 0x458346
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 0x4582e2
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, esi
jge 0x4583a1
movzx edx, byte [ebx]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, esi
jge 0x45835b
movzx ecx, byte [ebx + 1]
jmp 0x45835d
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 0x458396
and ecx, 0xf
mov al, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 2], al
jmp 0x45839a
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 0x4583c0
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 0x4584b9
nop
mov al, byte [esi + edx]
cmp al, 0x3d
jne 0x4583ed
inc edi
cmp edi, 2
jg 0x458436
cmp al, 0x7f
ja 0x458436
movzx eax, al
mov al, byte [eax + 0x50f1d0]
cmp al, 0x7f
je 0x458436
cmp al, 0x40
jae 0x458406
test edi, edi
jne 0x458436
inc esi
inc ecx
cmp esi, ebx
jl 0x4583e0
test ecx, ecx
je 0x4584b9
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 0xc]
lea eax, [eax*2 + 7]
sar eax, 3
cmp dword [ecx], eax
jge 0x458442
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 0x4584b1
movzx ecx, byte [edx]
mov dl, byte [ecx + 0x50f1d0]
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 0x4584a5
xor ecx, ecx
mov dword [ebp - 4], ecx
test edi, edi
jle 0x458490
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
inc eax
cmp edi, 1
jle 0x45849d
mov ecx, ebx
shr ecx, 8
mov byte [eax], cl
inc eax
cmp edi, 2
jle 0x4584a5
mov byte [eax], bl
inc eax
mov edx, dword [ebp - 8]
dec esi
inc edx
mov dword [ebp - 8], edx
test esi, esi
jg 0x458455
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 0x458b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa84
mov eax, dword [0x533014]
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 [0x513958]
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 [0x513968]
mov dword [ebp - 0xa5c], 0x20119
mov dword [ebp - 0xa58], 0x80000002
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0xa54], 0x20219
movups xmm0, xmmword [0x513978]
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 0x458da5
push 0x800
push eax
lea eax, [ebp - 0xa48]
push eax
call fcn.00487ab0
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 0x458d99
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 0x458d99
mov dword [ebp - 0xa68], eax
lea eax, [ebp - 0xa68]
push eax
push 0x20019
push 0
push 0x513988
push dword [ebp - 0xa6c]
call esi
test eax, eax
jne 0x458d8b
xor ebx, ebx
nop dword [eax]
nop dword [eax + eax]
push 0x200
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.00487ab0
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 0x458d6b
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 0x458d7b
cmp esi, 0x103
jne 0x458cf0
push dword [ebp - 0xa68]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
jmp 0x458d91
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 0x458c00
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046370d
mov esp, ebp
pop ebp
ret