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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400cefe4
mov ebx, eax
test eax, eax
jne 0x1400cf6a0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400cf703
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400cf6fa
test al, 0x10
je 0x1400cf6fa
bt eax, 0xa
jae 0x1400cf6f3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400cf714
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400cf6ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400cf6ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400cf6fa
and dword [rsp + 0x3c], 0
jmp 0x1400cf6ff
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400d0bc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d0c0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d0c0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d0c0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d0c0e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d0c0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d0c10
xor al, al
add rsp, 0x28
ret
Function at 0x140006040
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rcx, [0x14016114c]
call fcn.1400f7760
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1400060a4
xor al, al
jmp 0x14000618a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400060ea
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000618a
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140006130
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000618a
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x140006153
mov dword [rsp + 0x64], 1
jmp 0x14000615b
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov byte [rsp + 0x60], al
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x60]
add rsp, 0x70
pop rdi
ret
Function at 0x1400061f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
lea rdi, [rsp + 0x20]
mov ecx, 0x9c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2a0]
mov rax, qword [0x14014e8c0]
xor rax, rsp
mov qword [rsp + 0x288], rax
lea rcx, [0x14016114c]
call fcn.1400f7760
mov dword [rsp + 0x30], 0x238
mov dword [rsp + 0x274], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0xffffffffffffffff
jne 0x140006272
xor eax, eax
jmp 0x1400062f4
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32FirstW
nop
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x2a8]
call fcn.140009010
test eax, eax
jne 0x1400062a6
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x274], eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1400062df
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x2a8]
call fcn.140009010
test eax, eax
jne 0x1400062dd
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x274], eax
jmp 0x1400062a6
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x274]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140100700]
call fcn.1400f7530
mov rax, rdi
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.1400f79a0
add rsp, 0x290
pop rdi
ret
Function at 0x14000f810
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov rax, qword [0x14014e8c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [0x1401613e2]
call fcn.1400f7760
mov edx, 8
lea rcx, [rsp + 0x38]
call fcn.1400151c0
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.14000fef0
nop
lea rax, [0x14000ec80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
add rax, 8
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x38]
call fcn.1400158b0
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
je 0x14000f8e6
lea rcx, [rsp + 0x38]
call fcn.1400168d0
nop
jmp 0x14000f900
mov rax, qword [rsp + 0x80]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140D.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x38]
call fcn.140011280
nop
mov rcx, rsp
lea rdx, [0x140104560]
call fcn.1400f7530
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400f79a0
add rsp, 0x70
pop rdi
ret

Function at 0x1400123c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x14014e8c0]
xor rax, rsp
mov qword [rsp + 0x178], rax
lea rcx, [0x1401613e6]
call fcn.1400f7760
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x14001242d
xor eax, eax
jmp 0x1400124c9
lea rcx, [rsp + 0x40]
call sub.ucrtbased.dll_strlen
mov qword [rsp + 0x170], rax
lea rcx, [0x1401028f0]
call sub.ucrtbased.dll_strlen
mov rcx, qword [rsp + 0x170]
lea rax, [rcx + rax + 1]
cmp rax, 0x104
jb 0x140012464
xor eax, eax
jmp 0x1400124c9
lea rdx, [0x140102900]
lea rcx, [rsp + 0x40]
call fcn.14000ff70
lea rdx, str.ROOXROOX.dll
lea rcx, [rsp + 0x40]
call fcn.14000ff70
nop
mov ecx, 0x104
call fcn.1400f7a40
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x158], rax
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.ucrtbased.dll_strcpy_s]
mov rax, qword [rsp + 0x158]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1401037d0]
call fcn.1400f7530
mov rax, rdi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1400f79a0
add rsp, 0x180
pop rdi
ret
Function at 0x1400129f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1d0
lea rdi, [rsp + 0x20]
mov ecx, 0x6c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1e0]
mov rax, qword [0x14014e8c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rcx, [0x1401613e6]
call fcn.1400f7760
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401396a0]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x140012a68
xor al, al
jmp 0x140012bbd
xor r8d, r8d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.14000da20
nop
mov rdx, qword [rsp + 0x1e8]
lea rcx, [rsp + 0x48]
call fcn.14000e840
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x1f0]
lea rcx, [rsp + 0xb8]
call fcn.14000dd00
mov qword [rsp + 0x1a8], rax
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x88]
call fcn.140011770
mov qword [rsp + 0x1b0], rax
lea rcx, [rsp + 0xb8]
call fcn.140005740
nop
lea rcx, [rsp + 0x88]
call fcn.140009680
mov byte [rsp + 0x1b8], al
movzx eax, byte [rsp + 0x1b8]
test eax, eax
je 0x140012b64
lea rcx, [rsp + 0x88]
call fcn.140015f40
mov byte [rsp + 0x1b9], al
movzx eax, byte [rsp + 0x1b9]
test eax, eax
je 0x140012b64
lea rcx, [rsp + 0x88]
call fcn.140016950
nop
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov byte [rsp + 0x1a0], 1
lea rcx, [rsp + 0x88]
call fcn.140005740
nop
lea rcx, [rsp + 0x48]
call fcn.140005740
movzx eax, byte [rsp + 0x1a0]
jmp 0x140012bbd
mov byte [rsp + 0x1a1], 0
lea rcx, [rsp + 0x88]
call fcn.140005740
nop
lea rcx, [rsp + 0x48]
call fcn.140005740
movzx eax, byte [rsp + 0x1a1]
jmp 0x140012bbd
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140103b00]
call fcn.1400f7530
mov rax, rdi
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400f79a0
add rsp, 0x1d0
pop rdi
ret
Function at 0x140013030
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
lea rdi, [rsp + 0x30]
mov ecx, 0xac
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f0]
mov rax, qword [0x14014e8c0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
lea rcx, [0x1401613e6]
call fcn.1400f7760
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x1400130ac
xor al, al
jmp 0x1400131d5
lea rcx, [rsp + 0x40]
call sub.ucrtbased.dll_strlen
mov qword [rsp + 0x2c0], rax
mov rcx, qword [rsp + 0x300]
call sub.ucrtbased.dll_strlen
mov rcx, qword [rsp + 0x2c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2c8], rax
mov rcx, qword [rsp + 0x308]
call sub.ucrtbased.dll_strlen
mov rcx, qword [rsp + 0x2c8]
lea rax, [rcx + rax + 2]
cmp rax, 0x104
jb 0x14001310a
xor al, al
jmp 0x1400131d5
lea rdx, [0x1401028e4]
lea rcx, [rsp + 0x40]
call fcn.14000ff70
mov rdx, qword [rsp + 0x300]
lea rcx, [rsp + 0x40]
call fcn.14000ff70
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140013153
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140013153
xor al, al
jmp 0x1400131d5
lea rdx, [0x1401028e8]
lea rcx, [rsp + 0x40]
call fcn.14000ff70
mov rdx, qword [rsp + 0x308]
lea rcx, [rsp + 0x40]
call fcn.14000ff70
nop
lea r9, [rsp + 0x308]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x2f8]
lea rcx, [rsp + 0x190]
call fcn.1400102d0
mov rdx, rax
lea rcx, [rsp + 0x168]
call fcn.14000dc80
nop
lea rcx, [rsp + 0x168]
call fcn.1400155d0
nop
mov byte [rsp + 0x2b8], 1
lea rcx, [rsp + 0x168]
call fcn.140011540
movzx eax, byte [rsp + 0x2b8]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140103770]
call fcn.1400f7530
mov rax, rdi
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400f79a0
add rsp, 0x2e0
pop rdi
ret
Function at 0x140014100
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x30]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x14014e8c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rcx, [0x1401613e3]
call fcn.1400f7760
nop
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x68], 0
je 0x140014164
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001416b
mov al, 1
jmp 0x140014305
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xa8], rax
call fcn.140015660
mov dword [rsp + 0xb0], eax
mov edx, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0xf0]
call qword [rsp + 0xa8]
mov dword [rsp + 0xb4], eax
call fcn.140015660
mov dword [rsp + 0xb8], eax
mov edx, dword [rsp + 0xb4]
mov ecx, dword [rsp + 0xb8]
call fcn.140015680
movzx eax, al
test eax, eax
je 0x1400141d8
xor al, al
jmp 0x140014305
mov qword [rsp + 0x30], 0x20
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0xf0]
add rcx, 0x74
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x48]
mov rdx, rcx
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 0
je 0x14001425a
cmp dword [rsp + 0xc8], 1
je 0x140014266
cmp dword [rsp + 0xc8], 3
je 0x1400142f3
jmp 0x140014303
mov rax, qword [rsp + 0xf0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jbe 0x1400142c1
mov rax, qword [rsp + 0xf0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x98]
mov edx, 1
lea rcx, [rsp + 0x48]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rsp + 0x98], rax
je 0x1400142c1
xor al, al
jmp 0x140014305
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400142de
mov dword [rsp + 0xcc], 1
jmp 0x1400142e9
mov dword [rsp + 0xcc], 0
movzx eax, byte [rsp + 0xcc]
jmp 0x140014305
mov rax, qword [rsp + 0xf0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140014305
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140104090]
call fcn.1400f7530
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400f79a0
add rsp, 0xe0
pop rdi
ret
Function at 0x140017690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x1401613e3]
call fcn.1400f7760
nop
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x1400176d7
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1400177c6
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x50], 0
jle 0x14001776e
cmp qword [rsp + 0x28], 0
jle 0x14001776e
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rax
jge 0x140017717
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140009080
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rsp + 0x50], 0
jle 0x1400177b6
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x1400177b6
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
add rsp, 0x30
pop rdi
ret
Function at 0x1400348a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
lea rcx, [0x14016142a]
call fcn.1400f7760
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ucrtbased.dll_fread]
add rsp, 0x20
pop rdi
ret

Function at 0x1400348f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
lea rcx, [0x14016142a]
call fcn.1400f7760
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ucrtbased.dll_fwrite]
add rsp, 0x20
pop rdi
ret

Function at 0x140035150
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rcx, [0x14016142a]
call fcn.1400f7760
mov eax, dword [rsp + 0x70]
not eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [0x140107830]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
dec rax
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x38], 0
je 0x1400351b9
mov dword [rsp + 0x40], 1
jmp 0x1400351c1
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
je 0x140035208
mov eax, dword [rsp + 0x20]
shr eax, 8
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
mov rdx, qword [rsp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
jmp 0x140035190
mov eax, dword [rsp + 0x20]
not eax
add rsp, 0x50
pop rdi
ret
Function at 0x140035220
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rcx, [0x14016142a]
call fcn.1400f7760
mov eax, dword [rsp + 0x70]
not eax
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [0x140107830]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x68], 0
je 0x14003534a
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x68]
dec rax
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x40], 0
je 0x14003529d
mov dword [rsp + 0x48], 1
jmp 0x1400352a5
mov dword [rsp + 0x48], 0
cmp dword [rsp + 0x48], 0
je 0x140035345
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
mov byte [rsp + 0x4c], al
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x38], al
movzx eax, byte [rsp + 0x38]
cmp eax, 0x23
jne 0x14003531a
cmp qword [rsp + 0x68], 2
jb 0x14003531a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14003531a
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14003531a
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 8
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
movzx edx, byte [rsp + 0x38]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x140035274
jmp 0x1400353e0
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
mov byte [rsp + 0x4d], al
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x4d]
mov byte [rsp + 0x39], al
movzx eax, byte [rsp + 0x39]
test eax, eax
je 0x1400353e0
movzx eax, byte [rsp + 0x39]
cmp eax, 0x23
jne 0x1400353b5
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400353b5
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400353b5
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 8
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
movzx edx, byte [rsp + 0x39]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x14003534a
mov eax, dword [rsp + 0x20]
not eax
add rsp, 0x50
pop rdi
ret
Function at 0x1400a6790
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
lea rcx, [0x1401615ed]
call fcn.1400f7760
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1400a67c3
mov dword [rsp + 0x20], 1
jmp 0x1400a67cb
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x1400f44a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400f44dd
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400f4440
add rsp, 0x58
ret

Function at 0x1400f8ba0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400f7dd0
movzx eax, al
test eax, eax
jne 0x1400f8bc0
mov ecx, 7
call fcn.1400fa130
nop
mov byte [rsp + 0x20], 0
call fcn.1400f7c00
mov byte [rsp + 0x21], al
cmp dword [0x140155c98], 1
jne 0x1400f8be4
mov ecx, 7
call fcn.1400fa130
nop
jmp 0x1400f8c3c
cmp dword [0x140155c98], 0
jne 0x1400f8c37
mov dword [0x140155c98], 1
lea rdx, [0x1400ffb60]
lea rcx, [0x1400ffb48]
call sub.ucrtbased.dll__initterm_e
test eax, eax
je 0x1400f8c18
mov eax, 0xff
jmp 0x1400f8d41
lea rdx, [0x1400ffb40]
lea rcx, [0x1400ffb08]
call sub.ucrtbased.dll__initterm
mov dword [0x140155c98], 2
jmp 0x1400f8c3c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400f7fc0
call fcn.1400fa750
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400f8c99
mov rcx, qword [rsp + 0x30]
call fcn.1400f7f30
movzx eax, al
test eax, eax
je 0x1400f8c99
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1400ffae0]
nop
call fcn.1400fa760
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400f8ccd
mov rcx, qword [rsp + 0x38]
call fcn.1400f7f30
movzx eax, al
test eax, eax
je 0x1400f8ccd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call sub.ucrtbased.dll__register_thread_local_exe_atexit_callback
nop
call fcn.1400f8d80
mov dword [rsp + 0x28], eax
call fcn.1400fa350
movzx eax, al
test eax, eax
jne 0x1400f8cec
mov ecx, dword [rsp + 0x28]
call sub.ucrtbased.dll_exit
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400f8cfb
call sub.ucrtbased.dll__cexit
nop
xor edx, edx
mov cl, 1
call fcn.1400f7ff0
mov eax, dword [rsp + 0x28]
jmp 0x1400f8d41
add rsp, 0x68
ret