joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b3190
Capabilities:
Check os version

Disassembly:
jmp 0x1400b3190
push rbx
sub rsp, 0x150
mov rax, qword [0x1401475c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x114
xor ebx, ebx
call sub.MSVCR120.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400b31e3
cmp dword [rsp + 0x24], 6
mov eax, 1
cmovae ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400bcf10
add rsp, 0x150
pop rbx
ret
Function at 0x1400bde70
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r15
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x1400bdea5
or rax, 0xffffffffffffffff
add rsp, 0x78
pop r15
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x90], rbx
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r14
movsxd rcx, eax
mov eax, 8
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400bcb60
xor ebx, ebx
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
jle 0x1400bdfaa
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
mov r13, rdi
mov r12, r14
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r13 + r12]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov r9d, r15d
xor edx, edx
xor ecx, ecx
mov r8, rbp
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.1400bcb60
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov r9d, r15d
mov r8, rbp
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov rsi, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
mov eax, dword [rsp + 0x40]
inc r14d
lea r12, [r12 + 8]
cmp r14d, eax
jl 0x1400bdf20
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x98]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140003148
mov esi, eax
cmp dword [rsp + 0x40], ebx
jle 0x1400bdfe9
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400bdfe9
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jl 0x1400bdfd0
mov rcx, r14
call sub.MSVCR120.dll_void___cdecl_operator_delete___void____ptr64_
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x90]
mov eax, esi
mov rsi, qword [rsp + 0xa0]
add rsp, 0x78
pop r15
pop rdi
ret
Function at 0x1400197c0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbx, rdx
lea rbp, str.era_updater
movzx esi, cx
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140019847
cmp qword [rbx + 0x18], 8
mov qword [rsp + 0x50], rbp
jb 0x140019803
mov rbx, qword [rbx]
xor ecx, ecx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov edx, 2
mov dword [rsp + 0x30], ecx
xor r8d, r8d
mov word [rsp + 0x28], dx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
movzx edx, si
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140026a20
Capabilities:
Read file on windows

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
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140026a4d
xor eax, eax
jmp 0x140026b4a
cmp qword [rcx + 0x68], 0
je 0x140026a5e
call fcn.140003360
jmp 0x140026b4a
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140026a75
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140026a77
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140026aac
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140097ef0
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov r8, rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140026b44
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140026ae7
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x140026b1f
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.1400abee0
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x140026b63
cmp rbp, r15
ja 0x140026af5
mov r8, rbx
test rbx, rbx
je 0x140026b44
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.1400abee0
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
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
sub rdi, rbp
jmp 0x140026b47

Function at 0x140043528
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14011b0e0]
mov ebx, r9d
mov rdi, r8
mov esi, edx
test rax, rax
je 0x140043553
call qword [case.0x140007bb3.0]
jmp 0x140043568
call fcn.1400434f4
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400476e0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
jb 0x140047702
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x14004770c
mov rcx, qword [rcx]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140047752
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140047752
lea rcx, str.boost::filesystem::rename
mov r9, rbx
mov qword [rsp + 0x20], rcx
mov r8, rsi
mov ecx, eax
mov rdx, rdi
call fcn.1400484e0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x14004776c
lea rax, [0x1400f0c78]
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov byte [rbx + 4], 0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140113190]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400477b4
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1400477d4
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400475c0
jmp 0x1400478f7
mov edx, ebp
mov rcx, rsi
call fcn.140047460
mov r15d, eax
xor r12d, r12d
bt ebp, 0xa
jae 0x1400478b5
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400477fb
mov rdx, qword [rsi]
movdqa xmm0, xmmword [0x1400f16b0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r12w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140047816
lea rcx, [rsp + 0x48]
call fcn.140001c40
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [str.Pp_f_]
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.140001df0
cmp rbx, 0xffffffffffffffff
jne 0x140047889
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1400475c0
nop
jmp 0x1400478f7
mov rcx, rsi
call fcn.140047370
test al, al
jne 0x1400478ab
mov dword [rdi], 9
mov dword [rdi + 4], r15d
mov rcx, rbx
call qword [0x140113078]
nop
jmp 0x1400478f7
mov rcx, rbx
call qword [0x140113078]
nop
test r14, r14
je 0x1400478cd
mov dword [r14], r12d
mov byte [r14 + 4], 0
lea rax, [0x1400f0c78]
mov qword [r14 + 8], rax
and ebp, 0x10
je 0x1400478d8
mov eax, dword [rsp + 0x40]
jmp 0x1400478e0
mov eax, r15d
mov r15d, dword [rsp + 0x40]
test ebp, ebp
setne r12b
add r12d, 2
mov dword [rdi], r12d
test ebp, ebp
cmove r15d, eax
mov dword [rdi + 4], r15d
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140043ec0
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140049ac0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rdi, rdx
mov rsi, rcx
call fcn.140049810
xor r14d, r14d
mov dword [rbp + 0x1c0], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x140049c7c
mov dword [rbp + 0x1d0], 0x100
mov ebx, r14d
cmp dword [rbp + 0x1c0], ebx
jbe 0x140049c7c
nop dword [rax]
nop dword [rax + rax]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x1d0]
lea r8, [rbp - 0x60]
mov edx, ebx
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140049c64
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r14w
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140049bb0
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.140001c40
nop
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.1400c8ae0
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140049c10
mov rcx, rdx
call fcn.1400015a0
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140008250
add qword [rdi + 8], 0x20
jmp 0x140049c1e
lea r8, [rsp + 0x60]
mov rcx, rdi
call fcn.140048ad0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140049c36
inc rdx
mov rcx, qword [rsp + 0x60]
call fcn.140001d70
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140049c64
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
call fcn.140001d70
mov dword [rbp + 0x1d0], 0x100
inc ebx
cmp ebx, dword [rbp + 0x1c0]
jb 0x140049b60
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14004b730
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r9, rcx
cmp rcx, rdx
je 0x14004b778
movabs r10, 0xc6a4a7935bd1e995
mov r11d, 0xe6546b64
nop dword [rax + rax]
movsx rax, byte [r9]
inc r9
imul rax, r10
mov rcx, rax
shr rcx, 0x2f
xor rcx, rax
imul rcx, r10
xor r8, rcx
imul r8, r10
add r8, r11
cmp r9, rdx
jne 0x14004b750
movabs rax, 0x200009c482fb3f8b
mul r8
shr rdx, 0x1c
imul eax, edx, 0x7fffd8ee
sub r8d, eax
lea eax, [r8 + 0x2710]
ret
Function at 0x1400626e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1401136d0]
cmp ecx, 0xffffffff
je 0x140062746
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140062746
mov rdx, qword [rax + 0x28]
mov rcx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x140062728
cmp qword [rax + 0x20], rbx
jae 0x14006271c
mov rax, qword [rax + 0x10]
jmp 0x140062722
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140062710
cmp byte [rcx + 0x19], 0
jne 0x140062734
cmp rbx, qword [rcx + 0x20]
jae 0x140062737
mov rcx, rdx
cmp rcx, rdx
je 0x140062746
lea rax, [rcx + 0x28]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140062750
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.140061e00
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rdx, [0x140062480]
lea rcx, [0x14011bac8]
call fcn.140062250
mov ecx, dword [0x1401136d0]
cmp ecx, 0xffffffff
je 0x14006278b
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x20
pop rbx
ret
Function at 0x140062b00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140062b90
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x1401136d0]
cmp ecx, 0xffffffff
jne 0x140062bae
xor esi, esi
jmp 0x140062bb7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x140062cad
mov rcx, qword [rsi + 0x30]
mov rax, qword [rsi + 0x18]
mov rbx, rax
mov rdx, rbx
test rcx, rcx
jne 0x140062be1
test rax, rax
je 0x140062c86
mov rbx, rax
test rcx, rcx
cmovne rbx, rdx
test rbx, rbx
je 0x140062c4b
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x140062c27
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsi + 0x18]
mov rbx, rax
test rax, rax
jne 0x140062bf0
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x140062bd0
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140062c6c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x140062c6c
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1400621e0
cmp qword [rsi + 0x30], 0
jne 0x140062c50
xor ecx, ecx
jmp 0x140062bc9
lea rdx, [0x140062480]
lea rcx, [0x14011bac8]
call fcn.140062250
mov ecx, dword [0x1401136d0]
cmp ecx, 0xffffffff
je 0x140062cad
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x140062ce0
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140062ce0
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140062b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140062b90
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x1401136d0]
cmp ecx, 0xffffffff
jne 0x140062bae
xor esi, esi
jmp 0x140062bb7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x140062cad
mov rcx, qword [rsi + 0x30]
mov rax, qword [rsi + 0x18]
mov rbx, rax
mov rdx, rbx
test rcx, rcx
jne 0x140062be1
test rax, rax
je 0x140062c86
mov rbx, rax
test rcx, rcx
cmovne rbx, rdx
test rbx, rbx
je 0x140062c4b
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x140062c27
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsi + 0x18]
mov rbx, rax
test rax, rax
jne 0x140062bf0
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x140062bd0
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140062c6c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x140062c6c
call qword [rbx + 0x28]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.1400621e0
cmp qword [rsi + 0x30], 0
jne 0x140062c50
xor ecx, ecx
jmp 0x140062bc9
lea rdx, [0x140062480]
lea rcx, [0x14011bac8]
call fcn.140062250
mov ecx, dword [0x1401136d0]
cmp ecx, 0xffffffff
je 0x140062cad
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x140062ce0
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140062ce0
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140062cf0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x70
mov rsi, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
call fcn.1400626e0
mov rbx, rax
test rax, rax
je 0x140062dbe
cmp byte [rsp + 0xa0], 0
je 0x140062d45
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140062d45
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x140062d45
call qword [rax]
test rbp, rbp
jne 0x140062dae
test rsi, rsi
jne 0x140062dae
mov qword [rsp + 0x20], rdi
mov ecx, dword [0x1401136d0]
cmp ecx, 0xffffffff
je 0x140062d6d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140062d9b
call fcn.140062750
mov ecx, dword [0x1401136d0]
cmp ecx, 0xffffffff
jne 0x140062d92
xor ebx, ebx
lea rcx, [rbx + 0x28]
lea rdx, [rsp + 0x20]
call fcn.1400624a0
jmp 0x140062ecb
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
lea rcx, [rbx + 0x28]
lea rdx, [rsp + 0x20]
call fcn.1400624a0
jmp 0x140062ecb
mov qword [rbx], r14
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rsi
jmp 0x140062ecb
test rbp, rbp
jne 0x140062dcc
test rsi, rsi
je 0x140062ecb
xor ebx, ebx
mov ecx, dword [0x1401136d0]
cmp ecx, 0xffffffff
je 0x140062de4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140062dff
call fcn.140062750
mov ecx, dword [0x1401136d0]
cmp ecx, 0xffffffff
jne 0x140062df9
mov rax, rbx
jmp 0x140062dff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
lea rsi, [rax + 0x28]
mov rbp, qword [rsi]
mov rax, qword [rbp + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], ebx
mov rcx, rbp
cmp byte [rax + 0x19], bl
jne 0x140062e58
nop word [rax + rax]
mov qword [rsp + 0x30], rax
cmp qword [rax + 0x20], rdi
jae 0x140062e45
mov dword [rsp + 0x38], ebx
mov rax, qword [rax + 0x10]
jmp 0x140062e53
mov dword [rsp + 0x38], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], bl
je 0x140062e30
cmp byte [rcx + 0x19], bl
jne 0x140062e63
cmp rdi, qword [rcx + 0x20]
jae 0x140062ecb
movabs rax, 0x3ffffffffffffff
cmp qword [rsi + 8], rax
je 0x140062ee6
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rbx
mov ecx, 0x40
call fcn.140043f30
nop
mov qword [rax + 0x20], rdi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + 0x28], xmm0
movsd xmm1, qword [rsp + 0x60]
movsd qword [rax + 0x38], xmm1
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov word [rax + 0x18], 0
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x20], xmm0
mov r8, rax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14004e990
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.1400109f0
int3
Function at 0x14006b990
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rdx
mov rbx, rcx
xor eax, eax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov byte [rcx + 0x38], 1
mov qword [rcx + 0x40], rax
mov dword [r11 + 0x20], eax
mov r9, rdx
lea edx, [rax + 4]
lea r8d, [rax + 1]
lea rcx, [r11 + 0x20]
call fcn.1400abee0
mov eax, dword [rsp + 0x88]
cmp eax, 0x950412de
jne 0x14006b9eb
mov al, 1
jmp 0x14006b9f8
cmp eax, 0xde120495
jne 0x14006baf5
xor al, al
mov byte [rbx + 0x38], al
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbp
call fcn.1400ac1f0
mov rcx, rbp
call fcn.1400b56b0
mov r14d, eax
test eax, eax
js 0x14006bb18
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.1400ac1f0
mov byte [rsp + 0x80], 0
lea eax, [r14 + 1]
movsxd rsi, eax
mov r15, qword [rbx + 0x28]
mov rdx, qword [rbx + 0x20]
mov rcx, r15
sub rcx, rdx
cmp rsi, rcx
jae 0x14006ba51
lea rax, [rdx + rsi]
jmp 0x14006ba89
jbe 0x14006ba8d
mov rax, qword [rbx + 0x30]
sub rax, rdx
cmp rsi, rax
jbe 0x14006ba75
lea r8, [rsp + 0x80]
mov rdx, rsi
lea rcx, [rbx + 0x20]
call fcn.140067ac0
jmp 0x14006ba8d
sub rsi, rcx
mov r8, rsi
xor edx, edx
mov rcx, r15
call fcn.140098300
lea rax, [rsi + r15]
mov qword [rbx + 0x28], rax
movsxd rsi, r14d
mov r9, rbp
mov r8, rsi
mov edx, 1
mov rcx, qword [rbx + 0x20]
call fcn.1400abee0
cmp rax, r14
jne 0x14006bad2
mov rax, qword [rbx + 0x20]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rsi
mov rcx, rbx
call fcn.14006d520
nop
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Failed_to_read_file
lea rcx, [rsp + 0x20]
call fcn.14000b3e0
lea rdx, [0x14010ffb0]
lea rcx, [rsp + 0x20]
call fcn.140097e20
int3
lea rdx, str.Invalid_file_format
lea rcx, [rsp + 0x20]
call fcn.14000b3e0
lea rdx, [0x14010ffb0]
lea rcx, [rsp + 0x20]
call fcn.140097e20
int3
lea rdx, str.Wrong_file_object
lea rcx, [rsp + 0x20]
call fcn.14000b3e0
lea rdx, [0x14010ffb0]
lea rcx, [rsp + 0x20]
call fcn.140097e20
int3
Function at 0x1400096d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
movzx eax, byte [0x14012389f]
test eax, eax
jne 0x1400096e9
jmp 0x140009784
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x14000971d
mov rcx, qword [rsp + 0x30]
call fcn.140009690
movzx eax, al
test eax, eax
je 0x14000971d
mov edx, 0x10001
lea rcx, [0x140123930]
call fcn.140026f70
jmp 0x140009784
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140009773
mov rcx, qword [rsp + 0x30]
call fcn.140009690
movzx eax, al
test eax, eax
jne 0x140009773
mov edx, 0x100
lea rcx, [0x140123930]
call fcn.140026f70
mov edx, 0x10001
lea rcx, [0x140123930]
call fcn.140026f70
mov edx, 0x100
lea rcx, [0x140123930]
call fcn.140026f70
jmp 0x140009784
mov edx, 0x100
lea rcx, [0x140123930]
call fcn.140026f70
add rsp, 0x28
ret