joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140179850
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401e872c
test eax, eax
jne 0x1401798b4
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14004a584
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140179874
jmp 0x1401798c6
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140181630
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
cmp dword [rdx + 8], 0x100
jne 0x140181765
mov ebx, dword [rdx + 0x10]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140181765
cmp ebx, 0x43
je 0x14018167c
cmp ebx, 0x2d
jne 0x140181765
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140181765
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop
call fcn.140034378
mov rcx, rax
test rax, rax
je 0x140181782
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14008854e.0]
add rax, 0x18
mov qword [rsp + 0x58], rax
movzx eax, byte [rbp + 0x196]
movzx r9d, byte [rbp + 0x195]
movzx r8d, byte [rbp + 0x194]
mov dword [rsp + 0x20], eax
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x58]
call fcn.1400045f8
mov rbx, qword [rsp + 0x58]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x14018173c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14018173c
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r14
mov ecx, SafeArrayGetDim
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140181765
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x14008854e.0]
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp method.CDialogEx.virtual_536
mov ecx, 0x80004005
call fcn.140004150
int3
Function at 0x1401a29f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov esi, edx
mov rdi, rcx
xor ebp, ebp
cmp edx, 0x79
jne 0x1401a2a1e
lea ecx, [rdx - 0x69]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1401a2a23
cmp esi, 0x5d
jne 0x1401a2a48
or eax, 0xffffffff
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov r8, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, rdi
call fcn.1401a2598
mov eax, 1
jmp 0x1401a2aea
mov edx, esi
mov rcx, qword [rdi + 0x1558]
call fcn.14019e044
test eax, eax
jne 0x1401a2a3e
cmp qword [rdi + 0x1560], rbp
je 0x1401a2aa4
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.1400b9be0
mov ebx, eax
mov dword [rsp + 0x28], eax
mov dword [0x1402b2abc], ebp
mov rcx, qword [rdi + 0x1560]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1b8]
mov edx, esi
call qword [case.0x14008854e.0]
nop
mov dword [0x1402b2abc], ebx
jmp 0x1401a2aea
cmp qword [rdi + 0x1580], rbp
je 0x1401a2ae8
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.1400b9be0
mov ebx, eax
mov dword [rsp + 0x28], eax
mov dword [0x1402b2abc], ebp
mov rcx, qword [rdi + 0x1580]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1d0]
mov edx, esi
call qword [case.0x14008854e.0]
nop
jmp 0x1401a2a9c
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1401c65ec
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx + 8], 0x100
mov rdi, rdx
mov rbx, rcx
jne 0x1401c66fa
cmp qword [rdx + 0x10], 9
je 0x1401c6630
cmp qword [rdx + 0x10], 0x1b
jne 0x1401c6684
call fcn.14003bf2c
test rax, rax
je 0x1401c6684
mov rcx, rbx
call fcn.14003bf2c
jmp 0x1401c6672
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.14003b918
test rax, rax
je 0x1401c6684
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.14003b918
mov rdx, qword [rbx + 0x40]
xor r8d, r8d
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov rcx, rax
call fcn.14003b918
mov rcx, rax
call fcn.140038de8
mov eax, 1
jmp 0x1401c6705
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.14003b918
cmp rax, rbx
jne 0x1401c66fa
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1401c66fa
mov rax, qword [rdi + 0x10]
cmp rax, 0x2e
je 0x1401c66f3
cmp rax, 0x43
je 0x1401c66ec
cmp rax, 0x56
je 0x1401c66d5
cmp rax, 0x58
je 0x1401c66ce
cmp rax, 0x5a
jne 0x1401c66fa
lea edx, [rax + 0x6d]
jmp 0x1401c66da
mov edx, 0x300
jmp 0x1401c66da
mov edx, 0x302
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1401c667a
mov edx, 0x301
jmp 0x1401c66da
mov edx, 0x303
jmp 0x1401c66da
mov rdx, rdi
mov rcx, rbx
call fcn.14008983c
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1401d0e68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401d0eb2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401d0eb2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401d0eb2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401d0eb2
cmp dword [rcx + 0x84], 0xe
jbe 0x1401d0eb2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401d0eb4
xor al, al
add rsp, 0x28
ret

Function at 0x1401d3440
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1401d346e
xor eax, eax
jmp 0x1401d3554
cmp qword [rcx + 0x68], 0
je 0x1401d347f
call fcn.1401d3570
jmp 0x1401d3554
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1401d3496
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1401d3498
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1401d34ca
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1401fe570
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1401d354e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1401d3501
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1401d352a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1401e8fac
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1401d354e
cmp rsi, rbx
ja 0x1401d3508
test rsi, rsi
je 0x1401d354e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1401e8fac
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1401dd57c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401dd3e7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401dd3e7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401dd3e7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401dd3e7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401dd3e7
cmp dword [rcx + 0x84], 0xe
jbe 0x1401dd3e7
cmp dword [rcx + 0xf8], 0
je 0x1401dd3e7
mov ecx, ebx
call fcn.1401dd498
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401dd274
nop
cmp dword [rbp + 0x20], 0
je 0x1401dd435
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401dd440
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401dd378

Function at 0x1401e9694
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401d04c0
sub rsp, rax
mov rax, qword [0x1402a5a80]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401e8d24
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401e96e3
mov rax, rbp
jmp 0x1401e97eb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2b4580]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401f53f0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2b4580]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401e97e7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e97e7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401f53f0
test rax, rax
js 0x1401e97e7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401e97e7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401e97d9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401e97d9
cmp byte [rcx], 0xd
jne 0x1401e97bf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401e97ce
cmp byte [rcx + 1], 0xa
jne 0x1401e97ce
inc rcx
jmp 0x1401e97ce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2a60a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401e97a1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401e97eb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401d06d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401f4628
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1402b4580]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401f467f
cmp word [rdx], r13w
jne 0x1401f467f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401f4684
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401f47a9
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401f47ca
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401f46bd
mov rdx, r9
mov word [rbx], cx
jmp 0x1401f46e4
cmp r9, r8
jae 0x1401f46f4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401f469e
jmp 0x1401f47a9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401f479e
cmp dword [rsp + 0x80], esi
je 0x1401f479e
lea r8, [0x1402b4580]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401f4776
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401f4746
mov word [rbx], r13w
jmp 0x1401f47a6
mov ecx, SafeArrayGetDim
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401f4753
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401f47a6
cmp word [rsp + 0x70], r13w
jne 0x1401f4783
cmp rbx, r14
je 0x1401f4740
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401f53f8
cmp word [rsp + 0x70], r13w
je 0x1401f47a9
mov ecx, SafeArrayGetDim
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1402b4580]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401f47a3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401f47a9
Function at 0x1401f5594
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401f55aa
mov al, 1
jmp 0x1401f560a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401f55bb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401f5608
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401e9fd4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401f5608
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401f5608
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401f5608
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401f560a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401f69e4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401f6a6b
mov rsi, rbx
cmp word [rax], bp
je 0x1401f6a2a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401f6a14
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401f6a10
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401eef14
mov rdi, rax
test rax, rax
je 0x1401f6a58
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401fe570
mov rbp, rdi
xor ecx, ecx
call fcn.1401eeed8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401f94d4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401eeb78
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401f9575
cmp ebx, dword [rsp + 0x30]
je 0x1401f956e
test esi, esi
je 0x1401f956e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401f9549
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401f9556
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401f9533
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401f955a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401f9577
mov eax, 1
jmp 0x1401f9577
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401fe2a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401fe2c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401fe2c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100405a80
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x888
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rsi, qword [rsp + 0x8f0]
mov r13, r8
mov rdi, qword [rsp + 0x8f8]
mov r15, rdx
mov rbx, qword [rsp + 0x900]
mov r12, rcx
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x800
mov rbp, r9
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x58]
xor r14d, r14d
imul ecx, eax, 0x64
mov r9, rdi
movzx eax, word [rsp + 0x5a]
mov r8, rsi
add ecx, eax
movzx eax, word [rsp + 0x5e]
imul edx, ecx, 0x64
add edx, eax
movzx eax, word [rsp + 0x60]
imul ecx, eax, 0x64
movzx eax, word [rsp + 0x62]
mov dword [rsp + 0x54], edx
mov rdx, rbp
add ecx, eax
movzx eax, word [rsp + 0x64]
imul r10d, ecx, 0x64
lea ecx, [r14 + 4]
add r10d, eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x50], r10d
call fcn.100407ca0
mov ebp, r14d
cmp dword [r15 + 0xc], r14d
jle 0x100405ccc
mov edx, ebp
mov rcx, r15
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov rsi, rax
test rax, rax
je 0x100405cc0
test byte [rax + 0x110], 4
je 0x100405cc0
cmp word [rax + 0x2b4], 0
je 0x100405cc0
lea rcx, [r13 + 4]
xor edx, edx
mov qword [rsp + 0x20], rcx
lea r9, [rax + 4]
mov r8d, 0xed
lea ecx, [rdx + 3]
call fcn.100432180
mov r8d, 0x86b
lea rdx, str.AlertNetSend
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
call fcn.10043acf0
mov r14, rax
test rax, rax
je 0x100405cc0
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2 + 0x2b4], 0
jne 0x100405be0
test ebx, ebx
je 0x100405c28
lea ecx, [rbx*2 + 2]
mov r8d, 0x86d
lea rdx, str.AlertNetSend
call fcn.10043acf0
mov qword [r14], rax
test rax, rax
je 0x100405c28
lea ecx, [rbx + 1]
movsxd rdx, ecx
lea r8, [rsi + 0x2b4]
mov rcx, rax
call fcn.10040d530
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x100405c34
test ebx, ebx
je 0x100405c77
lea ecx, [rbx*2 + 2]
mov r8d, 0x873
lea rdx, str.AlertNetSend
call fcn.10043acf0
mov qword [r14 + 8], rax
test rax, rax
je 0x100405c77
lea ecx, [rbx + 1]
movsxd rdx, ecx
lea r8, [rsp + 0x70]
mov rcx, rax
call fcn.10040d530
xor eax, eax
lea r8, [0x100432be0]
mov qword [rsp + 0x28], rax
mov r9, r14
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x100405ca4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, dword [rsp + 0x50]
mov rcx, r12
mov r8d, dword [rsp + 0x54]
mov edx, dword [rsi]
mov dword [rsp + 0x20], 4
call fcn.100411b70
inc ebp
cmp ebp, dword [r15 + 0xc]
jl 0x100405b64
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.100469360
add rsp, 0x888
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100407a10
Capabilities:
Access the windows event log

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [0x1004a8c80]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov rbx, rax
test rax, rax
je 0x100407a5d
mov rdx, qword [0x1004a90e8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_NotifyChangeEventLog]
test eax, eax
jne 0x100407a5a
mov eax, 1
xor r9d, r9d
mov r8d, 0x80000130
movzx edx, ax
lea ecx, [rax + 2]
call fcn.100431c20
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x100411290
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x4c0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x4f0], rbx
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov rdi, rdx
mov rbx, rcx
movups xmm0, xmmword [str.ConnCheckIfDBIsOnline]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [0x100473138]
movups xmmword [rsp + 0x88], xmm1
movsd xmm0, qword [0x100473148]
movsd qword [rsp + 0x98], xmm0
mov eax, dword [0x100473150]
mov dword [rsp + 0xa0], eax
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll_memset
xor esi, esi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x54], esi
test rbx, rbx
je 0x100411479
test rdi, rdi
je 0x100411479
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x68], si
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], 0
jne 0x100411344
add eax, eax
mov ebp, 1
mov word [rsp + 0x68], bp
movsxd r10, eax
lea ecx, [rbp - 0xa]
lea r9d, [rbp - 9]
mov r8d, ebp
mov edx, ebp
lea rax, [0x100499038]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x30], si
mov qword [rsp + 0x28], 0x80
mov word [rsp + 0x20], cx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x200
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, str.SELECT_HAS_DBACCESS_name__FROM_sys.databases_WHERE__name____
mov rcx, rbx
call fcn.100410640
mov r9d, dword [rsp + 0x50]
test eax, eax
je 0x100411446
test r9d, r9d
jne 0x100411446
nop word [rax + rax]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8d, [r9 - 0x14]
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
nop dword [rax]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
je 0x100411420
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, ebp
je 0x1004113f0
jmp 0x100411459
xor r8d, r8d
lea rdx, str.ConnCheckIfDBIsOnline_lSQLError:_d
lea ecx, [r8 + 3]
call fcn.100432180
cmp dword [rsp + 0x54], ebp
sete sil
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x100411475
mov edx, 3
call qword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, esi
jmp 0x10041147b
xor eax, eax
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.100469360
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4c0
pop rdi
pop rsi
pop rbp
ret