joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a5c4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x4623c0], 0
mov eax, dword [ebp + 8]
push esi
je 0x41a62f
push eax
push edx
push ecx
push dword [0x4623bc]
mov esi, 0x4629a0
push dword [0x4623b8]
push 0x4030a4
push 0x400
push esi
call dword [sym.imp.ntdll.dll_sprintf_s]
add esp, 0x20
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x14]
xor edx, edx
push edx
push ecx
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push edx
push edx
push edx
push dword [0x4623c0]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.00461687
leave
ret 4

Function at 0x41a644
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4623c0], 0
push esi
mov esi, ecx
je 0x41a6b0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemTime]
push esi
push dword [ebp - 0xc]
mov esi, 0x462da0
push dword [ebp - 0x10]
push 0x4030c4
push 0x400
push esi
call dword [sym.imp.ntdll.dll_sprintf_s]
add esp, 0x18
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x18]
xor edx, edx
push edx
push ecx
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push edx
push edx
push edx
push dword [0x4623c0]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00461687
leave
ret

Function at 0x41a6c3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4623c0], 0
push esi
mov esi, ecx
je 0x41a737
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemTime]
push dword [esi + 4]
movzx eax, word [esi]
mov esi, 0x4631a0
shr eax, 1
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x4030e0
push 0x400
push esi
call dword [sym.imp.ntdll.dll_sprintf_s]
add esp, 0x1c
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x18]
xor edx, edx
push edx
push ecx
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push edx
push edx
push edx
push dword [0x4623c0]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00461687
leave
ret
Function at 0x41a74a
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
movzx eax, word [esi]
cmp eax, 0x1f4
ja 0x41a842
push eax
push dword [esi + 4]
push 0x4635ac
call sub.ntdll.dll_memcpy
movzx eax, word [esi]
add esp, 0xc
shr eax, 1
push 0x2e
lea ecx, [eax*2 + 0x4635ac]
pop eax
mov word [ecx], ax
add ecx, 2
mov edx, dword [0x4623b8]
xor ebx, ebx
mov edi, dword [0x4623bc]
cmp ecx, 0x4637a0
jae 0x41a7cb
mov eax, edi
shr eax, 0x1c
shld edi, edx, 4
shl edx, 4
movsx ax, byte [eax + 0x404320]
mov word [ecx], ax
add ecx, 2
inc ebx
cmp ebx, 0x10
jb 0x41a7a3
movzx eax, word [esi]
add eax, 0x22
mov byte [0x4635a0], 1
mov dword [0x4635a8], eax
xor eax, eax
push 0x4060
mov dword [0x4635a4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push 7
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x18
push eax
push 0x100100
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0x40
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
js 0x41a842
push 0xb
push 0x200
push 0x4635a0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461687
leave
ret
Function at 0x41c431
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ecx + 4]
lea eax, [ebp - 0x14]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 0x60
push 1
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0xc], ebx
push eax
push 0x120089
lea eax, [ebp - 0xc]
mov dword [ebp - 0x44], 0x18
push eax
push dword [ecx + 0x50]
mov ecx, esi
mov dword [ebp - 0x40], ebx
push 1
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [0x464254]
call esi
mov esi, eax
test esi, esi
jns 0x41c4b4
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41c4ad
cmp ecx, 0xffffffff
je 0x41c4ad
push ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
jmp 0x41c570
push 5
push 0x18
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
test esi, esi
js 0x41c497
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
cmp eax, ebx
jg 0x41c512
jl 0x41c4df
cmp ecx, ebx
jae 0x41c507
mov dword [ebp - 0x4c], 0x784
mov esi, 0xc00000e5
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], 0x403b30
mov dword [ebp - 0x54], 0x402f5c
call fcn.0045a015
jmp 0x41c497
cmp eax, ebx
jl 0x41c520
jg 0x41c512
cmp ecx, 0xffffffff
jbe 0x41c520
mov dword [ebp - 0x4c], 0x78c
mov esi, 0xc000042b
jmp 0x41c4eb
mov edx, edi
call fcn.0045b0f1
mov esi, eax
test esi, esi
js 0x41c497
push ebx
push ebx
push dword [edi + 4]
lea eax, [ebp - 0x14]
push dword [edi + 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov esi, eax
test esi, esi
js 0x41c497
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41c56e
cmp eax, 0xffffffff
je 0x41c56e
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461687
leave
ret 4
Function at 0x41efff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x28]
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x24], eax
mov ebx, ecx
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x3c], edi
test esi, esi
je 0x41f05e
mov dword [esi], ecx
push dword [ebp + 0x24]
mov dword [edi], ecx
push ecx
push eax
mov dword [edi + 4], ecx
call sub.ntdll.dll_memset
add esp, 0xc
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [ebp + 0x24]
push dword [esp + 0x30]
push edi
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x54]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov edi, eax
test edi, edi
jns 0x41f15f
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x41f134
mov ecx, dword [esp + 0x10]
mov eax, ebx
or eax, ecx
jne 0x41f11e
mov edx, dword [0x7ffe0004]
mov ebx, 0x7ffe0324
mov dword [esp + 0x10], edx
mov ecx, dword [ebx]
lea eax, [ebx - 4]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x41f0f8
lea edx, [ebx - 4]
lea esi, [ebx + 4]
pause
mov ecx, dword [ebx]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
cmp ecx, eax
jne 0x41f0e0
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov eax, ecx
mul edx
mov ebx, eax
mov ecx, edx
mov eax, dword [esp + 0x14]
mul dword [esp + 0x10]
shld ecx, ebx, 8
shrd eax, edx, 0x18
shl ebx, 8
shr edx, 0x18
add ebx, eax
adc ecx, edx
mov dword [esp + 0x10], ecx
push ecx
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push edi
call fcn.0041ea5b
mov edi, dword [esp + 0x3c]
jmp 0x41f070
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x40]
push edi
mov dword [esp + 0x44], 0x404644
mov dword [esp + 0x48], 0x40470c
mov dword [esp + 0x4c], 0x188
call fcn.0045a015
mov eax, edi
jmp 0x41f16b
test esi, esi
je 0x41f169
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x41f17a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x1c], ebx
mov ebx, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0x30]
mov dword [esp + 0x1c], ebx
xor ebx, ebx
and dword [esp + 8], ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x44], edi
test esi, esi
je 0x41f1d7
and dword [esi], ebx
and dword [eax], ebx
and dword [eax + 4], ebx
mov dword [esp + 0x30], 0x7ffe0324
mov dword [esp + 0x10], 0x7ffe0320
mov dword [esp + 0x14], 0x7ffe0328
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [ebp + 0x24]
push dword [esp + 0x34]
push eax
push dword [esp + 0x40]
push edi
push edx
push ecx
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov edi, eax
test edi, edi
jns 0x41f2e9
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41f2be
mov ecx, dword [esp + 0xc]
mov eax, ebx
or eax, ecx
jne 0x41f29c
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov edx, dword [0x7ffe0004]
mov dword [esp + 0xc], edx
mov ecx, dword [ebx]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp ecx, eax
je 0x41f276
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
pause
mov ecx, dword [ebx]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
cmp ecx, eax
jne 0x41f25e
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
mov eax, ecx
mul edx
mov ebx, eax
mov ecx, edx
mov eax, dword [esp + 0x18]
mul dword [esp + 0xc]
shld ecx, ebx, 8
shrd eax, edx, 0x18
shl ebx, 8
shr edx, 0x18
add ebx, eax
adc ecx, edx
mov dword [esp + 0xc], ecx
push ecx
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push edi
call fcn.0041ea5b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
jmp 0x41f1f4
and dword [esp + 0x54], 0
lea ecx, [esp + 0x48]
push edi
mov dword [esp + 0x4c], 0x404644
mov dword [esp + 0x50], 0x404724
mov dword [esp + 0x54], 0x1c7
call fcn.0045a015
mov eax, edi
jmp 0x41f2f5
test esi, esi
je 0x41f2f3
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x41f304
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
push edi
test esi, esi
je 0x41f342
mov dword [esi], edx
mov dword [ebx], edx
mov dword [ebx + 4], edx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ecx
push ebx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
jns 0x41f440
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41f415
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41f3f7
mov edx, dword [0x7ffe0004]
mov eax, 0x7ffe0324
mov dword [esp + 0x14], edx
mov ecx, dword [eax]
add eax, 0xfffffffc
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, 0x7ffe0328
mov eax, dword [eax]
cmp ecx, eax
je 0x41f3c5
mov edx, 0x7ffe0324
lea esi, [edx - 4]
lea ebx, [edx + 4]
pause
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
cmp ecx, eax
jne 0x41f3a9
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, ecx
mul edx
mov ecx, eax
mov eax, dword [esp + 0x18]
shld edx, ecx, 8
mov dword [esp + 0x10], edx
mul dword [esp + 0x14]
shl ecx, 8
shrd eax, edx, 0x18
shr edx, 0x18
add ecx, eax
mov eax, dword [esp + 0x10]
adc eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x41f3fb
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.0041ea5b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
jmp 0x41f347
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x30]
push edi
mov dword [esp + 0x34], 0x404644
mov dword [esp + 0x38], 0x40473c
mov dword [esp + 0x3c], 0x1fe
call fcn.0045a015
mov eax, edi
jmp 0x41f45f
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebx + 4]
jae 0x41f453
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
test esi, esi
je 0x41f45d
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41f46e
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
xor esi, esi
inc edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
test ebx, ebx
je 0x41f4af
mov dword [ebx], esi
mov dword [eax], esi
mov dword [eax + 4], esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
cmp esi, 0xc0000043
jne 0x41f4e7
test byte [ebp + 8], 1
je 0x41f521
push 2
pop edi
test ebx, ebx
je 0x41f4dc
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp esi, 0xc0000121
jne 0x41f4f9
test byte [ebp + 8], 2
je 0x41f521
push 3
jmp 0x41f4d5
cmp esi, 0xc0000101
jne 0x41f50b
test byte [ebp + 8], 4
je 0x41f521
push 4
jmp 0x41f4d5
cmp esi, 0xc00000d4
jne 0x41f51d
test byte [ebp + 8], 8
je 0x41f521
push 5
jmp 0x41f4d5
test esi, esi
jns 0x41f4d6
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41f5d9
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41f5b7
mov edx, dword [0x7ffe0004]
mov eax, 0x7ffe0324
mov dword [esp + 0x14], edx
mov ecx, dword [eax]
add eax, 0xfffffffc
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, 0x7ffe0328
mov eax, dword [eax]
cmp ecx, eax
je 0x41f585
mov edx, 0x7ffe0324
lea ebx, [edx - 4]
lea edi, [edx + 4]
pause
mov ecx, dword [edx]
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
cmp ecx, eax
jne 0x41f56a
mov ebx, dword [esp + 0x20]
xor edi, edi
mov edx, dword [esp + 0x14]
inc edi
mov eax, ecx
mul edx
mov ecx, eax
mov eax, dword [esp + 0x18]
shld edx, ecx, 8
mov dword [esp + 0x10], edx
mul dword [esp + 0x14]
shl ecx, 8
shrd eax, edx, 0x18
shr edx, 0x18
add ecx, eax
mov eax, dword [esp + 0x10]
adc eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x41f5bb
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push esi
call fcn.0041ea5b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x41f4b4
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0x34], 0x404644
mov dword [esp + 0x38], 0x404760
mov dword [esp + 0x3c], 0x24b
call fcn.0045a015
mov eax, esi
jmp 0x41f4de
Function at 0x4201de
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0x24], eax
inc edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
test ebx, ebx
je 0x420211
mov dword [ebx], ecx
push eax
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov esi, eax
cmp esi, 0xc0000034
jne 0x42023c
test byte [ebp + 8], 1
je 0x420276
push 2
pop edi
test ebx, ebx
je 0x420231
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0xc000003a
jne 0x42024e
test byte [ebp + 8], 2
je 0x420276
push 3
jmp 0x42022a
cmp esi, 0xc000017c
jne 0x420260
test byte [ebp + 8], 4
je 0x420276
push 4
jmp 0x42022a
cmp esi, 0xc0000121
jne 0x420272
test byte [ebp + 8], 8
je 0x420276
push 5
jmp 0x42022a
test esi, esi
jns 0x42022b
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x420326
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x42030c
mov edx, dword [0x7ffe0004]
mov eax, 0x7ffe0324
mov dword [esp + 0x14], edx
mov ecx, dword [eax]
add eax, 0xfffffffc
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, 0x7ffe0328
mov eax, dword [eax]
cmp ecx, eax
je 0x4202da
mov edx, 0x7ffe0324
lea ebx, [edx - 4]
lea edi, [edx + 4]
pause
mov ecx, dword [edx]
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
cmp ecx, eax
jne 0x4202bf
mov ebx, dword [esp + 0x20]
xor edi, edi
mov edx, dword [esp + 0x14]
inc edi
mov eax, ecx
mul edx
mov ecx, eax
mov eax, dword [esp + 0x18]
shld edx, ecx, 8
mov dword [esp + 0x10], edx
mul dword [esp + 0x14]
shl ecx, 8
shrd eax, edx, 0x18
shr edx, 0x18
add ecx, eax
mov eax, dword [esp + 0x10]
adc eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x420310
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push esi
call fcn.0041ea5b
mov eax, dword [esp + 0x24]
jmp 0x420211
and dword [esp + 0x34], 0
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0x2c], 0x404644
mov dword [esp + 0x30], 0x404868
mov dword [esp + 0x34], 0x49f
call fcn.0045a015
mov eax, esi
jmp 0x420233
Function at 0x42035a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x20]
xor esi, esi
push edi
mov edi, dword [ebp + 0x24]
inc ebx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
test edi, edi
je 0x4203a2
mov dword [edi], esi
mov esi, dword [ebp + 0x1c]
test eax, eax
je 0x4203c1
push esi
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], 0x7ffe0324
mov dword [esp + 0x20], 0x7ffe0320
mov dword [esp + 0x24], 0x7ffe0328
push ecx
push esi
push eax
push dword [ebp + 0x14]
push dword [esp + 0x48]
push edx
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, 0xc0000023
je 0x4203fc
cmp esi, 0x80000005
jne 0x420406
test byte [ebp + 8], 1
jne 0x420525
cmp esi, 0xc0000034
jne 0x42041b
test byte [ebp + 8], 2
je 0x420423
push 3
jmp 0x420527
test esi, esi
jns 0x4204d0
mov eax, dword [esp + 0x2c]
cmp byte [eax], 0
je 0x4204ef
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x4204b9
mov eax, dword [esp + 0x1c]
mov edx, dword [0x7ffe0004]
mov dword [esp + 0x14], edx
mov ecx, dword [eax]
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cmp ecx, eax
je 0x420487
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
pause
mov ecx, dword [edx]
mov eax, dword [ebx]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
cmp ecx, eax
jne 0x42046c
mov edi, dword [esp + 0x3c]
xor ebx, ebx
mov edx, dword [esp + 0x14]
inc ebx
mov eax, ecx
mul edx
mov ecx, eax
mov eax, dword [esp + 0x28]
shld edx, ecx, 8
mov dword [esp + 0x10], edx
mul dword [esp + 0x14]
shl ecx, 8
shrd eax, edx, 0x18
shr edx, 0x18
add ecx, eax
mov eax, dword [esp + 0x10]
adc eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x4204bd
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x38]
push esi
call fcn.0041ea5b
mov ecx, dword [esp + 0x18]
jmp 0x4204db
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ecx]
jb 0x42051a
test esi, esi
jns 0x420528
mov eax, dword [esp + 0x30]
mov esi, dword [ebp + 0x1c]
mov edx, dword [esp + 0x34]
jmp 0x4203d9
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x40]
push esi
mov dword [esp + 0x44], 0x404644
mov dword [esp + 0x48], 0x404880
mov dword [esp + 0x4c], 0x4e4
call fcn.0045a015
mov eax, esi
jmp 0x420530
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
push 2
pop ebx
test edi, edi
je 0x42052e
mov dword [edi], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x42053f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ecx
and dword [esp + 4], ebx
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], esi
push edi
test esi, esi
je 0x420579
and dword [esi], ebx
push dword [ebp + 0x20]
push edx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov edi, eax
test edi, edi
jns 0x42065c
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
je 0x420631
mov ecx, dword [esp + 0xc]
mov eax, ebx
or eax, ecx
jne 0x420613
mov edx, dword [0x7ffe0004]
mov ebx, 0x7ffe0324
mov dword [esp + 0xc], edx
mov ecx, dword [ebx]
lea eax, [ebx - 4]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x4205ed
lea edx, [ebx - 4]
lea esi, [ebx + 4]
pause
mov ecx, dword [ebx]
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
cmp ecx, eax
jne 0x4205d5
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, ecx
mul edx
mov ebx, eax
mov ecx, edx
mov eax, dword [esp + 0x10]
mul dword [esp + 0xc]
shld ecx, ebx, 8
shrd eax, edx, 0x18
shl ebx, 8
shr edx, 0x18
add ebx, eax
adc ecx, edx
mov dword [esp + 0xc], ecx
push ecx
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push edi
call fcn.0041ea5b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x420579
and dword [esp + 0x34], 0
lea ecx, [esp + 0x28]
push edi
mov dword [esp + 0x2c], 0x404644
mov dword [esp + 0x30], 0x40489c
mov dword [esp + 0x34], 0x520
call fcn.0045a015
mov eax, edi
jmp 0x420668
test esi, esi
je 0x420666
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20