joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push esi
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401d0d
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401d0d
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
call fcn.004028d0
pop ecx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401d11
xor eax, eax
jmp 0x401d1b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebp
ret

Function at 0x402017
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
and byte [ebp - 0x104], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x208]
push str.V3Medic.exe
push eax
call fcn.00402c50
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00401c4c
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push eax
push 0x40b498
call dword [0x40b480]
test eax, eax
je 0x40210f
lea eax, [ebp - 0x104]
push eax
call fcn.004028d0
cmp eax, 0x26
pop ecx
jne 0x4020c1
lea eax, [ebp - 0x104]
push eax
call fcn.00401eee
pop ecx
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00402950
lea eax, [ebp - 0x104]
push eax
call fcn.00401b1d
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00401cba
lea eax, [ebp - 0x104]
push eax
call fcn.00401d1f
add esp, 0x1c
test eax, eax
je 0x40210f
lea eax, [ebp - 0x104]
push eax
call fcn.00401df7
pop ecx
pop edi
pop esi
leave
ret
Function at 0x402308
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5710
call fcn.004029b0
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
and byte [ebp - 0x20c], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
and byte [ebp - 0x5710], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x11ff
xor eax, eax
lea edi, [ebp - 0x570f]
and byte [ebp - 0xf10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x2ff
xor eax, eax
lea edi, [ebp - 0xf0f]
mov ebx, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x20c]
push 5
push eax
call fcn.00401ad3
lea eax, [ebp - 0x108]
push eax
call fcn.004028d0
add esp, 0xc
cmp byte [ebp + eax - 0x108], 0x5c
je 0x4023c7
lea eax, [ebp - 0x108]
push eax
call fcn.004028d0
pop ecx
mov byte [ebp + eax - 0x107], 0x5c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00402c50
lea eax, [ebp - 0x108]
push str..exe
push eax
call fcn.00402c50
xor esi, esi
push ebx
lea eax, [ebp - 0x310]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00402950
mov edi, 0x4800
lea eax, [ebp - 0x5710]
push edi
push esi
push eax
call fcn.00402950
mov eax, dword [0x40b46c]
add esp, 0x28
cmp dword [eax], esi
je 0x4024f6
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0x310]
push eax
mov eax, dword [0x40b46c]
push dword [esi + eax]
call fcn.00401074
lea eax, [ebp - 0x5710]
push edi
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040175f
add esp, 0x20
test eax, eax
je 0x4024bb
cmp dword [ebp - 4], 0
jne 0x40246e
lea eax, [ebp - 0x5710]
push eax
call fcn.00402253
jmp 0x402486
cmp dword [ebp - 4], 1
je 0x40247a
cmp dword [ebp - 4], 2
jne 0x40248b
lea eax, [ebp - 0x5710]
push eax
call fcn.004021bf
test eax, eax
pop ecx
je 0x4024bb
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0xf10]
push eax
lea eax, [ebp - 0x5710]
push eax
call fcn.00401074
lea eax, [ebp - 0xf10]
push eax
call fcn.004022e5
add esp, 0x18
test eax, eax
jne 0x4024f6
inc dword [ebp - 4]
push ebx
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00402950
push edi
lea eax, [ebp - 0x5710]
push 0
push eax
call fcn.00402950
mov eax, dword [ebp - 4]
add esp, 0x18
mov esi, eax
mov eax, dword [0x40b46c]
shl esi, 2
cmp dword [esi + eax], 0
jne 0x402421
call fcn.00402157
mov edi, eax
lea eax, [ebp - 0x5710]
push eax
call fcn.004028d0
cmp eax, 0x15
pop ecx
jb 0x402561
lea eax, [ebp - 0x5710]
push eax
call fcn.004021bb
test eax, eax
pop ecx
je 0x402561
lea eax, [ebp - 0xf10]
push 0x3a
push eax
call fcn.00402df0
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x402561
and byte [esi], 0
lea eax, [ebp - 0xf10]
push eax
call fcn.00402bf1
cmp edi, eax
pop ecx
je 0x402561
push eax
call fcn.00402113
lea eax, [ebp - 0x108]
inc esi
push eax
push esi
call fcn.0040180c
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push 0xf003f
push esi
push str.SOFTWAREMicrosoftOle
push 0x80000002
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40265c
xor eax, eax
jmp 0x40268c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402681
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x40268f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x10]
push edi
push eax
call esi
movzx edi, word [ebp - 4]
cmp edi, 0x31
jle 0x4026b4
sub edi, 0x32
jmp 0x4026b7
add edi, 0xa
lea eax, [ebp - 0x10]
push eax
call esi
movzx eax, word [ebp - 4]
cmp eax, edi
jne 0x4026b7
call fcn.00402620
test eax, eax
mov dword [0x40b46c], 0x408030
jne 0x4026e2
mov dword [0x40b46c], 0x4080b0
call fcn.00401140
call fcn.004025e8
call fcn.00401c34
test eax, eax
jne 0x402709
call fcn.00402017
call fcn.00402566
call fcn.00401976
jmp 0x4027c5
push dword [ebp + 0x10]
call fcn.004028d0
test eax, eax
pop ecx
je 0x402781
push str.start
push dword [ebp + 0x10]
call fcn.00402d60
pop ecx
test eax, eax
pop ecx
je 0x402781
call fcn.004025c0
and byte [ebp - 0x168], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x167]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x168]
push eax
push 0x40b498
call fcn.00401c4c
lea eax, [ebp - 0x168]
push eax
call fcn.004028d0
add esp, 0xc
cmp eax, 0x26
jne 0x402777
lea eax, [ebp - 0x168]
push eax
call fcn.00401df7
pop ecx
call fcn.00402566
push 1
pop eax
jmp 0x4027c7
xor edi, edi
push 0x44
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.00402950
mov esi, 0x40b498
push str.__start
push esi
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], 5
call fcn.00402c50
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop edi
pop esi
leave
ret 0x10
Function at 0x10001660
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]
test eax, eax
je 0x10001721
mov edi, eax
lea eax, [ebp - 0x10]
mov dword [esp + 8], 0
mov esi, dword [sym.imp.iphlpapi.dll_GetAdaptersAddresses]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], 0
call esi
sub esp, 0x14
cmp eax, 0x6f
jne 0x10001704
lea esi, [esi]
mov eax, dword [ebp - 0x10]
mov dword [esp], edi
mov ebx, edi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edi, eax
test eax, eax
je 0x10001712
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], 0
call esi
sub esp, 0x14
cmp eax, 0x6f
je 0x100016c0
test eax, eax
jne 0x10001718
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, ebx
lea esi, [esi]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret

Function at 0x100017b0
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 0x100018b3
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 0x100018c8
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 0x100018a7
Function at 0x100018e0
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 0x10001950
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 0x10001960
Capabilities:
Get disk information

Disassembly:
push ebp
mov edx, eax
mov ecx, 0x82
xor eax, eax
mov ebp, esp
push edi
lea edi, [ebp - 0x20c]
sub esp, 0x22c
mov dword [ebp - 8], 0
mov dword [ebp - 0x20e], 0
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20e]
mov dword [esp], edx
mov dword [esp + 4], edi
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 0x10001d10
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 0x10001e28
lea eax, [ebp - 0x10]
lea edi, [ebp - 0x14]
mov dword [esp + 4], ebx
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x18]
sub esp, 0x18
test eax, eax
jne 0x10001d99
cmp dword [ebp - 0x10], 1
je 0x10001dc0
mov dword [ebp - 0x1c], 0
test edx, edx
je 0x10001db0
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
add eax, 2
mov dword [ebp - 0x20], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x24]
test eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, eax
je 0x10001e28
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [ebp - 0x20], ecx
mov dword [esp], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
call esi
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
sub esp, 0x18
test eax, eax
je 0x10001da0
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
lea esi, [esi]
mov edx, dword [ebp - 0x18]
jmp 0x10001d99
Function at 0x10003630
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 [ebp - 0x4c], eax
mov ebx, dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x3c], 0xffff
mov dword [edx], 1
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 0x10003778
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 0x100037b6
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 0x10003768
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x48], 0
xor eax, eax
xor esi, esi
mov dword [ebp - 0x44], ecx
test ecx, ecx
jne 0x10003719
jmp 0x100037f0
mov ebx, 1
add esi, 1
test byte [ecx + 8], 1
cmovne edi, ebx
mov ebx, dword [ebp - 0x44]
add eax, dword [ecx + 4]
cmp eax, ebx
jae 0x10003738
lea ecx, [edx + eax]
mov ebx, dword [ecx]
test ebx, ebx
je 0x10003700
cmp ebx, 3
sete bl
add eax, dword [ecx + 4]
movzx ebx, bl
add dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x44]
cmp eax, ebx
jb 0x10003719
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x1000374a
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 0x1000375a
movzx esi, byte [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor eax, eax
xor edx, edx
mov dword [esp + 8], 0x2c
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
sub esp, 0x10
test eax, eax
je 0x100037a8
mov esi, 1
jmp 0x1000375a
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10003816
mov dword [eax], 0
mov eax, dword [ebp - 0x50]
xor esi, esi
mov dword [eax], 0
jmp 0x1000375a
mov eax, dword [ebp - 0x50]
xor esi, esi
mov dword [eax], 0
jmp 0x1000375a
Function at 0x1000ee00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
mov ecx, dword [ebp + 8]
movzx esi, word [edx]
test ebx, ebx
je 0x1000ef80
test ecx, ecx
je 0x1000eee8
test si, si
je 0x1000ef70
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x1000ee30
sub eax, edx
sar eax, 1
cmp word [ebx], 0
je 0x1000ee57
mov esi, ebx
lea esi, [esi]
add esi, 2
cmp word [esi], 0
jne 0x1000ee48
sub esi, ebx
sar esi, 1
add eax, esi
cmp word [ecx], 0
je 0x1000ee6f
mov esi, ecx
nop
add esi, 2
cmp word [esi], 0
jne 0x1000ee60
sub esi, ecx
sar esi, 1
add eax, esi
add eax, 0x4a
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], eax
add eax, eax
mov dword [ebp - 0x14], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
mov esi, eax
je 0x1000efe4
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.SELECT__FROM___QUALIFIERS_WHERE_Class_s_AND_Member_s_AND_Name_s
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.1000edb0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.10011770
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.ucrtbase.dll_free]
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x1000ef80
test si, si
je 0x1000efdd
mov eax, edx
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x1000ef00
sub eax, edx
sar eax, 1
cmp word [ebx], 0
je 0x1000ef27
mov ecx, ebx
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x1000ef18
sub ecx, ebx
sar ecx, 1
add eax, ecx
lea ecx, [eax + 0x3c]
mov dword [ebp - 0x14], edx
lea eax, [ecx + ecx]
mov dword [ebp - 0x10], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x1000efe4
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], str.SELECT__FROM___QUALIFIERS_WHERE_Class_s_AND_Member_s
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.1000edb0
jmp 0x1000eeb9
xor eax, eax
jmp 0x1000ee3d
mov eax, edx
mov ebx, 0x2c
mov ecx, 0x58
test si, si
je 0x1000efab
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000ef98
sub eax, edx
lea ecx, [eax + 0x58]
sar eax, 1
lea ebx, [eax + 0x2c]
mov dword [ebp - 0x10], edx
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x1000efe4
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], str.SELECT__FROM___QUALIFIERS_WHERE_Class_s
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.1000edb0
jmp 0x1000eeb9
xor eax, eax
jmp 0x1000ef0d
mov ebx, 0x8007000e
jmp 0x1000eed7
Function at 0x1000fe00
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x30]
lea esi, [ebp - 0x2c]
push ebx
sub esp, 0x2c
mov dword [ebp - 0x30], 0x10
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
je 0x1000fe70
movzx eax, word [ebp - 0x2c]
test ax, ax
je 0x1000fe54
mov ebx, dword [sym.imp.ucrtbase.dll_towupper]
mov edi, esi
lea esi, cs:[esi]
mov dword [esp], eax
add edi, 2
call ebx
mov word [edi - 2], ax
movzx eax, word [edi]
test ax, ax
jne 0x1000fe40
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SysAllocString]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10017da0
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
Function at 0x1001a850
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 0x1001a8b0
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 0x1001a8a2
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 fcn.10017da0
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 0x1001a8a2
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.SELECT__FROM]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x1001a8c8
cmp word [ebx], 0
mov esi, dword [edi]
mov edx, ebx
je 0x1001a8f1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x1001a8e8
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001a8f8
add esp, 0x18
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x100207d0
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 [0x100350e0]
test eax, eax
je 0x10020888
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10020810
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 0x100207fc
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x100208bd
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100350e0], eax
sub esp, 8
test eax, eax
jne 0x100207ed
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x100207fe