joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d69f
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 0x41d6fc
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 0x41d80e
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41d7e3
mov ecx, dword [esp + 0xc]
mov eax, ebx
or eax, ecx
jne 0x41d7c1
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 0x41d79b
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 0x41d783
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.0041cf9a
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
jmp 0x41d719
and dword [esp + 0x54], 0
lea ecx, [esp + 0x48]
push edi
mov dword [esp + 0x4c], 0x40451c
mov dword [esp + 0x50], 0x4045fc
mov dword [esp + 0x54], 0x1c7
call fcn.0045365a
mov eax, edi
jmp 0x41d81a
test esi, esi
je 0x41d818
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x41d823
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x45b0d0]
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 0x41d870
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 0x41d974
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41d949
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41d92b
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 0x41d8f7
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 0x41d8db
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 0x41d92f
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.0041cf9a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
jmp 0x41d875
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x30]
push edi
mov dword [esp + 0x34], 0x40451c
mov dword [esp + 0x38], 0x404614
mov dword [esp + 0x3c], 0x1fe
call fcn.0045365a
mov eax, edi
jmp 0x41d98b
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebx + 4]
jae 0x41d97d
int3
test esi, esi
je 0x41d987
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.0045a80a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41d99f
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 0x41d9e0
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 0x41da18
test byte [ebp + 8], 1
je 0x41da52
push 2
pop edi
test ebx, ebx
je 0x41da0d
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp esi, 0xc0000121
jne 0x41da2a
test byte [ebp + 8], 2
je 0x41da52
push 3
jmp 0x41da06
cmp esi, 0xc0000101
jne 0x41da3c
test byte [ebp + 8], 4
je 0x41da52
push 4
jmp 0x41da06
cmp esi, 0xc00000d4
jne 0x41da4e
test byte [ebp + 8], 8
je 0x41da52
push 5
jmp 0x41da06
test esi, esi
jns 0x41da07
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41db0c
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41daea
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 0x41dab6
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 0x41da9b
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 0x41daee
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push esi
call fcn.0041cf9a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x41d9e5
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0x34], 0x40451c
mov dword [esp + 0x38], 0x404638
mov dword [esp + 0x3c], 0x24b
call fcn.0045365a
mov eax, esi
jmp 0x41da0f
Function at 0x41e701
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 0x41e734
mov dword [ebx], ecx
push eax
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov esi, eax
cmp esi, 0xc0000034
jne 0x41e75f
test byte [ebp + 8], 1
je 0x41e799
push 2
pop edi
test ebx, ebx
je 0x41e754
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0xc000003a
jne 0x41e771
test byte [ebp + 8], 2
je 0x41e799
push 3
jmp 0x41e74d
cmp esi, 0xc000017c
jne 0x41e783
test byte [ebp + 8], 4
je 0x41e799
push 4
jmp 0x41e74d
cmp esi, 0xc0000121
jne 0x41e795
test byte [ebp + 8], 8
je 0x41e799
push 5
jmp 0x41e74d
test esi, esi
jns 0x41e74e
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x41e84b
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41e831
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 0x41e7fd
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 0x41e7e2
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 0x41e835
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push esi
call fcn.0041cf9a
mov eax, dword [esp + 0x24]
jmp 0x41e734
and dword [esp + 0x34], 0
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0x2c], 0x40451c
mov dword [esp + 0x30], 0x404740
mov dword [esp + 0x34], 0x49f
call fcn.0045365a
mov eax, esi
jmp 0x41e756
Function at 0x41e879
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x45b0d0]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x20]
xor ebx, ebx
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 + 0x50], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
test edi, edi
je 0x41e8d0
mov dword [edi], esi
mov esi, dword [ebp + 0x1c]
test eax, eax
je 0x41e8ef
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 0x41e92a
cmp esi, 0x80000005
jne 0x41e934
test byte [ebp + 8], 1
jne 0x41ea4b
cmp esi, 0xc0000034
jne 0x41e949
test byte [ebp + 8], 2
je 0x41e951
push 3
jmp 0x41ea4d
test esi, esi
jns 0x41ea00
mov eax, dword [esp + 0x2c]
cmp byte [eax], 0
je 0x41ea20
mov ecx, dword [esp + 0x14]
mov eax, ecx
or eax, dword [esp + 0x10]
jne 0x41e9e9
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 0x41e9b5
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 0x41e99a
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, edx
shld eax, ecx, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
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 0x41e9ed
mov eax, dword [esp + 0x10]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x38]
push esi
call fcn.0041cf9a
mov ecx, dword [esp + 0x18]
jmp 0x41ea0c
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ecx]
jae 0x41ea0c
int3
test esi, esi
jns 0x41ea4e
mov eax, dword [esp + 0x30]
mov esi, dword [ebp + 0x1c]
mov edx, dword [esp + 0x34]
jmp 0x41e907
and dword [esp + 0x4c], 0
lea ecx, [esp + 0x40]
push esi
mov dword [esp + 0x44], 0x40451c
mov dword [esp + 0x48], 0x404758
mov dword [esp + 0x4c], 0x4e4
call fcn.0045365a
mov eax, esi
jmp 0x41ea58
push 2
pop ebx
test edi, edi
je 0x41ea54
mov dword [edi], ebx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a80a
mov esp, ebp
pop ebp
ret 0x20
Function at 0x41ea6c
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 0x41eaa6
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 0x41eb89
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
je 0x41eb5e
mov ecx, dword [esp + 0xc]
mov eax, ebx
or eax, ecx
jne 0x41eb40
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 0x41eb1a
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 0x41eb02
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.0041cf9a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x41eaa6
and dword [esp + 0x34], 0
lea ecx, [esp + 0x28]
push edi
mov dword [esp + 0x2c], 0x40451c
mov dword [esp + 0x30], 0x404774
mov dword [esp + 0x34], 0x520
call fcn.0045365a
mov eax, edi
jmp 0x41eb95
test esi, esi
je 0x41eb93
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x41eb9e
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 0x41ebd8
mov dword [edi], edx
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov esi, eax
cmp esi, 0xc0000034
jne 0x41ec04
test byte [ebp + 8], 1
je 0x41ec1a
push 2
pop ebx
test edi, edi
je 0x41ebf9
mov dword [edi], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 0xc000017c
jne 0x41ec16
test byte [ebp + 8], 2
je 0x41ec1a
push 3
jmp 0x41ebf2
test esi, esi
jns 0x41ebf3
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x41ecd0
mov ecx, dword [esp + 0x10]
mov eax, ecx
or eax, dword [esp + 0xc]
jne 0x41ecb2
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 0x41ec7e
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 0x41ec63
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 0x41ecb6
mov eax, dword [esp + 0xc]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.0041cf9a
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
jmp 0x41ebd8
and dword [esp + 0x34], 0
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0x2c], 0x40451c
mov dword [esp + 0x30], 0x404790
mov dword [esp + 0x34], 0x557
call fcn.0045365a
mov eax, esi
jmp 0x41ebfb
Function at 0x4206b1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x45b0d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x401980]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], eax
mov eax, dword [0x401984]
mov dword [ebp - 0x18], eax
mov eax, dword [0x401978]
push ebx
mov dword [ebp - 0x14], eax
mov ebx, ecx
mov eax, dword [0x40197c]
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 0x4207c7
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 0x420761
cmp esi, 0xc0000023
jne 0x420790
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.00452513
mov edi, dword [ebp - 0x3c]
mov esi, eax
test esi, esi
js 0x4207c7
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 0x4207c7
mov dword [ebp - 0x44], eax
cmp eax, 0x10
jb 0x4207c7
test edi, edi
je 0x4207c7
mov ecx, dword [edi + 8]
mov edx, ebx
call fcn.00452513
mov esi, eax
test esi, esi
js 0x4207c7
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
cmp esi, 0xc0000034
je 0x4207d7
cmp esi, 0xc000003a
jne 0x4207dc
mov esi, 0xc015001a
test edi, edi
je 0x4207e8
lea ecx, [ebp - 0x44]
call fcn.00454740
cmp dword [ebp - 0x20], 0xffffffff
je 0x4207f7
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.0045a80a
leave
ret
Function at 0x42878c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x45b0d0]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
mov ebx, ecx
mov byte [esp + 0xb], 1
xor esi, esi
lea ecx, [esp + 0x6c]
push edi
mov edi, esi
call fcn.004289f8
push esi
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], esi
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x74], esi
push eax
lea eax, [esp + 0x70]
mov dword [esp + 0x6c], esi
push eax
push dword [ebx]
mov dword [esp + 0x78], esi
call dword [sym.imp.ntdll.dll_NtRemoveIoCompletion]
mov esi, eax
test esi, esi
jns 0x428837
mov dword [esp + 0x50], 0x405528
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], 0x406fc4
mov dword [esp + 0x58], 0x1285
mov dword [esp + 0x5c], 0x406fd8
push esi
call fcn.0045365a
lea ecx, [esp + 0x70]
call fcn.00423e00
mov ecx, dword [esp + 0x1b4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a80a
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x68]
test esi, esi
js 0x4289cf
xor ecx, ecx
cmp dword [ebx + 0x1c], ecx
jl 0x428976
mov eax, dword [esp + 0x64]
sub eax, ecx
je 0x4288a3
sub eax, 1
je 0x428976
sub eax, 1
je 0x42892c
sub eax, 1
je 0x428923
sub eax, 1
jne 0x42894c
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x18]
add edx, 0x20
push dword [eax + 0x14]
call fcn.004279ff
push dword [esp + 0x60]
lea ecx, [esp + 0x74]
call fcn.00423abc
mov esi, eax
test esi, esi
js 0x428817
inc edi
test edi, edi
je 0x4288dd
xor esi, esi
lea ecx, [esp + 0x70]
push esi
call fcn.00423d65
test al, al
je 0x4288df
lea ecx, [esp + 0x70]
call fcn.00423c55
push esi
push esi
push eax
push esi
push dword [ebx + 4]
call dword [sym.imp.ntdll.dll_NtSetIoCompletion]
mov esi, eax
test esi, esi
js 0x42897d
sub edi, 1
jne 0x4288a8
xor esi, esi
cmp byte [esp + 0xf], 0
jne 0x4287bf
test edi, edi
je 0x4287bf
mov eax, dword [esp + 0x198]
cmp eax, dword [esp + 0x19c]
jne 0x4287bf
push esi
push esi
push esi
push 1
push dword [ebx + 4]
call dword [sym.imp.ntdll.dll_NtSetIoCompletion]
mov esi, eax
test esi, esi
js 0x4289a6
dec edi
xor esi, esi
jmp 0x4288ea
mov byte [esp + 0xf], cl
jmp 0x4288a4
lock inc dword [ebx + 0x14]
push dword [esp + 0x60]
lea ecx, [esp + 0x74]
call fcn.00423947
mov esi, eax
test esi, esi
js 0x428817
jmp 0x4288a4
mov dword [esp + 0x1c], ecx
mov esi, 0xc000000d
mov dword [esp + 0x10], 0x405528
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0x406fc4
mov dword [esp + 0x18], 0x1293
jmp 0x428811
mov esi, ecx
jmp 0x428817
mov dword [esp + 0x20], 0x405528
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0x406fc4
mov dword [esp + 0x28], 0x12b6
mov dword [esp + 0x2c], 0x407078
jmp 0x428811
mov dword [esp + 0x30], 0x405528
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], 0x406fc4
mov dword [esp + 0x38], 0x12c3
mov dword [esp + 0x3c], 0x407118
jmp 0x428811
mov dword [esp + 0x40], 0x405528
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], 0x406fc4
mov dword [esp + 0x48], 0x1288
mov dword [esp + 0x4c], 0x40706c
jmp 0x428811