joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010ee1f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1019f010]
jne 0x1010ee29
repz ret
jmp fcn.10115861

Function at 0x10121f7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1019f010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10117467
and dword [ebp - 0x14], 0
cmp dword [0x101a4d34], 0
mov dword [ebp - 0x18], eax
jne 0x10122032
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x101220da
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10178450
push ebx
call edi
test eax, eax
je 0x101220da
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x101a4d34], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x101a4d38], eax
call edi
push eax
call esi
push 0x10178410
push ebx
mov dword [0x101a4d3c], eax
call edi
push eax
call esi
mov dword [0x101a4d44], eax
test eax, eax
je 0x10122032
push 0x101783f8
push ebx
call edi
push eax
call esi
mov dword [0x101a4d40], eax
mov eax, dword [0x101a4d40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1012208b
cmp dword [0x101a4d44], ecx
je 0x1012208b
push eax
call esi
push dword [0x101a4d44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1012208b
test ebx, ebx
je 0x1012208b
call edi
test eax, eax
je 0x10122082
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10122082
test byte [ebp - 8], 1
jne 0x1012208b
or dword [ebp + 0x10], 0x200000
jmp 0x101220be
mov eax, dword [0x101a4d38]
cmp eax, dword [ebp - 0x18]
je 0x101220be
push eax
call esi
test eax, eax
je 0x101220be
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x101220be
mov eax, dword [0x101a4d3c]
cmp eax, dword [ebp - 0x18]
je 0x101220be
push eax
call esi
test eax, eax
je 0x101220be
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x101a4d34]
call esi
test eax, eax
je 0x101220da
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x101220dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010ee1f
leave
ret
Function at 0x4100e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428044]
jne 0x4100ef
repz ret
jmp fcn.00411dd9

Function at 0x41ada1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041213b
and dword [ebp - 4], 0
cmp dword [0x429f30], 0
mov ebx, eax
jne 0x41ae52
push 0x422b78
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41af03
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x422b6c
push edi
call esi
test eax, eax
je 0x41af03
push eax
call fcn.004120c9
mov dword [esp], 0x422b5c
push edi
mov dword [0x429f30], eax
call esi
push eax
call fcn.004120c9
mov dword [esp], 0x422b48
push edi
mov dword [0x429f34], eax
call esi
push eax
call fcn.004120c9
mov dword [esp], 0x422b2c
push edi
mov dword [0x429f38], eax
call esi
push eax
call fcn.004120c9
pop ecx
mov dword [0x429f40], eax
test eax, eax
je 0x41ae52
push 0x422b14
push edi
call esi
push eax
call fcn.004120c9
pop ecx
mov dword [0x429f3c], eax
mov eax, dword [0x429f3c]
cmp eax, ebx
je 0x41aeaa
cmp dword [0x429f40], ebx
je 0x41aeaa
push eax
call fcn.00412144
push dword [0x429f40]
mov esi, eax
call fcn.00412144
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41aeaa
test edi, edi
je 0x41aeaa
call esi
test eax, eax
je 0x41aea1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41aea1
test byte [ebp - 0xc], 1
jne 0x41aeaa
or dword [ebp + 0x10], 0x200000
jmp 0x41aee3
mov eax, dword [0x429f34]
cmp eax, ebx
je 0x41aee3
push eax
call fcn.00412144
pop ecx
test eax, eax
je 0x41aee3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41aee3
mov eax, dword [0x429f38]
cmp eax, ebx
je 0x41aee3
push eax
call fcn.00412144
pop ecx
test eax, eax
je 0x41aee3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429f30]
call fcn.00412144
pop ecx
test eax, eax
je 0x41af03
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41af05
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x409330
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40933d
xor eax, eax
pop esi
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x40934f
pop esi
ret
cmp ecx, 1
jne 0x40935d
cmp byte [esi], 0x5c
jne 0x40935d
xor eax, eax
pop esi
ret
push esi
call fcn.004090e0
add esp, 4
test eax, eax
je 0x409371
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
pop esi
ret

Function at 0x40b710
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x40b72e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x40b723
pop esi
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10001730
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 edi, eax
test eax, eax
je 0x100017d0
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
mov esi, dword [sym.imp.iphlpapi.dll_GetAdaptersAddresses]
call esi
sub esp, 0x14
cmp eax, 0x6f
jne 0x100017cc
lea esi, [esi]
mov eax, dword [ebp - 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
mov ebx, edi
call dword [sym.imp.ucrtbase.dll_realloc]
mov edi, eax
test eax, eax
je 0x100017da
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 0x10001788
test eax, eax
jne 0x100017dc
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, ebx
mov dword [esp], edi
xor edi, edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret

Function at 0x10001880
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
push ebx
lea eax, [ebp - 0x50]
sub esp, 0x6c
mov ebx, edx
mov dword [ebp - 0x46], 0x5c005c
mov dword [ebp - 0x42], 0x5c002e
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
mov dword [ebp - 0x3e], 0x3a0041
mov word [ebp - 0x3a], 0
mov dword [ebp - 0x50], 0x20000000
mov dword [ebp - 0x4c], 0
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
mov ax, 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 0x10001981
mov esi, eax
lea eax, [ebp - 0x54]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x1c], 0
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 0x10001998
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push eax
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 0x10001977
Function at 0x100019b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x22c
lea ebx, [ebp - 0x20e]
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 0x10001a18
mov dword [esp], str.NTFS
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10001a30
Capabilities:
Get disk information

Disassembly:
push ebp
mov edx, 0x20a
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
lea ebx, [ebp - 0x216]
sub esp, 0x22c
mov edi, ebx
test bl, 2
jne 0x10001ab8
mov ecx, edx
xor eax, eax
shr ecx, 2
and edx, 2
rep stosd dword es:[edi], eax
je 0x10001a63
mov word [edi], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
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], ebx
call dword [sym.imp.ucrtbase.dll__wcsdup]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov word [ebp - 0x216], 0
lea edi, [ebp - 0x214]
mov edx, 0x208
jmp 0x10001a50
Function at 0x10001b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
lea eax, [ebp - 0x18]
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 0x10001c18
lea eax, [ebp - 0x10]
lea edi, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [ebp - 0x1c], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x10001c18
cmp dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x18]
je 0x10001c20
xor esi, esi
test edx, edx
je 0x10001c07
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x18]
jmp 0x10001bf7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
lea ecx, [eax + 2]
mov dword [esp], ecx
mov dword [ebp - 0x20], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x20]
mov esi, eax
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x10001c18
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
call eax
sub esp, 0x18
test eax, eax
jne 0x10001c78
mov edx, dword [ebp - 0x18]
jmp 0x10001bf9
mov dword [esp], esi
xor esi, esi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10001c6f
Function at 0x10003380
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x40]
sub esp, 0x5c
lea esi, [ebp - 0x3c]
mov dword [edx], 1
mov ebx, dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
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
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x3c], 0xffff
call ebx
sub esp, 0x18
cmp eax, 0xc0000004
jne 0x100034c0
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 0x100034c0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov dword [esp], 0x6b
mov dword [ebp - 0x44], eax
call ebx
mov edx, dword [ebp - 0x44]
sub esp, 0x18
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x100034b0
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x10003510
xor eax, eax
mov dword [ebp - 0x44], 0
xor esi, esi
jmp 0x1000345f
inc esi
test byte [ecx + 8], 1
je 0x10003456
mov dword [ebp - 0x48], 1
mov ebx, dword [ecx + 4]
add eax, ebx
cmp edi, eax
jbe 0x10003480
lea ecx, [edx + eax]
mov ebx, dword [ecx]
test ebx, ebx
je 0x10003448
cmp ebx, 3
sete bl
and ebx, 0xff
add dword [ebp - 0x44], ebx
mov ebx, dword [ecx + 4]
add eax, ebx
cmp edi, eax
ja 0x1000345f
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10003492
mov dword [eax], esi
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x44]
mov dword [eax], edi
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x100034f5
lea esp, [ebp - 0xc]
add esi, esi
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 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 0x10003500
movzx esi, byte [ebp - 0x10]
and esi, 0xff
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov esi, 1
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10003526
mov dword [eax], 0
mov eax, dword [ebp - 0x50]
xor esi, esi
mov dword [eax], 0
jmp 0x100034f5
Function at 0x1000ec60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, eax
push ebx
mov ebx, ecx
sub esp, 0x20
test ebx, ebx
mov ecx, dword [ebp + 8]
mov si, word [edx]
je 0x1000edd8
test ecx, ecx
je 0x1000ed48
test si, si
je 0x1000edd0
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x1000ec90
sub eax, edx
sar eax, 1
cmp word [ebx], 0
je 0x1000ecb7
mov esi, ebx
lea esi, [esi]
add esi, 2
cmp word [esi], 0
jne 0x1000eca8
sub esi, ebx
sar esi, 1
add eax, esi
cmp word [ecx], 0
je 0x1000eccf
mov esi, ecx
nop
add esi, 2
cmp word [esi], 0
jne 0x1000ecc0
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 [esp], eax
mov dword [ebp - 0x14], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x14]
mov esi, eax
test eax, eax
mov ecx, dword [ebp + 8]
je 0x1000ee3a
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.1000ec10
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.10011350
mov dword [esp], esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x10]
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x1000edd8
test si, si
je 0x1000ee27
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x1000ed60
sub eax, edx
sar eax, 1
cmp word [ebx], 0
je 0x1000ed87
mov ecx, ebx
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x1000ed78
sub ecx, ebx
sar ecx, 1
add eax, ecx
lea ecx, [eax + 0x3c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
lea eax, [ecx + ecx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x1000ee3a
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.SELECT__FROM___QUALIFIERS_WHERE_Class_s_AND_Member_s
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.1000ec10
jmp 0x1000ed19
xor eax, eax
jmp 0x1000ec9d
test si, si
mov eax, edx
je 0x1000ee2e
nop
add eax, 2
cmp word [eax], 0
jne 0x1000ede0
sub eax, edx
mov ecx, eax
add eax, 0x58
sar ecx, 1
lea ebx, [ecx + 0x2c]
mov dword [esp], eax
mov dword [ebp - 0x10], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x1000ee3a
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], str.SELECT__FROM___QUALIFIERS_WHERE_Class_s
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.1000ec10
jmp 0x1000ed19
xor eax, eax
jmp 0x1000ed6d
mov eax, 0x58
mov ebx, 0x2c
jmp 0x1000edf5
mov eax, 0x8007000e
jmp 0x1000ed3b
Function at 0x1000fc60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x30]
sub esp, 0x2c
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], 0x10
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
test eax, eax
push ecx
push ecx
je 0x1000fcd0
mov eax, dword [ebp - 0x2c]
test ax, ax
je 0x1000fcb9
mov edi, esi
mov ebx, dword [sym.imp.ucrtbase.dll_towupper]
lea esi, [esi]
and eax, 0xffff
add edi, 2
mov dword [esp], eax
call ebx
mov word [edi - 2], ax
mov ax, word [edi]
test ax, ax
jne 0x1000fca0
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SysAllocString]
push edx
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 0x10017720
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 + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], str.SELECT__FROM__s_WHERE__s
mov dword [esp + 8], eax
mov dword [esp], 4
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vswprintf]
mov esp, ebp
pop ebp
ret
Function at 0x1001a530
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 0x1001a590
mov eax, dword [edi + 0xc]
add esi, eax
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 0x1001a584
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.10017720
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 0x1001a584
xor eax, eax
mov edx, 0x53
jmp 0x1001a5b7
mov dx, word [eax + str.SELECT__FROM]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x1001a5b0
cmp word [ebx], 0
mov esi, dword [edi]
mov edx, ebx
je 0x1001a5d9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x1001a5d0
xor eax, eax
lea esi, [esi]
nop
mov cx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001a5e0
add esp, 0x18
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x10020710
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 0x100207b8
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
test eax, eax
push edx
jns 0x10020748
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 0x1002073a
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
test eax, eax
push edi
je 0x100207ea
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100350e0], eax
test eax, eax
push ecx
push ecx
jne 0x1002072d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1002073c