joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007e660
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rax, qword gs:[0x30]
xor r11d, r11d
mov r14d, ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx]
mov rsi, qword [rax + 0x30]
movsxd rax, dword [rsi + 0x3c]
mov edx, dword [rax + rsi + 0x88]
add rdx, rsi
mov eax, dword [rdx + 0x14]
mov r13d, dword [rdx + 0x1c]
mov r15d, dword [rdx + 0x20]
add r13, rsi
mov ebp, dword [rdx + 0x24]
add r15, rsi
mov ecx, dword [rdx + 0x18]
add rbp, rsi
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14007e74d
movzx ebx, word [0x1400c0c0c]
mov eax, dword [r13 + r11*4]
test eax, eax
je 0x14007e743
xor r9d, r9d
mov edi, ecx
mov r12d, eax
test ecx, ecx
je 0x14007e743
nop dword [rax]
movzx eax, word [rbp + r9*2]
cmp rax, r11
jne 0x14007e737
mov r8d, dword [r15 + r9*4]
xor eax, eax
add r8, rsi
movzx r10d, byte [r8]
test r10b, r10b
je 0x14007e732
nop dword [rax]
mov edx, eax
lea r8, [r8 + 1]
mov ecx, ebx
shr edx, cl
mov ecx, eax
shl ecx, 0x19
mov eax, edx
or eax, ecx
movsx ecx, r10b
movzx r10d, byte [r8]
add eax, ecx
test r10b, r10b
jne 0x14007e710
cmp r14d, eax
je 0x14007e764
inc r9
cmp r9, rdi
jb 0x14007e6f0
mov ecx, dword [rsp + 0x40]
inc r11
cmp r11, qword [rsp + 0x48]
jb 0x14007e6d7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
movzx eax, word [r12 + rsi + 4]
jmp 0x14007e74f

Function at 0x14007ee70
Capabilities:
Encode data using xor

Disassembly:
mov r8d, edx
xor edx, edx
test r8, r8
je 0x14007eef0
cmp r8, 0x40
jb 0x14007eed7
movdqa xmm1, xmmword [str.yyyyyyyyyyyyyyyy_]
mov eax, r8d
and rax, 0xffffffffffffffc0
nop
movdqu xmm0, xmmword [rcx + rdx]
pxor xmm0, xmm1
movdqu xmmword [rcx + rdx], xmm0
movdqu xmm0, xmmword [rcx + rdx + 0x10]
pxor xmm0, xmm1
movdqu xmmword [rcx + rdx + 0x10], xmm0
movdqu xmm0, xmmword [rcx + rdx + 0x20]
pxor xmm0, xmm1
movdqu xmmword [rcx + rdx + 0x20], xmm0
movdqu xmm0, xmmword [rcx + rdx + 0x30]
pxor xmm0, xmm1
movdqu xmmword [rcx + rdx + 0x30], xmm0
add rdx, 0x40
cmp rdx, rax
jb 0x14007ee90
cmp rdx, r8
jae 0x14007eef0
lea rax, [rdx + rcx]
sub r8, rdx
xor byte [rax], 0x79
lea rax, [rax + 1]
sub r8, 1
jne 0x14007eee3
ret

Function at 0x14007ef54
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [section..data]
syscall
ret

Function at 0x140088fcc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140088df8
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.1018e000
add rsp, 0x28
jmp 0x10007510
Function at 0x1010d90
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x260
mov rax, qword [0x010657f0]
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 0x1010e98
mov eax, dword [rsp + 0x240]
cmp dword [rsp + 0x244], eax
jae 0x1010e98
mov eax, dword [rsp + 0x240]
mov r9, 0xffffffffffffffff
lea r8, [0x01001c98]
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR80.dll_wcsncat_s]
test eax, eax
jne 0x1010e98
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x248], rax
cmp qword [rsp + 0x248], 0
je 0x1010e98
lea rdx, [0x01001c80]
mov rcx, qword [rsp + 0x248]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0
je 0x1010e8a
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.010588f0
add rsp, 0x260
pop rdi
ret
Function at 0x1010f80
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x450
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x448], rax
movzx eax, word [0x01001c38]
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
mov dword [rsp + 0x440], 0
call fcn.0102f660
cmp qword [0x01067950], 0
je 0x1010fdf
mov rcx, qword [0x01067950]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [0x01067f38], 0
je 0x1010ff6
mov rcx, qword [0x01067f38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x010679dc], 0
jne 0x10111c9
lea rcx, [0x01065cd8]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [0x01065d68]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [0x01065d98]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [0x01065dc8]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [0x01065d38]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [0x01065d08]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [0x01065ca8]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [0x01065c78]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [0x01065c48]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [0x01065c18]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
cmp qword [0x01068168], 0
je 0x10110a7
lea rcx, [0x01065990]
call qword [sym.imp.SQLSVC.dll_FreeCrossServiceSA]
mov qword [0x01068168], 0
cmp qword [0x01068170], 0
je 0x10110c9
lea rcx, [0x01065910]
call qword [sym.imp.SQLSVC.dll_FreeCrossServiceSA]
mov qword [0x01068170], 0
mov dword [rsp + 0x444], 0
jmp 0x10110e7
mov eax, dword [rsp + 0x444]
add eax, 1
mov dword [rsp + 0x444], eax
cmp dword [rsp + 0x444], 0x11
jge 0x1011122
movsxd rax, dword [rsp + 0x444]
lea rcx, [0x01067930]
cmp qword [rcx + rax*8], 0
je 0x1011120
movsxd rax, dword [rsp + 0x444]
lea rcx, [0x01067930]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10110d6
mov eax, dword [0x01068390]
mov dword [rsp + 0x440], eax
cmp dword [rsp + 0x440], 0
je 0x1011152
mov r9d, dword [0x01068390]
mov r8d, 0x61
xor edx, edx
mov ecx, 1
call fcn.01033fa0
call fcn.01015750
mov ecx, dword [rsp + 0x440]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x440], eax
cmp dword [0x010679c0], 0
jne 0x101117c
cmp dword [rsp + 0x440], 0
je 0x10111c7
mov r9d, dword [0x01068394]
mov r8d, 0x60
xor edx, edx
mov ecx, 3
call fcn.01033fa0
mov r9d, dword [0x01068398]
mov r8d, 0x134
xor edx, edx
mov ecx, 3
call fcn.01033fa0
mov r9d, dword [0x0106839c]
mov r8d, 0x135
xor edx, edx
mov ecx, 3
call fcn.01033fa0
jmp 0x1011235
mov r9d, 0x200
lea r8, [rsp + 0x40]
mov edx, 0xf3
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x01001c18]
mov r8d, 0x62
xor edx, edx
mov ecx, 2
call fcn.01033fa0
cmp qword [0x01067c18], 0
je 0x1011220
mov rcx, qword [0x01067c18]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [0x01064108]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x448]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x450
pop rdi
ret
Function at 0x1014480
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xfe8
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0xfd0], rax
lea rax, [rsp + 0xe98]
lea rcx, [0x01002430]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
movzx eax, word [0x01001c38]
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 [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
cmp qword [rsp + 0x1000], 0
je 0x1014544
lea rax, [0x01001c38]
mov qword [rsp + 0xfc8], rax
jmp 0x1014554
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.01033fa0
lea rdx, [0x010023f0]
lea rcx, [rsp + 0x280]
call fcn.01020890
lea r8, [rsp + 0xe98]
xor edx, edx
lea rcx, [rsp + 0x280]
call fcn.01020940
test eax, eax
je 0x101463b
xor edx, edx
lea rcx, [rsp + 0x280]
call fcn.01022380
cmp qword [rsp + 0x1000], 0
je 0x1014617
mov rax, qword [rsp + 0x1000]
movzx eax, word [rax]
test eax, eax
je 0x1014617
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 0x1014617
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 0x101462d
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.010588f0
add rsp, 0xfe8
pop rdi
pop rsi
ret
Function at 0x10159d0
Capabilities:
Read file via mapping

Disassembly:
sub rsp, 0x188
mov rax, qword [0x010657f0]
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 0x1015a19
lea rax, str.MSSQLSERVER
mov qword [rsp + 0x38], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
lea rcx, [0x01065910]
call qword [sym.imp.SQLSVC.dll_CreateCrossServiceSA]
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x1015a61
mov r9d, dword [rsp + 0x160]
mov r8d, 0x19d
xor edx, edx
mov ecx, 1
call fcn.01033fa0
jmp 0x1015a7d
lea rax, [0x01065910]
mov qword [0x01068170], rax
mov rax, qword [0x01068170]
mov qword [0x01074698], rax
lea rcx, str.MSSQLSERVER
call fcn.01054e30
test eax, eax
jne 0x1015a9c
mov dword [0x010683a4], 0
jmp 0x1015bba
lea rdx, str.MSSQLSERVER
lea rcx, [0x010683b0]
call fcn.01054890
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1015ac9
mov dword [0x010683a4], 0
jmp 0x1015bba
lea rax, [0x010748b0]
mov qword [rsp + 0x20], rax
lea r9, [0x01002b28]
lea r8, [0x01002b20]
mov edx, 0x105
lea rcx, [rsp + 0x50]
call fcn.01015e60
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 4
mov rdx, qword [0x01068170]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x168], rax
cmp qword [rsp + 0x168], 0
jne 0x1015b40
mov dword [0x010683a4], 0
jmp 0x1015bba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1015b6f
mov edx, 6
mov rcx, qword [rsp + 0x168]
call fcn.01056fe0
test eax, eax
je 0x1015b6f
mov dword [0x010683a4], 0
jmp 0x1015bba
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 0x1015bb0
mov dword [0x010683a4], 0
jmp 0x1015bba
mov dword [0x010683a4], 1
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x188
ret
Function at 0x1018980
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rdx, [0x01002dc0]
mov ecx, 1
call fcn.01010910
mov qword [0x010684f0], rax
cmp qword [0x010684f0], 0
je 0x1018a76
lea rdx, [0x01002da8]
mov rcx, qword [0x010684f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x01068510], rax
lea rdx, [0x01002d90]
mov rcx, qword [0x010684f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x01068518], rax
lea rdx, [0x01002d80]
mov rcx, qword [0x010684f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x01068520], rax
lea rdx, [0x01002d68]
mov rcx, qword [0x010684f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x01068528], rax
lea rdx, [0x01002d50]
mov rcx, qword [0x010684f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x01068530], rax
cmp qword [0x01068510], 0
je 0x1018a76
cmp qword [0x01068518], 0
je 0x1018a76
cmp qword [0x01068520], 0
je 0x1018a76
cmp qword [0x01068528], 0
je 0x1018a76
cmp qword [0x01068530], 0
je 0x1018a76
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x101d0c0
Capabilities:
Access the windows event log

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

Function at 0x101d820
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 [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x38]
lea rcx, [0x01003430]
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 0x101d88d
xor eax, eax
jmp 0x101dabb
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.01020940
test eax, eax
je 0x101d9a0
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x80]
call fcn.0101f880
nop
lea rcx, [0x01066234]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov r9d, 0x80
mov r8, rax
lea rdx, [0x01066234]
lea rcx, [rsp + 0x80]
call fcn.0101f8e0
lea rdx, [0x010033c0]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x101d993
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 0x101d972
jmp 0x101d95d
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x101d92a
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0x70]
mov dword [rax], ecx
lea rcx, [rsp + 0x80]
call fcn.0101f8b0
mov rax, qword [rsp + 0xc8]
add rax, 4
lea r8, [0x01066234]
mov edx, 0x84
mov rcx, rax
call fcn.01013c30
mov rax, qword [rsp + 0xc8]
add rax, 0x114
lea r8, [0x01066434]
mov edx, 0x68
mov rcx, rax
call fcn.01013c30
mov rax, qword [rsp + 0xc8]
add rax, 0x1e4
lea r8, [0x01066334]
mov edx, 0x68
mov rcx, rax
call fcn.01013c30
mov rax, qword [rsp + 0xc8]
add rax, 0x2b4
lea r8, [0x01066534]
mov edx, 0x68
mov rcx, rax
call fcn.01013c30
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.010588f0
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x1020050
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x470
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x468], rax
mov qword [rsp + 0x240], 0
mov qword [rsp + 0x30], 0
movzx eax, word [0x01001c38]
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 [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 qword [rsp + 0x250], 0
mov dword [rsp + 0x248], 0
xor r9d, r9d
lea r8, [0x01003618]
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.010158f0
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 0x1020313
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x248], eax
cmp dword [rsp + 0x248], 5
jne 0x102016c
cmp dword [0x0106853c], 0
jne 0x1020162
xor r9d, r9d
mov r8d, 0x8000006a
mov edx, 1
mov ecx, 3
call fcn.01033610
mov dword [0x0106853c], 1
mov eax, 3
jmp 0x102032d
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 0x10201a8
xor eax, eax
jmp 0x102032d
mov rax, qword [rsp + 0x250]
mov eax, dword [rax]
mov dword [rsp + 0x460], eax
cmp dword [rsp + 0x460], 0
je 0x10201e0
cmp dword [rsp + 0x460], 1
je 0x102023d
cmp dword [rsp + 0x460], 2
je 0x1020296
jmp 0x1020311
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [0x0106693c], 0
je 0x1020200
xor eax, eax
jmp 0x102032d
cmp dword [0x01068540], 0
jne 0x102023d
lea rax, [0x01067f40]
mov qword [rsp + 0x20], rax
lea r9, [0x01001c18]
mov r8d, 0x168
xor edx, edx
mov ecx, 2
call fcn.01033fa0
call fcn.0103e280
mov eax, 1
jmp 0x102032d
mov rax, qword [rsp + 0x250]
mov dword [rax], 2
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [0x01068540], 0
jne 0x1020296
lea rax, [0x01067f40]
mov qword [rsp + 0x20], rax
lea r9, [0x01001c18]
mov r8d, 0x168
xor edx, edx
mov ecx, 2
call fcn.01033fa0
call fcn.0103e280
mov eax, 1
jmp 0x102032d
mov rcx, qword [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, 0x100
lea rcx, [rsp + 0x260]
call fcn.01036af0
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 0x1020306
lea rax, [0x01067f40]
mov qword [rsp + 0x20], rax
lea r9, [0x01001c18]
mov r8d, 0x168
xor edx, edx
mov ecx, 2
call fcn.01033fa0
call fcn.0103e280
jmp 0x1020311
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1020328
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x102032d
mov eax, 3
mov rcx, qword [rsp + 0x468]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x470
pop rdi
ret
Function at 0x1021490
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x460
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x458], rax
mov qword [rsp + 0x450], 0
mov dword [rsp + 0x240], 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
movzx eax, word [0x01001c38]
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 0x1021521
cmp qword [rsp + 0x478], 0
jne 0x1021528
xor eax, eax
jmp 0x1021601
mov dword [rsp + 0x20], 0x200
lea r9, [rsp + 0x250]
lea r8, [0x010021f8]
lea rdx, [0x010021f4]
mov rcx, qword [rsp + 0x478]
call fcn.01052500
lea r9, [rsp + 0x250]
lea r8, [0x010038d0]
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.01015ef0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x10215fa
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 0x10215d9
jmp 0x10215c2
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 0x1021589
mov eax, dword [rsp + 0x240]
mov rcx, qword [rsp + 0x458]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x460
pop rdi
ret