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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov edi, ecx
xor esi, esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x441059
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 2
jne 0x441057
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
je 0x441069
jbe 0x441057
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004655f1
leave
ret 4
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
jne 0x441052
cmp dword [ebp + 8], esi
jbe 0x441054
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
xor esi, esi
inc esi
push esi
xor edi, edi
push edi
push 0x41d230
push 0x80000002
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x441057
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push edi
push 0x41d28c
push dword [ebp - 0x330]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4410fb
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
jne 0x4410fb
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.msvcrt.dll__wtol]
cmp eax, dword [ebp + 8]
pop ecx
sbb esi, esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
inc esi
push dword [ebp - 0x330]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x441057

Function at 0x441111
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
xor esi, esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44116c
push 2
pop eax
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
jne 0x44116a
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 5
jne 0x44116a
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x44116a
cmp word [ebp - 0xc], ax
jb 0x44116a
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004655f1
leave
ret
Function at 0x44117e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x41d328
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4411ec
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x41d358
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4411e2
cmp dword [ebp - 8], edi
jne 0x4411e2
cmp dword [ebp - 0xc], 1
jne 0x4411e2
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4411f6
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x10], 0xffffffff
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x20008
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4412e2
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call edi
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov esi, eax
pop ecx
test esi, esi
je 0x4412d1
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4412c9
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4412c9
mov edi, ebx
cmp dword [esi], ebx
jbe 0x4412c0
lea eax, [esi + 4]
mov dword [ebp - 0x18], eax
push dword [eax]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4412bd
mov eax, dword [ebp - 0x18]
inc edi
add eax, 8
mov dword [ebp - 0x18], eax
cmp edi, dword [esi]
jb 0x44129e
jmp 0x4412c0
xor ebx, ebx
inc ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
cmp dword [ebp - 0x10], 0
pop edi
pop esi
je 0x4412e2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret
Function at 0x4412f6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x41d36c
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44133f
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push 0x41d3a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x4414b5
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x441532
lea eax, [ebp - 0x10]
push eax
push 0x41d4f0
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x441524
push 0x80040002
push 4
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateShutdownW]
cmp dword [ebp - 0x18], esi
je 0x441532
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004655f1
leave
ret
Function at 0x44190a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x41d5b0
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x441978
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x41d668
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44196e
cmp dword [ebp - 8], edi
jne 0x44196e
cmp dword [ebp - 0xc], 1
jne 0x44196e
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x441ac0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
test esi, esi
je 0x441bc5
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x20019
push edi
push 0x41d5b0
push 0x80000002
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x441bc5
push 4
pop eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push edi
push 0x41d668
push dword [ebp - 0x214]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x441bb9
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 4
jne 0x441bb9
inc eax
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
jne 0x441bb9
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push edi
push 0x4019ec
push dword [ebp - 0x214]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x441bb9
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
jne 0x441bb9
lea edx, reloc.ADVAPI32.dll_TraceMessage
mov eax, 0x104
call fcn.0042c88c
test eax, eax
js 0x441bb9
inc edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004655f1
leave
ret
Function at 0x441f05
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x468458]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push edi
push edi
push 0x41d688
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x441f7c
mov edx, 0x403998
test esi, esi
jne 0x441f45
mov edx, 0x41d6ec
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x441f4a
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push edi
push 0x41c384
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

Function at 0x44210a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x41d6f8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x442162
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x41d75c
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x442172
push esi
push 0x41d788
push 2
pop esi
call fcn.00440126
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x442552
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4425be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x442576
push 0x57
pop esi
cmp esi, 5
jne 0x4425be
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.ADVAPI32.dll_TraceMessage
je 0x4425be
test al, 1
je 0x4425be
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4425be
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4425af
xor esi, esi
jmp 0x4425be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x4425be
push 0x57
pop esi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x442a4b
Capabilities:
Copy file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
je 0x442aab
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea esi, [ebp - 0xc]
call fcn.00440205
test eax, eax
je 0x442a9c
push 0
push dword [ebp + 8]
call dword [ebp - 0xc]
test eax, eax
jne 0x442a9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x41da00
push 2
pop esi
call fcn.00440126
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x442aab
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
je 0x442b0d
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea esi, [ebp - 0xc]
call fcn.00440205
test eax, eax
je 0x442afe
push 0
push edi
call dword [ebp - 0xc]
test eax, eax
jne 0x442afe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x41da00
push 2
pop esi
call fcn.00440126
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x442b0d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 8]
pop esi
leave
ret 4
Function at 0x442fbe
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x14
pop eax
mov esi, dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
xor ecx, ecx
push 2
pop edx
xor edi, edi
mul edx
seto cl
mov dword [ebp - 4], edi
neg ecx
or ecx, eax
push ecx
call esi
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x442ff8
mov eax, 0x8007000e
jmp 0x44317e
lea eax, [ebp - 4]
push eax
push 2
push edi
push 0x4017a8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44307f
push 0x208
call esi
mov edi, eax
pop ecx
test edi, edi
je 0x443074
mov esi, 0x104
push esi
call fcn.00440252
test eax, eax
je 0x44306c
push 0x41de04
mov eax, esi
call fcn.0042c8f1
mov ecx, edi
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x443043
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push esi
push 0x41de18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x41de38
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x443152
push dword [0x46860c]
mov ecx, ebx
push 0x41d1dc
push 0x14
pop eax
call fcn.0042c95b
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x4430e3
mov eax, dword [0x46860c]
cmp eax, 0x3e8
jge 0x4430f3
inc eax
push eax
push 0x41d1dc
mov dword [0x46860c], eax
push 0x14
pop eax
mov ecx, ebx
call fcn.0042c95b
pop ecx
pop ecx
push edi
push edi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4430c1
mov ecx, dword [ebp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4430f9
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp + 8]
push 2
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jne 0x44312c
inc dword [0x46860c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x443152
push dword [ebp + 8]
push 0x41deec
push 4
pop esi
call fcn.00440126
pop ecx
pop ecx
mov edi, 0xd2af9
jmp 0x443174
jle 0x443160
and edi, 0xffff
or edi, 0x80070000
push edi
push dword [ebp + 8]
push 0x41deac
push 2
pop esi
call fcn.00440126
add esp, 0xc
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x44318a
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x44327b
test esi, esi
je 0x44327b
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 3
push ebx
push 0x4017a8
push 0x80000002
call edi
test eax, eax
je 0x4431e2
lea eax, [ebp - 4]
push eax
push 3
push ebx
push 0x4017a8
push 0x80000001
call edi
mov edi, eax
test edi, edi
jne 0x44323b
push esi
push dword [ebp - 4]
call fcn.00444135
mov ebx, eax
test ebx, ebx
je 0x443229
mov ecx, esi
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4431f8
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov edi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x44322e
mov edi, 0x80004005
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x44325f
jle 0x443249
and edi, 0xffff
or edi, 0x80070000
push edi
push dword [ebp + 8]
push 0x41df38
push 2
pop esi
call fcn.00440126
add esp, 0xc
jmp 0x443277
push 0x41df7c
push 4
call fcn.004400fc
or dword [0x467d10], 1
mov edi, 0xd2af9
mov eax, edi
jmp 0x443280
mov eax, 0x80004003
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x443e3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x443e78
xor eax, eax
jmp 0x443fcc
mov ecx, dword [ebp + 0xc]
push ebx
push 2
lea edx, [ecx + 2]
pop ebx
mov ax, word [ecx]
add ecx, ebx
cmp ax, si
jne 0x443e82
mov eax, dword [ebp - 8]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jbe 0x443e9c
mov eax, ecx
inc dword [ebp - 0xc]
add eax, 5
xor ecx, ecx
mov dword [ebp - 8], eax
mul ebx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
pop ecx
test edi, edi
jne 0x443ece
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x443fca
mov ebx, dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 8]
push 0x41c628
mov ecx, edi
call fcn.0042c95b
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x2001f
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x443fa4
cmp dword [ebp + 0x10], eax
je 0x443f80
push 0x208
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov esi, eax
pop ecx
test esi, esi
je 0x443f7e
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x443f7a
cmp dword [ebp - 0x14], 1
jne 0x443f7a
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x1c]
jne 0x443f58
sub ecx, edx
sar ecx, 1
je 0x443f7a
push dword [ebp + 0x10]
push esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x443f9e
push esi
call ebx
pop ecx
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0xc]
jbe 0x443edc
jmp 0x443fc3
push esi
call ebx
pop ecx
jmp 0x443fc3
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x443fc3
mov dword [ebp - 4], esi
push edi
call ebx
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x443fd6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x444012
xor eax, eax
jmp 0x44411d
mov eax, dword [ebp - 4]
push reloc.ole32.dll_CoRegisterClassObject
pop ecx
mov dword [ebp - 0xc], ecx
cmp eax, ecx
jae 0x444021
mov eax, ecx
push esi
add eax, 5
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov esi, eax
pop ecx
test esi, esi
je 0x44411c
mov eax, edi
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x10], eax
jbe 0x444113
push eax
mov eax, dword [ebp - 4]
push 0x41fdb8
push 0x41c628
mov ecx, esi
call fcn.0042c95b
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 3
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x444103
push 0x208
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
pop ecx
test edi, edi
je 0x4440f8
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4440f4
cmp dword [ebp - 0x14], 1
jne 0x4440f4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x1c]
jne 0x4440d2
sub ecx, edx
sar ecx, 1
je 0x4440f4
push dword [ebp + 0xc]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x444122
push edi
call ebx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x10]
jb 0x444060
push esi
call ebx
mov esi, edi
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
leave
ret 8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call ebx
jmp 0x444118