joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017044
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r12d, r12d
movsxd rbp, ecx
cmp ecx, 7
mov ebx, ecx
mov r14d, edx
cmove ebx, r12d
movsxd rdi, ebx
mov ecx, ebx
lea r15, [0x1400c7ac0]
mov esi, dword [r15 + rdi*4]
sub ecx, 1
je 0x1400170f9
sub ecx, 1
je 0x1400170e1
sub ecx, 1
je 0x1400170cd
sub ecx, 1
je 0x1400170c6
sub ecx, 1
je 0x1400170bf
cmp ecx, 1
jne 0x14001710c
mov rax, qword [0x1400c7be8]
movzx ecx, byte [rax + 0x1e9]
mov dword [0x1400c7ad8], ecx
jmp 0x14001710c
mov ecx, 0x91
jmp 0x1400170d2
mov ecx, 0x90
jmp 0x1400170d2
mov ecx, reloc.ODBC32.dll_SQLRowCount
call qword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
mov dword [r15 + rdi*4], eax
jmp 0x14001710c
mov rax, qword [0x1400c7be8]
mov ecx, dword [rax + 0x186]
and ecx, 1
mov dword [0x1400c7ac8], ecx
jmp 0x14001710c
mov rax, qword [0x1400c7be8]
mov ecx, dword [rax + 0x19e]
mov dword [0x1400c7ac4], ecx
cmp esi, dword [r15 + rdi*4]
je 0x14001717d
cmp dword [0x1400c7500], r12d
je 0x14001717d
mov rcx, qword [0x1400c6a40]
lea rdx, [rbx + rbx*2]
mov eax, dword [rcx + 0x64]
mov r9d, dword [rcx + rdx*8 + 0x2fc]
inc eax
mov r8d, dword [rcx + 0x68]
mov edx, dword [rcx + rdx*8 + 0x2f8]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetRect]
mov rcx, qword [0x1400c6a40]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_InvalidateRect]
test r14d, r14d
je 0x14001717d
mov rcx, qword [0x1400c6a40]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_UpdateWindow]
inc ebx
inc rdi
cmp rdi, rbp
jl 0x14001707e
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400af450
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140026e14
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x380
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rsp + 0x370], rax
or rdi, 0xffffffffffffffff
mov ebp, r9d
mov rax, rdi
mov r9, r8
mov rsi, rcx
inc rax
cmp byte [r8 + rax], 0
jne 0x140026e45
mov ecx, 8
lea rdx, [rsp + 0x360]
cmp eax, ecx
cmovg eax, ecx
mov rcx, r9
movsxd rbx, eax
mov r8, rbx
call fcn.1400a7e70
lea rdx, [rsp + 0x360]
mov r8d, 3
add rdx, rbx
mov ecx, ebp
and ecx, 0xf
cmp ecx, 0xa
sbb al, al
shr ebp, 4
and al, 0xf9
add al, 0x37
add al, cl
mov byte [r8 + rdx], al
sub r8, 1
jns 0x140026e80
add rdx, 4
mov byte [rsi], 0
lea rax, [rsp + 0x463]
sub eax, edx
mov byte [rdx], 0
test eax, eax
jle 0x140026f07
mov rdx, rsi
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [rsi], 0
je 0x140026f07
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140026ec5
movsxd rax, edi
cmp byte [rax + rsi - 1], 0x5c
je 0x140026ee6
cmp edi, 0x103
jge 0x140026ee6
mov byte [rax + rsi], 0x5c
inc edi
mov r8d, 0x104
movsxd rdx, edi
sub r8d, edi
lea rcx, [rsp + 0x360]
add rdx, rsi
call fcn.1400a47b0
jmp 0x140026f92
mov rcx, qword [0x1400c7ba0]
mov ebx, 0x104
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [rbx - 4]
mov r8d, 3
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x253]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x53]
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x153]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
lea rax, [0x1400c7b8c]
mov edx, ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x53]
lea rax, [rsp + 0x360]
mov rcx, rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__makepath_s]
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1400af450
mov rbx, qword [rsp + 0x3a8]
add rsp, 0x380
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002a168
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [0x1400c7ae0]
mov r14d, 0
mov esi, dword [rcx + 0xb4]
mov ebx, esi
mov ebp, dword [rcx + 0x145]
and ebx, 0x1000
mov rcx, qword [rcx + 0xe1]
and esi, 0x2000
mov eax, ebx
setne r14b
neg eax
sbb edx, edx
and edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov r15d, 1
test ebx, ebx
je 0x14002a1e3
test esi, esi
je 0x14002a1e3
mov r8d, r15d
jmp 0x14002a1e6
xor r8d, r8d
mov rcx, qword [0x1400c7ae0]
mov edx, reloc.ODBC32.dll_SQLFreeEnv
add rcx, 0x1bd
call fcn.14008f4a8
test ebx, ebx
jne 0x14002a20b
test esi, esi
jne 0x14002a20b
xor r8d, r8d
jmp 0x14002a20e
mov r8d, r15d
mov rcx, qword [0x1400c7ae0]
mov edx, reloc.ODBC32.dll_SQLFreeStmt
add rcx, 0x1bd
call fcn.14008f4a8
mov dword [rsp + 0x24], r15d
mov ebx, 2
mov rdx, qword [0x1400c7ae0]
test r14d, r14d
je 0x14002a253
test dword [rdx + 0xb4], 0x2000
je 0x14002a253
mov ecx, ebx
call fcn.14002a334
mov edi, eax
jmp 0x14002a255
xor edi, edi
lea rcx, [rdx + 0x1bd]
mov r8d, edi
mov edx, ebx
call fcn.14008f4a8
test r14d, r14d
je 0x14002a29a
lea eax, [rbx - 1]
mov dword [rsp + 0x20], eax
lea eax, [rbx - 1]
cmp eax, ebp
jge 0x14002a29a
mov rcx, qword [0x1400c7ae0]
lea r9, [rsp + 0x20]
movsxd r8, edi
mov edx, 0xb45
mov rcx, qword [rcx + 0x13d]
call qword [sym.imp.USER32.dll_SendMessageA]
add ebx, r15d
cmp ebx, 0xe
jle 0x14002a230
test esi, esi
je 0x14002a2db
mov dword [rsp + 0x20], reloc.ODBC32.dll_SQLFetch
lea eax, [rbp - 0xc]
mov dword [rsp + 0x24], eax
cmp ebp, 0xd
jle 0x14002a2db
mov rcx, qword [0x1400c7ae0]
lea r9, [rsp + 0x20]
movsxd r8, edi
mov edx, 0xb45
mov rcx, qword [rcx + 0x13d]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [0x1400c7ae0]
mov r8d, r14d
add rcx, 0x1bd
xor edx, edx
call fcn.14008f4a8
mov rcx, qword [0x1400c7ae0]
mov r8d, r15d
add rcx, 0x1bd
mov edx, r15d
call fcn.14008f4a8
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400af450
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400327a8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov edx, 0x7c6
mov rsi, r8
mov rbp, rcx
call qword [sym.imp.USER32.dll_GetDlgItem]
or rdi, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rax
mov r8, rdi
mov edx, 0xb1
call qword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
xor r9d, r9d
mov edx, 0x7c6
mov qword [rsp + 0x20], rbx
mov r8d, 0x303
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov edx, 0x7c6
lea r8d, [rdi + 0xd]
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea edx, [rdi + 2]
test rsi, rsi
je 0x140032833
inc rdi
cmp byte [rsi + rdi], bl
jne 0x140032825
test edi, edi
je 0x140032833
mov ebx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.USER32.dll_EnableWindow]

Function at 0x14003aa40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r12, rdx
mov r15, rcx
lea rdx, [rsp + 0x50]
lea rcx, [0x1400b6720]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_562]
xor esi, esi
test eax, eax
cmove rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x14003ab3f
xor edi, edi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x58]
lea rax, [rsp + 0x48]
mov edx, edi
mov qword [rsp + 0x28], rax
mov rcx, rsi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov r14d, eax
test eax, eax
jne 0x14003ab27
cmp dword [rsp + 0x48], 1
jne 0x14003ab27
mov cl, byte [rsp + 0x70]
lea rbx, [rsp + 0x70]
jmp 0x14003ab0d
movzx ecx, cl
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x14003ab11
inc rbx
mov cl, byte [rbx]
test cl, cl
jne 0x14003aafb
cmp byte [rbx], 0
je 0x14003ab27
mov rdx, r12
lea rcx, [rsp + 0x70]
mov rax, r15
call qword [0x1400b1958]
inc edi
cmp r14d, 0x103
jne 0x14003aa99
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400af450
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14003e2d8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r14, edx
mov ebx, r9d
mov edx, r14d
mov rsi, r8
mov r15, rcx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbp, rax
test rsi, rsi
je 0x14003e363
test ebx, ebx
jne 0x14003e329
xor r9d, r9d
xor r8d, r8d
mov edx, 0x140
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x14003e363
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov rdx, r14
mov rcx, r15
mov edi, eax
call fcn.14003dc94
mov rsi, qword [rsi]
movsxd rbx, eax
add rbx, rbx
mov rdx, qword [rsi + rbx*8 + 0x3e]
test rdx, rdx
je 0x14003e359
xor ecx, ecx
call fcn.1400a1e40
test edi, edi
jg 0x14003e37c
and qword [rsi + rbx*8 + 0x3e], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea edx, [rdi + 1]
call fcn.1400a1e8c
test rax, rax
je 0x14003e3a0
mov qword [rsi + rbx*8 + 0x3e], rax
lea r8d, [rdi + 1]
mov rdx, qword [rax]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x14003e363
call fcn.140015964
int3

Function at 0x140042d00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r9, rcx
or rbx, 0xffffffffffffffff
mov r8, rbx
mov edx, 0x1a2
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
jne 0x140042d80
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharLowerA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140042d51
test al, 0x10
je 0x140042d51
mov ebx, 0xfffffffe
or dword [rdi + 8], ebx
mov r9, rsi
mov rcx, qword [rdi]
xor r8d, r8d
movsxd rbx, dword [rdi + 0xc]
mov edx, 0x180
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rdi]
mov r9, rbx
movsxd r8, eax
mov edx, 0x19a
call qword [sym.imp.USER32.dll_SendMessageA]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140042eb0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r14, rcx
lea rcx, [0x1400b6720]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_62]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x18b
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageA]
mov rsi, rax
test eax, eax
je 0x140042fcd
lea rdx, [rsp + 0x30]
lea rcx, [0x1400b6720]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1780]
xor ebx, ebx
test eax, eax
cmove rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140042fcd
xor ebp, ebp
test esi, esi
jle 0x140042fc4
xor edi, edi
mov esi, esi
lea r9, [rsp + 0x50]
mov r8, rdi
mov edx, 0x189
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
js 0x140042fb7
xor r9d, r9d
mov r8, rdi
mov edx, 0x199
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageA]
test rax, rax
je 0x140042fb7
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, [rsp + 0x38]
mov ecx, ebp
call fcn.140072150
inc ebp
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140042f89
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x38]
lea rax, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc rdi
sub rsi, 1
jne 0x140042f39
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400af450
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400433d0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rax, qword [rdx + 8]
mov rdi, rdx
and qword [rsp + 0x28], 0
mov rsi, rcx
mov r9, rcx
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x170]
xor r8d, r8d
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__makepath_s]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004346d
mov r9d, dword [rdi + 0x10]
lea rdx, [rsp + 0x5c]
mov rcx, qword [rdi]
mov r8, rsi
call fcn.1400430e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14004343e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400af450
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140044c1c
Capabilities:
Log keystrokes via polling

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, 0x50
mov eax, 0x100
mov rsi, r9
mov rbx, r8
mov ebp, edx
mov r14, rcx
cmp edx, eax
jne 0x140044db2
mov ecx, SQLPrepare
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140044cf3
cmp rbx, 0x21
je 0x140044c7d
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140044cf3
cmp rbx, 9
jne 0x140044cf3
mov rcx, r14
call qword [sym.imp.USER32.dll_GetParent]
mov esi, 0xbc2
mov rcx, rax
mov edx, esi
mov rbp, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x130b
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jg 0x140044cc8
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1304
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageA]
dec eax
xor r9d, r9d
movsxd r8, eax
mov edx, 0x130c
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
js 0x140044dae
mov qword [rsp + 0x30], rbx
mov rcx, rbp
jmp 0x140044d8e
mov ecx, SQLPrepare
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140044dfc
cmp rbx, 0x22
je 0x140044d17
cmp rbx, 9
jne 0x140044dfc
mov rcx, r14
call qword [sym.imp.USER32.dll_GetParent]
mov esi, 0xbc2
mov rcx, rax
mov edx, esi
mov r14, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x130b
mov rbp, rax
call qword [sym.imp.USER32.dll_SendMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1304
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageA]
or ecx, 0xffffffff
mov edx, 0x130c
dec eax
cmp ebx, eax
cmovge ebx, ecx
xor r9d, r9d
mov rcx, rbp
lea eax, [rbx + 1]
movsxd r8, eax
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
js 0x140044dae
mov qword [rsp + 0x30], rbp
mov rcx, r14
lea r9, [rsp + 0x30]
mov qword [rsp + 0x38], rsi
mov r8, rsi
mov dword [rsp + 0x40], 0xfffffdd9
mov edx, 0x4e
call qword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
jmp 0x140044e18
cmp ebp, 0x87
jne 0x140044dfc
test rsi, rsi
je 0x140044dfc
cmp dword [r9 + 8], eax
jne 0x140044dfc
cmp qword [r9 + 0x10], 9
jne 0x140044dfc
lea ecx, [rbp - 0x76]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140044dfc
mov rcx, qword [rsp + 0x80]
mov r9, rbx
mov r8d, ebp
mov qword [rsp + 0x20], rsi
mov rdx, r14
call qword [sym.imp.USER32.dll_CallWindowProcA]
or rax, 4
jmp 0x140044e18
mov rcx, qword [rsp + 0x80]
mov r9, rbx
mov r8d, ebp
mov qword [rsp + 0x20], rsi
mov rdx, r14
call qword [sym.imp.USER32.dll_CallWindowProcA]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140058ed8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r8, qword [0x1400c7ae0]
mov esi, ecx
mov rbx, qword [r8 + 0x27d]
test rbx, rbx
je 0x140058f6e
mov rbx, qword [rbx]
movsxd rdx, dword [r8 + 0x279]
movsxd rax, dword [r8 + 0x275]
add rdx, rax
lea rdi, [rdx + rdx*2]
shl rdi, 4
add rdi, rbx
cmp rbx, rdi
jae 0x140058f54
mov rdx, qword [rbx]
mov rcx, qword [0x1400c6ac8]
call fcn.1400a1e40
add rbx, 0x30
cmp rbx, rdi
jb 0x140058f35
mov r8, qword [0x1400c7ae0]
mov rdx, qword [r8 + 0x27d]
mov rcx, qword [0x1400c6ac8]
call fcn.1400a1e40
mov r8, qword [0x1400c7ae0]
and qword [r8 + 0x27d], 0
test esi, esi
jne 0x140059036
mov ebx, dword [r8 + 0x245]
test ebx, ebx
je 0x140058fb2
mov edi, ebx
shl rdi, 3
lea rdi, [rdi - 8]
dec ebx
mov rcx, qword [rdi + r8 + 0x29d]
test rcx, rcx
je 0x140058fae
call fcn.1400a31c4
mov r8, qword [0x1400c7ae0]
test ebx, ebx
jne 0x140058f8f
and dword [r8 + 0x245], 0
mov rbx, qword [r8 + 0x265]
test rbx, rbx
je 0x14005902e
mov edi, dword [r8 + 0x26d]
mov r9d, reloc.ODBC32.dll_SQLFetch
mov rcx, qword [0x1400c7b80]
lea r8, [rsp + 0x20]
mov edx, 0x1500af
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_474]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140058ffc
cmp eax, 8
ja 0x140059027
mov r9d, edi
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140026e14
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov r8, qword [0x1400c7ae0]
and qword [r8 + 0x265], 0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400af450
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400657a0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x440
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov r15d, r9d
mov rbp, r8
mov rsi, rdx
mov r14, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140065813
test al, 0x10
jne 0x140065813
mov r9d, 0x134
xor r8d, r8d
mov rdx, r14
mov ecx, 0xc0001
call fcn.14000e620
cmp eax, 7
jne 0x140065801
xor ebx, ebx
jmp 0x140065818
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb ebx, ebx
add ebx, 2
jmp 0x140065818
mov ebx, 1
mov r8d, 0x400
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400a482c
lea rsi, [rsp + 0x30]
cmp byte [rsi], 0
je 0x140065913
cmp ebx, 1
jne 0x14006594d
lea edx, [rbx + 0x3c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov rbx, rax
test rax, rax
je 0x140065902
inc rbx
mov byte [rax], 0
cmp byte [rbx], 0x7b
jne 0x140065878
mov edx, 0x7d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
test rax, rax
jne 0x14006587b
mov rax, rbx
mov edx, SQLNumParams
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov rdi, rax
test rax, rax
je 0x140065897
mov byte [rax], 0
inc rdi
lea rdx, [0x1400b4604]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400658c6
lea rdx, [0x1400b4608]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400658c6
mov eax, 1
jmp 0x1400658cf
xor eax, eax
test r15d, r15d
jne 0x1400658cf
xor ebx, ebx
test eax, eax
lea rcx, [0x1400b45e4]
mov rax, qword [0x1400c78a8]
lea rdx, [0x1400b45f0]
cmovne rdx, rcx
mov r9, rbx
mov rcx, r14
mov r8, rsi
call qword [0x1400b1958]
neg eax
sbb ebx, ebx
add ebx, 2
jmp 0x140065907
mov ebx, 2
mov rsi, rdi
test rdi, rdi
jne 0x140065830
cmp ebx, 1
jne 0x14006594d
test rbp, rbp
je 0x140065923
cmp byte [rbp], 0
jne 0x140065925
xor ebp, ebp
mov rax, qword [0x1400c78a8]
lea r8, str.DefaultTable
mov r9, rbp
lea rdx, [0x1400b45f0]
mov rcx, r14
call qword [0x1400b1958]
neg eax
sbb ebx, ebx
add ebx, 2
mov eax, ebx
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400af450
mov rbx, qword [rsp + 0x488]
add rsp, 0x440
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006637c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, r8
mov rbp, rdx
mov rbx, rcx
mov edi, 2
test r9d, r9d
je 0x1400663df
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400663df
test al, 0x10
jne 0x1400663df
mov r9d, 0x134
xor r8d, r8d
mov rdx, rbx
mov ecx, 0xc0001
call fcn.14000e620
cmp eax, 7
jne 0x1400663df
xor edi, edi
jmp 0x1400664e1
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400664e1
mov ecx, 0x1004f
call fcn.14006fb54
mov ecx, 0x1004d
mov rbx, rax
call fcn.14006fb54
mov rdx, rax
mov r8, rbx
mov rcx, rsi
call fcn.1400271a0
test eax, eax
je 0x1400664d8
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, [rsp + 0x40]
lea r15d, [r8 - 0xb]
mov ecx, r15d
call fcn.140072150
mov ecx, 0x10054
mov rbx, rax
call fcn.14006fb54
mov rdx, rax
mov r8, rbx
mov rcx, rsi
call fcn.1400271a0
test eax, eax
je 0x1400664d8
mov ecx, 0x10051
call fcn.14006fb54
mov ecx, 0x10055
mov rbx, rax
call fcn.14006fb54
mov rdx, rax
mov r8, rbx
mov rcx, rsi
call fcn.1400271a0
test eax, eax
je 0x1400664d8
mov ecx, 0x10056
call fcn.14006fb54
mov rdx, rax
mov r8, rbp
mov rcx, rsi
call fcn.1400271a0
test eax, eax
je 0x1400664d8
mov ecx, 0x10057
call fcn.14006fb54
mov rdx, rax
mov r8, r14
mov rcx, rsi
call fcn.1400271a0
test eax, eax
cmovne edi, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400af450
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006658c
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x28
cmp dword [0x1400c78e0], 0
je 0x1400665f2
cmp byte [0x1400c6038], 0
je 0x1400665f2
mov eax, dword [reloc.AppVIsvSubsystems64.dll_Ordinal_1]
test eax, eax
jne 0x1400665bb
cmp dword [0x1400c52cc], eax
jne 0x1400665c4
mov ecx, 0x64
jmp 0x1400665ed
cmp dword [0x1400c52cc], 0
je 0x1400665e4
cmp ecx, dword [0x1400c52c0]
je 0x1400665e4
mov rcx, qword [0x1400c52d0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
and dword [0x1400c52cc], 0
jmp 0x1400665b4
test eax, eax
je 0x1400665f2
mov ecx, 0x2bc
call fcn.140066518
add rsp, 0x28
ret