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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400d4490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400d44a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400b69c0
jmp 0x14000123c
mov rax, qword [0x1400d44a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400d44a0]
mov dword [rax], 1
mov rax, qword [0x1400d44e0]
mov rdx, rax
mov rax, qword [0x1400d44d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x1400d8024], 1
mov rax, qword [0x1400d44a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400d44c0]
mov rdx, rax
mov rax, qword [0x1400d44b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400d44a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400d4490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400d43e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400d43e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400b5c48
mov rax, qword [0x1400d4520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400d4480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400b5440
mov eax, dword [0x1400d8004]
lea rdx, [0x1400d8008]
mov ecx, eax
call fcn.14000147c
call fcn.1400b51d7
mov rax, qword [0x1400d4410]
mov rax, qword [rax]
mov rdx, qword [0x1400d8010]
mov qword [rax], rdx
mov rcx, qword [0x1400d8010]
mov rdx, qword [0x1400d8008]
mov eax, dword [0x1400d8004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x1400d801c], eax
mov eax, dword [0x1400d8020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1400d801c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x1400d8024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400d801c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400d4440]
mov dword [rax], 1
mov rax, qword [0x1400d4450]
mov dword [rax], 1
mov rax, qword [0x1400d4460]
mov dword [rax], 1
mov rax, qword [0x1400d4400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400b5450
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400b67b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400b6122
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400d8168]
test eax, eax
je 0x1400b61ba
lea rax, [0x1400d8140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400d8170]
mov qword [rbp - 8], rax
jmp 0x1400b619e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400b6192
cmp qword [rbp - 0x10], 0
je 0x1400b6192
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400b6158
lea rax, [0x1400d8140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400b61bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400b62c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400b62e8
mov eax, 0
jmp 0x1400b6336
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400b6311
mov eax, 0
jmp 0x1400b6336
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400b6331
mov eax, 0
jmp 0x1400b6336
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400b633c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400b63ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400b63b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400b63b1
mov rax, qword [rbp - 8]
jmp 0x1400b63cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400b6384
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1011030
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x260
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov word [rsp + 0x30], 0
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x240], 0x105
mov edx, dword [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x244], eax
cmp dword [rsp + 0x244], 0
je 0x1011138
mov eax, dword [rsp + 0x240]
cmp dword [rsp + 0x244], eax
jae 0x1011138
mov eax, dword [rsp + 0x240]
mov r9, 0xffffffffffffffff
lea r8, [0x01001cb0]
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR80.dll_wcsncat_s]
test eax, eax
jne 0x1011138
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x248], rax
cmp qword [rsp + 0x248], 0
je 0x1011138
lea rdx, [0x01001c98]
mov rcx, qword [rsp + 0x248]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0
je 0x101112a
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [rsp + 0x250]
mov rcx, qword [rsp + 0x248]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x260
pop rdi
ret
Function at 0x10146a0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xfe8
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0xfd0], rax
lea rax, [rsp + 0xe98]
lea rcx, [0x01002450]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
movzx eax, word [0x01001c50]
mov word [rsp + 0xec0], ax
lea rax, [rsp + 0xec2]
mov rdi, rax
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
mov qword [rsp + 0xfc0], 0
mov dword [rsp + 0xe90], 0
mov r8d, 0x250
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.MSVCR80.dll_memset
mov r9d, 0x80
lea r8, [rsp + 0xec0]
mov edx, reloc.WS2_32.dll_WSACleanup
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
cmp qword [rsp + 0x1000], 0
je 0x1014764
lea rax, [0x01001c50]
mov qword [rsp + 0xfc8], rax
jmp 0x1014774
lea rax, [rsp + 0xec0]
mov qword [rsp + 0xfc8], rax
mov r9, qword [rsp + 0xfc8]
mov r8d, reloc.WS2_32.dll_WSAStartup
xor edx, edx
mov ecx, 2
call fcn.01034b80
lea rdx, [0x01002410]
lea rcx, [rsp + 0x280]
call fcn.01020b50
lea r8, [rsp + 0xe98]
xor edx, edx
lea rcx, [rsp + 0x280]
call fcn.01020c30
test eax, eax
je 0x101485b
xor edx, edx
lea rcx, [rsp + 0x280]
call fcn.01022d70
cmp qword [rsp + 0x1000], 0
je 0x1014837
mov rax, qword [rsp + 0x1000]
movzx eax, word [rax]
test eax, eax
je 0x1014837
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1000]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0xfc0], rax
cmp qword [rsp + 0xfc0], 0xffffffffffffffff
je 0x1014837
mov rcx, qword [rsp + 0x1000]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0xfc0]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dword [rsp + 0xe90], 1
cmp qword [rsp + 0x1000], 0
jne 0x101484d
mov dword [rsp + 0xe90], 1
lea rcx, [rsp + 0x280]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
mov eax, dword [rsp + 0xe90]
mov rcx, qword [rsp + 0xfd0]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0xfe8
pop rdi
pop rsi
ret
Function at 0x1015c80
Capabilities:
Read file via mapping

Disassembly:
sub rsp, 0x188
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x160], 0
lea rcx, str.MSSQLSERVER
call sub.instapi10.dll_IsDefaultInstanceName
test eax, eax
jne 0x1015cc9
lea rax, str.MSSQLSERVER
mov qword [rsp + 0x38], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
lea rcx, [0x01066910]
call qword [sym.imp.SQLSVC.dll_CreateCrossServiceSA]
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x1015d11
mov r9d, dword [rsp + 0x160]
mov r8d, 0x19d
xor edx, edx
mov ecx, 1
call fcn.01034b80
jmp 0x1015d2d
lea rax, [0x01066910]
mov qword [0x01069170], rax
mov rax, qword [0x01069170]
mov qword [0x01075698], rax
lea rcx, str.MSSQLSERVER
call fcn.01055be0
test eax, eax
jne 0x1015d4c
mov dword [0x010693a4], 0
jmp 0x1015e6a
lea rdx, str.MSSQLSERVER
lea rcx, [0x010693b0]
call fcn.01055640
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1015d79
mov dword [0x010693a4], 0
jmp 0x1015e6a
lea rax, [0x010758b0]
mov qword [rsp + 0x20], rax
lea r9, [0x01002b48]
lea r8, [0x01002b40]
mov edx, 0x105
lea rcx, [rsp + 0x50]
call fcn.01016080
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 4
mov rdx, qword [0x01069170]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x168], rax
cmp qword [rsp + 0x168], 0
jne 0x1015df0
mov dword [0x010693a4], 0
jmp 0x1015e6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1015e1f
mov edx, 6
mov rcx, qword [rsp + 0x168]
call fcn.01057db0
test eax, eax
je 0x1015e1f
mov dword [0x010693a4], 0
jmp 0x1015e6a
mov qword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x170], rax
cmp qword [rsp + 0x170], 0
jne 0x1015e60
mov dword [0x010693a4], 0
jmp 0x1015e6a
mov dword [0x010693a4], 1
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x188
ret
Function at 0x1018ba0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rdx, [0x01002de0]
mov ecx, 1
call fcn.01010bb0
mov qword [0x010694f0], rax
cmp qword [0x010694f0], 0
je 0x1018c96
lea rdx, [0x01002dc8]
mov rcx, qword [0x010694f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x01069510], rax
lea rdx, [0x01002db0]
mov rcx, qword [0x010694f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x01069518], rax
lea rdx, [0x01002da0]
mov rcx, qword [0x010694f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x01069520], rax
lea rdx, [0x01002d88]
mov rcx, qword [0x010694f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x01069528], rax
lea rdx, [0x01002d70]
mov rcx, qword [0x010694f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x01069530], rax
cmp qword [0x01069510], 0
je 0x1018c96
cmp qword [0x01069518], 0
je 0x1018c96
cmp qword [0x01069520], 0
je 0x1018c96
cmp qword [0x01069528], 0
je 0x1018c96
cmp qword [0x01069530], 0
je 0x1018c96
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x101d2d0
Capabilities:
Access the windows event log

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0
lea rdx, [0x01068e30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x101d327
mov rdx, qword [0x01068938]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_NotifyChangeEventLog]
test eax, eax
jne 0x101d327
xor r9d, r9d
mov r8d, 0x80000130
mov edx, 1
mov ecx, 3
call fcn.010341e0
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x101da30
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x38]
lea rcx, [0x01003440]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x38
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0xc8], 0
jne 0x101da9d
xor eax, eax
jmp 0x101dccb
mov r8d, 0x3a0
xor edx, edx
mov rcx, qword [rsp + 0xc8]
call sub.MSVCR80.dll_memset
mov rax, qword [rsp + 0xc8]
mov dword [rax], 0
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call fcn.01020c30
test eax, eax
je 0x101dbb0
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x80]
call fcn.0101fbe0
nop
lea rcx, [0x01067234]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x01067234]
lea rcx, [rsp + 0x80]
call fcn.0101fc40
lea rdx, [0x010033d0]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x101dba3
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 1
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x101db82
jmp 0x101db6d
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x101db3a
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
lea rcx, [rsp + 0x80]
call fcn.0101fc10
mov rax, qword [rsp + 0xc8]
add rax, 4
lea r8, [0x01067234]
mov edx, 0x84
mov rcx, rax
call fcn.0105ab90
mov rax, qword [rsp + 0xc8]
add rax, 0x114
lea r8, [0x01067434]
mov edx, 0x68
mov rcx, rax
call fcn.0105ab90
mov rax, qword [rsp + 0xc8]
add rax, 0x1e4
lea r8, [0x01067334]
mov edx, 0x68
mov rcx, rax
call fcn.0105ab90
mov rax, qword [rsp + 0xc8]
add rax, 0x2b4
lea r8, [0x01067534]
mov edx, 0x68
mov rcx, rax
call fcn.0105ab90
mov rax, qword [rsp + 0xc8]
mov dword [rax + 0x110], 0
mov rax, qword [rsp + 0xc8]
mov dword [rax + 0x384], 0
mov rax, qword [rsp + 0xc8]
mov dword [rax + 0x388], 0
mov rax, qword [rsp + 0xc8]
mov dword [rax + 0x38c], 0
mov rax, qword [rsp + 0xc8]
mov dword [rax + 0x390], 0
mov rax, qword [rsp + 0xc8]
mov dword [rax + 0x394], 0
mov rax, qword [rsp + 0xc8]
mov dword [rax + 0x398], 0
mov rax, qword [rsp + 0xc8]
mov dword [rax + 0x39c], 0
mov eax, 1
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x1020310
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x470
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x468], rax
mov qword [rsp + 0x240], 0
mov qword [rsp + 0x30], 0
movzx eax, word [0x01001c50]
mov word [rsp + 0x260], ax
lea rax, [rsp + 0x262]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fe
rep stosb byte [rdi], al
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 qword [rsp + 0x250], 0
mov dword [rsp + 0x248], 0
xor r9d, r9d
lea r8, [0x01003628]
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x40]
call fcn.01015b10
lea r8, [rsp + 0x40]
mov edx, 1
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0x240], rax
cmp qword [rsp + 0x240], 0
jne 0x10205d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x248], eax
cmp dword [rsp + 0x248], 5
jne 0x102042c
cmp dword [0x0106953c], 0
jne 0x1020422
xor r9d, r9d
mov r8d, 0x8000006a
mov edx, 1
mov ecx, 3
call fcn.010341e0
mov dword [0x0106953c], 1
mov eax, 3
jmp 0x10205ed
mov qword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0
jne 0x1020468
xor eax, eax
jmp 0x10205ed
mov rax, qword [rsp + 0x250]
mov eax, dword [rax]
mov dword [rsp + 0x460], eax
cmp dword [rsp + 0x460], 0
je 0x10204a0
cmp dword [rsp + 0x460], 1
je 0x10204fd
cmp dword [rsp + 0x460], 2
je 0x1020556
jmp 0x10205d1
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [0x0106793c], 0
je 0x10204c0
xor eax, eax
jmp 0x10205ed
cmp dword [0x01069540], 0
jne 0x10204fd
lea rax, [0x01068f40]
mov qword [rsp + 0x20], rax
lea r9, [0x01001c30]
mov r8d, 0x168
xor edx, edx
mov ecx, 2
call fcn.01034b80
call fcn.0103ed60
mov eax, 1
jmp 0x10205ed
mov rax, qword [rsp + 0x250]
mov dword [rax], 2
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [0x01069540], 0
jne 0x1020556
lea rax, [0x01068f40]
mov qword [rsp + 0x20], rax
lea r9, [0x01001c30]
mov r8d, 0x168
xor edx, edx
mov ecx, 2
call fcn.01034b80
call fcn.0103ed60
mov eax, 1
jmp 0x10205ed
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x260]
call fcn.010375d0
lea r8, [rsp + 0x260]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x10205c6
lea rax, [0x01068f40]
mov qword [rsp + 0x20], rax
lea r9, [0x01001c30]
mov r8d, 0x168
xor edx, edx
mov ecx, 2
call fcn.01034b80
call fcn.0103ed60
jmp 0x10205d1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10205e8
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x10205ed
mov eax, 3
mov rcx, qword [rsp + 0x468]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x470
pop rdi
ret
Function at 0x1021c40
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x460
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x458], rax
mov qword [rsp + 0x450], 0
mov dword [rsp + 0x240], 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
movzx eax, word [0x01001c50]
mov word [rsp + 0x250], ax
lea rax, [rsp + 0x252]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fe
rep stosb byte [rdi], al
cmp qword [rsp + 0x470], 0
je 0x1021cd1
cmp qword [rsp + 0x478], 0
jne 0x1021cd8
xor eax, eax
jmp 0x1021db1
mov dword [rsp + 0x20], 0x200
lea r9, [rsp + 0x250]
lea r8, [0x01002218]
lea rdx, [0x01002214]
mov rcx, qword [rsp + 0x478]
call fcn.010531b0
lea r9, [rsp + 0x250]
lea r8, [0x010038e0]
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x40]
call fcn.01016110
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x1021daa
lea rax, [rsp + 0x450]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x240]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 1
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x1021d89
jmp 0x1021d72
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1021d39
mov eax, dword [rsp + 0x240]
mov rcx, qword [rsp + 0x458]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x460
pop rdi
ret
Function at 0x1021dd0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4e8
mov qword [rsp + 0x4c0], 0xfffffffffffffffe
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
lea rax, [rsp + 0x70]
lea rcx, [0x01003a50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2c
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x60], 0
movzx eax, word [0x01001c50]
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0xb2]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x4b0], 0
mov dword [rsp + 0xa0], 0
cmp qword [rsp + 0x500], 0
je 0x1021e83
cmp qword [rsp + 0x508], 0
jne 0x1021e8a
xor eax, eax
jmp 0x1021fdf
mov rax, qword [rsp + 0x500]
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x48]
call fcn.0101fbe0
nop
lea rax, [0x010039d0]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x508]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
mov rdx, qword [rsp + 0x508]
lea rcx, [rsp + 0x48]
call fcn.0101fc40
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x200
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x500]
call fcn.01021550
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1021f9e
cmp dword [rsp + 0x58], 0
jne 0x1021f9e
lea rax, [rsp + 0x4b0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 1
mov rcx, qword [rsp + 0x500]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, qword [rsp + 0x500]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x1021f7d
jmp 0x1021f66
mov rcx, qword [rsp + 0x500]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
mov rcx, qword [rsp + 0x500]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1021f2d
cmp dword [rsp + 0xa0], 1
jne 0x1021fb5
mov dword [rsp + 0x4c8], 1
jmp 0x1021fc0
mov dword [rsp + 0x4c8], 0
mov eax, dword [rsp + 0x4c8]
mov dword [rsp + 0x4b8], eax
lea rcx, [rsp + 0x48]
call fcn.0101fc10
mov eax, dword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x4e8
pop rdi
pop rsi
ret