joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10274f0
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, 0xc8
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x60]
lea rcx, [0x01005788]
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 + 0xe0]
call fcn.01020940
test eax, eax
je 0x102772d
mov r8d, 0x1c
xor edx, edx
lea rcx, [rsp + 0x38]
call sub.MSVCR80.dll_memset
mov rax, qword [rsp + 0xe0]
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0xa0]
call fcn.0101f880
nop
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xa0]
call fcn.0101f990
lea rcx, [0x01068050]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x01068050]
lea rcx, [rsp + 0xa0]
call fcn.0101f8e0
lea rdx, [0x01005640]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x1027720
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 + 0xe0]
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 + 0xe0]
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 + 0xe0]
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 + 0xe0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x1027709
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0xe8]
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 0x10276c4
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x10275ec
lea rcx, [rsp + 0xa0]
call fcn.0101f8b0
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.010588f0
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x10289e0
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 [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x40]
lea rcx, [0x01005d80]
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.01020940
test eax, eax
je 0x1028ba5
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x68]
call fcn.0101f880
nop
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x78], eax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.0101f990
lea rdx, [0x010059c0]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x1028b9b
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 0x1028b84
mov dword [rsp + 0x30], 1
jmp 0x1028b67
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1028ab9
lea rcx, [rsp + 0x68]
call fcn.0101f8b0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x1029780
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, [0x01065a88]
call qword [0x01068178]
test eax, eax
jne 0x10297e6
cmp dword [0x010679c0], 0
je 0x10297d9
cmp dword [0x01067484], 0
je 0x10297d9
lea rdx, [0x010063d8]
lea rcx, [0x01001b70]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01065a88]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010679c0], 0
je 0x102980d
cmp dword [0x01067484], 0
je 0x102980d
lea rdx, [0x010063d8]
lea rcx, [0x01001b38]
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 [0x01068550]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [rsp + 0x34], eax
lea rcx, [0x01065a88]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010679c0], 0
je 0x1029870
cmp dword [0x01067484], 0
je 0x1029870
lea rdx, [0x010063d8]
lea rcx, [0x01001b00]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [rsp + 0x34], 0
je 0x1029882
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 0x1029c00
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 [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x3b8], rax
lea rax, [rsp + 0x40]
lea rcx, [0x010065d0]
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.01020940
test eax, eax
je 0x1029d35
mov rax, qword [rsp + 0x3e0]
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x78]
call fcn.0101f880
nop
lea rdx, [rsp + 0x3e8]
lea rcx, [rsp + 0x78]
call fcn.0101f990
lea rdx, [0x01006520]
mov rcx, qword [rsp + 0x3e0]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x1029d2b
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 0x1029d18
mov dword [rsp + 0x30], 1
jmp 0x1029cfb
mov rcx, qword [rsp + 0x3e0]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1029cbd
lea rcx, [rsp + 0x78]
call fcn.0101f8b0
cmp dword [rsp + 0x30], 0
je 0x1029db1
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.010298e0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1029db1
movsxd rax, dword [rsp + 0x408]
lea r8, [rsp + 0x2a0]
mov rdx, rax
mov rcx, qword [rsp + 0x400]
call fcn.01013c30
mov edx, 0x31c
lea rcx, [rsp + 0x90]
call fcn.01029df0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x3b8]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x3c8
pop rdi
pop rsi
ret
Function at 0x10356c0
Capabilities:
Manipulate console buffer

Disassembly:
push rdi
sub rsp, 0x460
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x458], rax
mov qword [rsp + 0x448], 0
mov dword [rsp + 0x450], 0
movzx eax, word [0x01001c38]
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 [0x010679d8], 1
jne 0x10357ab
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x448], rax
cmp qword [rsp + 0x448], 0xffffffffffffffff
je 0x10357a1
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 0x10357a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x400
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.010529a0
mov dword [0x010679d8], 0
mov rcx, qword [rsp + 0x458]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x460
pop rdi
ret

Function at 0x10357d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov r8d, 0x8be
lea rdx, [0x01007e18]
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
call fcn.01014dd0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1035898
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.0102fff0
test eax, eax
jne 0x1035844
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
jmp 0x1035898
mov rax, qword [rsp + 0x30]
add rax, 8
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.0102fff0
test eax, eax
jne 0x103586f
mov rax, qword [rsp + 0x30]
mov qword [rax + 8], 0
jmp 0x1035898
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x01034a10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR80.dll__beginthreadex]
jmp 0x10358dc
cmp qword [rsp + 0x30], 0
je 0x10358dc
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x10358b8
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.01015550
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], 0
je 0x10358d2
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.01015550
mov rcx, qword [rsp + 0x30]
call fcn.01015550
add rsp, 0x48
ret
Function at 0x1038b70
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 [0x010657f0]
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 0x1038c77
cmp dword [rsp + 0x38], 0
je 0x1038c5a
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR80.dll_wcslen]
test rax, rax
je 0x1038c5a
cmp dword [rsp + 0x34], 1
jne 0x1038c5a
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 0x1038c75
mov rax, qword [rsp + 0x880]
mov word [rax], 0
mov rax, qword [rsp + 0x888]
mov dword [rax], 0
jmp 0x1038c92
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.010588f0
add rsp, 0x860
pop rdi
ret

Function at 0x1038cc0
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 0x1038d3d
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 0x1038d50
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 0x1038de1
cmp dword [rsp + 0x3c], 0
jne 0x1038dd6
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
jmp 0x1038de1
mov rax, qword [rsp + 0x60]
mov dword [rax], 1
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x1038df0
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 0x1038e60
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 0x103bcf0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x250], 0
movzx eax, word [0x01001c38]
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, [0x01009310]
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.010158f0
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 0x103be07
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 0x103bdfc
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.0103be70
movzx eax, al
test eax, eax
jne 0x103be3c
lea r9, [0x010092e0]
mov r8d, 0x93
xor edx, edx
mov ecx, 1
call fcn.01033fa0
mov rcx, qword [0x01067948]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x260
pop rdi
ret
Function at 0x103e2a0
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, [0x010094d8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x103e498
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 0x103e48d
cmp dword [rsp + 0x70], 0xea
jne 0x103e48d
mov r8d, 0x14a
lea rdx, [0x010094b8]
mov ecx, dword [rsp + 0x60]
call fcn.01014dd0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x103e486
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 0x103e416
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 0x103e446
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 0x103e444
mov dword [rsp + 0x48], 1
jmp 0x103e446
jmp 0x103e3fd
cmp qword [rsp + 0x68], 0
je 0x103e458
mov rcx, qword [rsp + 0x68]
call fcn.01015550
cmp dword [rsp + 0x48], 0
jne 0x103e482
cmp dword [rsp + 0x5c], 0
jne 0x103e482
cmp dword [rsp + 0x70], 0xea
jne 0x103e482
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x103e35a
jmp 0x103e48d
jmp 0x103e48d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x48]
add rsp, 0x88
ret
Function at 0x10519e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x268], rax
mov qword [rsp + 0x260], 0
mov dword [rsp + 0x40], 0
movzx eax, word [0x01001c38]
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, [0x0100dc50]
call fcn.01052e60
cmp qword [rsp + 0x280], 0
je 0x1051a57
cmp qword [rsp + 0x288], 0
jne 0x1051a5c
jmp 0x1051b10
mov rax, qword [rsp + 0x280]
mov qword [rsp + 0x20], rax
lea r9, [0x01067274]
lea r8, [0x01007a10]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.01015ef0
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 0x1051b10
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.010588f0
add rsp, 0x270
pop rdi
ret

Function at 0x1051b30
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 [0x010657f0]
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
movzx eax, word [0x01001c38]
mov word [rsp + 0x50], ax
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, [0x0100dca8]
call fcn.01052e60
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x01067c20]
mov rcx, 0xffffffff80000002
call fcn.01052d70
test eax, eax
jne 0x1051c32
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, [0x0100dc88]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1051c27
lea rcx, [rsp + 0x50]
call fcn.01052be0
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 0x1051c4f
mov dword [rsp + 0x154], 1
jmp 0x1051c5a
mov dword [rsp + 0x154], 0
mov eax, dword [rsp + 0x154]
mov dword [rsp + 0x150], eax
cmp qword [rsp + 0x170], 0
je 0x1051c8d
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.01013c30
mov eax, dword [rsp + 0x150]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x160
pop rdi
ret
Function at 0x1052120
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [0x0100dd90]
call fcn.01052e60
lea r8, [0x0100ce68]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.01013c30
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x0100dd20]
mov rcx, 0xffffffff80000002
call fcn.01052d70
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1052210
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x0100dd08]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1052205
mov eax, dword [rsp + 0x40]
neg eax
mov dword [rsp + 0x40], eax
mov r8d, 0xa
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.MSVCR80.dll__ltow]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret

Function at 0x1052220
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x44], 0xffffffff
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x01067c20]
mov rcx, 0xffffffff80000002
call fcn.01052d70
test eax, eax
jne 0x1052295
mov dword [rsp + 0x48], 1
jmp 0x105229d
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x10522f1
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x0100ddd0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x40], 0
je 0x1052319
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, 0x1bb
xor edx, edx
mov ecx, 1
call fcn.01033fa0
mov eax, dword [rsp + 0x40]
jmp 0x1052356
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x60]
call fcn.01029c00
test eax, eax
jne 0x1052352
mov dword [rsp + 0x40], 2
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret