joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fa140
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140103040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400fa213
cmp byte [rcx + 0x71], 0
je 0x1400fa213
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400fa20f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400fa1d4
sub eax, 1
je 0x1400fa1d8
cmp eax, 2
jne 0x1400fa20f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400fc070
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400fa206
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400fa20f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400fa1bc
xor al, al
jmp 0x1400fa1bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400fc070
add rsp, 0x60
pop rbx
ret
Function at 0x1400fc9f0
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
mov r12, rcx
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x7ff708e315dc
mov dword [rsp + 0x20], 0x130
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x7ff708e315f0
mov ebp, 0
lea rsi, [rsp + 0x20]
lea rdi, [rsp + 0x4c]
mov rdx, rsi
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x7ff708e31600
mov rdx, rdi
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x7ff708e315b8
mov ebp, dword [rsp + 0x28]
jmp 0x7ff708e315b8
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x7ff708e3160b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x7ff708e3160b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x7ff708e317dc
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x250
movabs rax, 0x57005c003a0043
movabs rdx, 0x6f0064006e0069
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdx
movabs rax, 0x54005c00730077
movabs rdx, 0x5c0070006d0065
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
movabs rax, 0x6e00720065006b
movabs rdx, 0x340036006c0065
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdx
movabs rax, 0x6c006c0064002e
mov edx, 0
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rdx
lea rdi, [rsp + 0x90]
mov ecx, 0x38
mov eax, 0
rep stosq qword [rdi], rax
mov qword [rsp + 0x48], 0
lea rcx, str.sublime_text.exe
call fcn.7ff708e31568
mov esi, eax
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x7ff708e31972
mov r8d, esi
mov rdx, rax
lea rcx, str.Successfuly_got_and_Handle_0x_p_on_process_with_PID__d_n
call fcn.7ff708e31450
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
test rax, rax
je 0x7ff708e31990
lea rdx, str.LoadLibraryW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x200
mov edx, 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x7ff708e31980
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x200
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
mov r9, rdi
mov r8d, 0
mov edx, 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x7ff708e3199e
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x7ff708e31970
mov edx, esi
lea rcx, str.ERROR_when_trying_to_create_an_handle_on_PID:__d_n
call fcn.7ff708e31450
mov eax, 1
add rsp, 0x250
pop rbx
pop rsi
pop rdi
ret
lea rcx, str.ERROR_when_trying_to_get_an_handle_on_kernel32.dll_n
call fcn.7ff708e31450
jmp 0x7ff708e31980
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_remote_thread____ERROR:__d_n
call fcn.7ff708e31450
jmp 0x7ff708e31980

Function at 0x7ff708e31ca0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.7ff708e37b10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.7ff708e37b10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x7ff708e31d10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x7ff708e3d0a4]
mov rbx, rcx
test esi, esi
jle 0x7ff708e31e40
mov rax, qword [0x7ff708e3d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x7ff708e31d5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x7ff708e31de5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x7ff708e31d40
mov rcx, rbx
call fcn.7ff708e32780
mov rdi, rax
test rax, rax
je 0x7ff708e31e62
mov rax, qword [0x7ff708e3d0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.7ff708e328c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x7ff708e3d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x7ff708e31e47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x7ff708e31dde
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x7ff708e31df0
add dword [0x7ff708e3d0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x7ff708e3d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x7ff708e31dde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.7ff708e31ca0
nop dword [rax]
xor esi, esi
jmp 0x7ff708e31d68
mov rax, qword [0x7ff708e3d0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.7ff708e31ca0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.7ff708e31ca0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x7ff708e323f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x7ff708e3d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x7ff708e3d0e0]
test rbx, rbx
je 0x7ff708e3244c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x7ff708e32443
test eax, eax
jne 0x7ff708e32443
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x7ff708e32428
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x7ff708e32780
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x7ff708e3a880]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x7ff708e327a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x7ff708e327a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x7ff708e327a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x7ff708e327fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x7ff708e327f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x7ff708e327a0
add rax, 0x28
cmp rax, r9
jne 0x7ff708e327e0
xor eax, eax
ret

Function at 0x7ff708e32800
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x7ff708e3a880]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x7ff708e3281f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x7ff708e32828
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x7ff708e3281f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x7ff708e328c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x7ff708e3a880]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x7ff708e328df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x7ff708e328e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140006c7c
Capabilities:
Parse pe header

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

Function at 0x1413a2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1413a21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1413a2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413a206f
add dl, dl
jne 0x1413a2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413a20f6
xor eax, eax
add dl, dl
jne 0x1413a20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1413a21ad
add dl, dl
jne 0x1413a20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1413a20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1413a207e
mov eax, 1
add dl, dl
jne 0x1413a2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1413a2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413a20fb
sub eax, ebx
mov ebx, 1
jne 0x1413a214c
mov ecx, 1
add dl, dl
jne 0x1413a212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413a213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413a2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413a207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1413a2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1413a2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1413a215d
cmp eax, 0x7d00
jae 0x1413a219b
cmp eax, 0x500
jb 0x1413a2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413a207e
cmp eax, 0x7f
ja 0x1413a219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1413a207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1413a21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1413a207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4db720
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4dc122
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4dc1ba
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4dc19e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4dc192
cmp qword [rbp - 0x10], 0
je 0x2fc4dc192
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4dc158
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dc1bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dc2c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4dc2e8
mov eax, 0
jmp 0x2fc4dc336
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4dc311
mov eax, 0
jmp 0x2fc4dc336
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4dc331
mov eax, 0
jmp 0x2fc4dc336
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002f20
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov r13, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rcx], 1
mov qword [rcx + 8], 0
mov byte [rcx + 0x10], 0
mov eax, dword [0x1401887b0]
mov ecx, dword [0x140181920]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400030d1
mov ecx, dword [0x1401814d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140003054
movsxd rcx, dword [0x1401887a8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1401887ac]
jne 0x140003054
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x140003054
movabs r12, 0x6000000000000000
movabs r15, 0xffffffffffffff
mov rax, qword [rdi]
mov rbx, rax
and rbx, r15
and rax, r12
movabs rcx, 0x4000000000000000
cmp rax, rcx
jne 0x14000301a
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140003007
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
mov byte [r13 + 0x10], 1
movabs rsi, 0x8000000000000001
mov qword [r13 + 8], rbx
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [fcn.1400562f0]
mov rax, qword [rbx]
lea rcx, [r14 + rsi]
cmp rcx, 2
jae 0x14000305b
add rsi, rax
cmp rsi, 1
ja 0x14000307d
cmp rax, r14
je 0x14000307d
int3
mov byte [r13], 0
jmp 0x1400030b1
xor ecx, ecx
mov rdx, rax
add rdx, r14
setns cl
movabs rdx, 0x7fffffffffffffff
add rdx, rcx
add rax, r14
cmovo rax, rdx
mov r14, rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000309f
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
mov rax, qword [rdi]
and rax, r12
and r14, r15
or r14, rax
mov qword [rdi], r14
inc dword [rdi + 0x14]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008fec0
mov rax, r13
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1401887b0]
int3
Function at 0x1400054d0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebp, edx
mov rsi, rcx
mov ebx, dword [0x140188314]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test edi, edi
jne 0x1400055b5
cmp rbx, 1
je 0x140005513
mov eax, dword [rsi + 0x1518]
test eax, eax
je 0x14000551a
xor eax, eax
jmp 0x1400055aa
mov eax, 1
lock xadd dword [rsi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x140005601
mov rcx, rsi
int3
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140005503
int3

Function at 0x140005b20
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140005bdc
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140005ba9
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140005b84
mov qword [rsi], rdi
call fcn.140041560
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x140005be0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140041560
mov r14, qword [rsi]
mov rcx, qword [0x140184a28]
test rcx, rcx
je 0x140005bce
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140005b72
int3
mov byte [rsi + 8], 1
int3

Function at 0x140005e10
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140005e59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140005e77
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140005e51
mov qword [rsi], rdi
call fcn.140041560
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov word [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140005eaa
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140041560
mov r14, qword [rsi]
mov rcx, qword [0x140184a28]
test rcx, rcx
je 0x140005e9c
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140005e3f
int3
int3
Function at 0x140007d30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140188278]
cmp rsi, 1
jbe 0x140007d75
mov ecx, dword [0x1401814d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140007dc7
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140007dc7
mov rax, qword [rax + rcx]
test rax, rax
je 0x140007dc7
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140188278]
int3
int3

Function at 0x14000a100
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
movaps xmmword [rsp + 0x1c0], xmm6
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
test rdx, rdx
je 0x14000a260
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
movaps xmm6, xmmword [0x14015c320]
movaps xmmword [rsp + 0x1a0], xmm6
movaps xmmword [rsp + 0x190], xmm6
test byte [0x14018a257], 0x40
je 0x14000a348
mov eax, 0x40000000
and eax, dword [0x14018a250]
je 0x14000a348
lea rcx, [rsp + 0x190]
mov edx, 0x20
call fcn.14002ce90
test eax, eax
je 0x14000a348
lea rbp, [rsp + 0x18c]
xor eax, eax
movups xmm0, xmmword [rbx + rax]
xorps xmm0, xmmword [rsp + rax + 0x190]
movaps xmmword [rsp + rax + 0x190], xmm0
add rax, 0x10
cmp rax, 0x20
jne 0x14000a198
lea r14, [rsp + 0x60]
mov r8d, 0x130
mov rcx, r14
mov dl, 0xaa
call fcn.1400924f0
mov ecx, 1
int3
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.14008fec0
movaps xmm6, xmmword [rsp + 0x1c0]
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
Function at 0x14000a410
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, r8
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x14015c320]
lea r14, [rsp + 0x40]
movaps xmmword [r14], xmm0
movaps xmmword [r14 - 0x10], xmm0
movaps xmmword [r14 - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov ecx, dword [rcx + 0x114]
call fcn.14008d638
lea ecx, [rax + 1]
call fcn.14008d638
mov dword [rsi + 0x114], eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [rsi + 0xf8]
mov ecx, dword [rsi + 0x114]
call fcn.14008d638
lea ecx, [rax + 1]
call fcn.14008d638
mov dword [rsi + 0x114], eax
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [rsi + 0xf8]
mov ecx, dword [rsi + 0x114]
call fcn.14008d638
lea ecx, [rax + 1]
call fcn.14008d638
mov dword [rsi + 0x114], eax
mov rcx, rbx
mov rdx, r14
mov r8, rsi
call qword [rsi + 0xf8]
test rdi, rdi
je 0x14000a4f2
cmp rdi, 8
jae 0x14000a55b
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp rdi, rax
jne 0x14000a4e2
lea rdi, [rsi + 0xf8]
mov eax, dword [0x14018a254]
lea rcx, [rsp + 0x20]
bt eax, 0x19
jae 0x14000a5c3
mov edx, 0x100
mov r8, rsi
int3
mov qword [rdi], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [r14]
movups xmmword [rbx], xmm0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008fec0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp rdi, 0x10
jae 0x14000a58d
xor eax, eax
mov rcx, rax
mov rax, rdi
and rax, 0xfffffffffffffff8
mov rdx, qword [r15 + rcx]
xor qword [rsp + rcx + 0x20], rdx
add rcx, 8
cmp rax, rcx
jne 0x14000a56d
cmp rax, rdi
jne 0x14000a4e2
jmp 0x14000a4f2
mov rax, rdi
and rax, 0xfffffffffffffff0
xor ecx, ecx
movups xmm0, xmmword [r15 + rcx]
xorps xmm0, xmmword [rsp + rcx + 0x20]
movaps xmmword [rsp + rcx + 0x20], xmm0
add rcx, 0x10
cmp rax, rcx
jne 0x14000a596
cmp rax, rdi
je 0x14000a4f2
test dil, 8
je 0x14000a4e2
jmp 0x14000a563
bt eax, 9
jae 0x14000a5f2
mov edx, 0x100
mov r8, rsi
call fcn.140017890
lea rax, [0x140017d60]
test rdi, rdi
je 0x14000a531
lea rcx, [0x140017a60]
jmp 0x14000a52e
mov rdx, rsi
call fcn.140124b10
lea rax, [0x140125460]
test rdi, rdi
je 0x14000a531
lea rcx, [0x1401244a0]
jmp 0x14000a52e