joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10206b0
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 6
mov esi, 0x100540c
lea edi, [ebp - 0x428]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x40c], 0
mov ax, word [0x10015d4]
mov word [ebp - 0x408], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x406]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x31c
push 0
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0101a630
add esp, 0xc
test eax, eax
je 0x1020812
mov edx, dword [ebp + 0xc]
push edx
push 0x1005048
push 0x200
lea eax, [ebp - 0x408]
push eax
call fcn.01011d00
add esp, 0x10
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x1020812
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x108
push ecx
push 0x108
push 0xfffffffffffffff8
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x108
push 0xfffffffffffffff8
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x318
push ecx
push 4
push 0xfffffffffffffff0
push 3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x10207fc
mov dword [ebp - 0x40c], 1
jmp 0x10207de
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x1020772
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret
Function at 0x1020e00
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x760
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xa
mov esi, 0x1005708
lea edi, [ebp - 0x438]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x40c], 0
mov ax, word [0x10015d4]
mov word [ebp - 0x408], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x406]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [ebp - 0x438]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0101a630
add esp, 0xc
test eax, eax
je 0x1020efd
mov ecx, dword [ebp + 0xc]
push ecx
push 0x1005658
push 0x200
lea edx, [ebp - 0x408]
push edx
call fcn.01011d00
add esp, 0x10
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x1020efd
lea edx, [ebp - 0x43c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
shl ecx, 1
push ecx
push 0xfffffffffffffff8
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x1020eeb
mov dword [ebp - 0x40c], 1
jmp 0x1020ecd
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x1020eab
cmp dword [ebp - 0x40c], 0
je 0x1020f6f
push 0x31c
push 0
lea edx, [ebp - 0x760]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x448], eax
lea ecx, [ebp - 0x760]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.01020a70
add esp, 8
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
je 0x1020f6f
lea eax, [ebp - 0x550]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.01010390
push 0x31c
lea eax, [ebp - 0x760]
push eax
call fcn.01020dc0
add esp, 8
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret
Function at 0x102a320
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 0
mov ax, word [0x10015d4]
mov word [ebp - 0x408], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x406]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [0x104e7c0], 1
jne 0x102a3f9
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0xffffffff
je 0x102a3ef
push 0x14
push 0
lea edx, [ebp - 0x41c]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov word [ebp - 0x41c], 1
mov byte [ebp - 0x40e], 0x58
lea eax, [ebp - 0x424]
push eax
push 1
lea ecx, [ebp - 0x41c]
push ecx
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x102a3ef
push 0x400
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010425e0
add esp, 0xc
mov dword [0x104e7c0], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret

Function at 0x102a410
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [0x1006b9c]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x1006ba0]
mov dword [ebp - 0x20], ecx
mov edx, dword [0x1006ba4]
mov dword [ebp - 0x1c], edx
mov eax, dword [0x1006ba8]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x1006bac]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x1006bb0]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x8cb
lea eax, [ebp - 0x24]
push eax
push 8
call fcn.01011700
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x102a4f2
push 8
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.01025880
add esp, 8
test eax, eax
jne 0x102a4b1
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
jmp 0x102a4f2
mov edx, dword [ebp - 4]
add edx, 4
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.01025880
add esp, 8
test eax, eax
jne 0x102a4d6
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
jmp 0x102a4f2
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x1029870
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
jmp 0x102a532
cmp dword [ebp - 4], 0
je 0x102a532
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x102a50e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call fcn.01011d50
add esp, 4
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x102a526
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call fcn.01011d50
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.01011d50
add esp, 4
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret
Function at 0x102d090
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x810], 0
push 0x7fe
push 0
lea eax, [ebp - 0x80e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 0x800
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x102d159
cmp dword [ebp - 0xc], 0
je 0x102d146
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
test eax, eax
je 0x102d146
cmp dword [ebp - 8], 1
jne 0x102d146
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
shr edx, 1
push edx
lea eax, [ebp - 0x810]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
jmp 0x102d157
mov edx, dword [ebp + 0x10]
mov word [edx], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
jmp 0x102d16a
mov ecx, dword [ebp + 0x10]
mov word [ecx], 0
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret

Function at 0x102d180
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x102d1d8
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x102d1f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x102d25a
cmp dword [ebp - 0x10], 0
jne 0x102d251
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
jmp 0x102d25a
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x102d270
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
shl eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret

Function at 0x102fb20
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov ax, word [0x10015d4]
mov word [ebp - 0x208], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x206]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x218]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x1007dc0
push 0x100
lea eax, [ebp - 0x208]
push eax
call fcn.010120f0
add esp, 0x10
lea ecx, [ebp - 0x208]
push ecx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x102fc0d
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x102fc03
push 0x10
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0102fc40
add esp, 8
mov ecx, dword [0x104e76c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret
Function at 0x1031c00
Capabilities:
Enumerate services

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x28], eax
push esi
push edi
mov ecx, 8
mov esi, 0x1007f7c
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0xa
push 4
push 0x1007f5c
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1031dba
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
test eax, eax
jbe 0x1031db0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
push 0x30
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1031da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1031da9
push 0x157
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.01011700
add esp, 0xc
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x1031da5
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 1
push 0x30
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1031d6d
mov dword [ebp - 0x18], 0
jmp 0x1031d43
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
add ecx, 0x24
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x4c]
jge 0x1031d6d
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1031d6b
mov dword [ebp - 0xc], 1
jmp 0x1031d6d
jmp 0x1031d31
cmp dword [ebp - 0x24], 0
je 0x1031d7f
mov eax, dword [ebp - 0x24]
push eax
call fcn.01011d50
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x1031da1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1031da1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1031c85
jmp 0x1031db0
jmp 0x1031db0
jmp 0x1031db0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret
Function at 0x1041c00
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 0
mov ax, word [0x10015d4]
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x100c368
call fcn.010429b0
add esp, 4
cmp dword [ebp + 8], 0
je 0x1041c62
cmp dword [ebp + 0xc], 0
jne 0x1041c67
jmp 0x1041ceb
mov edx, dword [ebp + 8]
push edx
push 0x104debc
push 0x10067cc
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.01011d00
add esp, 0x14
push 0
push 0x100080
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
je 0x1041ceb
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
shl eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret

Function at 0x1041d00
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov ax, word [0x10015d4]
mov word [ebp - 0x110], ax
push 0xfe
push 0
lea ecx, [ebp - 0x10e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x100c3bc
call fcn.010429b0
add esp, 8
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x104ea08
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.01042900
add esp, 0x14
test eax, eax
jne 0x1041ddd
mov dword [ebp - 8], 0x80
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x100c3a0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1041dd3
lea edx, [ebp - 0x110]
push edx
call fcn.01042790
add esp, 4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.MSVCR80.dll__wcsupr]
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x114], eax
cmp dword [ebp + 8], 0
je 0x1041e13
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.01010390
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret
Function at 0x10421b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
push 0x100c498
call fcn.010429b0
add esp, 8
push 0x100b5a8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.01010390
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x100c428
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.01042900
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x104226a
mov dword [ebp - 4], 4
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0x100c41c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1042260
mov ecx, dword [ebp - 0xc]
neg ecx
mov dword [ebp - 0xc], ecx
push 0xa
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR80.dll__ltow]
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x1042280
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x104ea08
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.01042900
add esp, 0x14
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x10], eax
je 0x1042305
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x100c4d8
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x1042328
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1bb
push 0
push 1
call fcn.01028fb0
add esp, 0x10
mov eax, dword [ebp - 0x10]
jmp 0x1042356
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.01020e00
add esp, 0x18
test eax, eax
jne 0x1042353
mov dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x1044610
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0x80
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea edx, [ebp - 0x32c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jne 0x104473e
mov dword [ebp - 0x330], 0x105
lea eax, [ebp - 0x330]
push eax
push 0x10597a8
push 1
mov ecx, dword [ebp + 8]
push ecx
call sub.instapi.dll_GetSQLServiceByName
test eax, eax
jne 0x1044694
mov edx, dword [ebp - 0x32c]
push edx
call fcn.010445e0
add esp, 4
xor eax, eax
jmp 0x1044740
push 0x10597a8
call fcn.0100d600
push eax
push 0x100cb40
push 0x105
lea eax, [ebp - 0x228]
push eax
call fcn.01044420
add esp, 0x14
mov word [ebp - 0x20], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x228]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10446f2
mov eax, dword [ebp - 0x32c]
push eax
call fcn.010445e0
add esp, 4
xor eax, eax
jmp 0x1044740
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0x100cb20
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.010445e0
add esp, 4
mov edx, dword [ebp - 0x32c]
push edx
call fcn.010445e0
add esp, 4
cmp dword [ebp - 4], 0
je 0x1044737
xor eax, eax
jmp 0x1044740
mov eax, 1
jmp 0x1044740
xor eax, eax
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret
Function at 0x1045780
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x688
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x688], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0x22
mov ecx, dword [ebp - 0x688]
call fcn.01045950
push eax
push 0x22
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x100d048
push 0x100d070
push 0x20a
lea edx, [ebp - 0x680]
push edx
call fcn.01011d00
add esp, 0x34
mov word [ebp - 0x26e], 0
mov dword [ebp - 4], 0x105
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x268]
push ecx
push str.MSSQLSERVER
call sub.instapi.dll_GetSQLBinPathByInstName
test eax, eax
jne 0x1045824
mov eax, 0x80004005
jmp 0x1045915
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
push 0x10
push 0
mov eax, dword [ebp - 0x688]
add eax, 0x414
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x688]
add ecx, 0x414
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x268]
push eax
push 0
push 0x4000010
push 1
push 0
push 0
lea ecx, [ebp - 0x680]
push ecx
mov ecx, dword [ebp - 0x688]
call fcn.01045930
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10458a3
mov ecx, dword [ebp - 0x688]
call fcn.01045970
jmp 0x1045913
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x684], eax
push 0
push 0x20a
lea edx, [ebp - 0x680]
push edx
push 0x400
mov eax, dword [ebp - 0x684]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x10458fd
mov word [ebp - 0x26e], 0
lea ecx, [ebp - 0x680]
push ecx
push 0x19e
push 0
push 1
call fcn.01028fb0
add esp, 0x10
jmp 0x1045913
push 0x1002760
push 0x19e
push 0
push 1
call fcn.01028fb0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0x54]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret 8