joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7dd80e03
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 0x7dd80e27
test eax, eax
jne 0x7dd80f78
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 0x7dd80fe0
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 0x7dda4376
push 0x7dd80ff8
push 1
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jge 0x7dda43c1
push 0x7dd81010
push 1
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jge 0x7dda4409
and dword [0x7de40018], 0
xor eax, eax
pop edi
pop esi
pop ebx
jmp 0x7dd80e27
lea eax, [ebp - 0x24]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x7dda445c
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call edi
cmp dword [ebp - 0x20], 0
jl 0x7dd80fa2
cmp dword [ebp - 0x14], 4
jne 0x7dd80fa2
cmp dword [ebp - 0x10], 4
jne 0x7dd80fa2
cmp dword [ebp - 0xc], 0
jbe 0x7dd80fa2
jmp 0x7dda444c
lea eax, [ebp - 0x24]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x7dda4464
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call edi
cmp dword [ebp - 0x20], 0
jl 0x7dd80fb7
cmp dword [ebp - 0x14], 4
jne 0x7dd80fb7
cmp dword [ebp - 0x10], 4
jne 0x7dd80fb7
cmp dword [ebp - 0xc], 0
je 0x7dd80fb7
jmp 0x7dda444c
lea eax, [ebp - 0x24]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
push 0x7dda446c
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x1c]
mov esi, eax
call edi
test esi, esi
jl 0x7dd80fcc
cmp dword [ebp - 0x14], 4
jne 0x7dd80fcc
cmp dword [ebp - 0x10], 4
jne 0x7dd80fcc
cmp dword [ebp - 0xc], 0
je 0x7dd80fcc
xor eax, eax
inc eax
mov dword [0x7de40018], eax
jmp 0x7dd80fd5

Function at 0x7dd817b3
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 0x7dda77a3
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 0x7dd817d8
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 0x7dda77ec
cmp dword [ebp - 0x10], 4
jne 0x7dda77ec
cmp dword [ebp - 0xc], 4
jne 0x7dda77ec
cmp dword [ebp - 8], esi
jne 0x7dda77ec
xor esi, esi
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x7dd817d8
Function at 0x7dd81cab
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 0x7dd81dfd
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 0x7dd9de9c
cmp dword [ebp - 0x8c], 0
jl 0x7dd81de4
mov eax, dword [esi + 4]
test eax, eax
jbe 0x7dd9df79
cmp eax, 2
jbe 0x7dd9df10
cmp eax, 4
ja 0x7dd9def1
mov eax, dword [esi + 0xc]
cmp dword [edi], eax
jb 0x7dd9df01
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 0x7dd9df88
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 0x7dd81de4
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 0x7dd81d99
cmp eax, 7
je 0x7dd9df10
cmp eax, 0xb
je 0x7dd81dbf
jmp 0x7dd9df79
mov dword [ebp - 0x8c], 0x80000005
jmp 0x7dd81de2
mov eax, dword [esi + 0xc]
cmp eax, 2
jb 0x7dd9df6a
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 0x7dd9df36
add eax, 0xfffffffe
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0xc]
lea eax, [edx + 2]
cmp dword [edi], eax
jb 0x7dd9df01
mov ebx, dword [ebp - 0x98]
test ebx, ebx
je 0x7dd9df01
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 0x7dd81de2
mov dword [ebp - 0x8c], 0xc0000034
jmp 0x7dd81de4
mov dword [ebp - 0x8c], 0xc00000e5
jmp 0x7dd81de4
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 0x7dd81dfd
Function at 0x7dd81e19
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 0x7dd81f3a
push 0x7dd81f60
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 0x7dd81f3a
mov esi, dword [ebp - 0x64]
cmp esi, 2
jb 0x7dd81f57
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 0x7dd81f04
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 0x7dd81f4e
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 0x7dd81f2a
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 0x7dd81f38
mov dword [ebp - 0x74], 0xc0000034
jmp 0x7dd81f3a
Function at 0x7dd84d04
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 0x7dd84fc1
cmp dword [0x7de40010], edi
jne 0x7dda4703
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 0x7dd85033
test byte [0x7ffe02d0], 0x40
jne 0x7dda45f3
push 0x7dd8504c
push 1
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jge 0x7dda46c8
cmp dword [0x7de40c88], edi
jne 0x7dda469a
cmp dword [0x7de40098], 0x7de40098
jne 0x7dda469a
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 0x7dd84d10
cmp dword [ebp - 4], edi
jl 0x7dd8501b
jmp 0x7dd84fff
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 0x7dda4623
mov dword [ebp - 4], 0xc0000017
jmp 0x7dda4671
mov esi, 0xf6
push esi
push ebx
call fcn.7dd74f70
cmp eax, edi
je 0x7dda46bf
cmp eax, esi
ja 0x7dda46bf
cmp word [ebx + eax*2 - 2], 0x5c
je 0x7dda464f
push 0x5c
pop ecx
mov word [ebx + eax*2], cx
inc eax
push 6
pop ecx
lea edi, [ebx + eax*2]
mov esi, 0x7dda47d4
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call sym.KERNEL32.dll_LoadLibraryW
test eax, eax
jne 0x7dda46a9
mov dword [ebp - 4], 0xc0000001
xor edi, edi
cmp ebx, edi
je 0x7dd85043
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 0x7dd85043
mov dword [0x7de40010], 1
jmp 0x7dd85029
push 0x7dda47b8
push eax
call fcn.7dd7122f
mov dword [0x7de40c88], eax
test eax, eax
je 0x7dda4668
jmp 0x7dda466f
mov dword [ebp - 4], 0xc0000001
jmp 0x7dda4671
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
push edi
push edi
push 0x7dda4760
push 0x7dda4798
push 2
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x7dd84fff
cmp eax, 0xc0000034
jne 0x7dd85043
mov dword [ebp - 4], edi
jmp 0x7dda4671
mov eax, dword [0x7de40c88]
mov dword [ebp - 4], edi
cmp eax, edi
je 0x7dda4719
push dword [ebp + 8]
call eax
jmp 0x7dd84d2d
mov esi, dword [0x7de40098]
push 2
pop ebx
mov edi, 0x7de40098
jmp 0x7dda473d
push 1
push dword [ebp + 8]
call dword [esi + 0x10]
test eax, eax
jge 0x7dda473b
push 3
mov dword [ebp - 4], eax
pop ebx
mov esi, dword [esi]
cmp esi, edi
jne 0x7dda4729
mov esi, dword [0x7de40098]
jmp 0x7dda4752
push ebx
push dword [ebp + 8]
call dword [esi + 0x10]
mov esi, dword [esi]
cmp esi, edi
jne 0x7dda4749
mov eax, dword [ebp - 4]
jmp 0x7dd84d2d
Function at 0x7dd87f97
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 0x7dd87fd5
mov esi, dword [ecx + 0x3c]
test esi, esi
jle 0x7dd87fd5
add ecx, esi
cmp dword [ecx], 0x4550
jne 0x7dd87fd5
mov esi, 0x14c
cmp word [ecx + 4], si
jne 0x7dd87fd5
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 0x7dd89367
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 0x7dd893f9
push ebx
push eax
push dword [esi + 0x24]
call fcn.7dd75a46
push dword [ebp + 8]
mov ebx, eax
push dword [esi + 0x24]
call fcn.7dd75289
add ebx, eax
test eax, eax
je 0x7dd893f8
cmp eax, ebx
jae 0x7dd893f8
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x7dd893f8
mov edx, dword [esi + 0x2c]
add edx, ecx
cmp ebx, edx
jae 0x7dd893f8
mov ecx, dword [edi + 4]
xor edx, edx
cmp edx, ecx
jae 0x7dd893d9
movzx esi, word [eax]
lea eax, [eax + esi*2 + 2]
inc edx
cmp eax, ebx
jb 0x7dd893c9
cmp eax, ebx
jae 0x7dd893f8
movzx ecx, word [eax]
inc eax
inc eax
test ecx, ecx
je 0x7dd893f8
lea edx, [eax + ecx*2]
cmp edx, ebx
jae 0x7dd893f8
mov edx, dword [edi + 0xc]
cmp ecx, edx
je 0x7ddb1d2a
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 0x7dd893f8
mov dword [ebp - 4], 1
jmp 0x7dd893f8

Function at 0x7dd89407
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 0x7ddb1d4b
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
push eax
push dword [esi + 0x24]
call fcn.7dd75289
test eax, eax
je 0x7dd89430
mov edx, dword [esi + 4]
cmp eax, edx
jbe 0x7dd89430
mov ecx, dword [edi + 0xc]
push ebx
mov ebx, ecx
sub ebx, edx
add ebx, eax
cmp ebx, dword [esi + 0x2c]
jae 0x7ddb1db2
mov edx, dword [edi + 8]
sub edx, 0
je 0x7ddb1d97
dec edx
jne 0x7ddb1db2
test ecx, ecx
jbe 0x7ddb1db2
mov edi, dword [edi + 0x10]
mov bl, byte [edi + edx]
test byte [edx + eax], bl
jne 0x7ddb1dab
inc edx
cmp edx, ecx
jae 0x7ddb1db2
jmp 0x7ddb1d88
mov edi, dword [edi + 0x10]
mov esi, eax
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x7ddb1da7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x7ddb1db2
mov dword [ebp - 4], 1
pop ebx
jmp 0x7dd89430
Function at 0x7dd8943e
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x28]
push ebx
push esi
push edi
movzx edi, word [ecx + 6]
movzx ecx, word [ecx + 0x14]
lea esi, [ecx + edx + 0x18]
lea ecx, [ebp - 0x10]
push ecx
push dword [eax + 0x20]
xor ebx, ebx
mov dword [ebp - 8], 0xc0000089
mov dword [ebp - 4], ebx
call fcn.7dd7531f
test eax, eax
je 0x7dd894b2
test edi, edi
jbe 0x7dd89494
lea eax, [esi + 0x14]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 4]
jbe 0x7dd8948e
mov ebx, dword [eax - 4]
mov dword [ebp - 4], ecx
add eax, 0x28
dec edi
jne 0x7dd89481
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
cmp ecx, dword [ebp - 0xc]
lea edx, [eax + 0x40]
jg 0x7dd894b2
jl 0x7dd8969d
cmp edx, dword [ebp - 0x10]
jb 0x7dd8969d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, dword [ebp + 0xc]
and dword [ebp - 8], 0
mov dword [ecx], eax
jmp 0x7dd894b2

Function at 0x7dd89548
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [edi + 0xc]
cmp eax, dword [esi + 0x2c]
jae 0x7dd895a0
mov ecx, dword [esi + 4]
and dword [ebp - 4], 0
add ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
sub eax, dword [edi + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x7dd895a0
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
movzx ebx, word [eax + 6]
movzx eax, word [eax + 0x14]
mov ecx, dword [esi + 0x28]
and dword [ebp + 8], 0
push edi
mov dword [ebp - 4], 0xc0000089
lea edi, [eax + ecx + 0x18]
test ebx, ebx
jbe 0x7dd895a0
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x7dd8957b
sub eax, edx
push eax
push dword [ebp + 0xc]
push edi
call sub.ntdll.dll_strncmp
add esp, 0xc
test eax, eax
je 0x7dd89520
add edi, 0x28
inc dword [ebp + 8]
cmp dword [ebp + 8], ebx
jb 0x7dd89575
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x7dd89646
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffe0
pop eax
push 2
push 0
or ecx, 0xffffffff
push ecx
push eax
push dword [esi + 0x20]
mov ebx, 0xc0000089
call sub.API_MS_Win_Core_File_L1_1_0.dll_SetFilePointerEx
test eax, eax
je 0x7dd89695
push 0
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 0xc]
push dword [esi + 0x20]
call sub.API_MS_Win_Core_File_L1_1_0.dll_ReadFile
test eax, eax
je 0x7dd89695
cmp dword [ebp + 8], 0x20
jne 0x7dd89695
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x20
xor ebx, ebx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x7dd8a659
Capabilities:
Access peb ldr_data

Disassembly:
lea eax, [ebp - 0x40]
push eax
mov esi, dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
call esi
lea eax, [ebp - 0x48]
push eax
call esi
lea eax, [ebp - 0x50]
push eax
call esi
mov eax, dword fs:[0x18]
mov edi, dword [ebp - 0x28]
push dword [edi + 4]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
call esi
mov eax, dword fs:[0x18]
push dword [edi + 8]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call esi
mov eax, dword fs:[0x18]
push dword [edi + 0xc]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call esi
ret
Function at 0x7dd8c606
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0xe
pop esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.7dd8c673
mov edi, eax
test edi, edi
je 0x7dd8c666
cmp byte [ebp + 0x14], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
jne 0x7ddad94a
call fcn.7dd74280
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, eax
test ecx, ecx
jbe 0x7ddad954
cmp dword [ebp + 0xc], ecx
sbb esi, esi
and esi, 0xea
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10
call fcn.7dd8ee9e
jmp 0x7dd8c637
call fcn.7dd711c7
mov esi, eax
jmp 0x7dd8c651

Function at 0x7dd8c7b7
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 8
xor ebx, ebx
pop ecx
xor edx, edx
cmp esi, ecx
mov byte [ebp - 4], bl
jg 0x7dd9ef88
je 0x7dd8d41f
mov eax, esi
sub eax, ebx
jne 0x7dd8d40e
push 4
pop eax
push 0x28
pop ecx
cmp ecx, dword [ebp + 0x14]
ja 0x7dd9efdc
cmp edx, ebx
jne 0x7dd9efe0
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, ebx
jl 0x7dd9f01e
cmp esi, 7
je 0x7dd9f029
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 0x10
dec eax
jne 0x7dd9ef72
push 5
pop eax
push 0x18
jmp 0x7dd8c7ea
push 0x1c
pop eax
push 0x10
jmp 0x7dd8c7ea
dec eax
je 0x7dd9ef84
sub eax, 5
jne 0x7dd9ef99
push 0x16
pop eax
push 0x20
jmp 0x7dd8c7ea
push 9
jmp 0x7dd9efd6
mov eax, esi
sub eax, 9
je 0x7dd9efd4
dec eax
je 0x7dd9efc3
dec eax
je 0x7dd9efb2
dec eax
dec eax
je 0x7dd9efa8
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7dd8c824
push 0x37
pop eax
push 0x74
jmp 0x7dd8c7ea
push 0x25
pop eax
xor edx, edx
push 0x70
inc edx
pop ecx
mov byte [ebp - 4], dl
jmp 0x7dd8c7eb
push 0x25
pop eax
push 0x70
xor edx, edx
pop ecx
inc edx
mov byte [ebp - 4], bl
jmp 0x7dd8c7eb
push 0x23
pop eax
jmp 0x7dd8c7eb
push 0x18
jmp 0x7dd9ef9b
push dword [ebp - 4]
push ebx
push ebx
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push dword [ebp + 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
cmp eax, 0x103
jne 0x7dd8c810
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
cmp eax, ebx
jl 0x7dd9f01e
mov eax, dword [ebp - 8]
jmp 0x7dd8c810
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7dd9efa1
cmp dword [ebp - 4], ebx
jne 0x7dd8c821
push 0xc0000011
jmp 0x7dd9f01f
Function at 0x7dd8d0c7
Capabilities:
Get system information on windows

Disassembly:
push 0x10
push 0x7dd8d150
call fcn.7dd715c0
mov ebx, dword [ebp + 8]
test bl, 4
je 0x7dd9bb5c
push dword [0x7de40060]
call dword [sym.imp.ntdll.dll_RtlLockHeap]
and dword [ebp - 4], 0
mov dword [ebp - 4], 1
lea esi, [ebx - 4]
push esi
push dword [0x7de4005c]
call dword [sym.imp.ntdll.dll_RtlIsValidHandle]
test al, al
je 0x7dda2fb7
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x7dda2fd6
movzx eax, word [esi + 2]
mov ecx, 0xff
lea edx, [eax + 1]
mov word [esi + 2], dx
cmp ax, cx
je 0x7dda2fc8
and dword [ebp - 4], 0
mov dword [ebp - 4], 0xfffffffe
call fcn.7dd8d17d
mov eax, dword [ebp - 0x1c]
call fcn.7dd71605
ret 4
mov eax, dword [0x7de4006c]
test eax, eax
je 0x7dda3011
cmp ebx, eax
jae 0x7dda302d
push 1
push ebx
call sym.KERNEL32.dll_IsBadReadPtr
test eax, eax
jne 0x7dda302d
mov eax, ebx
jmp 0x7dd8d148
push 6
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
and dword [ebp - 0x1c], 0
jmp 0x7dd8d135
mov eax, 0xffff
add word [esi + 2], ax
jmp 0x7dd8d135
push 0x9d
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7dd8d135
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x32
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov eax, dword [ebp + 8]
mov dword [0x7de4006c], eax
jmp 0x7dd9bb69
push 6
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
jmp 0x7dd8d148

Function at 0x7dd8db19
Capabilities:
Get process heap flags

Disassembly:
push 0xc
push 0x7dd8db48
call fcn.7dd715c0
and dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.7dd71605
ret
Function at 0x7dd8e365
Capabilities:
Get system information on windows

Disassembly:
push 0x44
push 0x7dd8e468
call fcn.7dd715c0
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x7ddb27ae
cmp dword [ebp + 0xc], esi
je 0x7ddb27ae
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
call sub.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetSystemInfo
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x7ddb274c
mov edi, dword [ebp + 0xc]
add edi, 0x27
and edi, 0xfffffff8
push ebx
call fcn.7dd8ddc1
test eax, eax
je 0x7ddb275c
and dword [ebp - 4], esi
mov eax, dword [ebx + 0x38]
or eax, dword [ebx + 0x3c]
je 0x7dd8e4a8
mov eax, dword [ebx + 0x40]
or eax, dword [ebx + 0x44]
jne 0x7ddb2763
test esi, esi
jne 0x7dd8e411
mov eax, dword [ebx + 0x38]
xor edx, edx
div dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
sub eax, edx
cmp eax, edi
jb 0x7dd8e4cd
cmp eax, dword [ebp - 0x24]
je 0x7dd8e4cd
mov esi, dword [ebx + 0x38]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x20], 0
jne 0x7dd8e4af
cmp dword [ebp - 0x28], 0
jne 0x7dd8e435
lea eax, [edi + esi]
cdq
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
add edi, 0xffffffe0
mov dword [esi + 0x10], edi
and dword [esi + 0x14], 0
lea eax, [esi + 0x20]
mov dword [esi + 8], eax
mov dword [ebp - 0x30], eax
xor edi, edi
inc edi
mov dword [esi + 0x18], edi
push esi
push ebx
call fcn.7dd8e105
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.7dd8e489
mov eax, dword [ebp - 0x30]
call fcn.7dd71605
ret 8
mov dword [ebp - 0x20], 1
push 4
push 0x3000
push edi
push 0
call fcn.7dd71833
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x7dd8e41b
jmp 0x7dd8e44e
mov dword [ebp - 0x20], 1
jmp 0x7dd8e411
push 0x7ddb27cc
push 0
call fcn.7de1ae08
pop ecx
pop ecx
jmp 0x7ddb27c2
push 0x7dde372c
jmp 0x7ddb2751
lea eax, [edi - 0x20]
push eax
push ebx
call fcn.7de1cea8
mov esi, eax
mov dword [ebp - 0x1c], esi
xor eax, eax
test esi, esi
setne al
mov dword [ebp - 0x28], eax
jmp 0x7dd8e3e9
push 0x7dde36c4
push esi
call fcn.7de1ae08
pop ecx
pop ecx
push 0x57
call sym.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x7dd8e45d