joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467aa4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push edi
push dword [ebp + 8]
call fcn.00467982
xor edi, edi
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x467ac7
mov eax, 0x3f0
jmp 0x467b7d
push esi
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.00467a34
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
cmp dword [ebp - 4], edi
je 0x467af8
push edi
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push dword [ebp - 4]
call esi
push 0x44
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.0046e3e0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x60], 0x44
push dword [ebp - 8]
mov dword [ebp - 0x58], str.winsta0default
push 0x400
push edi
push edi
push edi
push dword [ebp + 0xc]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x467b64
cmp dword [ebp + 0x14], edi
je 0x467b58
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x18]
call esi
jmp 0x467b6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0xc]
call esi
mov eax, edi
pop esi
pop edi
leave
ret

Function at 0x467bd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
push esi
lea eax, [ebp - 0x108]
jb 0x467c01
push str..Global_s
jmp 0x467c06
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push SysReAllocString
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c1d2
leave
ret
Function at 0x467d16
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x467db9
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov edx, dword [ebp + 0x10]
sub edx, edi
cmp edx, 4
jae 0x467d3b
mov esi, edx
jmp 0x467d3e
push 4
pop esi
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
movzx edx, byte [ecx]
movzx ebx, byte [ecx + 1]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
cmp esi, 1
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], dl
jle 0x467d87
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx + 2]
and edx, 0xf
shl edx, 2
shr ebx, 6
or edx, ebx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x467d89
mov dl, 0x3d
cmp esi, 2
mov byte [eax + 2], dl
jle 0x467da0
movzx edx, byte [ecx + 2]
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x467da2
mov dl, 0x3d
mov byte [eax + 3], dl
add edi, 3
add eax, 4
add ecx, 3
cmp edi, dword [ebp + 0x10]
jb 0x467d2d
pop esi
pop ebx
mov byte [eax], 0
pop edi
pop ebp
ret
Function at 0x4685ad
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x46872a
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, 0x1000
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x46870d
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x46870b
mov eax, dword [ebp - 8]
lea edx, [eax + esi]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x46870b
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x10]
ja 0x46870b
lea eax, [eax + esi + 4]
lea ecx, [eax + 0x18]
cmp ecx, edx
jbe 0x468686
push 0
push 0
push dword [esi + 0x3c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x46870b
mov eax, dword [ebp - 8]
test eax, eax
je 0x46870b
lea edx, [eax + esi]
lea eax, [esi + 4]
lea ecx, [eax + 0x18]
cmp ecx, edx
ja 0x46870b
cmp dword [eax - 4], 0x4550
jne 0x46870b
movzx ecx, word [eax]
mov edi, 0x14c
mov ebx, edi
cmp bx, cx
je 0x4686af
mov ebx, 0x8664
cmp bx, cx
jne 0x46870b
test byte [eax + 0x12], 2
je 0x46870b
cmp di, cx
jne 0x4686da
lea ecx, [eax + 0x14]
movzx eax, word [eax + 0x10]
add eax, ecx
cmp eax, edx
ja 0x46870b
mov eax, 0x10b
cmp ax, word [ecx]
jne 0x46870b
cmp dword [ecx + 0x80], 0
jmp 0x468702
mov edi, 0x8664
cmp di, cx
jne 0x46870b
lea ecx, [eax + 0x14]
movzx eax, word [eax + 0x10]
add eax, ecx
cmp eax, edx
ja 0x46870b
mov eax, 0x20b
cmp ax, word [ecx]
jne 0x46870b
cmp dword [ecx + 0x90], 0
je 0x46870b
mov dword [ebp - 0xc], 1
xor ebx, ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp esi, ebx
je 0x46872a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x468aa3
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor esi, esi
push esi
push esi
xor ebx, ebx
inc ebx
push ebx
push esi
call edi
push esi
push esi
push ebx
push esi
mov dword [0x49db8c], eax
call edi
push dword [0x49db8c]
mov dword [0x49db90], eax
call fcn.00411a09
push 0x4990c0
mov dword [0x4990c0], ebx
call fcn.00403e46
pop ecx
lea eax, [esp + 0xc]
push eax
push 4
push esi
push 0x468901
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x49db94], eax
cmp eax, esi
je 0x468b1b
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [0x49db94]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, ebx
jmp 0x468b3a
mov edi, 0x49db8c
mov eax, dword [edi]
cmp eax, esi
je 0x468b2f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], esi
add edi, 4
cmp edi, 0x49db94
jl 0x468b20
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret

Function at 0x468bac
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x468bd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x468c89
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 1
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
push dword [ebp - 8]
call fcn.0046e254
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x468c09
mov dword [ebp - 4], 8
jmp 0x468c7c
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 1
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x468c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x468c7c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov esi, 0x104
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x468c1c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 0x10]
push eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
cmp byte [esi], bl
jne 0x468c7c
push dword [ebp + 0xc]
push 0x494b30
push esi
call fcn.0046ec88
add esp, 0xc
cmp edi, ebx
je 0x468c87
push edi
call fcn.0046e0df
pop ecx
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x468c98
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
lea edi, [esi + 0x400]
mov byte [esi], bl
call fcn.0046c060
pop ecx
cmp byte [esi], bl
je 0x468d72
push str.K7ExecInfo.dat
push str.K7AntiVirus
push str.K7TSecurity
push str.K7_Computing
push esi
push str._s_s_s_s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
cmp byte [0x4a12e0], bl
jne 0x468cf4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [0x4a12e0], 1
mov ebx, dword [ebp + 8]
push edi
push 0x488db4
add ebx, 0x8c
push ebx
push str.ExecApps
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
push esi
call fcn.0046eb90
push esi
call sub.ntdll.dll__strlwr
push str.windows_assessment_toolkit_
push esi
call fcn.0046e7b0
add esp, 0x14
test eax, eax
jne 0x468d61
push str.wbam_
push esi
call fcn.0046e7b0
pop ecx
pop ecx
test eax, eax
jne 0x468d61
push str._axe.exe
push esi
call fcn.0046e7b0
pop ecx
pop ecx
test eax, eax
jne 0x468d61
push str._fas.exe
push esi
call fcn.0046e7b0
pop ecx
pop ecx
test eax, eax
je 0x468d6b
mov dword [0x49c46c], 1
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x468d79
Capabilities:
Get disk information

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push 0x3740
xor ebp, ebp
push ebp
push 0x49dba0
call fcn.0046e3e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov esi, 0x49dba4
mov dword [esp + 0x10], 0x1a
xor eax, eax
inc eax
mov ecx, ebp
shl eax, cl
mov ecx, dword [esp + 0x14]
test ecx, eax
je 0x468e32
lea eax, [ebp + 0x41]
push 0x3a
mov word [esi], ax
pop eax
mov word [esi + 2], ax
xor eax, eax
push esi
mov word [esi + 4], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi - 4], eax
cmp eax, 3
jne 0x468e32
push 0x104
lea edi, [esi + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push edi
call fcn.00471eae
push edi
call fcn.0046de55
mov dword [esi + 0x218], eax
add eax, ebx
pop ecx
lea eax, [eax*2 + 0x49dbb4]
pop ecx
movzx ecx, word [eax]
dec ecx
cmp ecx, 0x5c
je 0x468e32
push 0x5c
pop ecx
mov word [eax], cx
inc dword [esi + 0x218]
mov eax, dword [esi + 0x218]
add eax, ebx
xor ecx, ecx
mov word [eax*2 + 0x49dbb4], cx
inc ebp
add esi, 0x220
add ebx, 0x110
dec dword [esp + 0x10]
jne 0x468dad
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
pop ecx
pop ecx
ret
Function at 0x469467
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8bc
push esi
push edi
xor esi, esi
call fcn.0046de55
cmp eax, 4
pop ecx
jl 0x469503
lea eax, [edi + eax*2 - 8]
push str..EXE
push eax
call fcn.00471c92
pop ecx
pop ecx
test eax, eax
jne 0x469503
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x469503
mov esi, 0x8b8
push esi
lea eax, [ebp - 0x8bc]
push 0
push eax
call fcn.0046e3e0
push 0x7d0
lea eax, [ebp - 0x830]
push edi
push eax
mov dword [ebp - 0x8b8], 0x1001
mov dword [ebp - 0x8b4], 0xdeaddead
mov dword [ebp - 0x8bc], esi
call fcn.0046fe9f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x8bc]
push dword [ebp + 8]
push 0
push 0x64
call fcn.00468e53
xor esi, esi
add esp, 0x2c
inc esi
mov eax, esi
pop esi
leave
ret

Function at 0x469508
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
mov esi, eax
mov ebx, ecx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x469679
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
jbe 0x469550
sub eax, esi
mov ecx, eax
mov dword [ebp - 4], esi
jmp 0x469555
xor ecx, ecx
mov dword [ebp - 4], eax
push edi
push edi
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x469670
mov eax, dword [ebp - 4]
cmp eax, 0x400
jb 0x469670
lea eax, [eax + ebx - 0x40]
mov dword [ebp - 0x14], eax
cmp ebx, eax
jae 0x469669
cmp dword [ebx], 0x44005c
jne 0x46965f
cmp dword [ebx + 4], 0x560045
jne 0x46965f
push 0x12
lea eax, [ebx + 8]
push str.ICEHARDDISKVOLUME
push eax
call fcn.00471f1e
add esp, 0xc
test eax, eax
jne 0x46965f
push ebx
mov esi, ebx
call fcn.0046de55
and dword [ebp - 0xc], 0
pop ecx
lea ebx, [ebx + eax*2 + 2]
mov dword [ebp - 8], 0x49dbb4
mov eax, dword [ebp - 8]
mov ax, word [eax]
cmp ax, word [esi]
jne 0x469606
mov eax, dword [ebp - 8]
push dword [eax + 0x208]
push eax
push esi
call fcn.00471f1e
add esp, 0xc
test eax, eax
je 0x46961d
mov eax, 0x220
add dword [ebp - 0xc], eax
add dword [ebp - 8], eax
inc edi
cmp dword [ebp - 0xc], 0x3740
jb 0x4695e4
jmp 0x46965b
mov eax, edi
imul eax, eax, 0x220
lea eax, [eax + 0x49ddbc]
mov ecx, dword [eax]
add edi, 0x41
mov word [esi + ecx*2 - 6], di
mov ecx, dword [eax]
push 0x3a
pop edx
mov word [esi + ecx*2 - 4], dx
mov eax, dword [eax]
lea esi, [esi + eax*2 - 6]
push esi
call fcn.00471eae
push dword [ebp + 0x10]
mov edi, esi
push dword [ebp + 0xc]
call fcn.00469467
add esp, 0xc
xor edi, edi
jmp 0x469660
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x469598
mov dword [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x469681
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5ec]
sub esp, 0x66c
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp + 0x5e8], eax
and dword [ebp - 0x80], 0
cmp dword [0x49c404], 3
jne 0x4697ef
cmp byte [0x4a12e1], 0
jne 0x4697ef
mov byte [0x4a12e1], 1
call fcn.00468d79
cmp eax, 1
jne 0x4697ef
push ebx
push 0x408000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4697ee
push esi
push edi
push 0x400
lea eax, [ebp + 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea eax, [ebp + 0x3e0]
push str.PREFETCH
push eax
call fcn.0046e087
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str..pf
lea eax, [ebp + 0x3e0]
push eax
mov edi, 0x4856e4
lea eax, [ebp + 0x1d8]
push edi
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x4697dc
push 0x2e
pop eax
cmp ax, word [ebp - 0x4c]
je 0x46979a
test byte [ebp - 0x78], 0x10
jne 0x46979a
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x3e0]
push eax
lea eax, [ebp + 0x1d8]
push edi
push eax
call esi
push 0x8000
lea eax, [ebx + 0x400000]
push eax
lea eax, [ebp + 0x1d8]
push eax
mov eax, 0x400000
mov ecx, ebx
call fcn.00469508
add esp, 0x1c
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x469754
mov eax, dword [str.WndClassK7TSMngr1]
push eax
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4697cc
push 0
push 0
push 0x7eb
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5e8]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
call fcn.0046c1d2
add ebp, 0x5ec
leave
ret
Function at 0x469df0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x11c
push ebx
push esi
xor ecx, ecx
inc eax
push edi
movzx edx, byte [eax - 1]
movzx esi, byte [eax]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 1]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
or edx, esi
mov dword [ebp + ecx*4 - 0x11c], edx
inc ecx
add eax, 4
cmp ecx, 0x10
jb 0x469e02
push 0x40
pop esi
cmp ecx, esi
jae 0x469e78
lea eax, [ebp + ecx*4 - 0x124]
sub esi, ecx
mov edx, dword [eax]
mov ecx, dword [eax - 0x34]
mov edi, edx
rol edi, 0xf
mov ebx, edx
shr edx, 0xa
rol ebx, 0xd
xor edi, ebx
xor edi, edx
mov edx, ecx
rol edx, 0xe
mov ebx, ecx
ror ebx, 7
xor edx, ebx
shr ecx, 3
xor edx, ecx
add edi, edx
add edi, dword [eax - 0x38]
add eax, 4
add edi, dword [eax - 0x18]
dec esi
mov dword [eax + 4], edi
jne 0x469e40
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
mov edi, dword [eax + 0x50]
mov ebx, dword [eax + 0x68]
mov esi, dword [eax + 0x60]
and dword [ebp - 8], 0
mov dword [ebp + 8], ecx
mov ecx, dword [eax + 0x58]
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x6c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ecx
mov ecx, esi
ror ecx, 0xb
mov edx, esi
rol edx, 7
xor ecx, edx
mov edx, esi
ror edx, 6
xor ecx, edx
mov edx, esi
not edx
and edx, ebx
mov ebx, dword [ebp - 0xc]
and ebx, esi
xor edx, ebx
add ecx, edx
mov edx, dword [ebp - 8]
add ecx, dword [edx + 0x490b18]
mov ebx, edi
add ecx, dword [ebp + edx - 0x11c]
mov edx, edi
add ecx, dword [ebp - 0x14]
ror edx, 0xd
rol ebx, 0xa
xor edx, ebx
mov ebx, edi
add dword [ebp - 8], 4
ror ebx, 2
xor edx, ebx
mov ebx, dword [ebp + 8]
xor ebx, edi
and ebx, dword [ebp - 4]
mov edi, dword [ebp + 8]
and edi, dword [ebp - 0x10]
xor ebx, edi
mov edi, dword [ebp - 0x1c]
add edx, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
mov dword [ebp + 8], edi
add esi, ecx
cmp dword [ebp - 8], 0x100
lea edi, [edx + ecx]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], edi
jb 0x469eac
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp + 8]
add ecx, edi
mov dword [eax + 0x50], ecx
mov ecx, dword [eax + 0x54]
add ecx, edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], ecx
mov ecx, dword [eax + 0x58]
add ecx, edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x58], ecx
mov ecx, dword [eax + 0x5c]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x5c], ecx
mov ecx, dword [eax + 0x60]
add ecx, esi
mov dword [eax + 0x60], ecx
mov ecx, dword [eax + 0x64]
add ecx, edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x64], ecx
mov ecx, dword [eax + 0x68]
add ecx, ebx
mov dword [eax + 0x68], ecx
mov ecx, dword [eax + 0x6c]
pop edi
add ecx, edx
pop esi
mov dword [eax + 0x6c], ecx
pop ebx
leave
ret
Function at 0x46a750
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x46a78c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46a78c
mov eax, 1
cmp dword [esp + 0x10], eax
je 0x46a78e
xor eax, eax
ret 0x10

Function at 0x46a7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46a837
cmp dword [esp + 0xc], 4
jne 0x46a837
mov al, byte [esp + 8]
mov edx, dword [esp + 0x10]
mov byte [edx], al
mov eax, 1
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x46a8a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46a8e4
cmp dword [esp + 0x10], 3
jne 0x46a8e4
cmp dword [esp + 0x14], esi
ja 0x46a8e4
mov eax, 1
pop esi
ret 0x10
xor eax, eax
pop esi
ret 0x10

Function at 0x46a8f0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 0x10

Function at 0x46a920
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
neg eax
sbb eax, eax
inc eax
ret 0x10
Function at 0x46a950
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x49ab28]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov ebp, dword [esp + 0x120]
lea eax, [esp + 8]
push eax
push 0x10008
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x46a990
xor eax, eax
jmp 0x46a9f6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push eax
mov dword [esp + 0x30], 0x104
call esi
cmp eax, 0x103
je 0x46a9dd
test eax, eax
jne 0x46a9dd
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0046a950
cmp eax, 1
je 0x46a997
xor eax, eax
jmp 0x46a9f5
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [esp + 0x114]
pop ebp
pop ebx
xor ecx, esp
call fcn.0046c1d2
add esp, 0x110
ret 8