joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e25d2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x1400e263f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400ecce0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400e2783
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400e26dc
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400e2697
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400ecce0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x1400e2783
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400e2716
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x1400e2783
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400ecce0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x1400e33c5
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x1400eccf0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14011c210]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400ecce0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x1400e34da
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x1400eccf0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1400e34a8
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x1400eccf0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x1400e34e9
lea rax, [0x1400eccf0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400e3525
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400e3593
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x1400ecce0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x1400e35dd
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x1400e35dd
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x1400eccf0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x1400e35cf
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x6da02420
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.6da20090]
xor ebx, ebx
mov r12, rcx
mov rdi, rdx
test rdx, rdx
jle 0x6da02462
nop
mov rsi, qword [r12 + rbx*8]
mov ecx, 1
add rbx, 1
call rbp
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
call fcn.6da02300
cmp rdi, rbx
jne 0x6da02440
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x6da2213c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fflush

Function at 0x6da02520
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x6da0253f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x6da025b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.6da20090]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
ret
Function at 0x6da0ead0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push rdi
push rsi
push rbx
sub rsp, 0x148
cmp qword [0x6da857b8], 0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 0x131], 1
je 0x6da0ebb3
mov rax, qword [0x6da857a8]
lea rcx, [rbp - 0x120]
mov rdx, rbp
mov qword [rbp - 0x130], rax
lea rax, [rbp - 0x130]
mov qword [0x6da857a8], rax
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rbp - 0x128], rax
test rax, rax
jne 0x6da0ebd0
xor ebx, ebx
cmp qword [rbp + 0x10], 0
je 0x6da0eb84
mov rcx, qword [rbp + 0x10]
mov edi, 7
call sub.msvcrt.dll_strlen
lea rcx, [0x6da21020]
cmp rax, rdi
mov rsi, rax
cmovge rdi, rax
lea rdx, [rdi + 0x11]
call fcn.6da0b340
mov rdx, qword [rbp + 0x10]
lea r8, [rsi + 1]
mov qword [rax + 8], rdi
lea rcx, [rax + 0x10]
mov rbx, rax
mov qword [rax], rsi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [0x6da857b8]
mov rax, qword [0x6da857a8]
cmp qword [rbp - 0x128], 0
mov byte [rbp - 0x131], 0
mov rax, qword [rax]
mov qword [0x6da857a8], rax
jne 0x6da0ec47
movzx eax, byte [rbp - 0x131]
test al, al
jne 0x6da0ec60
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rax, qword [0x6da857a8]
mov rax, qword [rax]
mov qword [rbp - 0x128], 0
mov qword [0x6da857a8], rax
mov rax, qword [0x6da857a0]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x6da0ec0d
add qword [rbx - 0x10], 8
mov rax, qword [0x6da857a0]
test rax, rax
je 0x6da0ec32
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x6da0ec32
mov rdx, rcx
lea rcx, [0x6da82bd8]
call fcn.6da05ac0
cmp qword [rbp - 0x128], 0
mov qword [0x6da857a0], rbx
je 0x6da0ebb3
mov rcx, qword [0x6da857a0]
test rcx, rcx
je 0x6da0ec90
call fcn.6da0f060
jmp 0x6da0ebb3
mov ecx, 2
call qword [fcn.6da20090]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
jmp 0x6da0ebc2
call fcn.6da0f490
nop
nop word cs:[rax + rax]

Function at 0x6da12b60
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
test rcx, rcx
je 0x6da12bc2
mov r8, qword [0x6da86b60]
mov r9, qword [0x6da86b68]
cmp rcx, 0xffffffffffffffff
je 0x6da12bd0
mov rax, 0xffffffffffffffff
xor edx, edx
div rcx
lea rax, [r8 + r9]
xor r9, r8
ror r8, 9
mov r11, rdx
mov r10, r9
xor r8, r9
ror r9, 0x1c
shl r10, 0xe
xor r8, r10
add r11, rax
jb 0x6da12b87
add rcx, 1
xor edx, edx
mov qword [0x6da86b60], r8
div rcx
mov qword [0x6da86b68], r9
mov rax, rdx
ret
mov rax, r8
mov rdx, r8
xor rax, r9
ror rdx, 9
mov rcx, rax
xor rdx, rax
ror rax, 0x1c
shl rcx, 0xe
mov qword [0x6da86b68], rax
xor rdx, rcx
mov qword [0x6da86b60], rdx
lea rdx, [r8 + r9]
mov rax, rdx
ret
Function at 0x6da13ed0
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rsi, [0x6da24ae0]
mov r12, rcx
mov ebp, edx
lea rcx, [0x6da24b20]
mov edx, 0x3fe9c662
call fcn.6da12c20
mov edx, 0x4865c0e2
mov rcx, rax
call fcn.6da134b0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r13, qword [rax + 0x20]
lea rdi, [rax + 0x20]
nop dword [rax]
movzx eax, word [r12]
test ax, ax
je 0x6da141a0
mov rdx, r12
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
jbe 0x6da14130
movzx eax, word [rdx + 2]
add rdx, 2
test ax, ax
jne 0x6da13f38
mov r8, qword [r13 + 0x50]
movzx ebx, word [r8]
test bx, bx
je 0x6da14158
mov rax, r8
nop word cs:[rax + rax]
lea edx, [rbx - 0x41]
cmp dx, 0x19
jbe 0x6da140c0
movzx ebx, word [rax + 2]
add rax, 2
test bx, bx
jne 0x6da13f70
movzx r14d, word [r12]
movzx ebx, word [r8]
test r14w, r14w
je 0x6da140f0
mov eax, r14d
xor ecx, ecx
jmp 0x6da13fde
cmp ax, 0x5a
ja 0x6da14188
cmp dx, 0x40
jbe 0x6da13ff8
add eax, 0x20
lea r9d, [rdx + 0x20]
cmp dx, 0x5b
cmovb edx, r9d
cmp dx, ax
jne 0x6da13ff8
add rcx, 2
movzx eax, word [r12 + rcx]
test ax, ax
je 0x6da140f0
movzx edx, word [r8 + rcx]
test dx, dx
je 0x6da140f0
cmp ax, 0x40
ja 0x6da13fa8
cmp dx, 0x40
jbe 0x6da13fc7
mov edx, 0x1a97d962
mov rcx, rsi
call fcn.6da12c20
mov edx, 0x1f08a3e2
mov rcx, rax
call fcn.6da134b0
mov r13, qword [r13]
cmp rdi, r13
jne 0x6da13f20
test ebp, ebp
je 0x6da141b3
mov edx, 0x4a4dd22
lea rcx, [0x6da24a00]
lea rbx, [rsp + 0x30]
call fcn.6da12c20
mov edx, 0x2c68eba2
mov rcx, rax
call fcn.6da134b0
pxor xmm0, xmm0
mov rcx, rbx
mov rdx, r12
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x28], 0
call qword [0x6da86e40]
mov r8, rbx
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
call qword [0x6da86e18]
mov edx, 0x71881c86
lea rcx, [0x6da249c0]
mov ebx, eax
call fcn.6da12c20
mov edx, 0xb2af006
mov rcx, rax
call fcn.6da134b0
test ebx, ebx
jne 0x6da141d1
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
add ebx, 0x20
add rax, 2
mov word [rax - 2], bx
movzx ebx, word [rax]
test bx, bx
jne 0x6da13f70
movzx r14d, word [r12]
movzx ebx, word [r8]
test r14w, r14w
jne 0x6da13f9d
nop word [rax + rax]
mov edx, 0x1a97d962
mov rcx, rsi
call fcn.6da12c20
mov edx, 0x1f08a3e2
mov rcx, rax
call fcn.6da134b0
cmp r14w, bx
jne 0x6da14012
mov rax, qword [r13 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x6da13f38
mov r8, qword [r13 + 0x50]
movzx ebx, word [r8]
test bx, bx
jne 0x6da13f63
movzx r14d, word [r12]
test r14w, r14w
jne 0x6da13f9d
mov rcx, rsi
mov edx, 0x1a97d962
call fcn.6da12c20
mov edx, 0x1f08a3e2
mov rcx, rax
call fcn.6da134b0
jmp 0x6da14114
cmp dx, 0x40
ja 0x6da13fbb
jmp 0x6da13ff8
mov r8, qword [r13 + 0x50]
movzx ebx, word [r8]
test bx, bx
jne 0x6da13f63
jmp 0x6da14167
mov edx, 0x3f0b3546
lea rcx, [0x6da24aa0]
call fcn.6da12c20
mov edx, 0x3c99fcc6
mov rcx, rax
call fcn.6da134b0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x6da15170
Capabilities:
Parse pe header

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [0x6da70ac0]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x20]
mov r13, qword [rax]
mov r12, rdx
lea rdi, [r13 - 0x10]
mov rsi, rdi
mov rbx, qword [rsi + 0x50]
mov rcx, rbx
call qword [rbp]
mov rcx, rbx
movsxd rdx, eax
call fcn.6da10bb0
mov rbx, rax
test rax, rax
je 0x6da15218
cmp qword [rax], 0
je 0x6da15218
xor ecx, ecx
call fcn.6da12000
mov rdx, rbx
mov rcx, rax
call fcn.6da108f0
test al, al
jne 0x6da15218
mov rcx, qword [rsi + 0x30]
cmp word [rcx], 0x5a4d
movsxd rax, dword [rcx + 0x3c]
je 0x6da151f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
add rax, rcx
cmp dword [rax], 0x4550
jne 0x6da151e0
movsxd rdx, dword [rax + 0x88]
mov r8, r12
add rdx, rcx
call fcn.6da14f80
test al, al
jne 0x6da151e2
nop dword [rax]
mov r13, qword [r13]
lea rsi, [r13 - 0x10]
cmp rdi, rsi
jne 0x6da15198
jmp 0x6da151e0
Function at 0x6da1a530
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.6da20090
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.6da20090
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 0x6da1a5a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6da874e4]
test esi, esi
mov rbx, rcx
jle 0x6da1a6d0
mov rax, qword [0x6da874e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x6da1a5eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x6da1a675
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x6da1a5d0
mov rcx, rbx
call fcn.6da1ae00
test rax, rax
mov rdi, rax
je 0x6da1a6f2
mov rax, qword [0x6da874e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.6da1af40
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x6da874e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6da1a6d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6da1a66e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x6da1a680
add dword [0x6da874e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x6da874e8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6da1a66e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6da1a530
nop dword [rax]
xor esi, esi
jmp 0x6da1a5f8
mov rax, qword [0x6da874e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.6da1a530
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.6da1a530
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x6da1aa70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x6da87520]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6da87500]
test rbx, rbx
je 0x6da1aacc
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 eax, eax
jne 0x6da1aac3
test rsi, rsi
je 0x6da1aac3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6da1aaa8
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 0x6da1ae00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x6da70cf0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x6da1ae20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x6da1ae28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x6da1ae20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x6da1ae7d
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]
cmp rcx, r8
mov rdx, r8
jb 0x6da1ae74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da1ae20
add rax, 0x28
cmp rax, r9
jne 0x6da1ae60
xor eax, eax
ret

Function at 0x6da1ae80
Capabilities:
Parse pe header

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

Function at 0x6da1af40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x6da70cf0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x6da1af5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x6da1af68
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140007d40
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x140007d7b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007da0
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400300e0], 0
jne 0x140007db8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007d6e
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d3d2]
mov qword [rsp + 0x20], 0
lea rdi, [0x140030100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007e84
test al, 0x10
je 0x140007d84
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007d84
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007e30
jmp 0x140007d84

Function at 0x14000e4f0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015590
sub rsp, rax
mov eax, dword [0x140034100]
mov rsi, rcx
test eax, eax
je 0x14000e590
xor ebx, ebx
lea rdi, [0x140032100]
test eax, eax
jg 0x14000e52c
jmp 0x14000e540
add rbx, 1
cmp dword [0x140034100], ebx
jle 0x14000e540
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e520
jmp 0x14000e577
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e555
cmp word [rsi + 2], 0x3a
je 0x14000e577
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e5e0
movsxd rbx, dword [0x140034100]
cmp ebx, 0x3ff
jle 0x14000e5f8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e61a
movsxd rbx, dword [0x140034100]
mov rcx, rdi
lea rdi, [0x140032100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140034100]
add eax, 1
mov dword [0x140034100], eax
jmp 0x14000e511
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e564
xor eax, eax
jmp 0x14000e57c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140034100], 1
mov rdx, rax
lea rax, [0x140032100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e577
mov rcx, rbx
call fcn.140007c80
nop
nop word cs:[rax + rax]
nop
Function at 0x140014270
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 fcn.14001b1c0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001b1c0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140014f42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034228]
test eax, eax
je 0x140014fda
lea rax, [0x140034200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034230]
mov qword [rbp - 8], rax
jmp 0x140014fbe
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 0x140014fb2
cmp qword [rbp - 0x10], 0
je 0x140014fb2
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 0x140014f78
lea rax, [0x140034200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140014fdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400150e0
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 0x140015108
mov eax, 0
jmp 0x140015156
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 0x140015131
mov eax, 0
jmp 0x140015156
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 0x140015151
mov eax, 0
jmp 0x140015156
mov eax, 1
add rsp, 0x20
pop rbp
ret