joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b42b
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x45e040]
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 [0x460240]
call esi
mov esi, eax
test esi, esi
js 0x41b52c
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 0x41b52c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
cmp eax, ebx
jg 0x41b4d9
jl 0x41b4c0
cmp ecx, ebx
jae 0x41b4ce
mov dword [ebp - 0x4c], 0x73e
mov esi, 0xc00000e5
jmp 0x41b4e5
cmp eax, ebx
jl 0x41b501
jg 0x41b4d9
cmp ecx, 0xffffffff
jbe 0x41b501
mov dword [ebp - 0x4c], 0x746
mov esi, 0xc000042b
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], 0x403a68
mov dword [ebp - 0x54], 0x402ef0
call fcn.00456190
jmp 0x41b52c
mov edx, edi
call fcn.0045724b
mov esi, eax
test esi, esi
js 0x41b52c
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
jns 0x41b546
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41b542
cmp ecx, 0xffffffff
je 0x41b542
push ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
jmp 0x41b563
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41b561
cmp eax, 0xffffffff
je 0x41b561
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.0045d72e
leave
ret 4
Function at 0x41dddd
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 0x41de3c
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 0x41df3d
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x41df12
mov ecx, dword [esp + 0x10]
mov eax, ebx
or eax, ecx
jne 0x41defc
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 0x41ded6
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 0x41debe
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.0041d835
mov edi, dword [esp + 0x3c]
jmp 0x41de4e
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x40]
push edi
mov dword [esp + 0x44], 0x404574
mov dword [esp + 0x48], 0x40463c
mov dword [esp + 0x4c], 0x188
call fcn.00456190
mov eax, edi
jmp 0x41df49
test esi, esi
je 0x41df47
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x41df58
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 0x41dfb5
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 0x41e0c7
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41e09c
mov ecx, dword [esp + 0xc]
mov eax, ebx
or eax, ecx
jne 0x41e07a
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 0x41e054
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 0x41e03c
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.0041d835
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
jmp 0x41dfd2
and dword [esp + 0x54], 0
lea ecx, [esp + 0x48]
push edi
mov dword [esp + 0x4c], 0x404574
mov dword [esp + 0x50], 0x404654
mov dword [esp + 0x54], 0x1c7
call fcn.00456190
mov eax, edi
jmp 0x41e0d3
test esi, esi
je 0x41e0d1
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x41e0e2
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x45e040]
xor eax, esp
mov dword [esp + 0x38], eax
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 + 0x3c], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
push edi
test esi, esi
je 0x41e12f
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 0x41e233
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41e208
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41e1ea
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 0x41e1b6
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 0x41e19a
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, edx
shld eax, ecx, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
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 0x41e1ee
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.0041d835
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
jmp 0x41e134
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x30]
push edi
mov dword [esp + 0x34], 0x404574
mov dword [esp + 0x38], 0x40466c
mov dword [esp + 0x3c], 0x1fe
call fcn.00456190
mov eax, edi
jmp 0x41e24a
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebx + 4]
jae 0x41e23c
int3
test esi, esi
je 0x41e246
mov dword [esi], 1
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d72e
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41e264
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 0x41e2a5
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 0x41e2dd
test byte [ebp + 8], 1
je 0x41e317
push 2
pop edi
test ebx, ebx
je 0x41e2d2
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp esi, 0xc0000121
jne 0x41e2ef
test byte [ebp + 8], 2
je 0x41e317
push 3
jmp 0x41e2cb
cmp esi, 0xc0000101
jne 0x41e301
test byte [ebp + 8], 4
je 0x41e317
push 4
jmp 0x41e2cb
cmp esi, 0xc00000d4
jne 0x41e313
test byte [ebp + 8], 8
je 0x41e317
push 5
jmp 0x41e2cb
test esi, esi
jns 0x41e2cc
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41e3d1
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41e3af
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 0x41e37b
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 0x41e360
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, edx
shld eax, ecx, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
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 0x41e3b3
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push esi
call fcn.0041d835
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x41e2aa
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0x34], 0x404574
mov dword [esp + 0x38], 0x404690
mov dword [esp + 0x3c], 0x24b
call fcn.00456190
mov eax, esi
jmp 0x41e2d4
Function at 0x41f000
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 0x41f033
mov dword [ebx], ecx
push eax
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov esi, eax
cmp esi, 0xc0000034
jne 0x41f05e
test byte [ebp + 8], 1
je 0x41f098
push 2
pop edi
test ebx, ebx
je 0x41f053
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0xc000003a
jne 0x41f070
test byte [ebp + 8], 2
je 0x41f098
push 3
jmp 0x41f04c
cmp esi, 0xc000017c
jne 0x41f082
test byte [ebp + 8], 4
je 0x41f098
push 4
jmp 0x41f04c
cmp esi, 0xc0000121
jne 0x41f094
test byte [ebp + 8], 8
je 0x41f098
push 5
jmp 0x41f04c
test esi, esi
jns 0x41f04d
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41f14a
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41f130
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 0x41f0fc
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 0x41f0e1
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, edx
shld eax, ecx, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
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 0x41f134
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push esi
call fcn.0041d835
mov eax, dword [esp + 0x24]
jmp 0x41f033
and dword [esp + 0x34], 0
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0x2c], 0x404574
mov dword [esp + 0x30], 0x404798
mov dword [esp + 0x34], 0x49f
call fcn.00456190
mov eax, esi
jmp 0x41f055
Function at 0x41f17e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x45e040]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
and dword [esp + 0x34], 0
mov edx, dword [ebp + 0x20]
push ebx
mov dword [esp + 0x20], eax
xor ebx, ebx
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x24]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], eax
test edi, edi
je 0x41f1d1
and dword [edi], eax
mov esi, dword [ebp + 0x1c]
test ecx, ecx
je 0x41f1ec
push esi
push 0
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push edx
push esi
push ecx
push dword [ebp + 0x14]
push dword [esp + 0x34]
push dword [esp + 0x3c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, 0xc0000023
je 0x41f212
cmp esi, 0x80000005
jne 0x41f21c
test byte [ebp + 8], 1
jne 0x41f331
cmp esi, 0xc0000034
jne 0x41f232
test byte [ebp + 8], 2
je 0x41f23a
push 3
pop eax
jmp 0x41f313
test esi, esi
jns 0x41f304
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41f2d9
mov ecx, dword [esp + 0x10]
mov eax, ebx
or eax, ecx
jne 0x41f2b8
mov edx, dword [0x7ffe0004]
mov ebx, 0x7ffe0324
mov dword [esp + 0x18], 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 0x41f292
lea edx, [ebx - 4]
lea edi, [ebx + 4]
pause
mov ecx, dword [ebx]
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
cmp ecx, eax
jne 0x41f27a
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, ecx
mul edx
mov ebx, eax
mov ecx, edx
mov eax, dword [esp + 0x10]
mul dword [esp + 0x18]
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 + 0x24]
push ebx
push esi
call fcn.0041d835
test esi, esi
jns 0x41f310
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x41f1e4
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0x34], 0x404574
mov dword [esp + 0x38], 0x4047b0
mov dword [esp + 0x3c], 0x4e4
call fcn.00456190
mov eax, esi
jmp 0x41f31d
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ecx]
jae 0x41f310
int3
xor eax, eax
inc eax
test edi, edi
je 0x41f319
mov dword [edi], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d72e
mov esp, ebp
pop ebp
ret 0x20
push 2
jmp 0x41f22c
Function at 0x41f33e
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 0x41f378
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 0x41f45b
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
je 0x41f430
mov ecx, dword [esp + 0xc]
mov eax, ebx
or eax, ecx
jne 0x41f412
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 0x41f3ec
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 0x41f3d4
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.0041d835
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x41f378
and dword [esp + 0x34], 0
lea ecx, [esp + 0x28]
push edi
mov dword [esp + 0x2c], 0x404574
mov dword [esp + 0x30], 0x4047cc
mov dword [esp + 0x34], 0x520
call fcn.00456190
mov eax, edi
jmp 0x41f467
test esi, esi
je 0x41f465
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x41f476
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
inc ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
test edi, edi
je 0x41f4b0
mov dword [edi], edx
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov esi, eax
cmp esi, 0xc0000034
jne 0x41f4dc
test byte [ebp + 8], 1
je 0x41f4f2
push 2
pop ebx
test edi, edi
je 0x41f4d1
mov dword [edi], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 0xc000017c
jne 0x41f4ee
test byte [ebp + 8], 2
je 0x41f4f2
push 3
jmp 0x41f4ca
test esi, esi
jns 0x41f4cb
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x41f5a8
mov ecx, dword [esp + 0x10]
mov eax, ecx
or eax, dword [esp + 0xc]
jne 0x41f58a
mov edx, dword [0x7ffe0004]
mov eax, 0x7ffe0324
mov dword [esp + 0x10], edx
mov ecx, dword [eax]
add eax, 0xfffffffc
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, 0x7ffe0328
mov eax, dword [eax]
cmp ecx, eax
je 0x41f556
mov edx, 0x7ffe0324
lea edi, [edx - 4]
lea ebx, [edx + 4]
pause
mov ecx, dword [edx]
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
cmp ecx, eax
jne 0x41f53b
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov edx, dword [esp + 0x10]
inc ebx
mov eax, ecx
mul edx
mov ecx, eax
mov eax, edx
shld eax, ecx, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mul dword [esp + 0x10]
shl ecx, 8
shrd eax, edx, 0x18
shr edx, 0x18
add ecx, eax
mov eax, dword [esp + 0xc]
adc eax, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
jmp 0x41f58e
mov eax, dword [esp + 0xc]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.0041d835
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
jmp 0x41f4b0
and dword [esp + 0x34], 0
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0x2c], 0x404574
mov dword [esp + 0x30], 0x4047e8
mov dword [esp + 0x34], 0x557
call fcn.00456190
mov eax, esi
jmp 0x41f4d3
Function at 0x42110c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x45e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4019e0]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4019e4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4019d8]
push ebx
mov dword [ebp - 0x14], eax
mov ebx, ecx
mov eax, dword [0x4019dc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push esi
push edi
mov dword [ebp - 0x30], eax
xor edi, edi
lea eax, [ebp - 0x38]
mov dword [ebp - 8], edi
push eax
push 0x20019
lea eax, [ebp - 0x20]
mov dword [ebp - 0x44], edi
push eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov esi, eax
test esi, esi
js 0x421221
lea eax, [ebp - 8]
push eax
push edi
push edi
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp esi, 0x80000005
je 0x4211bc
cmp esi, 0xc0000023
jne 0x4211eb
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.0045504e
mov edi, dword [ebp - 0x3c]
mov esi, eax
test esi, esi
js 0x421221
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push edi
push 2
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
mov eax, dword [ebp - 0xc]
test esi, esi
js 0x421221
cmp eax, 0x10
jb 0x421237
test edi, edi
je 0x421241
mov ecx, dword [edi + 8]
mov edx, ebx
call fcn.0045504e
mov esi, eax
test esi, esi
js 0x421221
push dword [edi + 8]
lea eax, [edi + 0xc]
push eax
push dword [ebx + 8]
call sub.ntdll.dll_memcpy
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [ebx], eax
jmp 0x421237
mov eax, esi
cmp esi, 0xc0000034
je 0x421232
cmp eax, 0xc000003a
jne 0x421237
mov esi, 0xc015001a
test edi, edi
je 0x421241
push edi
call fcn.00458d0e
cmp dword [ebp - 0x20], 0xffffffff
je 0x421250
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d72e
leave
ret