joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401caeb0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, rcx
movzx ecx, byte [rdx]
movabs r15, 0xcbf29ce484222325
xor rcx, r15
movabs r14, 0x100000001b3
imul rcx, r14
movzx eax, byte [rdx + 1]
xor rcx, rax
imul rcx, r14
movzx eax, byte [rdx + 2]
xor rcx, rax
imul rcx, r14
movzx eax, byte [rdx + 3]
xor rcx, rax
imul rcx, r14
mov rax, qword [rsi + 0x30]
and rax, rcx
shl rax, 4
mov r10, qword [rsi + 0x18]
mov r9, qword [r10 + rax]
mov rbx, r9
lea r11, [rax + 8]
mov rdx, qword [rsi + 8]
cmp r9, rdx
jne 0x1401caf3f
mov rax, rdx
jmp 0x1401caf46
mov rax, qword [r10 + r11]
mov rax, qword [rax]
cmp rbx, rax
je 0x1401caf86
mov r8d, dword [rdi]
cmp dword [rbx + 0x10], r8d
je 0x1401caf59
mov rbx, qword [rbx]
jmp 0x1401caf35
mov rcx, rbx
mov rdi, rbx
nop
cmp r9, rdx
jne 0x1401caf6a
mov rax, rdx
jmp 0x1401caf71
mov rax, qword [r10 + r11]
mov rax, qword [rax]
cmp rbx, rax
je 0x1401caf81
cmp r8d, dword [rbx + 0x10]
jne 0x1401caf81
mov rbx, qword [rbx]
jmp 0x1401caf60
cmp rcx, rbx
jne 0x1401caf8c
mov rdi, rdx
mov rbx, rdx
mov rax, rdi
xor ebp, ebp
cmp rdi, rbx
je 0x1401cafab
nop word [rax + rax]
inc rbp
mov rax, qword [rax]
cmp rax, rbx
jne 0x1401cafa0
mov rcx, qword [rdx]
cmp rdi, rcx
jne 0x1401caffa
cmp rbx, rdx
jne 0x1401caffa
mov qword [rdx], rdx
mov rax, qword [rsi + 8]
mov qword [rax + 8], rax
mov qword [rsi + 0x10], 0
cmp rcx, qword [rsi + 8]
je 0x1401cafe7
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.140177360
mov rcx, rbx
cmp rbx, qword [rsi + 8]
jne 0x1401cafd1
mov edx, 8
mov rcx, rsi
call fcn.140086860
nop
jmp 0x1401cb0b1
cmp rdi, rbx
je 0x1401cb0b1
nop dword [rax]
nop word [rax + rax]
mov rcx, rdi
mov rdi, qword [rdi]
movzx r8d, byte [rcx + 0x10]
xor r8, r15
imul r8, r14
movzx eax, byte [rcx + 0x11]
xor r8, rax
imul r8, r14
movzx eax, byte [rcx + 0x12]
xor r8, rax
imul r8, r14
movzx eax, byte [rcx + 0x13]
xor r8, rax
imul r8, r14
and r8, qword [rsi + 0x30]
shl r8, 4
mov rdx, qword [rsi + 0x18]
add rdx, r8
cmp qword [rdx + 8], rcx
jne 0x1401cb07d
cmp qword [rdx], rcx
jne 0x1401cb073
mov rax, qword [rsi + 8]
mov qword [rdx], rax
mov rdx, qword [rsi + 0x18]
mov rax, qword [rsi + 8]
mov qword [r8 + rdx + 8], rax
jmp 0x1401cb085
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
jmp 0x1401cb085
cmp qword [rdx], rcx
jne 0x1401cb085
mov qword [rdx], rdi
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
dec qword [rsi + 0x10]
mov edx, 0x18
call fcn.140177360
cmp rdi, rbx
jne 0x1401cb010
mov rax, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1401cca90
Capabilities:
Hash data using murmur3

Disassembly:
mov r8d, dword [rcx]
mov r10, rcx
movzx eax, r8w
imul r11d, eax, 0x9069
shr r8d, 0x10
add r11d, r8d
mov r8d, dword [rcx + 4]
mov dword [rcx], r11d
movzx eax, r8w
imul r9d, eax, 0x4650
shr r8d, 0x10
shl r11d, 0x10
add r9d, r8d
mov dword [rcx + 4], r9d
mov ecx, dword [rcx + 8]
shl ecx, 0x11
xor ecx, dword [r10 + 8]
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, dword [r10 + 0xc], 0x10dcd
mov edx, eax
shl edx, 5
xor edx, eax
lea eax, [r9 + r11]
mov dword [r10 + 8], edx
add ecx, 0x12d687
xor eax, ecx
mov dword [r10 + 0xc], ecx
add eax, edx
ret
Function at 0x140001109
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x14000112c
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0x12345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x140001157
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x140001150
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x140002ac1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xac7c
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140002b12
mov rbx, rax
call 0x140002af5
pop rsi
mov rcx, rax
add rsi, 0x51c16
mov rcx, 0xac7c
mov dl, byte [rsi]
mov byte [rbx], dl
inc rsi
inc rbx
loop 0x140002b07
hlt
mov rbx, rax
call rbx
mov ecx, 1
ret

Function at 0x140003d00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r15, qword [rsp + 0xb0]
mov r14d, ecx
mov rcx, r8
mov rsi, r9
mov r12, rdx
lea rdi, [r9 + r15]
call fcn.140014e60
mov rbx, rax
test rax, rax
je 0x140003e20
movzx r8d, byte [rax]
test r8b, r8b
je 0x140003e20
mov rbp, qword [rsp + 0xb8]
movabs r13, 0x200000000801
mov rcx, rsi
test r8b, r8b
je 0x140003e20
cmp r8b, 0x3b
je 0x140003d94
cmp r8b, 0x22
je 0x140003d87
cmp rcx, rdi
jae 0x140003d87
mov byte [rcx], r8b
inc rcx
movzx r8d, byte [rbx + 1]
inc rbx
test r8b, r8b
jne 0x140003d70
cmp rcx, rsi
je 0x140003e0a
movzx eax, byte [rcx - 1]
sub al, 0x2f
cmp al, 0x2d
ja 0x140003dad
movsx rax, al
bt r13, rax
jb 0x140003db8
cmp rcx, rdi
jae 0x140003e0a
mov byte [rcx], 0x5c
inc rcx
cmp rcx, rdi
jae 0x140003e0a
mov rdx, rdi
mov r8, r12
sub rdx, rcx
call fcn.1400095b0
test eax, eax
je 0x140003e0a
xor edx, edx
mov rcx, rsi
call fcn.140007400
test eax, eax
jne 0x140003e0a
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400076a0
test eax, eax
jne 0x140003dfe
mov eax, dword [rsp + 0x30]
and eax, 0xf000
cmp eax, 0x4000
je 0x140003e0a
mov rdx, rsi
mov ecx, r14d
call rbp
test eax, eax
jne 0x140003e28
cmp byte [rbx], 0
je 0x140003e20
movzx r8d, byte [rbx + 1]
inc rbx
test r8b, r8b
jne 0x140003d64
test r15, r15
je 0x140003e28
mov byte [rsi], 0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140005270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r11, qword [rcx + 0x30]
movzx esi, byte [rdx]
mov edi, r8d
mov r9, qword [r11]
mov rbx, rdx
test r9, r9
je 0x140005350
movabs rbp, 0x8000000000002001
nop word [rax + rax]
test dword [r11 + 8], edi
je 0x14000533f
movzx eax, byte [r9]
xor al, sil
test al, 0xdf
jne 0x14000533f
mov rdx, rbx
nop dword [rax + rax]
movzx eax, byte [r9]
sub al, 0x20
cmp al, 0x3f
ja 0x1400052f0
movsx rax, al
bt rbp, rax
jae 0x1400052f0
inc r9
jmp 0x1400052d0
movzx eax, byte [rdx]
sub al, 0x20
cmp al, 0x3f
ja 0x140005308
movsx rcx, al
bt rbp, rcx
jae 0x140005308
inc rdx
jmp 0x1400052f0
movzx ecx, byte [r9]
movsx r8d, cl
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x14000531b
or r8d, 0x20
movzx r10d, byte [rdx]
lea eax, [r10 - 0x41]
cmp al, 0x19
movsx eax, r10b
ja 0x14000532e
or eax, 0x20
cmp r8d, eax
jne 0x14000533f
test cl, cl
je 0x140005367
inc r9
inc rdx
jmp 0x1400052d0
mov r9, qword [r11 + 0x10]
add r11, 0x10
test r9, r9
jne 0x1400052b0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov eax, 1
jmp 0x140005352
Function at 0x140006810
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [rsp + 0x290]
mov edi, 1
mov qword [0x140054668], rcx
mov qword [0x140054670], rdx
mov dword [0x140054678], r9d
mov qword [0x140054680], r8
mov qword [0x140054688], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rcx, [rsp + 0x150]
mov r8, rax
mov edx, 0x104
call fcn.1400095b0
lea r8, [rsp + 0x290]
lea rdx, str.service
lea rcx, [rsp + 0x150]
call fcn.14000ce50
mov rdx, qword [rsp + 0x290]
movsxd rbp, eax
mov ecx, ebp
call fcn.140006bc0
mov ebx, edi
cmp rdi, rbp
jge 0x140006904
nop word [rax + rax]
mov rcx, qword [rsp + 0x290]
mov rdx, qword [rcx + rbx*8]
movzx ecx, byte [rdx]
sub cl, 0x2d
test cl, 0xfd
jne 0x1400068fc
cmp byte [rdx + 1], 0x68
jne 0x1400068fc
cmp byte [rdx + 2], 0x76
jne 0x1400068fc
mov ecx, edi
call fcn.140007070
mov rdx, qword [rsp + 0x290]
mov rcx, qword [rdx + rbx*8]
add rcx, 3
cmp byte [rcx], 0
jne 0x1400068f7
mov rcx, qword [rdx + rbx*8 + 8]
inc rbx
call fcn.140007080
inc rbx
cmp rbx, rbp
jl 0x1400068b0
mov ecx, dword [rsp + 0x298]
cmp ecx, 2
jne 0x140006a20
call fcn.140007000
test eax, eax
je 0x140006a14
lea rax, str.DBSERVER
mov qword [rsp + 0x30], rax
lea rax, [0x140006240]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call fcn.140006ff0
mov rcx, qword [0x140054688]
lea r8, [rsp + 0x50]
mov r9d, pe_nt_image_headers64
mov edx, 0x1ae9
mov qword [rsp + 0x20], rax
call fcn.140005770
lea rcx, [rsp + 0x50]
mov edx, 4
call fcn.1400070b0
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x1400069f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140006ff0
mov rcx, qword [0x140054688]
lea r8, [rsp + 0x50]
mov r9d, pe_nt_image_headers64
mov edx, 0x1ab4
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.140005770
lea rcx, [rsp + 0x50]
mov edx, edi
call fcn.1400070b0
mov rdx, qword [rsp + 0x290]
mov ecx, ebp
call fcn.14000cec0
lea r11, [rsp + 0x260]
movzx eax, di
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, qword [0x140054660]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140054650]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1400069c7
xor ecx, ecx
call fcn.140006cd0
movzx edi, ax
jmp 0x1400069c7
mov eax, dword [rsp + 0x2a0]
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov r8d, pe_nt_image_headers64
mov dword [rsp + 0x20], eax
call fcn.140005790
call fcn.140007000
test eax, eax
jne 0x1400069bb
cmp dword [0x14005463c], eax
jne 0x1400069bb
lea r8, str.Error
lea rdx, [rsp + 0x50]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400069c7

Function at 0x140007090
Capabilities:
Access the windows event log

Disassembly:
mov r8, rcx
lea rcx, str.SQLANY64_17.0
mov r9d, 1
jmp 0x1400070f0
Function at 0x1400070b0
Capabilities:
Access the windows event log

Disassembly:
mov r8, rcx
movzx r9d, dx
lea rcx, str.SQLANY64_17.0
xor edx, edx
jmp 0x1400070f0

Function at 0x1400070d0
Capabilities:
Access the windows event log

Disassembly:
movzx r9d, r8w
mov r8, rcx
lea rcx, str.SQLANY64_17.0
jmp 0x1400070f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
movzx ecx, r9w
movzx ebp, r9w
mov rdi, r8
mov rbx, rdx
call fcn.140006fd0
test eax, eax
je 0x1400071a7
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov rsi, rax
call fcn.140007000
test eax, eax
je 0x140007141
call fcn.140006ff0
mov rbx, rax
test rbx, rbx
je 0x140007161
cmp byte [rbx], 0
je 0x140007161
mov r9d, 1
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea eax, [r9 + 1]
jmp 0x140007170
mov r9d, 2
mov qword [rsp + 0x50], rdi
lea eax, [r9 - 1]
xor edx, edx
lea rcx, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], rdx
mov rcx, rsi
movzx edx, bp
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x1400070f0
Capabilities:
Access the windows event log

Disassembly:
movzx r9d, r8w
mov r8, rcx
lea rcx, str.SQLANY64_17.0
jmp 0x1400070f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
movzx ecx, r9w
movzx ebp, r9w
mov rdi, r8
mov rbx, rdx
call fcn.140006fd0
test eax, eax
je 0x1400071a7
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov rsi, rax
call fcn.140007000
test eax, eax
je 0x140007141
call fcn.140006ff0
mov rbx, rax
test rbx, rbx
je 0x140007161
cmp byte [rbx], 0
je 0x140007161
mov r9d, 1
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
lea eax, [r9 + 1]
jmp 0x140007170
mov r9d, 2
mov qword [rsp + 0x50], rdi
lea eax, [r9 - 1]
xor edx, edx
lea rcx, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], ax
mov qword [rsp + 0x20], rdx
mov rcx, rsi
movzx edx, bp
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400071c0
Capabilities:
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x150
mov r8d, 0x23
mov rbp, rdx
mov rsi, rcx
call fcn.140007300
mov rdi, rax
test rax, rax
jne 0x1400072e5
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400072de
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x180]
lea r9, [rsp + 0x188]
mov qword [rsp + 0x28], rax
lea rdx, str.Common_AppData
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x170], rbx
mov dword [rsp + 0x180], ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x170]
jne 0x1400072de
mov eax, dword [rsp + 0x188]
cmp eax, 2
jne 0x1400072cb
lea rdx, [rsp + 0x40]
mov r8d, 0x106
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, eax
cmp rdi, rbp
ja 0x1400072c5
cmp edi, 0x106
ja 0x1400072c5
test eax, eax
je 0x1400072b7
lea r8, [rsp + 0x40]
mov rdx, rbp
mov rcx, rsi
call fcn.1400095b0
dec edi
mov edi, edi
jmp 0x1400072de
xor edi, edi
test rbp, rbp
je 0x1400072c7
mov byte [rsi], dil
mov edi, edi
jmp 0x1400072de
xor edi, edi
mov edi, edi
jmp 0x1400072de
cmp eax, 1
jne 0x1400072dc
mov edi, dword [rsp + 0x180]
dec rdi
jmp 0x1400072de
xor edi, edi
mov byte [rdi + rsi], 0
mov rax, rdi
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400073b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400073df
mov eax, eax
cmp rax, rdi
ja 0x1400073df
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x1400073e7
mov byte [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400076a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbx, rdx
lea rdx, [rsp + 0x20]
mov rsi, rcx
call fcn.140016304
mov edi, eax
test eax, eax
jne 0x14000775e
movzx r8d, word [rsp + 0x26]
mov qword [rsp + 0x70], rbp
mov ebp, 0x4000
test bp, r8w
jne 0x14000770c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140007706
test al, 0x10
je 0x140007706
movzx r8d, word [rsp + 0x26]
mov eax, 0xfff
and r8w, ax
or r8w, bp
jmp 0x14000770c
movzx r8d, word [rsp + 0x26]
mov eax, dword [rsp + 0x20]
mov rbp, qword [rsp + 0x70]
mov qword [rbx], rax
movzx eax, word [rsp + 0x24]
mov qword [rbx + 8], rax
movzx eax, r8w
mov dword [rbx + 0x10], eax
movsx eax, word [rsp + 0x2a]
mov dword [rbx + 0x14], eax
movsx eax, word [rsp + 0x2c]
mov dword [rbx + 0x18], eax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x20], rax
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x38], rax
mov eax, edi
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140007780
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x110
mov esi, dword [rsp + 0x160]
mov rbp, r8
mov r14, rdx
mov r15, rcx
lea rbx, [0x140039888]
lea r12, vtable.type_info.0
mov qword [rsp + 0x140], rdi
nop
lea r8, str.SoftwareSAPSQL_Anywhere
lea rcx, [rsp + 0x40]
mov edx, 0xc8
call fcn.1400095b0
lea r8, [0x14002b8e4]
lea rcx, [rsp + 0x40]
mov edx, 0xc8
call fcn.140009420
lea rcx, [rsp + 0x40]
mov r8, r15
mov edx, 0xc8
call fcn.140009420
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140007862
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x158]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140007862
cmp dword [rsp + 0x30], esi
je 0x140007891
add rbx, 8
cmp rbx, r12
jl 0x1400077c0
xor eax, eax
mov rdi, qword [rsp + 0x140]
mov rbx, qword [rsp + 0x148]
add rsp, 0x110
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
mov eax, 1
jmp 0x140007871
Function at 0x140009840
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, str.SQLANY17
xor ebx, ebx
call fcn.140014e60
test rax, rax
je 0x140009898
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140009864
cmp rbx, 0x104
jb 0x140009885
xor ebx, ebx
call fcn.140015cc0
mov dword [rax], 0x26
jmp 0x140009898
test rbx, rbx
je 0x140009898
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.140014ee0
mov byte [rbx + rdi], 0
test rbx, rbx
je 0x1400098b1
cmp byte [rbx + rdi - 1], 0x2f
jne 0x1400098b1
dec rbx
mov byte [rbx + rdi], 0
jne 0x1400098a1
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x360
mov r15, r8
mov r13, rdx
lea rax, [0x140003e50]
mov r12, r9
xor r14d, r14d
lea r8, [rsp + 0x250]
lea rdx, str.sqlany.cvf
lea ecx, [r14 + 8]
or esi, 0xffffffff
mov r9d, 0x104
mov qword [rsp + 0x20], rax
or ebp, esi
call fcn.1400034f0
test rax, rax
je 0x14000a9b2
lea rdx, [0x14002bd9c]
lea rcx, [rsp + 0x250]
call fcn.140015f30
mov rdi, rax
test rax, rax
je 0x14000a9b2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400188bc
test eax, eax
jne 0x14000a9a5
mov qword [rsp + 0x390], rbx
mov ebx, 1
lea edx, [rax + 4]
lea rcx, [rsp + 0x38]
mov r9, rdi
mov r8d, ebx
call fcn.140018748
cmp rax, rbx
jne 0x14000a99d
lea rcx, [rsp + 0x31]
mov r9, rdi
mov r8d, ebx
mov edx, ebx
call fcn.140018748
cmp rax, rbx
jne 0x14000a99d
movzx edx, byte [rsp + 0x31]
lea rcx, [rsp + 0x140]
mov r9, rdi
mov r8d, ebx
call fcn.140018748
cmp rax, rbx
jne 0x14000a99d
movzx eax, byte [rsp + 0x31]
lea rdx, str.version2_
lea rcx, [rsp + 0x140]
mov byte [rsp + rax + 0x140], r14b
call fcn.140014bdc
test rax, rax
je 0x14000a99d
lea edx, [rbx + 3]
lea rcx, [rsp + 0x34]
mov r9, rdi
mov r8d, ebx
call fcn.140018748
cmp rax, rbx
jne 0x14000a99d
mov ebx, r14d
cmp dword [rsp + 0x34], ebx
jbe 0x14000a99d
nop dword [rax + rax]
mov eax, 1
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8d, eax
mov edx, eax
call fcn.140018748
cmp rax, 1
jne 0x14000a99d
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r9, rdi
mov r8, rax
call fcn.140018748
cmp rax, 1
jne 0x14000a99d
movzx eax, byte [rsp + 0x30]
lea rcx, [rsp + 0x40]
or edx, 0xffffffff
mov byte [rsp + rax + 0x40], r14b
call fcn.140004be0
cmp rax, r12
jne 0x14000a8f3
mov esi, ebx
cmp ebp, 0xffffffff
jne 0x14000a907
cmp rax, r15
jne 0x14000a8ff
mov ebp, ebx
cmp esi, 0xffffffff
jne 0x14000a910
inc ebx
cmp ebx, dword [rsp + 0x34]
jb 0x14000a890
cmp esi, 0xffffffff
je 0x14000a99d
cmp ebp, 0xffffffff
je 0x14000a99d
mov edx, dword [rsp + 0x38]
xor r8d, r8d
mov rcx, rdi
call fcn.1400188bc
test eax, eax
jne 0x14000a99d
mov edx, dword [rsp + 0x34]
mov ebx, 1
mov rcx, rdi
mov r8d, ebx
imul edx, esi
add edx, ebp
shl edx, 2
call fcn.1400188bc
test eax, eax
jne 0x14000a99d
lea edx, [rbx + 3]
lea rcx, [rsp + 0x3c]
mov r9, rdi
mov r8d, ebx
call fcn.140018748
cmp rax, rbx
jne 0x14000a99d
mov edx, dword [rsp + 0x3c]
test edx, 0xc0000000
je 0x14000a99d
and edx, 0x3fffffff
xor r8d, r8d
mov rcx, rdi
call fcn.1400188bc
test eax, eax
jne 0x14000a99d
lea edx, [rbx + 0x7f]
mov r9, rdi
mov r8d, ebx
mov rcx, r13
call fcn.140018748
cmp rax, rbx
cmove r14d, ebx
mov rbx, qword [rsp + 0x390]
mov rcx, rdi
call fcn.140015df0
mov eax, r14d
jmp 0x14000a9b4
xor eax, eax
lea r11, [rsp + 0x360]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000caf0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
mov edi, r8d
mov rsi, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14000cb35
or eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea r8, [rsp + 0x20]
lea rcx, [0x14000caa0]
mov edx, edi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbx
call fcn.140018930
cmp eax, 0xffffffff
jne 0x14000cb74
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14000cb6a
call fcn.140015cc0
mov ecx, dword [rax]
mov dword [rbx], ecx
mov dword [rsp + 0x28], 0xffffffff
jmp 0x14000cb82
mov rcx, qword [rsp + 0x20]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000dae0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
test r8, r8
je 0x14000db0c
nop word [rax + rax]
movzx r9d, byte [rdx]
imul eax, eax, 0x21
lea rdx, [rdx + 1]
movzx r10d, byte [r9 + rcx + 0x338]
add eax, r10d
dec r8
jne 0x14000daf0
repz ret

Function at 0x1400103c0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0xb8
mov rax, qword [rcx]
mov r9, rdx
mov qword [rsp + 0x20], r8
lea rdx, [rsp + 0x30]
mov r8d, 0x80
call qword [rax + 0xd8]
mov rcx, rax
mov r9, rax
shr r9, 1
and ecx, 1
add r9, rcx
mov ecx, 8
cmp r9, rcx
cmova r9, rcx
xor edx, edx
test r9, r9
je 0x14001042f
lea r8, [rsp + 0x30]
add r8, r9
nop dword [rax]
movzx ecx, byte [rsp + rdx + 0x30]
imul eax, eax, 0x1f
inc rdx
xor ecx, eax
movzx eax, byte [r8]
lea r8, [r8 - 1]
imul ecx, ecx, 0x1f
xor eax, ecx
cmp rdx, r9
jb 0x140010410
add rsp, 0xb8
ret