joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64db90
Capabilities:
Get keyboard layout

Disassembly:
push rbp
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x90], rcx
nop
mov byte [0x006ffbb8], 0
mov word [rbp + 0x54], 0
lea rcx, [rbp + 0x54]
call sub.user32.dll_GetKeyboardLayoutNameW
mov rcx, qword [0x00553b40]
mov dl, 1
call fcn.00555260
mov qword [rbp + 0x70], rax
nop
mov rcx, qword [rbp + 0x70]
mov rdx, 0xffffffff80000002
call fcn.00555510
lea rcx, [rbp + 0x28]
lea rdx, [rbp + 0x54]
mov r8d, 0xa
call fcn.004121b0
lea rcx, [rbp + 0x30]
lea rdx, [0x0064dd78]
mov r8, qword [rbp + 0x28]
call fcn.00412510
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x30]
call fcn.00555900
test al, al
je 0x64dcca
mov rcx, qword [rbp + 0x70]
lea rdx, [rbp + 0x68]
lea r8, [0x0064ddec]
call fcn.00556570
mov rcx, qword [rbp + 0x68]
mov edx, 0x8000
call fcn.00445980
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
je 0x64dcca
nop
mov rcx, qword [rbp + 0x78]
lea rdx, [0x0064de04]
call fcn.00421dc0
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x64dcc0
call qword [rbp + 0x40]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x64dcc0
mov rcx, qword [rbp + 0x90]
call fcn.0064db00
test eax, eax
je 0x64dca4
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x50]
mov dword [rbp + 0x50], eax
jmp 0x64dcae
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x50]
mov dword [rbp + 0x50], eax
mov eax, dword [rbp + 0x50]
and eax, 1
cmp eax, 1
sete al
mov byte [0x006ffbb8], al
nop
mov rcx, qword [rbp + 0x78]
call sub.kernel32.dll_FreeLibrary
nop
mov rcx, qword [rbp + 0x70]
call fcn.0040d8b0
nop
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.00410ce0
lea rcx, [rbp + 0x68]
call fcn.00410c00
lea rsp, [rbp + 0x80]
pop rbp
ret

Function at 0x64de80
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movzx bx, byte [rbp + 0x28]
test bx, bx
je 0x64dedc
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x64deb8
add bx, 0x2000
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x64decc
add bx, 0x4000
mov eax, dword [rbp + 0x30]
test eax, 0x20000000
je 0x64dedc
add bx, 0x8000
mov eax, ebx
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x668ea0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx rbx, word [0x00668f08]
mov eax, ecx
test ax, 4
je 0x668eba
or bx, 1
mov eax, ecx
test ax, 8
je 0x668ec7
or bx, 4
mov eax, ecx
test ax, 1
je 0x668ed4
or bx, 8
mov eax, ecx
test ax, 2
je 0x668ee1
or bx, 0x10
test cx, 0x10
je 0x668eec
or bx, 0x20
mov ecx, 0x12
call sub.user32.dll_GetKeyState
Function at 0x668f10
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
movzx rsi, word [0x00668f5c]
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x668f33
or si, 1
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x668f46
or si, 4
test ebx, 0x20000000
je 0x668f52
or si, 2
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x6783e0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x510
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x520], rcx
nop
mov rax, qword [rbp + 0x520]
cmp qword [rax + 0x80], 0
jne 0x6785ed
mov rcx, qword [0x004cb888]
mov dl, 1
call fcn.00508c50
mov rcx, qword [rbp + 0x520]
mov qword [rcx + 0x80], rax
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x88]
call fcn.00410c00
mov ecx, 0x40
lea rdx, [rbp + 0x2f0]
call sub.user32.dll_GetKeyboardLayoutList
mov dword [rbp + 0x4fc], eax
xor eax, eax
mov ecx, dword [rbp + 0x4fc]
sub ecx, 1
mov dword [rbp + 0x3c], ecx
mov dword [rbp + 0x4f8], eax
mov ecx, dword [rbp + 0x3c]
cmp dword [rbp + 0x4f8], ecx
jg 0x6785d0
mov ecx, dword [rbp + 0x3c]
sub ecx, eax
add ecx, 1
mov dword [rbp + 0x3c], ecx
lea rax, [rbp + 0x2f0]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax]
call fcn.005c8a60
test al, al
je 0x6785b7
mov rax, qword [rbp + 0x60]
movzx eax, word [rax]
mov dword [rbp + 0x48], eax
mov byte [rbp + 0x50], 0
lea rcx, [rbp + 0x70]
lea rdx, [0x00678658]
lea r8, [rbp + 0x48]
xor r9, r9
call fcn.004383a0
mov rcx, 0xffffffff80000002
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x508]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x6785b7
nop
mov dword [rbp + 0x4f4], 0x200
mov rcx, qword [rbp + 0x508]
lea rdx, [0x006786c6]
xor r8, r8
xor r9, r9
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x4f4]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x6785aa
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.004121b0
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x80]
mov rcx, rax
mov rdx, qword [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r8, qword [r8]
mov rax, qword [rax]
call qword [rax + 0x80]
mov rax, qword [rbp + 0x60]
mov rcx, qword [rbp + 0x520]
mov rax, qword [rax]
cmp rax, qword [rcx + 0x90]
jne 0x6785aa
mov rax, qword [rbp + 0x520]
lea rcx, [rax + 0x88]
lea rdx, [rbp + 0xf0]
mov r8d, pe_nt_image_headers64
call fcn.004121b0
nop
mov rcx, qword [rbp + 0x508]
call sub.advapi32.dll_RegCloseKey
add qword [rbp + 0x60], 8
mov eax, dword [rbp + 0x3c]
sub eax, 1
mov dword [rbp + 0x3c], eax
mov eax, dword [rbp + 0x3c]
test eax, eax
jne 0x678493
nop
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x80]
mov byte [rax + 0x49], 0
mov rcx, rax
mov dl, 1
call fcn.00508ad0
mov rax, qword [rbp + 0x520]
mov rax, qword [rax + 0x80]
mov qword [rbp + 0x500], rax
nop
lea rcx, [rbp + 0x40]
call fcn.00410c00
mov rax, qword [rbp + 0x500]
lea rsp, [rbp + 0x510]
pop rbp
ret
Function at 0x679700
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x00715d10]
cmp byte [rax + 0x159], 0
jne 0x67979e
cmp qword [0x00715d48], 0
jne 0x679745
call sub.kernel32.dll_GetCurrentThreadId
mov ecx, 3
mov rdx, qword [0x00702a00]
xor r8, r8
mov r9d, eax
call sub.user32.dll_SetWindowsHookExW
mov qword [0x00715d48], rax
cmp qword [0x00715d40], 0
jne 0x679765
xor ecx, ecx
xor edx, edx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreateEventW
mov qword [0x00715d40], rax
cmp qword [0x00715d50], 0
jne 0x67979e
xor ecx, ecx
mov edx, 0x3e8
mov r8, qword [0x007029f8]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov qword [0x00715d50], rax
add rsp, 0x48
ret

Function at 0x67a940
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov rbx, rcx
mov rax, qword [rbx + 0x2e0]
test rax, rax
je 0x67aa1f
cmp dword [rbx + 0x128], 0
jne 0x67aa15
mov qword [rbp + 0x40], rax
mov byte [rbp + 0x48], dl
lea rcx, [0x0067a840]
lea rdx, [rbp + 0x40]
call sub.user32.dll_EnumWindows
mov rax, qword [rbx + 0x120]
cmp dword [rax + 0x10], 0
je 0x67aa15
mov rcx, qword [rbp + 0x40]
mov edx, 3
call sub.user32.dll_GetWindow
mov qword [rbp + 0x40], rax
mov rcx, qword [rbp + 0x40]
mov edx, 0xffffffec
call sub.user32.dll_GetWindowLongPtrW
test rax, 8
je 0x67a9c3
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rax, qword [rbx + 0x120]
mov esi, dword [rax + 0x10]
sub esi, 1
test esi, esi
jl 0x67aa14
mov rcx, qword [rbx + 0x120]
mov edx, esi
call fcn.00500c90
mov rcx, rax
mov rdx, qword [rbp + 0x40]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0x213
call sub.user32.dll_SetWindowPos
sub esi, 1
cmp esi, 0xffffffff
jne 0x67a9d4
nop
lea rax, [rbx + 0x128]
add dword [rax], 1
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rbp
ret
Function at 0x67ae90
Capabilities:
Enumerate gui resources

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
mov rax, qword [0x00715d10]
cmp qword [rax + 0x2e0], 0
je 0x67b054
test sil, sil
jne 0x67af7c
cmp dword [rbx + 0x138], 0
jne 0x67af6d
mov rcx, rbx
call fcn.0067f990
lea rcx, [0x0067ad50]
mov rdx, rax
call sub.user32.dll_EnumWindows
cmp qword [rbx + 0xa8], 0
je 0x67af2f
mov rax, qword [0x00715d10]
cmp byte [rax + 0x193], 0
je 0x67af2f
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x67af09
mov rax, qword [rax - 8]
lea rdi, [rax - 1]
test edi, edi
jl 0x67af2e
mov rax, qword [rbx + 0x1a0]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
xor edx, edx
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x67af11
nop
mov rax, qword [rbx + 0x130]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x67af6c
mov rcx, qword [rbx + 0x130]
mov edx, edi
call fcn.00500c90
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x67af40
nop
lea rax, [rbx + 0x138]
add dword [rax], 1
jmp 0x67b054
cmp dword [rbx + 0x138], 0
jle 0x67b054
lea rax, [rbx + 0x138]
sub dword [rax], 1
cmp dword [rbx + 0x138], 0
jne 0x67b054
cmp qword [rbx + 0xa8], 0
je 0x67aff3
mov rax, qword [0x00715d10]
cmp byte [rax + 0x193], 0
je 0x67aff3
mov rax, qword [rbx + 0x1a0]
test rax, rax
je 0x67afca
mov rax, qword [rax - 8]
lea rdi, [rax - 1]
test edi, edi
jl 0x67aff2
mov rax, qword [rbx + 0x1a0]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
mov edx, 5
call sub.user32.dll_ShowWindow
sub edi, 1
cmp edi, 0xffffffff
jne 0x67afd2
nop
mov rax, qword [rbx + 0x130]
mov edi, dword [rax + 0x10]
sub edi, 1
test edi, edi
jl 0x67b030
mov rcx, qword [rbx + 0x130]
mov edx, edi
call fcn.00500c90
mov rcx, rax
test sil, sil
setne al
movzx rax, al
neg eax
mov edx, eax
call sub.user32.dll_ShowOwnedPopups
sub edi, 1
cmp edi, 0xffffffff
jne 0x67b004
nop
mov rax, qword [rbx + 0x130]
mov rcx, rax
mov rsi, qword [rax]
call qword [rsi + 0x10]
lea rcx, [rbx + 0x1a0]
mov rdx, qword [0x00663af8]
call fcn.004153f0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x67c370
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x220
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [rbx + 0x158], 0
je 0x67c3dc
cmp byte [rbx + 0x193], 0
jne 0x67c3dc
mov rcx, qword [rbx + 0x2e0]
lea rdx, [rbp + 0x20]
mov r8d, pe_nt_image_headers64
call sub.user32.dll_GetWindowTextW
mov rcx, rsi
lea rdx, [rbp + 0x20]
mov r8d, eax
call fcn.00410f00
xor eax, eax
mov rcx, qword [rsi]
test rcx, rcx
je 0x67c3c7
mov eax, dword [rcx - 4]
test eax, eax
jne 0x67c3eb
mov rcx, rsi
mov rdx, qword [rbx + 0x118]
call fcn.00411270
jmp 0x67c3eb
mov rcx, rsi
mov rdx, qword [rbx + 0x118]
call fcn.00411270
mov rax, rsi
lea rsp, [rbp + 0x220]
pop rbx
pop rsi
pop rbp
ret
Function at 0x68afd0
Capabilities:
Hide graphical window

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
cmp qword [rbx + 0xd0], 0
jne 0x68b08b
mov rcx, qword [rbx + 0x10]
call fcn.005bf030
mov rcx, qword [0x005d2658]
mov dl, 1
mov r8, rax
call fcn.005b5d20
mov qword [rbx + 0xd0], rax
mov rsi, qword [rbx + 0xd0]
mov rcx, rsi
xor edx, edx
call fcn.005da660
lea rax, [rsi + 0x4d8]
mov qword [rax + 8], rbx
lea rcx, [0x0068a650]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xd0]
call fcn.005bf030
mov rdi, rax
mov rcx, rsi
mov edx, 3
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xd0]
call fcn.005bf030
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xf0], 0
jne 0x68b13a
mov rcx, qword [rbx + 0x10]
call fcn.005bf030
mov rcx, qword [0x005d2658]
mov dl, 1
mov r8, rax
call fcn.005b5d20
mov qword [rbx + 0xf0], rax
mov rsi, qword [rbx + 0xf0]
mov rcx, rsi
mov dl, 1
call fcn.005da660
lea rax, [rsi + 0x4d8]
mov qword [rax + 8], rbx
lea rcx, [0x0068a6b0]
mov qword [rax], rcx
mov rcx, qword [rbx + 0xf0]
call fcn.005bf030
mov rdi, rax
mov rcx, rsi
mov edx, 2
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xf0]
call fcn.005bf030
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
cmp qword [rbx + 0xe0], 0
jne 0x68b1e2
mov rcx, qword [rbx + 0x10]
call fcn.005bf030
mov rcx, qword [0x005d3700]
mov dl, 1
mov r8, rax
call fcn.005b5d20
mov qword [rbx + 0xe0], rax
mov rsi, qword [rbx + 0xe0]
mov byte [rsi + 0x4a8], 1
mov rcx, qword [rbx + 0xe0]
call fcn.005bf030
mov rdi, rax
mov rcx, rsi
mov edx, 2
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov r13d, eax
mov rcx, rsi
mov edx, 3
mov rax, qword [rsi]
call qword [rax + 0x1c0]
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 8
call sub.user32.dll_SetWindowPos
mov rcx, qword [rbx + 0xe0]
call fcn.005bf030
mov rcx, rax
xor edx, edx
call sub.user32.dll_ShowWindow
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret
Function at 0x69fd80
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov rcx, qword [rbp + 0x68]
call fcn.00410dd0
nop
xor ecx, ecx
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x69fe6e
nop
mov dword [rbp + 0x3c], 0
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x20], rax
test rax, rax
je 0x69fdcc
mov rax, qword [rbp + 0x20]
mov eax, dword [rax - 4]
mov dword [rbp + 0x3c], eax
mov ecx, 0x2002
mov edx, dword [rbp + 0x3c]
add edx, edx
add edx, 2
movsxd rdx, edx
call sub.kernel32.dll_GlobalAlloc
mov qword [rbp + 0x48], rax
nop
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_GlobalLock
mov qword [rbp + 0x40], rax
nop
mov dword [rbp + 0x38], 0
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x69fe0e
mov rax, qword [rbp + 0x20]
mov eax, dword [rax - 4]
mov dword [rbp + 0x38], eax
mov rcx, qword [rbp + 0x68]
call fcn.004120f0
mov rcx, rax
mov rdx, qword [rbp + 0x40]
mov r8d, dword [rbp + 0x38]
add r8d, r8d
add r8d, 2
movsxd r8, r8d
call fcn.004096e0
call sub.user32.dll_EmptyClipboard
mov ecx, 0xd
mov rdx, qword [rbp + 0x48]
call sub.user32.dll_SetClipboardData
nop
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_GlobalUnlock
jmp 0x69fe66
nop
call sub.user32.dll_CloseClipboard
jmp 0x69fe8b
mov rcx, qword [0x0042b948]
mov dl, 1
mov r8, qword [0x00707a68]
call fcn.00440bf0
mov rcx, rax
call fcn.0040fd60
nop
lea rcx, [rbp + 0x68]
call fcn.00410c00
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x6ab520
Capabilities:
Write file on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov r13, r9
cmp qword [r13], 0
jne 0x6ab54f
mov rcx, rbx
mov dx, 4
xor r8, r8
call fcn.006aa650
cmp qword [rbx + 0x88], 0xffffffffffffffff
jne 0x6ab56c
mov rcx, rbx
mov dx, 0x18
mov r8, 0xffffffffffffffe8
call fcn.006aa650
xor ecx, ecx
mov rdx, rsi
mov r8d, edi
mov r9, qword [r13]
call fcn.006ab4d0
mov rcx, qword [rbx + 0x88]
mov rdx, rsi
mov r8d, edi
lea r9, [rbp + 0x3c]
mov rax, qword [r13]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x6ab5b1
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x6ab5b1
xor eax, eax
jmp 0x6ab5b3
mov al, 1
test al, al
jne 0x6ab5cb
call sub.kernel32.dll_GetLastError
mov rcx, rbx
mov dx, 2
Function at 0x6abb40
Capabilities:
Read file on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov r13, r9
cmp qword [r13], 0
jne 0x6abb6f
mov rcx, rbx
mov dx, 4
xor r8, r8
call fcn.006aa650
mov rax, qword [r13]
mov byte [rax + 0x20], 1
cmp qword [rbx + 0x88], 0xffffffffffffffff
jne 0x6abb94
mov rcx, rbx
mov dx, 0x18
mov r8, 0xffffffffffffffe8
call fcn.006aa650
mov rcx, qword [rbx + 0x88]
mov rdx, rsi
mov r8d, edi
lea r9, [rbp + 0x3c]
mov rax, qword [r13]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x6abbc8
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x6abbc8
xor eax, eax
jmp 0x6abbca
mov al, 1
test al, al
jne 0x6abbe2
call sub.kernel32.dll_GetLastError
mov rcx, rbx
mov dx, 3
mov r8d, eax
call fcn.006aa650
mov eax, dword [rbp + 0x3c]
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x140026bc0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140026c8c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140026c8c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140026ca5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140026c7c
cmp byte [rax], 0x5c
jne 0x140026c76
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140026c76
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140026c62
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140026c73
test r8b, 0x10
jne 0x140026c76
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140026c76
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14002a1e0
test edi, edi
jne 0x140026be0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.140027d70
int3

Function at 0x14002af30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14002af64
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14002af50
ret
Function at 0x14002da30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400e5ba8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14002da5d
xor eax, eax
jmp 0x14002dbab
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14002da97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14002da97
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14002dbab
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14002db9e
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002dada
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14002dae9
movsx ecx, dil
jmp 0x14002db3d
lea r8, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x41]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x40]
call qword [rax + 0x38]
test eax, eax
je 0x14002db57
sub eax, 1
je 0x14002db57
cmp eax, 2
jne 0x14002db9e
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call fcn.140088bf4
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14002dba3
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14002db84
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.1400894e0
cmp rsi, rax
jne 0x14002db9e
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14002dba3
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007a190
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14002e260
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14002e291
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14002e30b
mov rdi, r14
mov rcx, rbx
call fcn.140028770
test rax, rax
jle 0x14002e2e3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14007c010
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14002e2fb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14002e303
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14002e2a5
sub r14, rdi
jmp 0x14002e3ef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14002e322
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002e324
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14002e356
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14007c010
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14002e3ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002e391
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14002e3cd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140088f78
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14002e3ec
cmp rbp, rax
ja 0x14002e3a0
test rbp, rbp
je 0x14002e3ec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140088f78
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14002e410
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x14002e4a8
test r8, r8
jle 0x14002e4a0
nop word [rax + rax]
mov rcx, rdi
call fcn.140029a10
test rax, rax
jle 0x14002e47e
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov rax, qword [rdi + 0x40]
mov r8, rsi
mov rcx, qword [rax]
call fcn.14007c010
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x14002e498
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp eax, 0xffffffff
je 0x14002e4a0
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x14002e440
sub r14, rbx
mov rax, r14
jmp 0x14002e526
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x14002e4c1
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14002e4c3
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x14002e51b
test ecx, ecx
jle 0x14002e4fc
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.14007c010
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x14002e51b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002e51b
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.1400894e0
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret