joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101ae58
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
test edi, edi
jne 0x101ae83
xor eax, eax
jmp 0x101b006
call fcn.0101b0e5
test eax, eax
je 0x101affe
push ebx
push 0
push edi
call fcn.01019253
movzx ebx, ax
test ebx, ebx
je 0x101affd
cmp ebx, 0x7f
je 0x101affd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsValidLocale]
push 2
push ebx
call esi
test eax, eax
jne 0x101aee8
cmp ebx, 4
jne 0x101aecb
push 1
push 0x804
jmp 0x101aede
cmp ebx, 0x7c04
jne 0x101affc
push 1
push 0x404
call esi
test eax, eax
je 0x101affc
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101affc
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll__wtoi
push 2
pop ebx
push ebx
push edi
push 0x1005c50
mov dword [ebp - 0x4c], eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0x10
test eax, eax
jne 0x101af47
mov esi, 0x1008050
cmp dword [ebp - 0x48], eax
je 0x101afad
push 0x1008040
push dword [ebp - 0x48]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x101affc
jmp 0x101afad
push ebx
push edi
push 0x1005df8
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x101af61
mov esi, 0x1008030
jmp 0x101afad
push ebx
push edi
push 0x1005d10
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x101af7b
mov esi, 0x1008024
jmp 0x101afad
push ebx
push edi
push 0x1005d90
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x101af95
mov esi, 0x1008014
jmp 0x101afad
push ebx
push edi
push 0x1005cb0
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x101afb7
mov esi, 0x1007ffc
push esi
call fcn.0101ac17
test al, al
je 0x101affc
cmp dword [ebp - 0x4c], 0
je 0x101afe1
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x101affc
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x101affc
push dword [ebp - 0x70]
jmp 0x101afe9
cmp dword [ebp - 0x48], 0
je 0x101aff5
push 1
push dword [ebp - 0x48]
call fcn.0101ad9d
test eax, eax
je 0x101affc
mov dword [ebp - 0x50], 1
pop esi
pop ebx
call fcn.0101b0ee
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100b6a5
leave
ret 8
Function at 0x101c182
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
xor eax, eax
cmp dword [ebp + 0x1c], esi
push edi
setne al
mov edi, 0x80
inc eax
mov dword [ebp + 0x1c], eax
add edi, edi
test esi, esi
je 0x101c1b5
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [edi + edi]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x101c200
cmp dword [ebp + 0x18], 0
je 0x101c1e0
push dword [ebp + 8]
push edi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x101c202
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x101c1ec
mov eax, 0x1002f74
push dword [ebp + 8]
push edi
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x101c202
xor eax, eax
mov ecx, edi
sub ecx, dword [ebp + 0x1c]
cmp eax, ecx
jae 0x101c1a3
cmp dword [ebp + 0x14], 0
jne 0x101c22a
test esi, esi
je 0x101c237
test eax, eax
jne 0x101c22a
push esi
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x101c22a
xor esi, esi
test esi, esi
je 0x101c237
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x101c237
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x101cc7d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
push esi
push edi
mov esi, 0x1009e0c
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
test eax, eax
jne 0x101ccad
inc eax
jmp 0x101ce50
push eax
call fcn.01010f66
movzx esi, ax
xor eax, eax
cmp ax, si
jne 0x101ccc7
mov eax, 0x80070057
jmp 0x101ce50
lea eax, [ebp - 0x14]
push eax
call fcn.0101c70e
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x101ce4d
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea ecx, [esi - 0x61]
movzx edi, si
cmp cx, 0x19
lea ecx, [edi - 0x20]
jbe 0x101ccf2
mov ecx, edi
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx*4 - 0x104], 0
jne 0x101cd23
push edi
push 0x1009d68
push 0x4000000
push 0x1022a14
call fcn.0100a624
add esp, 0x10
mov dword [ebp - 0x10], 1
jmp 0x101ce45
lea ecx, [esi - 0x61]
cmp cx, 0x19
lea ecx, [edi - 0x20]
jbe 0x101cd31
mov ecx, edi
push ebx
xor ebx, ebx
inc ebx
add ecx, 0xffffffbf
mov edx, ebx
shl edx, cl
test eax, edx
jne 0x101cd79
add esi, 0xffffff9f
lea eax, [edi - 0x20]
cmp si, 0x19
jbe 0x101cd4e
mov eax, edi
mov ecx, dword [ebp - 0x14]
and dword [ecx + eax*4 - 0x104], 0
push edi
push 0x1009c80
push 0x3000000
push 0x1022a14
call fcn.0100a624
add esp, 0x10
mov dword [ebp - 0x10], ebx
jmp 0x101ce44
lea eax, [esi - 0x61]
cmp ax, 0x19
lea eax, [edi - 0x20]
jbe 0x101cd87
mov eax, edi
mov ecx, dword [ebp - 0x14]
push edi
push 0x1009c10
mov ebx, 0x4000000
lea eax, [ecx + eax*4 - 0x104]
dec dword [eax]
push ebx
push 0x1022a14
call fcn.0100a624
lea eax, [esi - 0x61]
add esp, 0x10
cmp ax, 0x19
lea eax, [edi - 0x20]
jbe 0x101cdba
mov eax, edi
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + eax*4 - 0x104], 0
jne 0x101ce44
push 0
lea eax, [ebp - 0xc]
push eax
push 2
mov word [ebp - 0xc], si
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0x101cdf3
push edi
push 0x1009ba0
push ebx
push 0x1022a14
call fcn.0100a624
add esp, 0x10
jmp 0x101ce44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x101ce0d
and eax, ebx
or eax, esi
test eax, eax
jge 0x101ce22
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101ce1d
and eax, ebx
or eax, esi
mov dword [ebp - 0x10], eax
jmp 0x101ce29
mov dword [ebp - 0x10], 0x80004005
push dword [ebp - 0x10]
push edi
push 0x1009b10
push 0x2000000
push 0x1022a14
call fcn.0100a624
add esp, 0x14
pop ebx
push dword [ebp - 0x14]
call fcn.0101c844
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100b6a5
leave
ret 4
Function at 0x101cf1d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], 0x208
mov dword [ebp - 0x18], esi
cmp eax, esi
jne 0x101cf49
mov eax, 0x80070057
jmp 0x101d07d
push ebx
push edi
mov dword [eax], esi
mov ebx, 0xffff
mov edi, 0x80070000
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push 8
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x101cfa0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x101cf88
and eax, ebx
or eax, edi
test eax, eax
jge 0x101cf99
call esi
test eax, eax
jle 0x101cf94
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
jmp 0x101cfa0
mov dword [ebp - 4], 0x80004005
xor esi, esi
cmp dword [ebp - 4], esi
jl 0x101d045
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0xc]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
test esi, esi
jne 0x101cfd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x101d00d
cmp esi, dword [ebp - 0x18]
jne 0x101d00d
cmp dword [ebp - 0x14], 0
je 0x101d00d
test esi, esi
jne 0x101d014
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101cfef
and eax, ebx
or eax, edi
test eax, eax
jge 0x101d004
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101cfff
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
jmp 0x101d014
mov dword [ebp - 4], 0x80004005
jmp 0x101d014
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], 0
mov dword [ebp - 0x18], esi
jl 0x101d045
cmp dword [ebp - 0x10], 0
je 0x101d045
xor esi, esi
cmp dword [ebp - 8], esi
je 0x101d03b
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
add dword [ebp - 0xc], 0x208
mov dword [ebp - 8], esi
inc dword [ebp - 0x14]
xor esi, esi
cmp dword [ebp - 4], esi
jl 0x101d062
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x101cf57
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 8], esi
pop edi
pop ebx
cmp dword [ebp - 8], esi
je 0x101d07a
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop esi
leave
ret 4
Function at 0x101e6cc
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push edi
push 0x63
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x101e6fc
cmp ebx, edi
jl 0x101e770
mov ebx, 0xc0000001
jmp 0x101e770
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x101e71f
mov ebx, 0xc000009a
jmp 0x101e757
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 0x63
call esi
mov ebx, eax
test ebx, ebx
jl 0x101e757
movzx eax, word [edi]
mov ecx, dword [ebp + 0x10]
add eax, 2
mov dword [ecx], eax
cmp eax, dword [ebp + 0xc]
jbe 0x101e748
mov ebx, 0xc0000023
jmp 0x101e757
push eax
push dword [edi + 4]
push dword [ebp + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
je 0x101e770
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
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x101e7c6
Capabilities:
Get process heap flags
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1022018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], esi
call fcn.0101f5ac
test al, al
jne 0x101e7f1
xor eax, eax
jmp 0x101e93c
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x101fedc
push 0x101feb6
push esi
call fcn.0101edc4
mov ebx, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test eax, eax
jl 0x101e921
cmp dword [ebp - 0x40], 4
jb 0x101e921
push dword [ebp - 0x3c]
shr dword [ebp - 0x40], 1
call sub.msvcrt.dll__wcslwr
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x101fe80
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call fcn.0100b710
add esp, 0x1c
cmp eax, 3
jne 0x101e921
cmp dword [ebp - 0x54], esi
jne 0x101e921
cmp dword [ebp - 0x4c], esi
jne 0x101e921
cmp dword [ebp - 0x48], esi
jne 0x101e921
lea eax, [ebp - 0x50]
push eax
push 0x101fe3e
call fcn.0101ef10
test eax, eax
jl 0x101e921
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [ebp - 0x3c]
push esi
push dword [eax + 0x18]
call ebx
mov edx, dword [ebp - 0x50]
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xa
stosd dword es:[edi], eax
pop ecx
xor eax, eax
push 0x28
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.0101f4b8
cmp eax, esi
pop edi
jge 0x101e8dc
cmp eax, 0xc000003a
jmp 0x101e8e0
cmp dword [ebp - 0x1c], 7
jne 0x101e921
push 0x101fdfc
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push 0x20001
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x6c], 0x18
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp dword [ebp - 0x3c], esi
je 0x101e938
push dword [ebp - 0x3c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call ebx
mov eax, dword [ebp - 0x44]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100b6a5
leave
ret
Function at 0x101e97a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push 0x101fe3e
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20001
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
mov ebx, eax
cmp ebx, edi
jge 0x101e9f6
cmp ebx, 0xc0000017
je 0x101ea8a
cmp ebx, 0xc000009a
je 0x101ea8a
mov ebx, 0xc0000452
jmp 0x101ea8a
push dword [ebp - 4]
call fcn.0101e94e
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], edi
call esi
mov esi, dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, 0xc0000023
je 0x101ea33
cmp ebx, edi
jl 0x101ea8a
mov ebx, 0xc0000001
jmp 0x101ea8a
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
add ecx, 2
push ecx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x101ea5b
mov ebx, 0xc000009a
jmp 0x101ea8a
mov dword [ebp - 0x10], eax
mov ax, word [ebp - 0xc]
mov word [ebp - 0x12], ax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, edi
jl 0x101ea8a
movzx ecx, word [ebp - 0x14]
mov eax, dword [ebp - 8]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 4], edi
je 0x101ea98
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp ebx, edi
jge 0x101eab7
cmp dword [ebp - 8], edi
je 0x101eab7
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x101eb54
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword fs:[0x18]
push ebx
push esi
xor ebx, ebx
push 0x6a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov byte [ebp - 1], bl
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jne 0x101eb95
mov esi, 0xc0000017
jmp 0x101ecbe
test byte [ebp + 0xc], 1
push edi
je 0x101ebb3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0101eac6
mov esi, eax
cmp esi, ebx
jge 0x101ed05
push ebx
push 0x18
lea eax, [ebp - 0x34]
push eax
push 7
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
cmp esi, ebx
jl 0x101eca7
mov dword [ebp + 0xc], ebx
cmp dword [ebp - 0x34], ebx
jbe 0x101eca2
push ebx
push dword [ebp + 0xc]
push 0x101ffd8
push 0x35
push dword [ebp - 0x14]
call fcn.0100b7c5
add esp, 0x14
cmp dword [ebp - 8], ebx
je 0x101ec0c
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
call fcn.0101f190
test eax, eax
jl 0x101ec8e
mov eax, dword [ebp - 8]
cmp dword [eax], 1
jne 0x101ec8e
mov dword [ebp - 0x1c], ebx
cmp dword [eax + 4], ebx
jbe 0x101ec8e
add eax, 0x48
push 4
pop ecx
mov edi, 0x1001560
lea esi, [eax + 8]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x101ec54
cmp byte [ebp - 1], bl
jne 0x101ec69
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ecx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add eax, 0x90
cmp edx, dword [ecx + 4]
jb 0x101ec2f
jmp 0x101ec8e
lea eax, [ebp - 0x18]
push eax
call fcn.0101f60c
test eax, eax
jl 0x101ecfc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call fcn.0101f078
test eax, eax
jl 0x101ecfc
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x34]
jb 0x101ebd8
cmp byte [ebp - 1], bl
jne 0x101ed03
mov esi, 0xc0000452
push dword [ebp - 0x14]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
cmp dword [ebp - 8], ebx
je 0x101ecd9
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x18], ebx
je 0x101ecf4
push dword [ebp - 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0xc0000451
jmp 0x101eca7
xor esi, esi
cmp dword [ebp + 8], ebx
jne 0x101ed0d
mov dword [ebp - 0xc], ebx
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x101ffd8
push 0x35
push edi
call fcn.0100b7c5
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [eax], edi
jmp 0x101ecbd
Function at 0x101edc4
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
push edi
push dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x10], ebx
je 0x101ee12
lea eax, [ebp - 4]
push eax
push 0x20019
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0101ed4c
mov edi, eax
cmp edi, ebx
jl 0x101eed7
jmp 0x101ee18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ntdll.dll_NtQueryValueKey]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, 0xc0000023
je 0x101ee4c
cmp edi, ebx
jl 0x101eed6
mov edi, 0xc0000001
jmp 0x101eed6
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
mov ebx, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x101eeb7
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0xc]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
jl 0x101eed6
mov esi, dword [ebp - 8]
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0x14]
je 0x101ee96
mov edi, 0xc0000024
jmp 0x101eed6
sub dword [ebp + 0xc], 0xc
mov eax, dword fs:[0x18]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
xor edi, edi
push edi
push dword [eax + 0x18]
call ebx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp eax, edi
jne 0x101eebe
mov edi, 0xc000009a
jmp 0x101eed6
push dword [ebp + 0xc]
add esi, 0xc
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ecx], eax
pop esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x101eee6
push eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 8], 0
je 0x101ef03
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop ebx
leave
ret 0x18
Function at 0x101ef10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call edi
mov ebx, dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
cmp eax, esi
jl 0x101f06b
push esi
lea eax, [ebp - 0x10]
push eax
call edi
xor edi, edi
mov dword [ebp - 8], esi
jmp 0x101efb7
cmp dword [ebp - 0xc], esi
je 0x101ef92
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
lea edi, [eax + 2]
mov word [ebp - 0xe], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x101f030
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov dword [ebp + 8], eax
cmp eax, 0xc0000023
je 0x101ef77
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jl 0x101f04d
movzx eax, word [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shr eax, 1
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov word [ebp - 0xe], di
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jge 0x101efb7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp + 8], esi
jmp 0x101f037
mov dword [ebp + 8], 0xc000009a
cmp dword [ebp - 4], esi
je 0x101f048
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jge 0x101f068
cmp dword [ebp - 0xc], esi
je 0x101f068
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8