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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor edi, edi
push edi
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45f530
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push edi
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov eax, dword [ebx]
inc eax
push eax
call fcn.0043742a
pop ecx
push ebx
mov edi, eax
push edi
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
test eax, eax
je 0x45f530
test edi, edi
je 0x45f52e
push edi
call fcn.0043759e
pop ecx
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x14], 0
je 0x45f553
test edi, edi
je 0x45f55d
push dword [ebx]
push edi
push 0x46dc48
call fcn.0040369b
add esp, 0xc
test edi, edi
je 0x45f55d
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x45f563
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0x1c], esi
je 0x45f582
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push 0x46dc48
call fcn.0040369b
add esp, 0xc
push esi
lea eax, [ebp + 0x1c]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x45f5b8
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
pop ebp
ret
Function at 0x4606b5
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1430
call fcn.0043b4d0
mov eax, dword [ebp + 8]
push ebx
push esi
lea ecx, [eax + 0x208]
push edi
push ecx
add eax, 0x30c
call fcn.00401969
pop ecx
xor edi, edi
push edi
mov esi, eax
push 0x46f308
push esi
call fcn.0045fbd4
add esp, 0xc
push 1
push 0x46f918
push esi
mov dword [ebp - 8], eax
call fcn.0045fbd4
add esp, 0xc
push edi
push 0x46f91c
push esi
mov dword [ebp - 0xc], eax
call fcn.0045fbd4
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0x46eba0
push esi
xor eax, eax
call fcn.0045fa75
mov dword [ebp - 0x1c], eax
push 0x46f920
push esi
xor eax, eax
call fcn.0045fa75
push edi
mov ebx, 0x46f928
push ebx
push esi
mov dword [ebp + 8], eax
call fcn.0045fbd4
add esp, 0x1c
push 1
mov edi, 0x46f934
push edi
push esi
mov dword [ebp - 0x18], eax
call fcn.0045fbd4
add esp, 0xc
push esi
push SysReAllocStringLen
mov dword [ebp - 0x10], eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0
push dword [ebp - 0x18]
push ebx
push esi
call fcn.0045fab6
push 1
push dword [ebp - 0x10]
push edi
push esi
call fcn.0045fab6
mov eax, dword [0x48dfec]
add esp, 0x20
test dword [eax + 0xc086], 2
jne 0x4607a7
push 0
push dword [ebp - 8]
push 0x46f308
push esi
call fcn.0045fab6
add esp, 0x10
mov eax, dword [0x48dfec]
test dword [eax + 0xc086], 1
jne 0x4607c9
push dword [ebp - 0x1c]
push 0x46eba0
push esi
call fcn.0045fa56
add esp, 0xc
mov eax, dword [0x48dfec]
test dword [eax + 0xc086], 4
jne 0x460804
cmp dword [ebp + 8], 0
je 0x460804
push dword [ebp + 8]
push 0x46f920
push esi
call fcn.0045fa56
add esp, 0xc
push 1
push dword [ebp - 0xc]
push 0x46f918
push esi
call fcn.0045fab6
add esp, 0x10
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x46082c
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460810
sub eax, edx
je 0x46082c
push 0
push edi
push 0x46f91c
push esi
call fcn.0045fab6
add esp, 0x10
push 0
call fcn.00437616
pop ecx
mov dword [ebp - 0x24], eax
push SysReAllocStringLen
mov ecx, esi
lea eax, [ebp - 0x142c]
mov dword [ebp - 0x20], edx
call fcn.004569ed
push 8
lea eax, [ebp - 0x24]
push eax
push 0xb
push 0x46ebb4
lea eax, [ebp - 0x142c]
call fcn.00456bc2
push esi
call fcn.0043759e
pop ecx
push dword [ebp - 8]
call fcn.0043759e
pop ecx
push dword [ebp - 0xc]
call fcn.0043759e
pop ecx
push edi
call fcn.0043759e
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46144e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp dword [ebp + 0xc], ebx
je 0x4615dd
cmp dword [ebp + 0x10], ebx
je 0x4615dd
cmp esi, ebx
je 0x461479
cmp dword [esi + 4], ebx
jne 0x46147e
cmp dword [esi + 0xc], ebx
je 0x4614c0
xor eax, eax
cmp dword [esi + 4], ebx
je 0x46149e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045fa0c
add esp, 0xc
cmp eax, ebx
jne 0x4615df
cmp dword [esi + 0xc], ebx
je 0x4615df
push dword [ebp + 0x10]
add esi, 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045fa0c
add esp, 0xc
jmp 0x4615df
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.0043b2b0
add esp, 0xc
push str.theme_
mov eax, 0x104
lea edi, [ebp - 0x108]
call fcn.00465c33
mov eax, dword [ebp + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4614f5
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x461505
mov ecx, eax
shr ecx, 2
push ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 1
mov ecx, eax
push SysReAllocStringLen
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46159b
push str.data_
mov eax, 0x104
lea edi, [ebp - 0x108]
call fcn.00465c33
mov eax, dword [ebp + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x461555
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x461565
mov ecx, eax
shr ecx, 2
push ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 1
mov ecx, eax
push SysReAllocStringLen
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4615dd
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
inc eax
push eax
call fcn.0043742a
pop ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ecx], eax
lea ecx, [ebp - 4]
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [esi]
push edi
mov byte [eax + ecx], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4615df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x461ad3
Capabilities:
Create process on windows
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2044
call fcn.0043b4d0
push ebx
push edi
mov edi, dword [0x48dfec]
lea eax, [edi + 0x2958]
mov dword [ebp - 4], eax
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x461af6
sub eax, edx
je 0x461c69
cmp dword [edi + 0xa36e], ebx
je 0x461c69
push esi
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x1843]
push ebx
push eax
mov byte [ebp - 0x1844], bl
call fcn.0043b2b0
push esi
lea eax, [ebp - 0x443]
push ebx
push eax
mov byte [ebp - 0x444], bl
call fcn.0043b2b0
push esi
lea eax, [ebp - 0x1043]
push ebx
push eax
mov byte [ebp - 0x1044], bl
call fcn.0043b2b0
push esi
lea eax, [ebp - 0x843]
push ebx
push eax
mov byte [ebp - 0x844], bl
call fcn.0043b2b0
push esi
lea eax, [ebp - 0xc43]
push ebx
push eax
mov byte [ebp - 0xc44], bl
call fcn.0043b2b0
push esi
lea eax, [ebp - 0x1443]
push ebx
push eax
mov byte [ebp - 0x1444], bl
call fcn.0043b2b0
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x844]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xc44]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1444]
add esp, 0x48
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push 0x7ff
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2043]
push ebx
push eax
mov dword [ebp - 0x44], 0x3c
mov byte [ebp - 0x2044], bl
call fcn.0043b2b0
mov ecx, dword [ebp - 4]
push edi
push fcn.004615e4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x103
lea eax, [ebp - 0x2044]
call fcn.0045d155
lea eax, [ebp - 0x2044]
add esp, 0x20
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x461c29
lea ecx, [ebp - 0x44]
push ecx
sub eax, esi
push ebx
push eax
lea eax, [ebp - 0x2044]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp - 0x38], 3
pop esi
je 0x461c52
cmp dword [ebp - 0x38], 4
jne 0x461c69
push 1
push ebx
push ebx
lea eax, [ebp - 0x2044]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop ebx
leave
ret
Function at 0x461c6d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x48dfec]
sub esp, 0x10c
push ebx
xor ebx, ebx
cmp byte [eax + 0xc08e], bl
je 0x461d86
lea ecx, [eax + 0xc08f]
cmp ecx, ebx
je 0x461d86
push esi
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x461c9c
sub ecx, esi
je 0x461d85
lea ecx, [eax + 0xc993]
cmp ecx, ebx
je 0x461d85
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x461cbc
sub ecx, esi
je 0x461d85
add eax, 0xca97
push eax
push SysReAllocStringLen
call fcn.0045d7a3
pop ecx
pop ecx
test al, al
jne 0x461d85
mov eax, dword [0x48dfec]
add eax, 0xca97
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045d7a3
pop ecx
pop ecx
test al, al
jne 0x461d85
call fcn.0045e8d4
push 0x103
mov esi, eax
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.0043b2b0
mov eax, dword [0x48dfec]
push eax
push fcn.004615e4
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [eax + 0xc88f]
push 0x104
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0045d155
add esp, 0x20
cmp esi, ebx
je 0x461d7e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x461d5e
sub eax, edx
je 0x461d7e
push 5
push ebx
lea eax, [ebp - 0x10c]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
call fcn.0043759e
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x463e9b
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
push ebx
push esi
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x260]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x364]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x48dfec]
test byte [eax + 0xa366], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
je 0x463efb
lea ecx, [ebp - 0x15c]
push ecx
push esi
add eax, 0xa475
push eax
lea eax, [ebp - 0x364]
push eax
call edi
mov eax, dword [0x48dfec]
test byte [eax + 0xa366], 2
je 0x463f1b
lea ecx, [ebp - 0x15c]
push ecx
push esi
add eax, 0x9cdc
push eax
lea eax, [ebp - 0x364]
push eax
call edi
push esi
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
push 0x4000000
push 3
push esi
push 1
push esi
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
lea eax, [ebp - 0x260]
push eax
push ebx
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x564]
push str._s__cleanup__d___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0043b2b0
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x564]
push eax
push esi
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x463fed
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5c
push dword [ebp + 0xc]
call fcn.00436920
pop ecx
pop ecx
test eax, eax
je 0x464020
mov byte [eax], 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
ret
Function at 0x464041
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x167c
call fcn.0043b4d0
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.0043b2b0
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x48dfec]
add esp, 0xc
mov dword [ebp - 0x58], 0x44
test byte [eax + 0xa366], 1
mov edi, 0x206
je 0x464103
push 1
push eax
lea esi, [ebp - 0x1678]
call fcn.0045e6cb
xor eax, eax
push edi
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push ebx
push eax
call fcn.0043b2b0
add esp, 0xc
xor eax, eax
movzx ecx, word [ebp + eax - 0x786]
mov word [ebp + eax - 0x260], cx
add eax, 2
cmp cx, bx
jne 0x4640b1
push 0x46e924
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x786]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [0x48dfec]
test byte [eax + 0xa366], 2
je 0x464183
push 2
push eax
lea esi, [ebp - 0x1678]
call fcn.0045e6cb
xor eax, eax
push edi
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push ebx
push eax
call fcn.0043b2b0
add esp, 0xc
xor eax, eax
movzx ecx, word [ebp + eax - 0x786]
mov word [ebp + eax - 0x260], cx
add eax, 2
cmp cx, bx
jne 0x464136
push 0x46e944
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x786]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46418b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
call fcn.00463bb2
test eax, eax
jne 0x4641b4
push 0x30
push str.Cannot_start_install
push str.There_is_a_problem_with_the_install_program.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
leave
ret
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.0045d90e
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov eax, dword [0x48dfec]
add eax, 0xcbc3
push eax
call fcn.00452a73
xor eax, eax
pop ecx
inc eax
leave
ret
Function at 0x465bfa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x465c0f
xor eax, eax
pop ebp
ret
shr eax, 4
not eax
and eax, 1
pop ebp
ret

Function at 0x465c19
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x465c2e
xor eax, eax
pop ebp
ret
and eax, 0x10
pop ebp
ret
Function at 0x4669ce
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.advapi32.dll
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSecurityInfo
push esi
mov dword [ebp - 0x20], esi
call edi
push str.SetSecurityInfo
push esi
mov dword [ebp - 0xc], eax
call edi
push 0x46db5c
push esi
mov dword [ebp - 0x14], eax
call edi
push str.AllocateAndInitializeSid
push esi
mov dword [ebp - 0x1c], eax
call edi
mov edi, eax
cmp dword [ebp - 0xc], ebx
je 0x466b46
cmp dword [ebp - 0x14], ebx
je 0x466b46
cmp dword [ebp - 0x1c], ebx
je 0x466b46
cmp edi, ebx
je 0x466b46
push ebx
push 0x2000000
push 3
push ebx
push ebx
push 0x60000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x466b46
lea ecx, [ebp - 0x18]
push ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push 4
xor esi, esi
inc esi
push esi
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [ebp - 0xc]
cmp dword [ebp - 8], ebx
jne 0x466a97
cmp dword [ebp - 0x10], ebx
jne 0x466b27
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x24], 0x500
call edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x48]
push eax
push esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], 0x10000000
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
cmp dword [ebp - 0xc], ebx
je 0x466b10
push ebx
push dword [ebp - 0xc]
push ebx
push ebx
push 4
push esi
push dword [ebp - 0x1c]
call dword [ebp - 0x14]
cmp dword [ebp - 8], ebx
je 0x466b1e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x466b50
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46708e
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 8], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x84]
call fcn.0040320b
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x84]
call fcn.0040329f
lea eax, [ebp - 0x184]
push eax
call edi
push eax
lea eax, [ebp - 0x184]
call fcn.0040329f
lea eax, [ebp - 0x1c]
push eax
call fcn.0040323f
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push 0x14
push eax
mov eax, dword [ebp + 0xc]
call fcn.00403662
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x46710c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x41
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push str.BlindCaffineSubstituteFamousCurtainTrickKingTinHalcyonDaysArapaho
push eax
call fcn.00403555
add esp, 0xc
push 5
lea ecx, [ebp - 0x14]
pop edi
xor esi, esi
lea eax, [ecx + 3]
mov dl, byte [eax]
xor byte [ecx + esi], dl
mov dl, byte [ecx + esi]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx + esi], dl
inc esi
dec eax
cmp esi, 2
jl 0x467142
add ecx, 4
dec edi
jne 0x46713d
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x10
push eax
mov eax, dword [ebp + 8]
call fcn.00403662
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x467176
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x46718c
mov ecx, dword [eax]
jmp 0x46718e
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp ecx, esi
jne 0x467198
mov dword [ebp + 0x14], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
xor ebx, ebx
inc ebx
cmp eax, esi
je 0x4671ac
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4671af
mov dword [ebp - 8], ebx
xor eax, eax
cmp dword [ebp - 8], ebx
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], esi
je 0x467225
cmp dword [ebp + 0x14], esi
je 0x467225
mov dword [ebp - 0x10], ebx
cmp eax, esi
je 0x4671d9
lea eax, [ecx + ecx + 2]
mov dword [ebp - 4], eax
call fcn.0043eea0
mov edi, esp
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4672b3
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x46722a
mov eax, esi
jmp 0x4672b3
mov dword [ebp - 0x10], esi
jmp 0x4671d9
cmp dword [ebp - 0x10], 0
je 0x467299
push dword [ebp - 4]
push edi
call fcn.0046710c
cmp dword [ebp - 0x14], 0
pop ecx
pop ecx
je 0x467299
push edi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [ebp - 4]
lea esi, [eax + 1]
cmp esi, ebx
jae 0x46727a
push ebx
push edi
call fcn.0046710c
sub dword [ebp - 4], esi
push dword [ebp - 4]
lea eax, [esi + edi]
push eax
push dword [ebp + 0x1c]
call fcn.0046708e
mov ebx, dword [ebp - 4]
add esp, 0x14
dec ebx
mov dword [ebp - 4], ebx
jmp 0x46727c
xor esi, esi
push ebx
add esi, edi
push esi
mov esi, dword [ebp + 0x14]
push esi
call fcn.0043a770
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp ebx, dword [eax]
jae 0x46729c
mov byte [ebx + esi], 0
jmp 0x46729c
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4672a5
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4672b1
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret