joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005140
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x10021930]
test eax, eax
je 0x100051f8
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10005180
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1000516c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1000522d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x10021930], eax
sub esp, 8
test eax, eax
jne 0x1000515d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1000516e
Function at 0x10008110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10008168
cmp byte [esi + ebx - 1], 0xa
je 0x1000813c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10021944], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x100081b0
Capabilities:
Get system firmware table

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
mov edx, 1
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x2c
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov ecx, 0x1c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
call sym._resize_table
test eax, eax
je 0x10008410
mov dword [esp + 0xc], 0
mov edi, dword [sym.imp.kernel32.dll_GetSystemFirmwareTable]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x52534d42
call edi
sub esp, 0x10
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x10008410
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x52534d42
call edi
mov eax, dword [ebp - 0x20]
mov ecx, ebx
mov edx, 4
sub esp, 0x10
mov edi, dword [eax + 0x14]
mov dword [esp], esi
mov eax, 2
call sym._get_smbios_string
test eax, eax
je 0x100083c8
mov dword [edi], eax
mov ecx, ebx
mov edx, 5
mov eax, 2
mov dword [edi + 4], str.Base_Board
mov dword [edi + 8], str.Base_Board
mov dword [esp], esi
call sym._get_smbios_string
test eax, eax
je 0x100083e0
mov dword [edi + 0xc], eax
mov ecx, ebx
mov edx, 7
mov eax, 2
mov dword [esp], esi
call sym._get_smbios_string
test eax, eax
je 0x100083f8
mov dword [edi + 0x10], eax
mov ecx, ebx
mov edx, 6
mov eax, 2
mov dword [edi + 0x14], str.Base_Board
mov dword [esp], esi
call sym._get_smbios_string
test eax, eax
je 0x100083b0
mov edx, dword [ebp - 0x24]
mov dword [edi + 0x18], eax
test edx, edx
je 0x100083a0
lea eax, [ebp - 0x1c]
mov dword [esp + 8], edx
mov edi, 0xffffffff
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._eval_cond
test eax, eax
jne 0x10008350
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x18]
mov edi, 1
mov esi, 1
je 0x10008350
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
test byte [0x10021048], 8
jne 0x10008370
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], esi
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp], eax
call sym._free_row_values
jmp 0x10008322
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.created__u_rows_n
mov dword [esp + 8], str.fill_baseboard
mov dword [esp + 4], 0x10021048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10008334
xor edi, edi
mov esi, 1
jmp 0x10008322
mov dword [esp], 0x10023980
call dword [sym.imp.ucrtbase.dll__wcsdup]
jmp 0x100082d4
mov dword [esp], 0x1002393c
call dword [sym.imp.ucrtbase.dll__wcsdup]
jmp 0x10008263
mov dword [esp], str.Base_Board
call dword [sym.imp.ucrtbase.dll__wcsdup]
jmp 0x1000828f
mov dword [esp], str.None
call dword [sym.imp.ucrtbase.dll__wcsdup]
jmp 0x100082ae
mov edi, 0xffffffff
jmp 0x1000833a
Function at 0x1000acb0
Capabilities:
Get routing table

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x20]
push ebx
push ecx
sub esp, 0x3c
mov eax, dword [ecx]
mov dword [ebp - 0x20], 0
mov ebx, dword [sym.imp.iphlpapi.dll_GetIpForwardTable]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 4]
mov dword [esp + 8], 1
mov dword [ebp - 0x34], eax
mov dword [esp + 4], esi
mov dword [esp], 0
call ebx
sub esp, 0xc
cmp eax, 0x7a
jne 0x1000aebe
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1000aebe
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
mov dword [ebp - 0x28], eax
sub esp, 0xc
test eax, eax
jne 0x1000aeb2
mov esi, dword [ebp - 0x30]
mov edx, 1
mov ecx, 0xc
mov eax, dword [esi]
test eax, eax
mov eax, dword [ebp - 0x24]
cmovne edx, dword [esi]
call sym._resize_table
test eax, eax
je 0x1000aeb2
mov edi, dword [esi]
xor ebx, ebx
test edi, edi
je 0x1000ae4b
cmp dword [ebp - 0x34], 1
sbb eax, eax
xor edi, edi
inc eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
lea esi, [eax + 4]
xor eax, eax
mov edi, esi
mov esi, eax
jmp 0x1000adad
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x18]
je 0x1000aea8
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x28], 0xc
inc esi
add edi, 0x38
inc dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x38]
cmp dword [eax], esi
jbe 0x1000ae48
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
add ebx, dword [eax + 0x14]
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_ntohl]
sub esp, 4
call sym._get_ip4_string
mov dword [ebx], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_ntohl]
sub esp, 4
call sym._get_ip4_string
mov edx, dword [ebp - 0x34]
mov dword [ebx + 8], eax
test edx, edx
je 0x1000ad94
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov dword [esp + 8], edx
mov ebx, 0xffffffff
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._eval_cond
test eax, eax
je 0x1000ad88
mov eax, dword [ebp - 0x2c]
inc esi
add edi, 0x38
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._free_row_values
mov eax, dword [ebp - 0x30]
cmp dword [eax], esi
ja 0x1000adad
lea esi, [esi]
mov edi, dword [ebp - 0x2c]
test byte [0x10021048], 8
jne 0x1000ae78
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.created__u_rows_n
mov dword [esp + 8], str.fill_ip4routetable
mov dword [esp + 4], 0x10021048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000ae54
mov ebx, 1
jmp 0x1000ae20
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov ebx, 0xffffffff
jmp 0x1000ae66
Function at 0x1000d170
Capabilities:
Get memory capacity

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
mov edx, 1
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x5c
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov ecx, 0x24
mov eax, esi
call sym._resize_table
test eax, eax
je 0x1000d2c0
mov ebx, dword [esi + 0x14]
lea eax, [ebp - 0x50]
mov dword [ebx], str.BANK_0
mov dword [ebp - 0x50], 0x40
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalMemoryStatusEx]
mov edx, 0x40000000
xor ecx, ecx
sub esp, 4
test eax, eax
je 0x1000d1d2
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], str.Physical_Memory
mov dword [ebx + 0x10], 0x640
mov dword [ebx + 0x14], str.DIMM_0
mov dword [ebx + 0x18], 0x90008
mov dword [ebx + 0x1c], 0x1002382a
mov dword [ebx + 0x20], 0x1002382a
test edi, edi
je 0x1000d2b0
lea eax, [ebp - 0x54]
mov dword [esp + 8], edi
mov edi, 0xffffffff
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], esi
call sym._eval_cond
test eax, eax
jne 0x1000d268
mov eax, dword [ebp - 0x4c]
or eax, dword [ebp - 0x50]
mov edi, 1
mov ebx, 1
je 0x1000d268
test byte [0x10021048], 8
jne 0x1000d283
mov dword [esi + 0xc], ebx
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 4], 0
xor ebx, ebx
mov dword [esp], esi
call sym._free_row_values
test byte [0x10021048], 8
je 0x1000d250
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.created__u_rows_n
mov dword [esp + 8], str.fill_physicalmemory
mov dword [esp + 4], 0x10021048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000d250
xor edi, edi
mov ebx, 1
jmp 0x1000d247
mov edi, 0xffffffff
jmp 0x1000d253
Function at 0x1000ff40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x20e]
sub esp, 0x22c
mov dword [esp + 0x1c], 0x105
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
jne 0x1000ffb0
mov dword [esp], str.NTFS
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x1000ffc0
Capabilities:
Get disk size

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x6c
mov word [ebp - 0x3a], ax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x46], 0x5c005c
mov dword [ebp - 0x42], 0x5c002e
mov dword [ebp - 0x3e], 0x3a0041
mov dword [ebp - 0x50], 0x20000000
mov dword [ebp - 0x4c], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
movzx eax, word [esi]
sub esp, 0x10
mov word [ebp - 0x3e], ax
lea eax, [ebp - 0x46]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x100100c3
mov esi, eax
lea eax, [ebp - 0x54]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x14], 0x28
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x700a0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
jne 0x100100d8
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x100100b7
Function at 0x10010150
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x40]
lea esi, [ebp - 0x3c]
push ebx
sub esp, 0x5c
mov dword [edx], 1
mov ebx, dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x3c], 0xffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov dword [esp], 0x6b
call ebx
sub esp, 0x18
cmp eax, 0xc0000004
jne 0x10010290
mov ecx, dword [ebp - 0x40]
mov dword [esp], ecx
mov dword [ebp - 0x44], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x44]
test eax, eax
je 0x100102ce
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [ebp - 0x44], eax
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov dword [esp], 0x6b
call ebx
mov edx, dword [ebp - 0x44]
sub esp, 0x18
test eax, eax
mov edi, eax
jne 0x10010280
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], 0
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x44], eax
xor eax, eax
test ecx, ecx
jne 0x10010235
jmp 0x10010308
inc esi
mov ebx, 1
test byte [ecx + 8], 1
cmovne edi, ebx
add eax, dword [ecx + 4]
cmp dword [ebp - 0x44], eax
jbe 0x10010252
lea ecx, [edx + eax]
mov ebx, dword [ecx]
test ebx, ebx
je 0x10010220
cmp ebx, 3
sete bl
add eax, dword [ecx + 4]
movzx ebx, bl
add dword [ebp - 0x48], ebx
cmp dword [ebp - 0x44], eax
ja 0x10010235
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10010264
mov dword [eax], esi
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x48]
test edi, edi
mov dword [eax], edx
lea eax, [esi + esi]
cmovne esi, eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esi, [esi]
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], 0
mov esi, 1
mov dword [esp + 8], 0x2c
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
sub esp, 0x10
test eax, eax
jne 0x10010274
movzx esi, byte [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x2c
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
sub esp, 0x10
test eax, eax
je 0x100102c0
mov esi, 1
jmp 0x10010274
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x1001031e
mov dword [eax], 0
mov eax, dword [ebp - 0x50]
mov dword [eax], 0
jmp 0x10010274
Function at 0x10010560
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov dword [ebp - 0x10], 0x1000
mov dword [esp], 0x1000
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x10010600
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], esi
mov edi, dword [sym.imp.iphlpapi.dll_GetAdaptersAddresses]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], 0
call edi
sub esp, 0x14
cmp eax, 0x6f
jne 0x100105fc
lea esi, [esi]
mov eax, dword [ebp - 0x10]
mov dword [esp], esi
mov ebx, esi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov esi, eax
test eax, eax
je 0x1001060a
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], 0
call edi
sub esp, 0x14
cmp eax, 0x6f
je 0x100105b8
test eax, eax
jne 0x1001060c
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, ebx
mov dword [esp], esi
xor esi, esi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x10011130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x18]
sub esp, 0x30
mov dword [ebp - 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersion
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x100111b4
lea eax, [ebp - 0x10]
lea edi, [ebp - 0x14]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], edi
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x1c], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x100111b4
cmp dword [ebp - 0x10], 1
je 0x100111d8
xor esi, esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100111c9
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
lea ecx, [edx + 2]
mov dword [ebp - 0x20], eax
mov dword [esp], ecx
mov dword [ebp - 0x24], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x100111b4
mov dword [esp + 0x10], eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x14], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
call eax
sub esp, 0x18
test eax, eax
je 0x100111b6
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x100111b4
Function at 0x10011bb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov edx, eax
mov ecx, 0x82
xor eax, eax
mov ebp, esp
push edi
lea edi, [ebp - 0x20e]
sub esp, 0x22c
rep stosd dword es:[edi], eax
xor eax, eax
mov word [edi], ax
lea edi, [ebp - 0x20e]
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x105
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edi, dword [ebp - 4]
leave
ret
Function at 0x10013a50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
mov esi, dword [edi + 4]
test edx, edx
mov dword [ebp - 0x10], edx
je 0x10013ab0
add esi, dword [edi + 0xc]
add esi, 0x1a
lea eax, [esi + esi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x10013aa2
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x10], edx
mov eax, dword [edi]
mov dword [esp + 8], str.SELECT__FROM__s_WHERE__s
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._swprintf.constprop.0
add esp, 0x18
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi + esi + 0x1e]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x10013aa2
xor eax, eax
mov edx, 0x53
jmp 0x10013ad7
movzx edx, word [eax + str.SELECT__FROM]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x10013ad0
cmp word [ebx], 0
mov esi, dword [edi]
mov edx, ebx
je 0x10013af9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x10013af0
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10013b00
add esp, 0x18
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10016580
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10016710
mov edi, dword [esi]
test edi, edi
je 0x100166f8
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x1001671c
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x100166e8
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x100166ae
mov eax, dword [ebp + 8]
mov edx, esi
call sym._create_registrar
test eax, eax
jne 0x100165e8
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10016712
Function at 0x10017d50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], str.SELECT__FROM__s_WHERE__s
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vswprintf]
leave
ret