joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7dd7d75d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
and dword [esi], 0
push edi
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x13
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x7dd7d7b4
cmp dword [ebp - 0x14], 4
jne 0x7dd7d7b4
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.7dd71442
leave
ret 0xc

Function at 0x7dd7d8c4
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x7dd7dc63
push 5
push 0x18
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 8]
push eax
push dword [esi]
call sub.ntdll.dll_NtQueryInformationFile
mov edi, eax
cmp edi, ebx
jl 0x7ddb2b68
cmp dword [ebp - 0x2c], ebx
jl 0x7dd7d911
jg 0x7dd7dcb3
cmp dword [ebp - 0x30], 0x800000
ja 0x7dd7dcb3
lea edx, [esi + 8]
mov dword [ebp + 0x10], edx
cmp dword [edx], ebx
je 0x7ddb2b83
mov ecx, dword [esi]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov byte [eax + 1], 1
mov byte [eax], 1
mov ecx, dword [ecx]
mov esi, dword [ecx]
mov dword [eax + 4], esi
mov ecx, dword [ecx + 4]
mov dword [eax + 8], ecx
mov byte [eax + 2], 3
mov ecx, dword [edx]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ecx
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push 0x60
push 5
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x20], 0x18
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call sub.ntdll.dll_NtOpenFile
mov edi, eax
cmp edi, ebx
jge 0x7dd7d8dc
cmp edi, 0xc0000034
je 0x7dd7d955
jmp 0x7ddb2b02
mov edi, 0xc0150022
jmp 0x7dd7d955
cmp edi, 0xc0000089
je 0x7dd7d955
cmp edi, 0xc000008a
je 0x7dd7d955
cmp edi, 0xc000008b
je 0x7dd7d955
cmp edi, 0xc0000204
je 0x7dd7d955
cmp edi, 0xc0150002
je 0x7dd7d955
cmp edi, 0xc000000f
je 0x7dd7d955
push edi
push dword [ebp - 0x18]
push 0x7ddb2bec
push 0x7dde360c
push ebx
push 0x33
call sub.ntdll.dll_DbgPrintEx
add esp, 0x18
jmp 0x7dd7d955
push edi
push 0x7ddb2bec
push 0x7ddb2bb4
push ebx
push 0x33
call sub.ntdll.dll_DbgPrintEx
add esp, 0x14
jmp 0x7dd7d955
push dword [esi]
push 0x8000000
push 2
push ebx
push ebx
push 4
push edx
call sub.ntdll.dll_NtCreateSection
mov edi, eax
cmp edi, ebx
jge 0x7ddb2ba9
push edi
push 0x7ddb2bec
push 0x7ddb36d0
jmp 0x7ddb2b73
mov edx, dword [ebp + 0x10]
jmp 0x7dd7d91f
Function at 0x7dd7f39f
Capabilities:
Set file attributes
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x7dd7f440
cmp dword [esi + 0x20], ebx
je 0x7dd7f3ea
cmp dword [esi + 0x2c], 0xffffffff
push edi
jne 0x7dd9645f
push 0x8000
lea edi, [esi + 0x28]
push edi
lea eax, [esi + 0x20]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov dword [edi], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
pop edi
cmp byte [esi + 0x1a], bl
je 0x7dd7f418
push dword [0x7de402e8]
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push dword [esi + 0x14]
call dword [sym.imp.ntdll.dll_NtUnlockFile]
push dword [esi + 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 4], ebx
jl 0x7dd7f429
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push esi
mov dword [esi + 0x14], ebx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
cmp byte [esi + 0x18], bl
je 0x7dd7f3cc
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 0x2c]
push 0x7de402e8
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x30]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [esi + 0x20]
sub edi, eax
push edi
add ecx, eax
push ecx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x14]
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x7dd7f3cc
cmp dword [ebp - 0x18], edi
jne 0x7dd9e315
mov eax, dword [esi + 0x1c]
push 0x14
mov dword [ebp - 0xc], eax
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 8], ebx
push dword [esi + 0x14]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov dword [ebp - 4], eax
jmp 0x7dd7f3cc
mov dword [ebp - 4], 0xc000007f
jmp 0x7dd7f3cc

Function at 0x7dd7facb
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtEnumerateKey]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [esi + 4]
push edi
push 0x120
lea eax, [esi + 0x10]
push eax
push 1
push dword [esi + 8]
mov dword [ebp + 0xc], eax
push dword [ebp + 8]
call ebx
cmp eax, 0x80000005
je 0x7ddb12dc
test eax, eax
jl 0x7dd7fb0c
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword fs:[0x18]
push dword [edi]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x7ddb1303
mov eax, 0xc0000017
jmp 0x7dd7fb0c
push edi
push dword [edi]
push eax
push 1
push dword [esi + 8]
push dword [ebp + 8]
call ebx
jmp 0x7dd7fb01
Function at 0x7dd805a5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x7dd80ad0
cmp dword [ebp + 0x10], esi
je 0x7dd80ad0
mov eax, dword [ebp + 0x14]
cmp eax, esi
jne 0x7ddaea28
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
cmp eax, esi
jl 0x7ddaea33
movzx eax, word [ebp - 8]
mov ecx, dword [ebp - 4]
shr eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x7ddaea3e
push edi
call fcn.7dd74288
mov esi, dword [sym.imp.ntdll.dll__wcsicmp]
push 0x7dd80058
push edi
mov ebx, eax
call esi
push 0x7dd80044
push edi
mov dword [ebp + 8], eax
call esi
add esp, 0x10
cmp ebx, 4
je 0x7ddaea45
cmp word [ebp - 8], 6
je 0x7dd80aa7
cmp word [ebp - 8], 0xe
je 0x7ddaeaa0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push ebx
push edi
call fcn.7dd80240
mov esi, eax
test esi, esi
je 0x7ddaea7a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
jne 0x7dd8063c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.7dd80240
mov esi, eax
test esi, esi
jne 0x7dd80653
jmp 0x7ddaeaea
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dd80653
mov dword [eax], 1
jmp 0x7dd805ce
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7dd80653
push 0xc0000033
jmp 0x7ddaea34
cmp dword [ebp + 8], 0
je 0x7dd80626
test eax, eax
je 0x7dd80626
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.7dd80661
mov esi, eax
test esi, esi
jne 0x7dd80653
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7ddaeaf3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push edi
call fcn.7dd80661
mov esi, eax
test esi, esi
je 0x7dd80653
push dword [ebp + 0x10]
push ebx
push ebx
call fcn.7dd80240
jmp 0x7dd80653
mov eax, dword [ebp - 4]
cmp word [eax], 0x5c
jne 0x7dd8063c
cmp word [eax + 2], 0x5c
jne 0x7dd8063c
movzx ecx, word [eax + 4]
cmp cx, 0x2e
je 0x7ddaeacc
cmp cx, 0x3f
jne 0x7dd8063c
cmp word [eax + 6], 0x5c
jne 0x7dd8063c
cmp word [eax + 0xa], 0x3a
jne 0x7dd8063c
add edi, 8
jmp 0x7dd80ab5
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x7ddaeaf3
and dword [eax], esi
cmp dword [ebp + 0x10], 1
jb 0x7dd80653
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov word [ecx], ax
jmp 0x7dd80653
Function at 0x7dd80e33
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x7de40018]
cmp eax, 1
je 0x7dd80e57
test eax, eax
jne 0x7dd80fab
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.7dd71442
leave
ret
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtOpenKey]
push esi
push edi
push 0x7dd81010
push 1
lea eax, [ebp - 0x1c]
push eax
call ebx
mov esi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, dword [sym.imp.ntdll.dll_NtClose]
test eax, eax
jge 0x7dda439e
push 0x7dd81028
push 1
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jge 0x7dda43e9
push 0x7dd81040
push 1
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jge 0x7dda4431
and dword [0x7de40018], 0
xor eax, eax
pop edi
pop esi
pop ebx
jmp 0x7dd80e57
lea eax, [ebp - 0x24]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x7dda4484
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call edi
cmp dword [ebp - 0x20], 0
jl 0x7dd80fd5
cmp dword [ebp - 0x14], 4
jne 0x7dd80fd5
cmp dword [ebp - 0x10], 4
jne 0x7dd80fd5
cmp dword [ebp - 0xc], 0
jbe 0x7dd80fd5
jmp 0x7dda4474
lea eax, [ebp - 0x24]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x7dda448c
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call edi
cmp dword [ebp - 0x20], 0
jl 0x7dd80fea
cmp dword [ebp - 0x14], 4
jne 0x7dd80fea
cmp dword [ebp - 0x10], 4
jne 0x7dd80fea
cmp dword [ebp - 0xc], 0
je 0x7dd80fea
jmp 0x7dda4474
lea eax, [ebp - 0x24]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x7dda4494
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x1c]
mov esi, eax
call edi
test esi, esi
jl 0x7dd80fff
cmp dword [ebp - 0x14], 4
jne 0x7dd80fff
cmp dword [ebp - 0x10], 4
jne 0x7dd80fff
cmp dword [ebp - 0xc], 0
je 0x7dd80fff
xor eax, eax
inc eax
mov dword [0x7de40018], eax
jmp 0x7dd81008

Function at 0x7dd817e3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
inc esi
cmp byte [0x7ffe0268], 0
je 0x7dda77db
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.7dd71442
leave
ret
push 0x7de40bcc
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x7dd81808
lea eax, [ebp - 0x1c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 2
push 0x7de40ce0
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x7dda7824
cmp dword [ebp - 0x10], 4
jne 0x7dda7824
cmp dword [ebp - 0xc], 4
jne 0x7dda7824
cmp dword [ebp - 8], esi
jne 0x7dda7824
xor esi, esi
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x7dd81808
Function at 0x7dd81cdb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push esi
push edi
mov edi, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x9c], ecx
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xc4]
push eax
mov dword [ebp - 0x98], ecx
lea esi, [ebp - 0x84]
mov byte [ebp - 0x85], 0
call ebx
xor eax, eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xbc]
push eax
push 0x20019
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0xc4]
push eax
mov dword [ebp - 0xbc], 0x18
mov dword [ebp - 0xb0], 0x40
mov dword [ebp - 0xb4], ecx
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [ebp - 0x8c], eax
test eax, eax
jl 0x7dd81e2d
push dword [ebp - 0x9c]
lea eax, [ebp - 0xa4]
push eax
call ebx
mov ebx, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp - 0x90]
push eax
push 0x80
mov eax, esi
push eax
push 1
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x94]
call ebx
mov dword [ebp - 0x8c], eax
cmp eax, 0x80000005
je 0x7dd9decc
cmp dword [ebp - 0x8c], 0
jl 0x7dd81e14
mov eax, dword [esi + 4]
test eax, eax
jbe 0x7dd9dfa9
cmp eax, 2
jbe 0x7dd9df40
cmp eax, 4
ja 0x7dd9df21
mov eax, dword [esi + 0xc]
cmp dword [edi], eax
jb 0x7dd9df31
push eax
mov eax, dword [esi + 8]
add eax, esi
push eax
push dword [ebp - 0x98]
call sub.ntdll.dll_memcpy
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi], eax
push dword [ebp - 0x94]
call dword [sym.imp.ntdll.dll_NtClose]
cmp byte [ebp - 0x85], 0
jne 0x7dd9dfb8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 0x10
mov eax, dword fs:[0x18]
push dword [ebp - 0x90]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x7dd81e14
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
lea eax, [ebp - 0xa4]
push esi
push 1
push eax
push dword [ebp - 0x94]
mov byte [ebp - 0x85], 1
call ebx
mov dword [ebp - 0x8c], eax
jmp 0x7dd81dc9
cmp eax, 7
je 0x7dd9df40
cmp eax, 0xb
je 0x7dd81def
jmp 0x7dd9dfa9
mov dword [ebp - 0x8c], 0x80000005
jmp 0x7dd81e12
mov eax, dword [esi + 0xc]
cmp eax, 2
jb 0x7dd9df9a
mov ecx, eax
and ecx, 1
sub eax, ecx
mov ecx, dword [esi + 8]
lea edx, [eax + ecx]
mov dword [esi + 0xc], eax
cmp word [edx + esi - 2], 0
jne 0x7dd9df66
add eax, 0xfffffffe
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0xc]
lea eax, [edx + 2]
cmp dword [edi], eax
jb 0x7dd9df31
mov ebx, dword [ebp - 0x98]
test ebx, ebx
je 0x7dd9df31
push edx
add ecx, esi
push ecx
push ebx
call sub.ntdll.dll_memcpy
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov word [ebx + eax], cx
mov eax, dword [esi + 0xc]
add esp, 0xc
inc eax
inc eax
jmp 0x7dd81e12
mov dword [ebp - 0x8c], 0xc0000034
jmp 0x7dd81e14
mov dword [ebp - 0x8c], 0xc00000e5
jmp 0x7dd81e14
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dd81e2d
Function at 0x7dd81e49
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0x7c], ecx
call esi
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x90], edi
push 0x20019
lea eax, [ebp - 0x78]
xor edi, edi
push eax
mov dword [ebp - 0x94], 0x18
mov dword [ebp - 0x88], 0x40
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], edi
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, edi
mov dword [ebp - 0x74], eax
jl 0x7dd81f6a
push 0x7dd81f90
lea eax, [ebp - 0xa8]
push eax
call esi
lea eax, [ebp - 0x98]
push eax
push 0x6c
lea eax, [ebp - 0x70]
push eax
push 1
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 0x74], edi
jl 0x7dd81f6a
mov esi, dword [ebp - 0x64]
cmp esi, 2
jb 0x7dd81f87
mov ecx, dword [ebp - 0x68]
mov eax, esi
and eax, 1
sub esi, eax
lea eax, [ecx + esi]
mov dword [ebp - 0x64], esi
cmp word [ebp + eax - 0x72], di
jne 0x7dd81f34
dec esi
dec esi
mov dword [ebp - 0x64], esi
mov edi, dword [ebp - 0x7c]
mov eax, esi
shr eax, 1
inc eax
cmp dword [edi], eax
jb 0x7dd81f7e
push esi
lea eax, [ebp + ecx - 0x70]
push eax
push ebx
call sub.ntdll.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x7dd81f5a
sub eax, edx
sar eax, 1
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 0x10
mov dword [ebp - 0x74], 0x80000005
jmp 0x7dd81f68
mov dword [ebp - 0x74], 0xc0000034
jmp 0x7dd81f6a
Function at 0x7dd84d34
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x7de40040], edi
je 0x7dd84fee
cmp dword [0x7de40010], edi
jne 0x7dda472b
mov eax, dword [0x7de40014]
pop edi
pop esi
pop ebx
leave
ret 4
push 0x7de402f0
mov dword [ebp - 4], edi
xor ebx, ebx
call dword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
cmp dword [0x7de40040], edi
jne 0x7dd85060
test byte [0x7ffe02d0], 0x40
jne 0x7dda461b
push 0x7dd85078
push 1
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jge 0x7dda46f0
cmp dword [0x7de40c88], edi
jne 0x7dda46c2
cmp dword [0x7de40098], 0x7de40098
jne 0x7dda46c2
mov eax, dword [ebp - 4]
mov dword [0x7de40010], edi
mov dword [0x7de40014], eax
mov dword [0x7de40040], 1
push 0x7de402f0
call dword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
jmp 0x7dd84d40
cmp dword [ebp - 4], edi
jl 0x7dd85048
jmp 0x7dd8502c
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push 0x20a
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
cmp ebx, edi
jne 0x7dda464b
mov dword [ebp - 4], 0xc0000017
jmp 0x7dda4699
mov esi, 0xf6
push esi
push ebx
call fcn.7dd74f60
cmp eax, edi
je 0x7dda46e7
cmp eax, esi
ja 0x7dda46e7
cmp word [ebx + eax*2 - 2], 0x5c
je 0x7dda4677
push 0x5c
pop ecx
mov word [ebx + eax*2], cx
inc eax
push 6
pop ecx
lea edi, [ebx + eax*2]
mov esi, 0x7dda47fc
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call sym.KERNEL32.dll_LoadLibraryW
test eax, eax
jne 0x7dda46d1
mov dword [ebp - 4], 0xc0000001
xor edi, edi
cmp ebx, edi
je 0x7dd85070
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
push ebx
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dd85070
mov dword [0x7de40010], 1
jmp 0x7dd85056
push 0x7dda47e0
push eax
call fcn.7dd7122f
mov dword [0x7de40c88], eax
test eax, eax
je 0x7dda4690
jmp 0x7dda4697
mov dword [ebp - 4], 0xc0000001
jmp 0x7dda4699
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
push edi
push edi
push 0x7dda4788
push 0x7dda47c0
push 2
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x7dd8502c
cmp eax, 0xc0000034
jne 0x7dd85070
mov dword [ebp - 4], edi
jmp 0x7dda4699
mov eax, dword [0x7de40c88]
mov dword [ebp - 4], edi
cmp eax, edi
je 0x7dda4741
push dword [ebp + 8]
call eax
jmp 0x7dd84d5d
mov esi, dword [0x7de40098]
push 2
pop ebx
mov edi, 0x7de40098
jmp 0x7dda4765
push 1
push dword [ebp + 8]
call dword [esi + 0x10]
test eax, eax
jge 0x7dda4763
push 3
mov dword [ebp - 4], eax
pop ebx
mov esi, dword [esi]
cmp esi, edi
jne 0x7dda4751
mov esi, dword [0x7de40098]
jmp 0x7dda477a
push ebx
push dword [ebp + 8]
call dword [esi + 0x10]
mov esi, dword [esi]
cmp esi, edi
jne 0x7dda4771
mov eax, dword [ebp - 4]
jmp 0x7dd84d5d
Function at 0x7dd87fbf
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
push esi
mov esi, 0x5a4d
xor eax, eax
cmp word [ecx], si
jne 0x7dd87ffd
mov esi, dword [ecx + 0x3c]
test esi, esi
jle 0x7dd87ffd
add ecx, esi
cmp dword [ecx], 0x4550
jne 0x7dd87ffd
mov esi, 0x14c
cmp word [ecx + 4], si
jne 0x7dd87ffd
mov dword [edx + 0x28], ecx
mov ecx, dword [ecx + 0x50]
inc eax
mov dword [edx + 0x2c], ecx
pop esi
pop ebp
ret 4
Function at 0x7dd8938f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, word [edi + 8]
push eax
movzx eax, word [edi]
push eax
push 6
push dword [esi + 0x24]
call fcn.7dd73d95
mov dword [ebp + 8], eax
test eax, eax
je 0x7dd89421
push ebx
push eax
push dword [esi + 0x24]
call fcn.7dd75a36
push dword [ebp + 8]
mov ebx, eax
push dword [esi + 0x24]
call fcn.7dd75279
add ebx, eax
test eax, eax
je 0x7dd89420
cmp eax, ebx
jae 0x7dd89420
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x7dd89420
mov edx, dword [esi + 0x2c]
add edx, ecx
cmp ebx, edx
jae 0x7dd89420
mov ecx, dword [edi + 4]
xor edx, edx
cmp edx, ecx
jae 0x7dd89401
movzx esi, word [eax]
lea eax, [eax + esi*2 + 2]
inc edx
cmp eax, ebx
jb 0x7dd893f1
cmp eax, ebx
jae 0x7dd89420
movzx ecx, word [eax]
inc eax
inc eax
test ecx, ecx
je 0x7dd89420
lea edx, [eax + ecx*2]
cmp edx, ebx
jae 0x7dd89420
mov edx, dword [edi + 0xc]
cmp ecx, edx
je 0x7ddb1d0a
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
push edx
push dword [edi + 0x10]
push eax
call sub.ntdll.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x7dd89420
mov dword [ebp - 4], 1
jmp 0x7dd89420

Function at 0x7dd8942f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push dword [edi + 4]
push dword [edi]
push dword [esi + 0x24]
call fcn.7dd73d95
test eax, eax
jne 0x7ddb1d2b
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
push eax
push dword [esi + 0x24]
call fcn.7dd75279
test eax, eax
je 0x7dd89458
mov edx, dword [esi + 4]
cmp eax, edx
jbe 0x7dd89458
mov ecx, dword [edi + 0xc]
push ebx
mov ebx, ecx
sub ebx, edx
add ebx, eax
cmp ebx, dword [esi + 0x2c]
jae 0x7ddb1d92
mov edx, dword [edi + 8]
sub edx, 0
je 0x7ddb1d77
dec edx
jne 0x7ddb1d92
test ecx, ecx
jbe 0x7ddb1d92
mov edi, dword [edi + 0x10]
mov bl, byte [edi + edx]
test byte [edx + eax], bl
jne 0x7ddb1d8b
inc edx
cmp edx, ecx
jae 0x7ddb1d92
jmp 0x7ddb1d68
mov edi, dword [edi + 0x10]
mov esi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x7ddb1d87
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x7ddb1d92
mov dword [ebp - 4], 1
pop ebx
jmp 0x7dd89458