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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45e040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45e390], 0
push esi
mov esi, ecx
je 0x4197b9
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemTime]
push esi
push dword [ebp - 0xc]
mov esi, 0x45e940
push dword [ebp - 0x10]
push 0x403048
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 [0x45e390]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045d1ae
leave
ret

Function at 0x4197cc
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45e040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45e390], 0
push esi
mov esi, ecx
je 0x419840
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemTime]
push dword [esi + 4]
movzx eax, word [esi]
mov esi, 0x45ed40
shr eax, 1
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x403064
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 [0x45e390]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045d1ae
leave
ret

Function at 0x419853
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45e040]
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 0x41994b
push eax
push dword [esi + 4]
push 0x45f14c
call sub.ntdll.dll_memcpy
movzx eax, word [esi]
add esp, 0xc
shr eax, 1
push 0x2e
lea ecx, [eax*2 + 0x45f14c]
pop eax
mov word [ecx], ax
add ecx, 2
mov edx, dword [0x45e388]
xor ebx, ebx
mov edi, dword [0x45e38c]
cmp ecx, 0x45f340
jae 0x4198d4
mov eax, edi
shr eax, 0x1c
shld edi, edx, 4
shl edx, 4
movsx ax, byte [eax + 0x4041d8]
mov word [ecx], ax
add ecx, 2
inc ebx
cmp ebx, 0x10
jb 0x4198ac
movzx eax, word [esi]
add eax, 0x22
mov byte [0x45f140], 1
mov dword [0x45f148], eax
xor eax, eax
push 0x4060
mov dword [0x45f144], 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 0x41994b
push 0xb
push 0x200
push 0x45f140
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.0045d1ae
leave
ret
Function at 0x41b2bb
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 [0x46023c]
call esi
mov esi, eax
test esi, esi
js 0x41b3bc
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 0x41b3bc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
cmp eax, ebx
jg 0x41b369
jl 0x41b350
cmp ecx, ebx
jae 0x41b35e
mov dword [ebp - 0x4c], 0x713
mov esi, 0xc00000e5
jmp 0x41b375
cmp eax, ebx
jl 0x41b391
jg 0x41b369
cmp ecx, 0xffffffff
jbe 0x41b391
mov dword [ebp - 0x4c], 0x71b
mov esi, 0xc000042b
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], 0x403a28
mov dword [ebp - 0x54], 0x402ee0
call fcn.00455c22
jmp 0x41b3bc
mov edx, edi
call fcn.00456cdb
mov esi, eax
test esi, esi
js 0x41b3bc
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 0x41b3d6
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x41b3d2
cmp ecx, 0xffffffff
je 0x41b3d2
push ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
jmp 0x41b3f3
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41b3f1
cmp eax, 0xffffffff
je 0x41b3f1
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.0045d1ae
leave
ret 4
Function at 0x41d89b
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 0x41d8fa
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 0x41d9fb
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x41d9d0
mov ecx, dword [esp + 0x10]
mov eax, ebx
or eax, ecx
jne 0x41d9ba
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 0x41d994
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 0x41d97c
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.0041d2f3
mov edi, dword [esp + 0x3c]
jmp 0x41d90c
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x40]
push edi
mov dword [esp + 0x44], 0x4044f4
mov dword [esp + 0x48], 0x4045bc
mov dword [esp + 0x4c], 0x188
call fcn.00455c22
mov eax, edi
jmp 0x41da07
test esi, esi
je 0x41da05
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x41da16
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 0x41da73
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 0x41db85
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41db5a
mov ecx, dword [esp + 0xc]
mov eax, ebx
or eax, ecx
jne 0x41db38
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 0x41db12
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 0x41dafa
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.0041d2f3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
jmp 0x41da90
and dword [esp + 0x54], 0
lea ecx, [esp + 0x48]
push edi
mov dword [esp + 0x4c], 0x4044f4
mov dword [esp + 0x50], 0x4045d4
mov dword [esp + 0x54], 0x1c7
call fcn.00455c22
mov eax, edi
jmp 0x41db91
test esi, esi
je 0x41db8f
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x41dba0
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 0x41dbed
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 0x41dcf1
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41dcc6
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41dca8
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 0x41dc74
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 0x41dc58
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 0x41dcac
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.0041d2f3
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
jmp 0x41dbf2
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x30]
push edi
mov dword [esp + 0x34], 0x4044f4
mov dword [esp + 0x38], 0x4045ec
mov dword [esp + 0x3c], 0x1fe
call fcn.00455c22
mov eax, edi
jmp 0x41dd08
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebx + 4]
jae 0x41dcfa
int3
test esi, esi
je 0x41dd04
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.0045d1ae
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41dd22
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 0x41dd63
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 0x41dd9b
test byte [ebp + 8], 1
je 0x41ddd5
push 2
pop edi
test ebx, ebx
je 0x41dd90
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp esi, 0xc0000121
jne 0x41ddad
test byte [ebp + 8], 2
je 0x41ddd5
push 3
jmp 0x41dd89
cmp esi, 0xc0000101
jne 0x41ddbf
test byte [ebp + 8], 4
je 0x41ddd5
push 4
jmp 0x41dd89
cmp esi, 0xc00000d4
jne 0x41ddd1
test byte [ebp + 8], 8
je 0x41ddd5
push 5
jmp 0x41dd89
test esi, esi
jns 0x41dd8a
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41de8f
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41de6d
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 0x41de39
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 0x41de1e
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 0x41de71
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push esi
call fcn.0041d2f3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x41dd68
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0x34], 0x4044f4
mov dword [esp + 0x38], 0x404610
mov dword [esp + 0x3c], 0x24b
call fcn.00455c22
mov eax, esi
jmp 0x41dd92
Function at 0x41eabe
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 0x41eaf1
mov dword [ebx], ecx
push eax
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov esi, eax
cmp esi, 0xc0000034
jne 0x41eb1c
test byte [ebp + 8], 1
je 0x41eb56
push 2
pop edi
test ebx, ebx
je 0x41eb11
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0xc000003a
jne 0x41eb2e
test byte [ebp + 8], 2
je 0x41eb56
push 3
jmp 0x41eb0a
cmp esi, 0xc000017c
jne 0x41eb40
test byte [ebp + 8], 4
je 0x41eb56
push 4
jmp 0x41eb0a
cmp esi, 0xc0000121
jne 0x41eb52
test byte [ebp + 8], 8
je 0x41eb56
push 5
jmp 0x41eb0a
test esi, esi
jns 0x41eb0b
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41ec08
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41ebee
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 0x41ebba
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 0x41eb9f
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 0x41ebf2
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push esi
call fcn.0041d2f3
mov eax, dword [esp + 0x24]
jmp 0x41eaf1
and dword [esp + 0x34], 0
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0x2c], 0x4044f4
mov dword [esp + 0x30], 0x404718
mov dword [esp + 0x34], 0x49f
call fcn.00455c22
mov eax, esi
jmp 0x41eb13
Function at 0x41ec3c
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 0x41ec8f
and dword [edi], eax
mov esi, dword [ebp + 0x1c]
test ecx, ecx
je 0x41ecaa
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 0x41ecd0
cmp esi, 0x80000005
jne 0x41ecda
test byte [ebp + 8], 1
jne 0x41edef
cmp esi, 0xc0000034
jne 0x41ecf0
test byte [ebp + 8], 2
je 0x41ecf8
push 3
pop eax
jmp 0x41edd1
test esi, esi
jns 0x41edc2
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41ed97
mov ecx, dword [esp + 0x10]
mov eax, ebx
or eax, ecx
jne 0x41ed76
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 0x41ed50
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 0x41ed38
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.0041d2f3
test esi, esi
jns 0x41edce
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x41eca2
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0x34], 0x4044f4
mov dword [esp + 0x38], 0x404730
mov dword [esp + 0x3c], 0x4e4
call fcn.00455c22
mov eax, esi
jmp 0x41eddb
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ecx]
jae 0x41edce
int3
xor eax, eax
inc eax
test edi, edi
je 0x41edd7
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.0045d1ae
mov esp, ebp
pop ebp
ret 0x20
push 2
jmp 0x41ecea
Function at 0x41edfc
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 0x41ee36
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 0x41ef19
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
je 0x41eeee
mov ecx, dword [esp + 0xc]
mov eax, ebx
or eax, ecx
jne 0x41eed0
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 0x41eeaa
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 0x41ee92
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.0041d2f3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x41ee36
and dword [esp + 0x34], 0
lea ecx, [esp + 0x28]
push edi
mov dword [esp + 0x2c], 0x4044f4
mov dword [esp + 0x30], 0x40474c
mov dword [esp + 0x34], 0x520
call fcn.00455c22
mov eax, edi
jmp 0x41ef25
test esi, esi
je 0x41ef23
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20