joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bacb0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
cmp eax, ebx
jb 0x4bacc3
mov eax, ebx
mov edi, dword [esp + 0x20]
add eax, eax
push eax
push dword [esp + 0x1c]
push edi
call fcn.00531d40
mov ebp, dword [0x5dad58]
add esp, 0xc
add ebx, ebx
test ebp, ebp
jne 0x4bad4d
cmp byte [0x5dad54], 0
jne 0x4bad4d
push str.Crypt32.dll
call fcn.004be510
mov dword [0x5dad50], eax
test eax, eax
je 0x4bad38
push str.CryptProtectMemory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptUnprotectMemory
push dword [0x5dad50]
mov dword [0x5dad58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [0x5dad58]
mov esi, eax
mov dword [0x5dad5c], esi
mov byte [0x5dad54], 1
jmp 0x4bad53
mov esi, dword [0x5dad5c]
mov ebp, dword [0x5dad58]
mov byte [0x5dad54], 1
jmp 0x4bad53
mov esi, dword [0x5dad5c]
mov eax, ebx
and eax, 0xfffffff0
cmp byte [esp + 0x28], 0
je 0x4bada5
test ebp, ebp
je 0x4badc2
push 0
push eax
push edi
mov ecx, ebp
call dword [0x55770c]
call ebp
test eax, eax
jne 0x4bade4
push str.CryptProtectMemory_failed
push 0x5d381c
call fcn.00487c80
add esp, 8
mov ecx, 0x5d381c
call fcn.004885d0
push 2
mov ecx, 0x5d381c
call fcn.00487c40
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
test esi, esi
je 0x4badc2
push 0
push eax
push edi
mov ecx, esi
call dword [0x55770c]
call esi
test eax, eax
jne 0x4bade4
push str.CryptUnprotectMemory_failed
jmp 0x4bad7a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x4bade4
add al, 0x4b
lea ecx, [edx + edi]
add al, dl
inc edx
xor byte [ecx], al
mov eax, dword [esp + 0x10]
cmp edx, ebx
jb 0x4badd2
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x14
Function at 0x4badf0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [0x5dad58]
test edi, edi
jne 0x4bae68
cmp byte [0x5dad54], 0
jne 0x4bae68
push str.Crypt32.dll
call fcn.004be510
mov dword [0x5dad50], eax
test eax, eax
je 0x4bae53
push str.CryptProtectMemory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptUnprotectMemory
push dword [0x5dad50]
mov dword [0x5dad58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [0x5dad58]
mov esi, eax
mov dword [0x5dad5c], esi
mov byte [0x5dad54], 1
jmp 0x4bae6e
mov esi, dword [0x5dad5c]
mov edi, dword [0x5dad58]
mov byte [0x5dad54], 1
jmp 0x4bae6e
mov esi, dword [0x5dad5c]
mov ebx, dword [esp + 0x18]
mov eax, ebx
movzx ecx, byte [esp + 0x20]
and eax, 0xfffffff0
cmp byte [esp + 0x1c], 0
je 0x4baeca
test edi, edi
je 0x4baee9
push ecx
push eax
push dword [esp + 0x1c]
mov ecx, edi
call dword [0x55770c]
call edi
test eax, eax
jne 0x4baf12
push str.CryptProtectMemory_failed
push 0x5d381c
call fcn.00487c80
add esp, 8
mov ecx, 0x5d381c
call fcn.004885d0
push 2
mov ecx, 0x5d381c
call fcn.00487c40
pop edi
pop esi
pop ebx
pop ecx
ret 0x10
test esi, esi
je 0x4baee9
push ecx
push eax
push dword [esp + 0x1c]
mov ecx, esi
call dword [0x55770c]
call esi
test eax, eax
jne 0x4baf12
push str.CryptUnprotectMemory_failed
jmp 0x4baea0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x4baf12
mov esi, dword [esp + 0x14]
lea ecx, [ecx]
add al, 0x4b
lea ecx, [edx + esi]
add al, dl
inc edx
xor byte [ecx], al
mov eax, dword [esp + 0xc]
cmp edx, ebx
jb 0x4baf00
pop edi
pop esi
pop ebx
pop ecx
ret 0x10
Function at 0x4bc640
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x4c
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
mov dword [esp + 0x14], eax
mov edi, dword [esi + 0x18]
mov ebp, edi
mov eax, dword [esi + 0x1c]
and edi, 0x3f
shld eax, ebp, 3
shl ebp, 3
mov byte [esi + edi + 0x20], 0x80
inc edi
mov dword [esp + 0x10], eax
cmp edi, 0x38
je 0x4bc6d4
jbe 0x4bc6b3
cmp edi, 0x40
jae 0x4bc69e
mov eax, 0x40
lea ecx, [esi + 0x20]
sub eax, edi
add ecx, edi
push eax
push 0
push ecx
call fcn.00532770
add esp, 0xc
push 1
lea ebx, [esi + 0x20]
xor edi, edi
push ebx
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004bb520
jmp 0x4bc6b6
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edi
push eax
lea eax, [esi + 0x20]
add eax, edi
push 0
push eax
call fcn.00532770
mov eax, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4bc6d7
lea ebx, [esi + 0x20]
bswap eax
push 1
mov dword [esi + 0x58], eax
lea eax, [esp + 0x1c]
push ebx
push eax
bswap ebp
push esi
mov dword [esi + 0x5c], ebp
call fcn.004bb520
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x4c
ret 8

Function at 0x4bc760
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x4bc9b0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x20]
mov ebx, esi
mov ebp, dword [edi + 0x24]
and esi, 0x3f
shld ebp, ebx, 3
shl ebx, 3
mov byte [esi + edi + 0x28], 0x80
inc esi
cmp esi, 0x38
je 0x4bca14
jbe 0x4bc9fc
cmp esi, 0x40
jae 0x4bc9f4
mov eax, 0x40
lea ecx, [edi + 0x28]
sub eax, esi
add ecx, esi
push eax
push 0
push ecx
call fcn.00532770
add esp, 0xc
push edi
xor esi, esi
call fcn.004bcd60
mov eax, 0x38
sub eax, esi
push eax
lea eax, [edi + 0x28]
add eax, esi
push 0
push eax
call fcn.00532770
add esp, 0xc
bswap ebp
bswap ebx
push edi
mov dword [edi + 0x60], ebp
mov dword [edi + 0x64], ebx
call fcn.004bcd60
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
bswap eax
mov dword [ecx], eax
mov eax, dword [edi + 4]
bswap eax
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
bswap eax
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
bswap eax
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x10]
bswap eax
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x14]
bswap eax
mov dword [ecx + 0x14], eax
mov eax, dword [edi + 0x18]
bswap eax
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x1c]
bswap eax
mov dword [ecx + 0x1c], eax
mov dword [edi], 0x6a09e667
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4bcac0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
ret 4
Function at 0x4bcd60
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x13c
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
mov ebp, dword [esp + 0x148]
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x2c], ebp
lea edx, [ebp + 0x28]
mov eax, dword [edx]
lea edx, [edx + 4]
bswap eax
mov dword [esp + ecx*4 + 0x48], eax
inc ecx
cmp ecx, 0x10
jb 0x4bcd88
lea eax, [esp + 0x80]
mov ebx, 0x30
mov edx, dword [eax - 0x34]
lea eax, [eax + 4]
mov esi, dword [eax - 4]
mov edi, edx
mov ecx, edx
rol edi, 0xe
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
rol ecx, 0xd
rol edx, 0xf
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax - 0x3c]
add edi, dword [eax - 0x18]
mov dword [eax + 4], edi
sub ebx, 1
jne 0x4bcda5
mov eax, dword [ebp]
mov ebx, eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x14]
xor ebp, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], esi
jmp 0x4bce20
mov dword [esp + 0x34], eax
mov eax, edi
rol eax, 7
mov dword [esp + 0x44], esi
mov esi, edi
ror esi, 0xb
xor esi, eax
mov dword [esp + 0x38], ecx
mov eax, edi
mov dword [esp + 0x40], edx
ror eax, 6
mov ecx, edi
xor esi, eax
mov dword [esp + 0x24], edi
not ecx
mov dword [esp + 0x3c], edi
and ecx, dword [esp + 0x14]
mov eax, edx
and eax, edi
mov dword [esp + 0x30], ebx
xor ecx, eax
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add esi, ecx
add esi, dword [ebp + 0x568b68]
add esi, dword [esp + ebp + 0x48]
add ebp, 4
add esi, dword [esp + 0x18]
mov dword [esp + 0x18], eax
add edi, esi
mov dword [esp + 0x14], edx
mov eax, ebx
rol eax, 0xa
mov edx, ebx
ror edx, 0xd
xor edx, eax
mov eax, ebx
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x1c]
mov ecx, eax
and eax, dword [esp + 0x10]
xor ecx, dword [esp + 0x10]
and ecx, ebx
xor ecx, eax
mov eax, dword [esp + 0x1c]
add edx, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
mov eax, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
lea ebx, [edx + esi]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
cmp ebp, 0x100
jb 0x4bce20
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x148]
add eax, ebx
add dword [ebp + 0x10], edi
mov dword [ebp], eax
mov eax, dword [esp + 0x30]
add dword [ebp + 4], eax
mov eax, dword [esp + 0x34]
add dword [ebp + 8], eax
mov eax, dword [esp + 0x38]
add dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
add dword [ebp + 0x14], eax
mov eax, dword [esp + 0x40]
add dword [ebp + 0x18], eax
mov eax, dword [esp + 0x44]
add dword [ebp + 0x1c], eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x13c
ret 4
Function at 0x4be480
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
mov word [esp + 0x34], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp], eax
test eax, eax
je 0x4be4f0
lea eax, [esp]
push eax
push dword [esp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 4]
neg eax
sbb eax, eax
and dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp]
test eax, eax
mov ecx, dword [esp + 0x10]
setne al
xor ecx, esp
call fcn.00530218
add esp, 0x14
ret

Function at 0x4be510
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
lea eax, [esp + 4]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4be55c
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 4
push 0x800
lea eax, [esp + 8]
push eax
push esi
push eax
call fcn.004a2fb0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x1004]
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 4

Function at 0x4be670
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4be6ce
lea eax, [esp + 8]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x1c]
cmp eax, 1
jne 0x4be6e0
push SysReAllocString
push 5
jmp 0x4be72e
cmp eax, 3
jne 0x4be701
push 0
push 0
push 0
call sub.POWRPROF.dll_SetSuspendState
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00530218
add esp, 0x18
ret 4
cmp eax, 2
jne 0x4be722
push 0
push 0
push 1
call sub.POWRPROF.dll_SetSuspendState
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00530218
add esp, 0x18
ret 4
cmp eax, 4
jne 0x4be734
push SysReAllocString
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00530218
add esp, 0x18
ret 4
Function at 0x4be9f0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
jne 0x4bea7d
push ebx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x4bea7c
push ebp
push edi
lea edi, [esi + 4]
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x4beb20
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x4bea58
push str.CreateThread_failed
push 0x5d381c
call fcn.00487c80
add esp, 8
mov ecx, 0x5d381c
call fcn.004885d0
push 2
mov ecx, 0x5d381c
call fcn.00487c40
mov dword [edi], ebp
inc dword [esi + 0x104]
mov eax, dword [0x5ded74]
test eax, eax
je 0x4bea72
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x4bea10
pop edi
pop ebp
pop ebx
cmp dword [esi + 0x108], 0x40
jb 0x4bea8d
mov ecx, esi
call fcn.004bebe0
mov ecx, dword [esi + 0x30c]
mov eax, dword [esp + 0xc]
mov dword [esi + ecx*8 + 0x10c], eax
mov ecx, dword [esi + 0x30c]
mov eax, dword [esp + 0x10]
mov dword [esi + ecx*8 + 0x110], eax
mov eax, dword [esi + 0x30c]
inc eax
and eax, 0x3f
inc dword [esi + 0x108]
mov dword [esi + 0x30c], eax
pop esi
pop ecx
ret 8
Function at 0x4cf0c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebx
mov ebx, dword [esp + 0x5ac]
push edi
mov edi, dword [esp + 0x5b4]
call fcn.00495f30
test eax, eax
jne 0x4cf0fd
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4cf1f1
push esi
mov edi, edi
cmp word [edi], 0
mov dword [0x5e0bd0], 0
je 0x4cf1f0
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cf1e3
xor esi, esi
mov dword [esp + 0xc], 0xc8
lea eax, [esp + 0x14]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4cf1bb
jmp 0x4cf160
lea eax, [esp + 0x1c]
push eax
push edi
push 0x568f44
lea eax, [esp + 0x1b8]
push 0x200
push eax
call fcn.00404ce0
add esp, 0x14
lea eax, [esp + 0x1ac]
push eax
push ebx
call fcn.004cf510
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0xc8
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
inc esi
push eax
lea eax, [esp + 0x30]
push eax
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4cf160
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cf1ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4cf1e3
mov eax, dword [0x5e0bd0]
inc eax
mov dword [0x5e0bd0], eax
jmp 0x4cf1e8
mov eax, dword [0x5e0bd0]
test eax, eax
jne 0x4cf100
pop esi
mov ecx, dword [esp + 0x5a8]
pop edi
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x5a4
ret 8
Function at 0x4cf510
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebx
mov ebx, dword [esp + 0x5ac]
push esi
mov esi, dword [esp + 0x5b4]
cmp word [esi], 0
je 0x4cf603
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cf603
push edi
xor edi, edi
mov dword [esp + 0xc], 0xc8
lea eax, [esp + 0x14]
push eax
push edi
push edi
push edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push edi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4cf5e1
lea eax, [esp + 0x1c]
push eax
push esi
push 0x568f44
lea eax, [esp + 0x1b8]
push 0x200
push eax
call fcn.00404ce0
add esp, 0x14
lea eax, [esp + 0x1ac]
push eax
push ebx
call fcn.004cf510
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0xc8
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
inc edi
push eax
lea eax, [esp + 0x30]
push eax
push edi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4cf586
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
je 0x4cf5f1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4cf603
inc dword [0x5e0bd0]
mov ecx, dword [esp + 0x5a8]
pop esi
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x5a4
ret 8

Function at 0x4cf620
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x404
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push edi
mov edi, dword [esp + 0x414]
push 0x558718
push edi
push esi
call fcn.004cdec0
test al, al
jne 0x4cf68f
push 0x200
lea eax, [esp + 0xc]
push eax
push edi
push esi
call fcn.004d0850
test al, al
je 0x4cf68f
mov eax, dword [0x5e0bd4]
test eax, eax
jne 0x4cf680
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x4cf68f
push 0
push eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x404
ret 8
Function at 0x4cf6b0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x404
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push 0x558718
push esi
push SysReAllocString
call fcn.004cdec0
test al, al
jne 0x4cf76d
movzx eax, word [esi]
cmp eax, 0x5c
je 0x4cf716
test ax, ax
mov eax, 0x558698
jne 0x4cf6fb
mov eax, 0x558718
push esi
push eax
push str.SoftwareWinRAR_s_s
lea eax, [esp + 0x10]
push 0x200
push eax
call fcn.00404ce0
add esp, 0x14
jmp 0x4cf729
push 0x200
lea eax, [esi + 2]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004bdae0
mov eax, dword [0x5e0bd4]
test eax, eax
jne 0x4cf75a
lea eax, [esp + 4]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00530218
add esp, 0x404
ret 4
push 0
push eax
lea eax, [esp + 0xc]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x404
ret 4

Function at 0x4cf790
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
mov ebx, dword [esp + 0x414]
push esi
mov esi, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x420]
push edi
push ebx
push esi
call fcn.004cdec0
test al, al
jne 0x4cf813
push 0x200
lea eax, [esp + 0x14]
push eax
push ebx
push esi
call fcn.004d0850
test al, al
je 0x4cf813
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cf813
push edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4cf813
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x408
ret 0xc

Function at 0x4cf830
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
mov esi, dword [esp + 0x410]
push edi
mov edi, dword [esp + 0x418]
push edi
push esi
push SysReAllocString
call fcn.004cdec0
test al, al
jne 0x4cf8e3
movzx eax, word [esi]
cmp eax, 0x5c
je 0x4cf896
test ax, ax
mov eax, 0x558698
jne 0x4cf87b
mov eax, 0x558718
push esi
push eax
push str.SoftwareWinRAR_s_s
lea eax, [esp + 0x18]
push 0x200
push eax
call fcn.00404ce0
add esp, 0x14
jmp 0x4cf8a9
push 0x200
lea eax, [esi + 2]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004bdae0
lea eax, [esp + 8]
push eax
push 0x20006
push 0
lea eax, [esp + 0x18]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cf8e3
push edi
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 8]
test eax, eax
je 0x4cf8e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x408
ret 8
Function at 0x4cfc80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x18]
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push esi
push SysReAllocString
call fcn.004ce310
test al, al
jne 0x4cfd11
push edi
push esi
push SysReAllocString
call fcn.004d08d0
mov edi, eax
mov dword [esp + 8], 8
test edi, edi
je 0x4cfd01
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x30]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4cfd01
cmp dword [esp + 8], esi
je 0x4cfd01
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
pop edi
pop esi
add esp, 0x10
ret 0x10
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop esi
add esp, 0x10
ret 0x10

Function at 0x4cfd20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
push eax
mov eax, edi
cdq
push edx
push eax
push dword [esp + 0x38]
push esi
push ebx
call fcn.004ce310
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
test al, al
je 0x4cfd5e
pop edi
pop esi
mov eax, ecx
pop ebx
add esp, 0x14
ret 0x10
push esi
push ebx
call fcn.004d08d0
mov ebx, eax
mov dword [esp + 0xc], 4
test ebx, ebx
je 0x4cfda6
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x3c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4cfda6
cmp dword [esp + 0xc], esi
je 0x4cfda6
mov edi, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0x10