joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e006
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x2b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x34bec
lea eax, [ebp - 0x4c]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
call esi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
push 0x2001f
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], 0x240
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x2e102
push edi
push 0x34bbc
lea eax, [ebp - 0x28]
push eax
call esi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 4
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call edi
cmp eax, 0xc0000023
jne 0x2e101
push 0x34b9a
lea eax, [ebp - 0x28]
push eax
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 4
pop esi
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call edi
cmp eax, ebx
mov ecx, 0xc0000034
jge 0x2e0c4
cmp eax, ecx
jne 0x2e101
cmp eax, ecx
je 0x2e0da
cmp dword [ebp - 0x14], esi
jne 0x2e101
cmp dword [ebp - 0x10], esi
jne 0x2e101
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x2e0dd
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], 5
jae 0x2e101
inc dword [ebp - 0x1c]
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [ebp - 0x20], 1
pop edi
cmp dword [ebp - 0x18], ebx
pop esi
pop ebx
je 0x2e112
push dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00024c39
leave
ret
Function at 0x2e126
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x34bec
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push 0x20019
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], 0x240
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x2e209
push 0x34c7c
lea eax, [ebp - 0x18]
push eax
call edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call edi
cmp eax, 0xc0000023
jne 0x2e209
mov eax, dword [ebp - 8]
cmp eax, 0x100000
ja 0x2e209
push 0x50426d73
push eax
mov dword [ebp - 0x10], eax
call fcn.0001fc94
mov esi, eax
cmp esi, ebx
je 0x2e209
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push esi
push 4
push eax
push dword [ebp - 4]
call edi
test eax, eax
jl 0x2e209
cmp dword [esi], 3
jne 0x2e209
mov edi, dword [esi + 4]
push edi
lea eax, [esi + 8]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_memmove]
add esp, 0xc
push edi
push esi
call reloc.ntoskrnl.exe_ObfReferenceObject
test eax, eax
jne 0x2e209
mov dword [ebp - 0xc], esi
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x2e217
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp esi, ebx
je 0x2e221
push esi
call fcn.0001fcb0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2e30c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x2b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x414], ebx
cmp dword [0x2c5f0], ebx
je 0x2e349
mov esi, 0xc0000189
jmp 0x2e473
push ebx
push 0x200
lea ecx, [ebp - 0x204]
push ecx
push dword [eax + 0xc]
call fcn.00033070
mov esi, eax
cmp esi, ebx
jl 0x2e45f
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x34bec
lea eax, [ebp - 0x438]
push eax
call edi
lea eax, [ebp - 0x438]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x430]
push eax
push 0x20019
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x430], 0x18
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x424], 0x240
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
cmp esi, ebx
jl 0x2e45e
push 0x34bbc
lea eax, [ebp - 0x440]
push eax
call edi
lea eax, [ebp - 0x444]
push eax
push 0x20c
lea eax, [ebp - 0x410]
push eax
push 4
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x414]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
cmp esi, ebx
jl 0x2e45e
cmp dword [ebp - 0x410], 3
jne 0x2e459
movzx ecx, word [ebp - 0x204]
cmp dword [ebp - 0x40c], ecx
jne 0x2e459
lea edi, [ebp - 0x202]
lea esi, [ebp - 0x408]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x2e43f
mov esi, 0xc019004a
jmp 0x2e45e
push dword [ebp - 0x418]
push 0x2c0b0
call fcn.0002e22e
mov esi, eax
cmp esi, ebx
jl 0x2e45e
xor esi, esi
jmp 0x2e45e
mov esi, 0xc0000034
pop edi
cmp dword [ebp - 0x414], ebx
je 0x2e473
push dword [ebp - 0x414]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00024c39
leave
ret 8
Function at 0x2ec68
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.0002e006
test eax, eax
jne 0x2ec8d
mov edi, 0xc0000072
jmp 0x2ee0b
push ebx
push 0x2c
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
cmp edi, ebx
jl 0x2ee0b
mov eax, dword [ebp - 0x68]
mul dword [ebp - 0x64]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x510]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x514]
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
call fcn.00011c6c
cmp eax, ebx
jl 0x2ecd3
xor eax, eax
cmp eax, ebx
mov edi, eax
jl 0x2ee0a
push 0x220
lea eax, [ebp - 0x290]
push ebx
push eax
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0xc]
and dword [ebp - 0x28c], 0xffffff00
and eax, 0xffffff04
or eax, 4
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 8]
shrd ecx, eax, 0x11
shr eax, 0x11
add esp, 0xc
mov dword [ebp - 0x288], 0x80
mov dword [ebp - 0x284], 0x20000
mov edx, 0x40000
cmp eax, ebx
ja 0x2ed3e
cmp ecx, edx
jb 0x2ed43
mov ecx, edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x280], ecx
cmp dword [ebp - 8], ebx
ja 0x2ed57
cmp dword [ebp - 0xc], 0x6a400000
jb 0x2ed61
or dword [ebp - 0x28c], 0x800
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x290]
push eax
push esi
mov dword [ebp - 0x2c], 0xf
call fcn.00030cfa
mov edi, eax
cmp edi, ebx
jl 0x2edf1
lea edx, [esi + 0x570]
push edx
or ecx, 0xffffffff
push ecx
mov eax, 0x4d2fa200
push eax
lea eax, [esi + 0x548]
push eax
call dword [sym.imp.ntoskrnl.exe_KeSetTimer]
lea edi, [esi + 0x5a8]
push edi
call dword [sym.imp.HAL.dll_KeQueryPerformanceCounter]
mov eax, dword [edi]
or eax, dword [edi + 4]
jne 0x2edc9
mov dword [edi], 1
mov dword [edi + 4], ebx
push esi
push 0x2eaf2
push ebx
push ebx
push ebx
push 0x1fffff
lea eax, [ebp - 4]
push eax
mov dword [esi + 0x540], ebx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov edi, eax
cmp edi, ebx
jl 0x2ee03
xor edi, edi
jmp 0x2ee0a
push esi
call fcn.000139be
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00016cee
jmp 0x2ee0a
push ebx
push esi
call fcn.0002ea30
pop esi
cmp dword [ebp - 4], ebx
je 0x2ee19
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x2ee40
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x2b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 1
push 0x200
lea ecx, [ebp - 0x204]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x218], ebx
call fcn.00033070
test eax, eax
jge 0x2ee81
xor esi, esi
jmp 0x2ef3a
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x34c8e
lea eax, [ebp - 0x244]
push eax
call esi
lea eax, [ebp - 0x244]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x230]
push eax
push 0x20019
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x230], 0x18
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x224], 0x240
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x2ef37
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x238]
push eax
call esi
lea eax, [ebp - 0x23c]
push eax
push 0x10
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jl 0x2ef37
cmp dword [ebp - 0x214], 4
jne 0x2ef37
cmp dword [ebp - 0x210], 4
jne 0x2ef37
mov esi, dword [ebp - 0x20c]
jmp 0x2ef3a
xor esi, esi
inc esi
cmp dword [ebp - 0x218], ebx
je 0x2ef4e
push dword [ebp - 0x218]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00024c39
leave
ret 4
Function at 0x30722
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 8]
mov ebx, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [eax + 0x28]
lea ecx, [edi + 0x18]
mov dword [ebp + 8], ecx
call dword [sym.imp.ntoskrnl.exe_ExAcquireRundownProtection]
test al, al
jne 0x3076a
and dword [esi + 0x1c], 0
mov ebx, 0xc0000056
xor dl, dl
mov ecx, esi
mov dword [esi + 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
jmp 0x307f1
mov eax, dword [edi + 0x10]
test al, 4
jne 0x30787
mov ebx, dword [edi + 0x14]
and dword [esi + 0x1c], 0
xor dl, dl
mov ecx, esi
mov dword [esi + 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
jmp 0x307e8
test byte [edi + 0x10], 2
jne 0x307d4
push dword [ebp + 0xc]
push ebx
call fcn.0002ef66
test eax, eax
je 0x307a1
mov ebx, 0xc000000d
jmp 0x30774
mov eax, dword [ebx + 4]
cmp eax, 1
je 0x307cd
cmp eax, 0x80000002
je 0x307be
shr eax, 0x1f
test al, 1
jne 0x307d4
mov ebx, 0xc00000bb
jmp 0x30774
push ebx
push edi
call fcn.0003045e
mov ebx, eax
test ebx, ebx
jge 0x307d4
jmp 0x30774
push ebx
push edi
call fcn.0003029c
inc byte [esi + 0x23]
add dword [esi + 0x60], 0x24
mov ecx, dword [edi + 0xc]
mov edx, esi
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov ebx, eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ExReleaseRundownProtection]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x308b4
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x60]
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x28]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
call dword [sym.imp.ntoskrnl.exe_ExAcquireRundownProtection]
test al, al
jne 0x308f5
and dword [edi + 0x1c], 0
mov eax, 0xc0000056
mov dword [ebp + 8], eax
mov dword [edi + 0x18], eax
jmp 0x309f3
push edi
push dword [esi + 0xc]
call dword [sym.imp.ntoskrnl.exe_IoForwardIrpSynchronously]
mov eax, dword [edi + 0x18]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp + 8], eax
jge 0x3091f
cmp ebx, 0x56c008
je 0x309ea
mov dword [esi + 0x14], eax
jmp 0x309ea
mov eax, dword [esi + 0x10]
test al, 4
jne 0x309ea
cmp ebx, 0x56c008
jne 0x30955
push ecx
push 0x18
lea eax, [ebp - 0x20]
push eax
push ecx
push ecx
push dword [esi + 0xc]
push 0x70000
call fcn.00032844
test eax, eax
jl 0x309ea
mov ebx, dword [ebp - 0xc]
jmp 0x30961
mov eax, dword [edi + 0xc]
cmp ebx, 0x70000
mov ebx, dword [eax + 0x14]
lea eax, [esi + 0x1c]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov ecx, dword [ebp + 0xc]
mov eax, ecx
lock bts dword [eax], 0
jae 0x3097f
call dword [sym.imp.ntoskrnl.exe_ExfAcquirePushLockExclusive]
mov eax, dword [esi + 0x10]
test al, 4
jne 0x309ca
push ebx
push 1
push esi
call fcn.0001c8ca
mov esi, eax
test esi, esi
jge 0x309ca
cmp dword [ebp - 4], 0x56c008
je 0x309ca
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
mov edx, ecx
lock xadd dword [edx], eax
test al, 2
je 0x309b8
test al, 4
jne 0x309b8
call dword [sym.imp.ntoskrnl.exe_ExfTryToWakePushLock]
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
and dword [edi + 0x1c], 0
mov dword [ebp + 8], esi
mov dword [edi + 0x18], esi
jmp 0x309ea
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
mov edx, ecx
lock xadd dword [edx], eax
test al, 2
je 0x309e4
test al, 4
jne 0x309e4
call dword [sym.imp.ntoskrnl.exe_ExfTryToWakePushLock]
call dword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov ecx, dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExReleaseRundownProtection]
xor dl, dl
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x3216a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x2b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x10
lea edx, [ebp - 0x14]
push edx
push 2
push ecx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jl 0x321b2
cmp dword [ebp - 0x10], 4
jne 0x321ad
mov esi, dword [ebp - 8]
jmp 0x321b2
mov eax, 0xc0000024
mov ecx, dword [ebp - 4]
mov dword [edi], esi
pop edi
xor ecx, ebp
pop esi
call fcn.00024c39
leave
ret 0x10
Function at 0x321c9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
and dword [eax], 0
push esi
mov esi, dword [ebp + 0xc]
movzx eax, word [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x14]
add eax, 0x1b
and eax, 0xfffffffc
push eax
mov dword [ebp - 4], eax
call fcn.0002538b
test eax, eax
jge 0x32200
mov eax, 0xc0000095
jmp 0x322b9
push edi
push 0x62527050
push dword [ebp - 4]
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
jne 0x32221
mov eax, 0xc000009a
jmp 0x322b8
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push edi
push 1
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
call esi
mov ebx, eax
test ebx, ebx
jge 0x3229d
push 0
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp ebx, 0x80000005
je 0x3225b
cmp ebx, 0xc0000023
je 0x3225b
mov eax, ebx
jmp 0x322b7
push 0x62527050
push dword [ebp + 0x14]
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
jne 0x32278
mov eax, 0xc000009a
jmp 0x322b7
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x14]
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jge 0x3229d
mov esi, eax
push 0
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
jmp 0x322b7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x322b0
cmp dword [edi + 4], eax
je 0x322b0
mov esi, 0xc0000024
jmp 0x32290
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x14

Function at 0x32437
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0x10]
movzx ecx, word [esi]
movzx edx, word [esi + 2]
movzx eax, cx
sub edx, eax
push edi
cmp edx, 2
jb 0x3247b
mov ecx, dword [esi + 4]
shr eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
movzx eax, word [esi]
inc eax
inc eax
push eax
push dword [esi + 4]
push 1
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov edi, eax
jmp 0x324d8
push ecx
lea eax, [ebp - 8]
push eax
call fcn.000323f1
mov edi, eax
test edi, edi
jl 0x324d8
movzx eax, word [esi]
mov word [ebp - 8], ax
movzx eax, ax
push eax
push dword [esi + 4]
push dword [ebp - 4]
call sub.ntoskrnl.exe_memcpy
movzx eax, word [ebp - 8]
mov edx, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [edx + eax*2], cx
movzx eax, word [ebp - 8]
add esp, 0xc
inc eax
inc eax
push eax
push dword [ebp - 4]
push 1
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov edi, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x33006
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call sub.ntoskrnl.exe_IoSetThreadHardErrorMode
mov edi, dword [ebp + 8]
push 0xd
mov byte [ebp - 5], al
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [edi]
mov byte [ebp - 1], 1
call sub.ntoskrnl.exe_ZwSetInformationFile
mov esi, eax
cmp esi, 0x103
jne 0x33053
mov eax, dword [edi + 4]
push ebx
push ebx
push ebx
push ebx
add eax, 0x5c
push eax
call sub.ntoskrnl.exe_KeWaitForSingleObject
mov esi, dword [ebp - 0x10]
cmp esi, ebx
jl 0x33059
xor esi, esi
push dword [ebp - 5]
call sub.ntoskrnl.exe_IoSetThreadHardErrorMode
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x33540
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x20
pop ecx
lea eax, [ebp - 4]
push 4
mov dword [ebp - 0x4c], eax
pop eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp + 8]
push edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x50], 0x34e0a
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 0x34dea
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0003351c
push esi
push esi
lea eax, [ebp - 0x58]
push eax
push 0x34d20
push esi
mov dword [ebp - 4], esi
mov dword [ebp + 8], esi
call sub.ntoskrnl.exe_RtlQueryRegistryValues
cmp eax, esi
jge 0x335cc
cmp eax, 0xc0000034
jne 0x335e8
jmp 0x335e6
cmp dword [ebp - 4], 1
jne 0x335d4
shl dword [edi], 1
cmp dword [ebp + 8], 3
jae 0x335e6
mov eax, dword [edi + 4]
xor eax, dword [ebp + 8]
and eax, 3
xor dword [edi + 4], eax
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x3410a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x2b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x12c]
push eax
xor ecx, ecx
push 0x20019
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x12c], 0x18
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x120], 0x240
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
call sub.ntoskrnl.exe_ZwOpenKey
mov ebx, eax
test ebx, ebx
jl 0x341f9
push dword [esi + 8]
lea eax, [ebp - 0x134]
push eax
call fcn.0002732c
lea eax, [ebp - 0x138]
push eax
push 0x10c
lea eax, [ebp - 0x110]
push eax
push 4
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x114]
call sub.ntoskrnl.exe_ZwQueryValueKey
mov ebx, eax
test ebx, ebx
jl 0x341f9
test edi, edi
jne 0x341c1
xor ebx, ebx
jmp 0x341f9
cmp dword [ebp - 0x110], 3
jne 0x341f4
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x10c], eax
jne 0x341f4
push eax
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0xc]
call sub.ntoskrnl.exe_memcpy
mov eax, dword [ebp - 0x114]
add esp, 0xc
mov dword [edi], eax
xor ebx, ebx
jmp 0x3420d
mov ebx, 0xc0000034
cmp dword [ebp - 0x114], 0
je 0x3420d
push dword [ebp - 0x114]
call sub.ntoskrnl.exe_ZwClose
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00024c39
leave
ret 0xc
Function at 0x344d0
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x344e2
push ebx
push esi
sub eax, ecx
push edi
mov edi, dword [ebp + 0x10]
sar eax, 1
mov ebx, eax
lea eax, [edi + ebx*2 + 0x16]
push 0x474b6d73
push eax
call fcn.0001fc94
mov esi, eax
test esi, esi
jne 0x34519
mov dword [ebp + 0x10], 0xc000009a
jmp 0x34605
lea eax, [edi + ebx*2 + 0x16]
push eax
push 0
push esi
call sub.ntoskrnl.exe_memset
lea ecx, [ebx + ebx]
push ecx
push dword [ebp + 0xc]
lea eax, [esi + 0x14]
mov dword [esi + 0xc], eax
add eax, edi
push eax
mov dword [esi + 0x10], edi
mov dword [esi + 8], eax
call sub.ntoskrnl.exe_memcpy
mov ebx, dword [ebp + 8]
add esp, 0x18
cmp dword [ebx + 0x10], 0
je 0x3456d
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebx + 0xc]
push eax
call fcn.0003410a
mov dword [ebp + 0x10], eax
test eax, eax
jge 0x3457d
cmp eax, 0xc0000034
jne 0x345ed
push edi
push dword [esi + 0xc]
call fcn.00027a84
mov dword [ebp + 0x10], eax
test eax, eax
jl 0x345ed
call sub.ntoskrnl.exe_KeEnterCriticalRegion
mov eax, ebx
lock bts dword [eax], 0
jae 0x34592
mov ecx, ebx
call sub.ntoskrnl.exe_ExfAcquirePushLockExclusive
push dword [ebp + 0xc]
push ebx
call fcn.0003346c
test eax, eax
jne 0x345ce
cmp dword [ebp - 4], 0
lea eax, [ebx + 4]
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
mov dword [eax], esi
je 0x345cc
push dword [esi + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0002732c
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.ntoskrnl.exe_ZwDeleteValueKey
xor esi, esi
or eax, 0xffffffff
mov ecx, ebx
lock xadd dword [ecx], eax
test al, 2
je 0x345e4
test al, 4
jne 0x345e4
call sub.ntoskrnl.exe_ExfTryToWakePushLock
call sub.ntoskrnl.exe_KeLeaveCriticalRegion
and dword [ebp + 0x10], 0
cmp dword [ebp - 4], 0
je 0x345fb
push dword [ebp - 4]
call sub.ntoskrnl.exe_ZwClose
test esi, esi
je 0x34605
push esi
call fcn.0001fcb0
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4013ee
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc00
push ebx
push esi
push edi
mov esi, 0x4230e4
push 0x4230e0
mov ebx, ecx
push esi
call fcn.00410f20
pop ecx
test eax, eax
pop ecx
je 0x401490
push dword [0x41b42c]
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.0040c475
lea eax, [ebp - 0x400]
push eax
call fcn.0040c5ad
test eax, eax
jne 0x40143d
push esi
call fcn.0040c5e7
jmp 0x401490
cmp dword [ebx + 8], 0x1f4
jae 0x401490
mov edi, 0x400
lea eax, [ebp - 0x800]
push edi
push 0
push eax
call fcn.00410ec0
add esp, 0xc
lea eax, [ebp - 0x800]
mov ecx, ebx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004016e2
test eax, eax
jne 0x401495
lea eax, [ebp - 0x400]
push eax
call fcn.0040c621
test eax, eax
je 0x401495
push esi
call fcn.0040c5e7
test eax, eax
je 0x401495
push 1
pop eax
jmp 0x401500
cmp byte [ebp - 0x800], 0
lea esi, [ebp - 0x800]
je 0x4014fe
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0xc00]
push edi
push eax
push dword [0x41b43c]
push esi
push dword [0x41b430]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xc00]
push eax
call fcn.0040c621
test eax, eax
je 0x4014e9
push 0
lea eax, [ebp - 0x400]
push esi
push eax
mov ecx, ebx
call fcn.00401715
jmp 0x4014ec
inc dword [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x4014a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret