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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push esi
mov esi, dword [ebp + 0x10]
push 0xd
push str.Applications_
push dword [ebp + 0xc]
xor ebx, ebx
mov word [esi], bx
call fcn.0059091d
add esp, 0xc
test eax, eax
jne 0x4a6a5f
push 0x5b07d8
push ebx
push dword [ebp + 0xc]
mov eax, esi
push SysReAllocString
call fcn.00401132
cmp word [esi], bx
jne 0x4a6b79
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push str.SoftwareRegisteredApplications
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a6b79
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x428]
push eax
push ebx
push dword [ebp - 0x10]
mov esi, 0x104
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4a6b70
push edi
lea eax, [ebp - 0x220]
push eax
push str._sFileAssociations
lea edi, [ebp - 0x838]
call fcn.004a9039
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
mov eax, edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a6b2a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x630]
push eax
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
mov word [ebp - 0x630], bx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x630]
push eax
push dword [ebp + 0xc]
call fcn.005a6122
test eax, eax
pop ecx
pop ecx
je 0x4a6b61
inc dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push dword [ebp - 0x10]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4a6ab7
jmp 0x4a6b6f
push dword [ebp + 0x10]
lea eax, [ebp - 0x428]
call fcn.00401016
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret 0xc
Function at 0x4a6b7f
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe40
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, 0x104
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_s
lea edi, [ebp - 0x418]
call fcn.004a9039
pop ecx
pop ecx
push 0x5b07d8
mov esi, str.Switch.BAK
push esi
mov eax, edi
push eax
mov ebx, SysReAllocString
push ebx
lea eax, [ebp - 0x210]
call fcn.00401132
push esi
mov eax, edi
push eax
push ebx
call fcn.00446bf9
push dword [ebp + 8]
lea edi, [ebp - 0x620]
call fcn.004a6803
lea ecx, [ebp - 0x210]
mov eax, edi
call fcn.0040106a
xor edi, edi
test eax, eax
jne 0x4a6bf6
mov word [ebp - 0x210], di
call fcn.004012e4
test al, al
je 0x4a6d0a
cmp word [ebp - 0x210], di
je 0x4a6ca9
lea esi, [ebp - 1]
call fcn.00447312
lea eax, [ebp - 8]
push eax
push str._n_vSN
push 1
push edi
push 0x5e7e20
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 8], edi
je 0x4a6c9d
lea eax, [ebp - 0xc38]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.004a6a18
cmp word [ebp - 0xc38], di
je 0x4a6c90
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push edi
push dword [ebp + 8]
lea edx, [ebp - 0xc38]
push edx
push eax
call dword [ecx + 0x18]
cmp eax, edi
jne 0x4a6c90
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x4a6c7b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 1], 0
je 0x4a6d74
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4a6d74
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x4a6c9d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 1], 0
je 0x4a6ca9
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.UserChoice
lea eax, [ebp - 0x418]
push eax
push 0x5b0974
mov esi, 0x104
lea edi, [ebp - 0x828]
call fcn.004a9039
add esp, 0xc
push 0x5b07d8
mov esi, str.Progid
push esi
mov eax, edi
push eax
push ebx
lea eax, [ebp - 0xe40]
call fcn.00401132
lea ecx, [ebp - 0x620]
lea eax, [ebp - 0xe40]
call fcn.0040106a
test eax, eax
jne 0x4a6d06
mov eax, edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor edi, edi
jmp 0x4a6d0f
mov esi, str.Progid
push 0x5b07d8
push esi
lea eax, [ebp - 0x418]
push eax
push ebx
lea eax, [ebp - 0xa30]
call fcn.00401132
cmp word [ebp - 0xa30], di
je 0x4a6d74
lea ecx, [ebp - 0x620]
lea eax, [ebp - 0xa30]
call fcn.0040106a
test eax, eax
jne 0x4a6d74
cmp word [ebp - 0x210], di
jne 0x4a6d5f
push esi
lea eax, [ebp - 0x418]
push eax
push ebx
call fcn.00446bf9
jmp 0x4a6d74
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x418]
push eax
push ebx
call fcn.00446aee
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4a6d7b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.005970f0
add esp, 0xc
cmp byte [ebp + 8], 0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.runas
jne 0x4a6db3
mov dword [ebp - 0x30], 0x5dadf8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x4e20
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret 0xc
Function at 0x4a7382
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x5b07d8
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov eax, esi
push SysReAllocString
call fcn.00401132
cmp word [esi], bx
jne 0x4a7480
push edi
push dword [ebp + 8]
mov esi, 0x104
push str._sOpenWithProgIds
lea edi, [ebp - 0x418]
call fcn.004a9039
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
mov eax, edi
push eax
push SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4a741e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
jmp 0x4a740b
mov eax, dword [ebp + 0xc]
cmp word [eax], bx
jne 0x4a7415
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push ebx
push dword [ebp - 4]
call edi
test eax, eax
je 0x4a73fa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
cmp word [eax], bx
jne 0x4a747f
push dword [ebp + 8]
lea edi, [ebp - 0x210]
push str.softwareclasses_s
call fcn.004a9039
pop ecx
pop ecx
push 0x5b07d8
push ebx
mov eax, edi
mov edi, dword [ebp + 0xc]
push eax
mov esi, SysReAllocString
push esi
mov eax, edi
call fcn.00401132
cmp word [edi], bx
jne 0x4a7470
push dword [ebp + 8]
call fcn.004a6803
push edi
push ebx
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.00446aee
push edi
push ebx
push dword [ebp + 8]
push SysReAllocString
call fcn.00446aee
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a7b5e
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, 0x30c
push dword [ebp + 0xc]
lea edi, [ebp - 0x618]
push str._sShell_scommand
call fcn.004a9039
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call ebx
mov eax, edi
push eax
push str.softwareclasses_s
lea edi, [ebp - 0xc30]
call fcn.004a9039
pop ecx
pop ecx
mov eax, edi
push eax
push SysReAllocString
call ebx
push dword [ebp + 0x10]
lea edi, [ebp - 0x618]
push dword [ebp + 8]
push str.SystemFileAssociations_sShell_scommand
call fcn.004a9039
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
push str.SoftwareClassesSystemFileAssociations_sShell_scommand
call fcn.004a9039
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str._sShell_s
call fcn.004a9039
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call ebx
mov eax, edi
push eax
push str.softwareclasses_s
lea edi, [ebp - 0xc30]
call fcn.004a9039
pop ecx
pop ecx
mov eax, edi
push eax
push SysReAllocString
call ebx
push dword [ebp + 0x10]
lea edi, [ebp - 0x618]
push dword [ebp + 8]
push str.SystemFileAssociations_sShell_s
call fcn.004a9039
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
push str.SoftwareClassesSystemFileAssociations_sShell_s
call fcn.004a9039
add esp, 0xc
mov eax, edi
push eax
push SysReAllocString
call ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4a88a2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push eax
call ebx
test eax, eax
je 0x4a894a
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a88de
xor eax, eax
jmp 0x4a8948
lea eax, [ebp - 0x234]
push eax
push esi
mov dword [ebp - 0x234], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4a8933
lea eax, [ebp - 0x210]
push str.explorer.exe
push eax
call fcn.005a6122
test eax, eax
pop ecx
pop ecx
jne 0x4a8926
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x22c]
call ebx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x4a8939
lea eax, [ebp - 0x234]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4a88f7
jmp 0x4a893f
mov edi, dword [ebp - 0x22c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a894d
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x2ac
push dword [ebp + 0x74]
call fcn.00401b98
test al, al
je 0x4a8b03
push ebx
xor ebx, ebx
cmp dword [0x623b04], ebx
jne 0x4a8983
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x623b04], eax
push esi
lea eax, [ebp + 0x58]
push eax
call fcn.00560b3f
test al, al
je 0x4a8ab1
mov byte [ebp + 0x6b], bl
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
call fcn.004a88a2
cmp eax, ebx
je 0x4a8a93
push eax
push ebx
mov esi, 0x2000000
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 0x5c], eax
je 0x4a8a93
lea eax, [ebp + 0x60]
push eax
push 0xf
push dword [ebp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4a8a93
lea eax, [ebp + 0x64]
push eax
push 1
push 2
push ebx
push esi
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4a8a93
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.005970f0
xor eax, eax
lea edi, [ebp + 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x78]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
je 0x4a8a52
cmp word [eax], bx
je 0x4a8a52
push eax
push dword [ebp + 0x74]
mov esi, 0x104
push str.__s___s
lea edi, [ebp - 0x240]
call fcn.004a9039
add esp, 0xc
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
mov eax, edi
push eax
jmp 0x4a8a5e
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x74]
push ebx
push dword [ebp + 0x64]
call dword [ebp + 0x58]
test eax, eax
setne byte [ebp + 0x6b]
cmp byte [ebp + 0x6b], bl
pop edi
je 0x4a8a83
cmp dword [ebp + 0x7c], 1
jne 0x4a8a83
push dword [ebp + 0x48]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [ebp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x4c]
call esi
push dword [ebp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x60]
call esi
push dword [ebp + 0x5c]
call esi
cmp byte [ebp + 0x6b], bl
je 0x4a8ab1
mov al, 1
jmp 0x4a8b01
push 0x3c
pop esi
push esi
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.005970f0
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x28], eax
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], 0x40
mov dword [ebp + 0x18], 0x5dadf8
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp + 0x2c], 0x20
setg al
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x4a8e6e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.005970f0
mov ax, word [ebx + 0xc]
mov dword [ebp - 0x5c], edi
mov word [ebp - 0x2c], ax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx]
add esp, 0xc
cmp eax, esi
mov dword [ebp - 0x30], 1
jne 0x4a8eb3
mov eax, 0x5b07d8
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4a8ed8
mov eax, dword [ebp + 8]
mov dword [eax], 2
jmp 0x4a8f12
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
lea edx, [ebp + 0x10]
push edx
call dword [eax + 0x14]
add ebx, 0xe
and dword [ebx], 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp + 8]
and dword [eax], 0
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4a9048
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push 1
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
push str.explore
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jae 0x4a90e5
call fcn.004a9266
test al, al
je 0x4a90e5
push dword [ebp + 8]
mov esi, 0x104
push str.explorer.exe___s_
lea edi, [ebp - 0x264]
call fcn.004a9039
push 0x44
pop esi
push esi
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.005970f0
xor eax, eax
inc eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], ax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x264]
push ebx
push 0x10
push ebx
push ebx
push ebx
push eax
push ebx
mov dword [ebp - 0x5c], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a90ec
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and word [ebp - 0x214], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x214]
push eax
push 0
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
mov eax, dword [ebp - 8]
jne 0x4a9142
cmp dword [eax + 0xc], 2
jne 0x4a9142
mov byte [ebp - 1], 1
test eax, eax
je 0x4a914c
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov al, byte [ebp - 1]
leave
ret
Function at 0x4a9378
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4a941b
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
push edi
cmp dword [ebp - 8], ebx
jne 0x4a940c
mov edi, dword [ebp + 8]
shr edi, 1
lea eax, [edi + 1]
push eax
call fcn.00434f3d
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
shr eax, 1
cmp eax, edi
ja 0x4a93b6
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
mov ecx, dword [esi]
mov eax, ecx
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, bx
jne 0x4a93f7
sub eax, edx
sar eax, 1
mov dword [esi + 4], eax
mov word [ecx + eax*2], bx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
pop edi
je 0x4a9429
push 0x5b07d8
call fcn.00434c8c
xor al, al
jmp 0x4a942b
mov al, 1
pop esi
pop ebx
leave
ret 8

Function at 0x4a9445
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor eax, eax
push eax
push 1
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
push eax
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call edi
test eax, eax
jne 0x4a947a
push 8
push 1
push ebx
xor ebx, ebx
push ebx
push esi
call edi
test eax, eax
je 0x4a94ce
jmp 0x4a947c
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x8003
push dword [esi]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a94ce
push ebx
push 0xa
push str.nchkqxllib
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a94ce
lea eax, [esi + 4]
push eax
push 1
push dword [ebp - 4]
push 0x6801
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4a94ce
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop ebx
leave
ret
Function at 0x4a9509
Capabilities:
Encrypt or decrypt via wincrypt
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov esi, 0x104
lea edi, [ebp - 0x110]
call fcn.00401584
mov eax, edi
lea esi, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a952f
sub eax, esi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push ebx
push ebx
push dword [eax + 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x4a955d
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push eax
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push 1
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4a9589
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov al, bl
jmp 0x4a9556
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x14], eax
ja 0x4a9594
mov dword [ebp + 0x14], eax
push dword [ebp + 0x14]
call fcn.0058f8c4
push dword [ebp - 4]
mov edi, eax
lea eax, [ebp - 0x110]
push eax
push edi
call fcn.005987b0
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 1
push ebx
push dword [ebp - 8]
call esi
test eax, eax
je 0x4a9604
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a9604
push dword [ebp - 4]
push edi
push 3
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
push edi
call fcn.0058f8c9
pop ecx
jmp 0x4a957c
Function at 0x4a9610
Capabilities:
Encrypt or decrypt via wincrypt
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [eax]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jne 0x4a962e
mov eax, 0x5b07d8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004b08bf
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
mov dword [ebp - 0x10], esi
jne 0x4a9649
mov dword [ebp - 0x10], 0x5daec0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
push ebx
push dword [eax + 4]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x4a9677
push esi
call fcn.0058f8c9
pop ecx
xor al, al
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 1
push ebx
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x4a96ac
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x1c]
call fcn.0058f8c9
pop ecx
mov al, bl
jmp 0x4a9671
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
ja 0x4a96b7
mov dword [ebp - 4], eax
push edi
push dword [ebp - 4]
call fcn.0058f8c4
push dword [ebp - 8]
mov edi, eax
push dword [ebp - 0x10]
push edi
call fcn.005987b0
add esp, 0x10
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 1
push ebx
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4a9724
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a9724
push dword [ebp - 8]
push edi
push 3
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
push edi
call fcn.0058f8c9
pop ecx
pop edi
jmp 0x4a9696
Function at 0x4a9731
Capabilities:
Encrypt or decrypt via wincrypt
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4a975d
xor al, al
jmp 0x4a9841
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push ebx
push ebx
push dword [eax + 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x4a977e
mov eax, dword [ebp + 0x14]
mov word [eax], bx
jmp 0x4a9756
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], 3
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
jne 0x4a9823
push dword [ebp + 0xc]
call fcn.0058f8c4
pop ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4a9823
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push ebx
push 1
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4a9823
mov esi, 0x104
cmp dword [ebp + 0xc], esi
jb 0x4a97f3
mov dword [ebp + 0xc], 0x103
push edi
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
call fcn.005987b0
add esp, 0xc
lea eax, [ebp - 0x110]
mov byte [ebp + edi - 0x110], bl
mov edi, dword [ebp + 0x14]
push eax
call fcn.00401566
mov bl, 1
pop edi
push dword [ebp + 8]
call fcn.0058f8c9
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
leave
ret 0x10