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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4d8
mov qword [rsp + 0x4c0], 0xfffffffffffffffe
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x4c8], rax
lea rax, [rsp + 0x60]
lea rcx, [0x010059c8]
mov rdi, rax
mov rsi, rcx
mov ecx, gethostbyname
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x58], 0
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x4f0]
call fcn.01020c30
test eax, eax
je 0x10281cb
mov r8d, 0x1c
xor edx, edx
lea rcx, [rsp + 0x38]
call sub.MSVCR80.dll_memset
mov dword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x4f0]
movzx eax, word [rax + 0xa4c]
cmp eax, 9
jl 0x102801c
mov rax, qword [rsp + 0x4f0]
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0xa8]
call fcn.0101fbe0
nop
lea rdx, [rsp + 0x500]
lea rcx, [rsp + 0xa8]
call fcn.0102b6e0
lea rcx, [0x01069050]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x01069050]
lea rcx, [rsp + 0xa8]
call fcn.0101fc40
lea rdx, [0x01005880]
mov rcx, qword [rsp + 0x4f0]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
mov dword [rsp + 0xa0], eax
lea rcx, [rsp + 0xa8]
call fcn.0101fc10
jmp 0x1028089
movzx eax, word [0x01001c50]
mov word [rsp + 0xc0], ax
lea rax, [rsp + 0xc2]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
lea rax, [0x01069050]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x500]
lea r8, [0x01005730]
mov edx, 0x200
lea rcx, [rsp + 0xc0]
call fcn.01016110
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x4f0]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 1
jne 0x10281cb
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 1
mov rcx, qword [rsp + 0x4f0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 2
mov rcx, qword [rsp + 0x4f0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 3
mov rcx, qword [rsp + 0x4f0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, reloc.ODBC32.dll_SQLFreeStmt
mov r8d, 0xfffffffe
mov edx, 4
mov rcx, qword [rsp + 0x4f0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, qword [rsp + 0x4f0]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x10281b4
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x4f8]
call qword [sym.imp.SQLSVC.dll_SHRecMemAdd]
mov eax, dword [rsp + 0x58]
add eax, 1
mov dword [rsp + 0x58], eax
mov r8d, 0x1c
xor edx, edx
lea rcx, [rsp + 0x38]
call sub.MSVCR80.dll_memset
jmp 0x102816f
mov rcx, qword [rsp + 0x4f0]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1028097
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x4c8]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x4d8
pop rdi
pop rsi
ret
Function at 0x1029480
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x40]
lea rcx, [0x01005fc0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1a
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x30], 0
mov r8d, 0x31c
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call sub.MSVCR80.dll_memset
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call fcn.01020c30
test eax, eax
je 0x1029645
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x70]
call fcn.0101fbe0
nop
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x68], eax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x70]
call fcn.0102b6e0
lea rdx, [0x01005c00]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x102963b
mov rax, qword [rsp + 0xc0]
add rax, 0x108
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0xfffffff8
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0xfffffff8
mov edx, 2
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x318
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 3
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x1029624
mov dword [rsp + 0x30], 1
jmp 0x1029607
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1029559
lea rcx, [rsp + 0x70]
call fcn.0101fc10
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x102a220
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
lea rcx, [0x01066a88]
call qword [0x01069178]
test eax, eax
jne 0x102a286
cmp dword [0x010689c0], 0
je 0x102a279
cmp dword [0x01068484], 0
je 0x102a279
lea rdx, [0x01006628]
lea rcx, [0x01001b80]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01066a88]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010689c0], 0
je 0x102a2ad
cmp dword [0x01068484], 0
je 0x102a2ad
lea rdx, [0x01006628]
lea rcx, [0x01001b48]
call qword [sym.imp.MSVCR80.dll_wprintf]
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [0x01069550]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [rsp + 0x34], eax
lea rcx, [0x01066a88]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x102a310
cmp dword [0x01068484], 0
je 0x102a310
lea rdx, [0x01006628]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [rsp + 0x34], 0
je 0x102a322
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x102a6a0
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x3c8
mov qword [rsp + 0x3b0], 0xfffffffffffffffe
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x3b8], rax
lea rax, [rsp + 0x40]
lea rcx, [0x01006820]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2a
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x30], 0
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x3e0]
call fcn.01020c30
test eax, eax
je 0x102a7d5
mov rax, qword [rsp + 0x3e0]
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x78]
call fcn.0101fbe0
nop
lea rdx, [rsp + 0x3e8]
lea rcx, [rsp + 0x78]
call fcn.0102b6e0
lea rdx, [0x01006770]
mov rcx, qword [rsp + 0x3e0]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x102a7cb
movsxd rax, dword [rsp + 0x3f8]
shl rax, 1
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x3f0]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8d, 0xfffffff8
mov edx, 1
mov rcx, qword [rsp + 0x3e0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, qword [rsp + 0x3e0]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x102a7b8
mov dword [rsp + 0x30], 1
jmp 0x102a79b
mov rcx, qword [rsp + 0x3e0]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x102a75d
lea rcx, [rsp + 0x78]
call fcn.0101fc10
cmp dword [rsp + 0x30], 0
je 0x102a851
mov r8d, 0x31c
xor edx, edx
lea rcx, [rsp + 0x90]
call sub.MSVCR80.dll_memset
mov eax, dword [rsp + 0x3e8]
mov dword [rsp + 0x3a8], eax
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x3e0]
call fcn.0102a380
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x102a851
movsxd rax, dword [rsp + 0x408]
lea r8, [rsp + 0x2a0]
mov rdx, rax
mov rcx, qword [rsp + 0x400]
call fcn.0105ab90
mov edx, 0x31c
lea rcx, [rsp + 0x90]
call fcn.0102a890
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x3b8]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x3c8
pop rdi
pop rsi
ret
Function at 0x10362a0
Capabilities:
Manipulate console buffer

Disassembly:
push rdi
sub rsp, 0x460
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x458], rax
mov qword [rsp + 0x448], 0
mov dword [rsp + 0x450], 0
movzx eax, word [0x01001c50]
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
cmp dword [0x010689d8], 1
jne 0x103638b
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x448], rax
cmp qword [rsp + 0x448], 0xffffffffffffffff
je 0x1036381
mov r8d, 0x14
xor edx, edx
lea rcx, [rsp + 0x430]
call sub.MSVCR80.dll_memset
mov word [rsp + 0x430], 1
mov byte [rsp + 0x43e], 0x58
lea r9, [rsp + 0x450]
mov r8d, 1
lea rdx, [rsp + 0x430]
mov rcx, qword [rsp + 0x448]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x1036381
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x400
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.01053650
mov dword [0x010689d8], 0
mov rcx, qword [rsp + 0x458]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x460
pop rdi
ret

Function at 0x10363b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov r8d, 0x8ec
lea rdx, [0x010080a8]
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
call fcn.01014ff0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1036478
mov r8d, reloc.ODBC32.dll_SQLFreeStmt
xor edx, edx
mov rcx, qword [rsp + 0x30]
call sub.MSVCR80.dll_memset
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.01030b10
test eax, eax
jne 0x1036424
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
jmp 0x1036478
mov rax, qword [rsp + 0x30]
add rax, 8
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.01030b10
test eax, eax
jne 0x103644f
mov rax, qword [rsp + 0x30]
mov qword [rax + 8], 0
jmp 0x1036478
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x010355f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR80.dll__beginthreadex]
jmp 0x10364bc
cmp qword [rsp + 0x30], 0
je 0x10364bc
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1036498
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.01015770
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], 0
je 0x10364b2
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.01015770
mov rcx, qword [rsp + 0x30]
call fcn.01015770
add rsp, 0x48
ret
Function at 0x1039650
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x860
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov word [rsp + 0x50], 0
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov dword [rsp + 0x38], 0x800
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x878]
mov rcx, qword [rsp + 0x870]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1039757
cmp dword [rsp + 0x38], 0
je 0x103973a
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR80.dll_wcslen]
test rax, rax
je 0x103973a
cmp dword [rsp + 0x34], 1
jne 0x103973a
mov rax, qword [rsp + 0x888]
mov eax, dword [rax]
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0x880]
call qword [sym.imp.MSVCR80.dll_wcsncpy_s]
jmp 0x1039755
mov rax, qword [rsp + 0x880]
mov word [rax], 0
mov rax, qword [rsp + 0x888]
mov dword [rax], 0
jmp 0x1039772
mov rax, qword [rsp + 0x880]
mov word [rax], 0
mov rax, qword [rsp + 0x888]
mov dword [rax], 0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x860
pop rdi
ret

Function at 0x10397a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x103981d
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x3c]
mov dword [rax], ecx
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1039830
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x10398c1
cmp dword [rsp + 0x3c], 0
jne 0x10398b6
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
jmp 0x10398c1
mov rax, qword [rsp + 0x60]
mov dword [rax], 1
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x10398d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov eax, eax
shl rax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret

Function at 0x1039940
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x103c7d0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x250], 0
movzx eax, word [0x01001c50]
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fe
rep stosb byte [rdi], al
mov r8d, reloc.ODBC32.dll_SQLFreeStmt
xor edx, edx
lea rcx, [rsp + 0x240]
call sub.MSVCR80.dll_memset
mov r9d, 1
lea r8, [0x010095a0]
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x40]
call fcn.01015b10
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x103c8e7
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0
je 0x103c8dc
mov r8d, reloc.ODBC32.dll_SQLFreeStmt
mov rdx, qword [rsp + 0x250]
lea rcx, [rsp + 0x240]
call sub.MSVCR80.dll_memcpy
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rax, [rsp + 0x240]
mov qword [rsp + 0x250], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x270]
call fcn.0103c950
movzx eax, al
test eax, eax
jne 0x103c91c
lea r9, [0x01009570]
mov r8d, 0x93
xor edx, edx
mov ecx, 1
call fcn.01034b80
mov rcx, qword [0x01068948]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x260
pop rdi
ret
Function at 0x103ed90
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov r8d, 4
lea rdx, [0x01009768]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x103ef88
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
mov edx, gethostbyname
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x5c], 0
jne 0x103ef7d
cmp dword [rsp + 0x70], 0xea
jne 0x103ef7d
mov r8d, 0x14f
lea rdx, [0x01009748]
mov ecx, dword [rsp + 0x60]
call fcn.01014ff0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x103ef76
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
mov r8d, 1
mov edx, gethostbyname
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x78], 0
jmp 0x103ef06
mov eax, dword [rsp + 0x78]
add eax, 1
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x50]
add rax, 0x30
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x74]
cmp dword [rsp + 0x78], eax
jge 0x103ef36
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
jne 0x103ef34
mov dword [rsp + 0x48], 1
jmp 0x103ef36
jmp 0x103eeed
cmp qword [rsp + 0x68], 0
je 0x103ef48
mov rcx, qword [rsp + 0x68]
call fcn.01015770
cmp dword [rsp + 0x48], 0
jne 0x103ef72
cmp dword [rsp + 0x5c], 0
jne 0x103ef72
cmp dword [rsp + 0x70], 0xea
jne 0x103ef72
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x103ee4a
jmp 0x103ef7d
jmp 0x103ef7d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x48]
add rsp, 0x88
ret
Function at 0x10526a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x268], rax
mov qword [rsp + 0x260], 0
mov dword [rsp + 0x40], 0
movzx eax, word [0x01001c50]
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rcx, [0x0100ded0]
call fcn.01053b10
cmp qword [rsp + 0x280], 0
je 0x1052717
cmp qword [rsp + 0x288], 0
jne 0x105271c
jmp 0x10527d0
mov rax, qword [rsp + 0x280]
mov qword [rsp + 0x20], rax
lea r9, [0x01068274]
lea r8, [0x01007ca0]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.01016110
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x100080
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x260], 0xffffffffffffffff
je 0x10527d0
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov eax, eax
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x268]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x270
pop rdi
ret

Function at 0x10527f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x150], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x38], 0
mov word [rsp + 0x50], 0
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x170]
lea rcx, [0x0100df28]
call fcn.01053b10
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x01068c20]
mov rcx, 0xffffffff80000002
call fcn.01053a20
test eax, eax
jne 0x10528ed
mov dword [rsp + 0x34], 0x80
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x0100df08]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10528e2
lea rcx, [rsp + 0x50]
call fcn.01053890
mov edx, 0x80
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR80.dll__wcsupr_s]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR80.dll_wcslen]
test rax, rax
je 0x105290a
mov dword [rsp + 0x154], 1
jmp 0x1052915
mov dword [rsp + 0x154], 0
mov eax, dword [rsp + 0x154]
mov dword [rsp + 0x150], eax
cmp qword [rsp + 0x170], 0
je 0x1052948
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.0105ab90
mov eax, dword [rsp + 0x150]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x160
pop rdi
ret