joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c160
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov bh, 1
mov esi, edx
push edi
mov edi, ecx
mov bl, bh
nop dword [eax + eax]
test bl, bl
je 0x48c1b0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48c17e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 1
cmp eax, 0xffffffff
je 0x48c1b0
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x48c1a3
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x48c1ba
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48c1c4
mov eax, dword [edi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x48c203
add bh, 0xff
je 0x48c1fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x48c1ec
cmp eax, 0x20
mov eax, 0x14
jne 0x48c1f1
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x48c170
pop edi
pop esi
xor al, al
pop ebx
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48c20d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48c236
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
jb 0x48c22e
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x48c470
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebx
push esi
mov bh, 1
mov esi, edx
push edi
mov edi, ecx
mov bl, bh
nop dword [eax + eax]
test bl, bl
je 0x48c4c0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48c48e
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 1
cmp eax, 0xffffffff
je 0x48c4c0
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x48c4b3
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x48c4ca
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48c4d4
mov eax, dword [edi]
push 0xb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x48c513
add bh, 0xff
je 0x48c50d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x48c4fc
cmp eax, 0x20
mov eax, 0x14
jne 0x48c501
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x48c480
pop edi
pop esi
xor al, al
pop ebx
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48c51d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48c546
and eax, 0x3126
mov ecx, 0x80
cmove eax, ecx
cmp dword [esi + 0x14], 8
jb 0x48c53e
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x48c550
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov bl, dl
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48c560
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48c5b3
test al, 0x10
jne 0x48c5b3
test bl, bl
je 0x48c5b3
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48c57e
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x48c591
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48c5ae
add bl, 0xff
je 0x48c556
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x48c556
pop esi
mov al, 1
pop ebx
ret
pop esi
xor al, al
pop ebx
ret

Function at 0x48c5c0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5a85
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x48c5f9
xor al, al
jmp 0x48c6ab
test dl, dl
jne 0x48c61a
cmp dword [edi + 0x14], 8
jb 0x48c605
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x48c6ab
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 3
push 0x5348c4
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.0040a960
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push 1
push eax
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.0048cbc0
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040aa40
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x1c]
je 0x48c694
mov ecx, esi
nop dword [eax]
add ecx, 0xffffffe8
xor dl, dl
add esi, 0xffffffe8
call fcn.0048c5c0
mov ecx, esi
cmp esi, dword [ebp - 0x1c]
jne 0x48c680
xor dl, dl
mov ecx, edi
call fcn.0048c5c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1d], al
call fcn.0040b810
mov al, byte [ebp - 0x1d]
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.004af3ab
mov esp, ebp
pop ebp
ret
Function at 0x48caa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5b35
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54d104]
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 ebx, edx
mov edi, ecx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48cad9
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x44]
push eax
call fcn.0048b220
add esp, 8
xor edx, edx
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0048b3e0
lea ecx, [ebp - 0x44]
call fcn.0040aa40
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48cb0a
mov eax, dword [edi]
push 0
push 0x80
push 2
push 0
push 5
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
cmp esi, 0xffffffff
je 0x48cb6c
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48cb98
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.004af3ab
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040aae0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.set_file_content__ls
push eax
lea ecx, [ebp - 0x2c]
call fcn.004125b0
push 0x549cdc
lea eax, [ebp - 0x2c]
push eax
call fcn.004b1dab
push str.set_file_content
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00495810
push 0x549cdc
lea eax, [ebp - 0x2c]
push eax
call fcn.004b1dab
int3
Function at 0x48d190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5c7e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x54d104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x34], edi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [ebp + 8]
push 0x529f90
movzx eax, si
push eax
mov dword [ebp - 4], 0
push 0x400000
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x48d2be
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x48d2ee
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48d2a3
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [edi]
mov ebx, eax
mov eax, dword [edi + 4]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x10], eax
cmp ebx, ecx
jae 0x48d262
lea eax, [edx + ebx]
jmp 0x48d292
jbe 0x48d295
mov eax, dword [edi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x48d278
push ecx
push ebx
mov ecx, edi
call fcn.00422ad0
jmp 0x48d295
mov esi, ebx
sub esi, ecx
push esi
push 0
push dword [ebp - 0x10]
call fcn.004b23a0
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x1c]
mov dword [edi + 4], eax
push ebx
push dword [ebp - 0x14]
push dword [edi]
call fcn.004b1e20
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
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
mov eax, 0x529f90
push ecx
push esi
test eax, 0xffff0000
je 0x48d310
push str.resource__d_of_type__s_was_not_found
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.0048d510
push 0x549cdc
lea eax, [ebp - 0x30]
push eax
call fcn.004b1dab
push str.resource_was_not_properly_loaded
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.00495810
push 0x549cdc
lea eax, [ebp - 0x30]
push eax
call fcn.004b1dab
push str.resource__d_of_type__d_was_not_found
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.0048d510
push 0x549cdc
lea eax, [ebp - 0x30]
push eax
call fcn.004b1dab
int3
Function at 0x48dcd0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5db0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x288
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x230], edi
mov esi, ecx
mov dword [ebp - 0x22c], esi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x234], esi
push eax
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, eax
test ecx, ecx
jns 0x48debe
mov eax, edi
and eax, 0xffff00ff
cmp eax, 0x24
jne 0x48dd7f
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x48df3d
cmp eax, 0x104
ja 0x48df62
jmp 0x48debe
cmp eax, 0x25
jne 0x48ddae
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x48df85
cmp eax, 0x104
ja 0x48dfaa
jmp 0x48debe
cmp eax, 0x26
jne 0x48ddc2
lea edx, [eax - 0x25]
mov ecx, esi
call fcn.0048dfe0
jmp 0x48defe
cmp eax, 0x2b
jne 0x48ddd3
mov ecx, esi
call fcn.0048e1e0
jmp 0x48defe
cmp eax, 0x23
jne 0x48ddf9
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], str.Common_AppData
mov dword [eax + 4], 0xe
call fcn.0048dbc0
add esp, 8
jmp 0x48defe
cmp eax, 0x1a
jne 0x48de4d
sub esp, 8
mov dword [ebp - 4], 0
mov eax, esp
mov ecx, esi
mov dword [eax], str.AppData
mov dword [eax + 4], 7
call fcn.0048dbc0
add esp, 8
jmp 0x48defe
cmp eax, 0x1c
jne 0x48df1e
sub esp, 8
mov dword [ebp - 4], 2
mov eax, esp
mov ecx, esi
mov dword [eax], str.Local_AppData
mov dword [eax + 4], 0xd
call fcn.0048dbc0
add esp, 8
jmp 0x48defe
xorps xmm0, xmm0
lea ecx, [ebp - 0x228]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48dee0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040a960
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
push ecx
push ecx
lea ecx, [ebp - 0x29c]
call fcn.0043c750
push 0x549cdc
lea eax, [ebp - 0x29c]
push eax
call fcn.004b1dab
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0043c750
push 0x549cdc
lea eax, [ebp - 0x24c]
push eax
call fcn.004b1dab
push edi
push ecx
push 0xea
lea ecx, [ebp - 0x260]
call fcn.0043c750
push 0x549cdc
lea eax, [ebp - 0x260]
push eax
call fcn.004b1dab
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x274]
call fcn.0043c750
push 0x549cdc
lea eax, [ebp - 0x274]
push eax
call fcn.004b1dab
push edi
push ecx
push 0xea
lea ecx, [ebp - 0x288]
call fcn.0043c750
push 0x549cdc
lea eax, [ebp - 0x288]
push eax
call fcn.004b1dab
int3
Function at 0x48eeb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x54d104]
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 ebx, edx
mov dword [ebp - 0x218], ecx
test ecx, ecx
je 0x48efd0
test ebx, ebx
je 0x48efd0
cmp word [ebx], 0
je 0x48efd0
mov dword [ebp - 0x214], 0
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
mov eax, edi
mov dword [ebp - 4], 0
or eax, 8
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x48ef87
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x48ef83
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edi
call fcn.0048eeb0
add esp, 4
test al, al
je 0x48ef6c
xor esi, esi
jmp 0x48ef31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x48ef31
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x48efb0
test esi, esi
je 0x48ef92
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x48efb0
push 0
push edi
push ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete bl
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x48efcc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48efcc
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
jmp 0x48efda
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
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.004af3ab
mov esp, ebp
pop ebp
ret
Function at 0x48f0d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6010
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x54d104]
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 ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x228]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], 0x80000002
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x21c], 0
mov dword [ebp - 0x214], eax
push eax
push 0x101
push 0
push str.SoftwareClassesCLSIDB7E6B353_129C_43BE_86A5_1041305A828CProductIDs
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x48f16e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x48f29e
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push 0x529ca4
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x48f1b9
push dword [ebp - 0x220]
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00445ba0
jmp 0x48f292
cmp edi, 0xea
jne 0x48f288
mov ebx, dword [esi + 4]
mov ecx, ebx
mov edx, dword [esi]
sub ecx, edx
mov edi, dword [ebp - 0x220]
cmp edi, ecx
jae 0x48f1dd
lea eax, [edx + edi]
jmp 0x48f204
jbe 0x48f207
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x48f1f3
push ecx
push edi
mov ecx, esi
call fcn.00422ad0
jmp 0x48f207
sub edi, ecx
push edi
push 0
push ebx
call fcn.004b23a0
add esp, 0xc
lea eax, [edi + ebx]
mov dword [esi + 4], eax
lea eax, [ebp - 0x220]
push eax
push dword [esi]
push dword [ebp - 0x22c]
push 0
push 0x529ca4
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
je 0x48f1c5
test edi, edi
jne 0x48f292
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
mov ebx, dword [ebp - 0x220]
mov dword [ebp - 0x22c], eax
cmp ebx, ecx
jae 0x48f255
lea eax, [edx + ebx]
jmp 0x48f28f
jbe 0x48f292
mov eax, dword [esi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x48f26b
push ecx
push ebx
mov ecx, esi
call fcn.00422ad0
jmp 0x48f292
sub ebx, ecx
push ebx
push 0
push dword [ebp - 0x22c]
call fcn.004b23a0
mov eax, dword [ebp - 0x22c]
add esp, 0xc
add eax, ebx
jmp 0x48f28f
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x48f292
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
cmp byte [ebp - 0x21c], 0
jne 0x48f2be
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x22c], eax
call fcn.0048fe70
mov al, bl
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.004af3ab
mov esp, ebp
pop ebp
ret
Function at 0x48f650
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x80000000
push esi
mov esi, edx
push edi
test ebx, ebx
je 0x48f73e
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0x10], 0
mov dword [ebp - 8], eax
test esi, esi
je 0x48f6f0
cmp word [esi], 0
je 0x48f6f0
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x48f6eb
cmp edi, 5
jne 0x48f6e0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 2
push 4
push 0
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x48f6eb
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x48f717
mov eax, dword [ebp - 0x14]
jmp 0x48f6f8
mov eax, 0x80000000
mov dword [ebp - 0x14], eax
push 4
push ebx
push 4
push 0
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete bl
cmp byte [ebp - 0x10], 0
jne 0x48f72b
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.0048fe70
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
Function at 0x48fb40
Capabilities:
Delete registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f611d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x34], 0
test edx, edx
jne 0x48fb93
lea esi, [ecx + 0x57]
jmp 0x48fcb3
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48fbb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0040a960
push 0x530ad8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48fc95
push 0x534428
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x48fc95
call fcn.004934c0
test al, al
jne 0x48fc2b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x48fc24
cmp dword [ebp - 0x18], 0
jne 0x48fc2b
mov ecx, 0xf003f
jmp 0x48fc42
lea ecx, [ebp - 0x30]
call fcn.0048f760
test al, al
mov ecx, 0xf013f
mov edx, 0xf023f
cmovne ecx, edx
cmp dword [ebp - 0x1c], 8
lea edx, [ebp - 0x34]
push edx
push ecx
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 8
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x48fc9d
push str.SymbolicLinkValue
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x48fc9d
push dword [ebp - 0x34]
mov ecx, edi
call dword [0x4f933c]
call edi
lea ecx, [ebp - 0x30]
test eax, eax
je 0x48fca0
mov esi, 5
jmp 0x48fca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.0040aa40
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x48fcb3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x48fce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f615d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov esi, ecx
xor edi, edi
test esi, esi
jne 0x48fd31
lea edi, [ecx + 0x57]
jmp 0x48fe24
xorps xmm0, xmm0
mov dword [ebp - 0x24], edi
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48fd41
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.0040a960
mov dword [ebp - 4], 0
call fcn.004934c0
test al, al
jne 0x48fd93
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x48fd8c
cmp dword [ebp - 0x18], 0
jne 0x48fd93
mov ecx, 0x20019
jmp 0x48fdaa
lea ecx, [ebp - 0x34]
call fcn.0048f760
test al, al
mov ecx, 0x20119
mov edx, 0x20219
cmovne ecx, edx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push ecx
push 8
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x48fdfb
mov eax, dword [ebp - 0x38]
push esi
push esi
mov byte [eax], 0
lea eax, [ebp - 0x1c]
push eax
push esi
push str.SymbolicLinkValue
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x48fdef
xor esi, esi
jmp 0x48fdfb
cmp dword [ebp - 0x1c], 6
jne 0x48fdfb
mov eax, dword [ebp - 0x38]
mov byte [eax], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48fe09
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x48fe1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x34]
call fcn.0040aa40
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret