joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400102a0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400c3fd0]
mov rax, qword [rsi]
test rax, rax
je 0x140010330
cmp qword [rax + 0x30], 0
jne 0x140010350
lea rbx, [0x1400bb088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140010300
cmp qword [rax + 0x30], 0
jne 0x140010320
lea rdx, [0x1400bb088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400102e2
test rax, rax
jne 0x140010320
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1400102f0
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400102c0
test rax, rax
jne 0x140010350
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400102cb

Function at 0x140010360
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140010472
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001044a
add rax, 1
cmp rax, 0x6b
je 0x140010467
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140010440
cmp edx, 0x6a
je 0x140010467
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001045b
Function at 0x140013f20
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400c3fd0]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140013ff0
cmp qword [rax + 0x60], 0
jne 0x140014010
lea rcx, [0x1400bb078]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140014020
cmp qword [rax + 0x1d8], r12
jne 0x140014020
test byte [rax + 0x40], 0xc
jne 0x140014020
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140014020
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140014020
mov rax, qword [rbx]
test rax, rax
je 0x140014080
cmp qword [rax + 0x60], 0
jne 0x1400140a0
lea rcx, [0x1400bb078]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x1400140b0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x1400140b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x140013f4b
test rax, rax
jne 0x140014010
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140013f56
mov rax, qword [rbx]
test rax, rax
je 0x140014050
cmp qword [rax + 0x60], 0
jne 0x140014070
lea rcx, [0x1400bb078]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x14001402f
test rax, rax
jne 0x140014070
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x14001403a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x140013fba
test rax, rax
jne 0x1400140a0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140013fc5
xor eax, eax
jmp 0x140014044
mov eax, 0x16
jmp 0x140014044
Function at 0x140014330
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x140014599
test rdi, rdi
je 0x14001436a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x1400143d7
add ebx, 1
cmp ebx, 1
je 0x1400144e0
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x1400143a5
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400145df
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x140014582
xor edx, edx
test rsi, rsi
je 0x14001444f
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x1400145b0
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014540
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140014510
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x1400144f0
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x1400143a5
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400144bf
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140014495
mov edx, 0xf
cmp eax, 0xe
jg 0x140014495
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140014495
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140014550
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400145df
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x14001458e
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x1400145d0
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x14001444f
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
jmp 0x14001459e
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x1400153f0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140015410
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140015458
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140015404
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140015445

Function at 0x140015480
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x1400eb400]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140015538
mov rdx, qword [0x1400eb340]
lea rcx, [0x1400eb340]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140015508
cmp rdx, rcx
jne 0x1400154ea
mov qword [rdx], rax
cmp rax, rcx
je 0x1400154ef
nop dword [rax]
test rax, rax
je 0x14001551a
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x1400154d8
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x14001551a
mov rdx, rax
jmp 0x1400154e6
lea rcx, [0x1400eb440]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140015556
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x14001551a
Function at 0x1400218f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rbx
test rax, rax
je 0x140021938
mov rcx, r12
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop r12
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rbx
mov qword [0x1400ebfc0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14002191f

Function at 0x140023990
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x1400239bc
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140024630
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x1400bdeb0], 0
jne 0x14002473a
mov byte [0x1400bdeb0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x140024710
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x140024701
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x1400be701]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400246fc
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x1400246cb
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x1400247cf
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x140024735
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x140024735
Function at 0x14007e320
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x14007e347
call rbp
cmp dword [rax], 4
jne 0x14007e364
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x14007e340
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140091860
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140091888
xor ecx, ecx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x1400918d0
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400918a0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1400918dc
call rbp
cmp dword [rax], 4
je 0x1400918a0
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14003a97c
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rcx, rdx
call fcn.1400815f0
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebp, eax
je 0x14003a9cb
mov rcx, rdi
call fcn.140039ec0
mov ebp, 0x100000
test al, al
je 0x14003a9d0
mov ebp, 0x101000
lea r14, [rsp + 0x50]
mov r8d, 0xa0
mov rcx, r14
mov dl, 0xaa
call fcn.140114f20
mov rcx, r14
call fcn.1400c81c0
mov byte [r14 + 0x22], 1
lea rcx, [rsp + 0x58]
call fcn.1400ca3c0
movaps xmm0, xmmword [0x1401dfd10]
lea r15, [rsp + 0x40]
movaps xmmword [r15], xmm0
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.1400cb2f0
mov rcx, r15
call fcn.1400815b0
test al, al
je 0x14003aab2
lea rbx, [rsp + 0x38]
mov qword [rbx], 0
mov rcx, rdi
call fcn.1400815d0
mov r14, rax
lea rcx, [rsp + 0x40]
call fcn.1400815d0
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebp
mov rcx, rax
mov rdx, r15
mov r8, r14
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14003aab2
mov r14, qword [rsp + 0x38]
cmp qword [rsi], r14
je 0x14003aace
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003ab04
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14003aaa8
mov qword [rsi], r14
call fcn.1400713d0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14003aace
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov edi, 0x80004005
cmovne edi, ecx
lea rcx, [rsp + 0x40]
call fcn.140072d00
lea rcx, [rsp + 0x50]
call fcn.1400c8230
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140113000
mov eax, edi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400713d0
mov rcx, qword [rsi]
call fcn.140081d40
mov qword [rsi], 0
jmp 0x14003aa96
Function at 0x14003b3c9
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x110
movaps xmmword [rsp + 0x100], xmm6
mov rbx, r9
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov esi, dword [rsp + 0x180]
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0xf8], rax
movaps xmm6, xmmword [0x1401dfd10]
lea rcx, [rsp + 0xe0]
movaps xmmword [rcx], xmm6
xor edx, edx
call fcn.14010a570
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
jne 0x14003b452
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140104d90
lea rcx, [rsp + 0xe0]
mov rdx, rsi
call fcn.140081500
mov rcx, rsi
call fcn.140072d00
jmp 0x14003b469
lea rdx, [rsp + 0xe0]
mov ecx, esi
call fcn.14003a1d0
test eax, eax
js 0x14003b62e
mov rsi, qword [rsp + 0x170]
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0xc0]
mov qword [r12 + 0x10], r13
movaps xmmword [r12], xmm6
mov rcx, r12
call fcn.140170240
mov qword [rsp + 0x20], r12
mov rcx, r15
mov rdx, r14
mov r8, rbx
mov r9, rsi
call fcn.14003a5bd
test eax, eax
js 0x14003b5b0
mov rsi, qword [rsp + 0x178]
lea rbx, [rsp + 0xa0]
mov qword [rbx + 0x10], r13
movaps xmmword [rbx], xmm6
lea rcx, [rsp + 0xc0]
call fcn.140150170
mov rcx, rax
mov rdx, rbx
mov r8, rsi
call fcn.140070b00
lea rsi, [rsp + 0x50]
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
mov rcx, rsi
mov rdx, rbx
call fcn.1400c19d0
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.14016dad0
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea rdx, [rsp + 0xe0]
mov rcx, rsi
call fcn.14003a97c
mov esi, eax
test eax, eax
js 0x14003b5b4
mov rbx, qword [rsp + 0x188]
lea rcx, [rsp + 0xc0]
lea rdi, [rsp + 0x30]
mov rdx, rdi
call fcn.140170250
mov rcx, rdi
call fcn.14003ad5e
mov rcx, rdi
call fcn.140070820
mov r14, qword [rsp + 0x48]
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14003b579
call fcn.1400713d0
cmp qword [rbx], r14
je 0x14003b5ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x14003b632
cmp r15, 2
jb 0x14003b5a4
mov qword [rbx], r14
call fcn.1400713d0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0x14003b5b9
mov esi, eax
jmp 0x14003b5e7
mov rdi, qword [rsp + 0x48]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14003b5d0
call fcn.1400713d0
mov rcx, rdi
call fcn.140081d40
lea rcx, [rsp + 0x50]
call fcn.1400c1c10
lea rcx, [rsp + 0xa0]
call fcn.140070820
lea rcx, [rsp + 0xc0]
call fcn.140170330
lea rcx, [rsp + 0xe0]
call fcn.140072d00
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140113000
mov eax, esi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x110
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, eax
jmp 0x14003b5f4
call fcn.1400713d0
mov rcx, qword [rbx]
call fcn.140081d40
mov qword [rbx], 0
jmp 0x14003b596
Function at 0x140043070
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x50], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x30]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [r14], xmm0
mov rax, qword [rdx]
mov rax, qword [rax + 0x38]
mov rcx, rdx
mov rdx, r14
call qword [case.0x140173f30.0]
mov rbx, qword [r14]
mov r14, qword [r14 + 8]
cmp rbx, r14
je 0x1400430d9
mov rcx, rbx
call fcn.1400614b0
add rbx, 0x28
jmp 0x1400430c6
lea r14, [rsi + 0xf8]
mov ebx, dword [rdi + 8]
mov rax, qword [rdi]
mov rax, qword [rax + 0x10]
mov rcx, rdi
call qword [case.0x140173f30.0]
mov rcx, qword [rsi + 0x90]
mov qword [rsp + 0x20], r14
mov rdx, rax
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004311f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14004318a
mov byte [rsi + 0x142], 1
mov eax, 1
lock xadd dword [rsi + 8], eax
mov sil, 1
cmp eax, 0x7fffffff
je 0x14004318e
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140043171
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
cmp rdi, rbx
je 0x140043167
add rdi, 0xffffffffffffffd8
mov rcx, rdi
call fcn.140061400
cmp rdi, rbx
jne 0x140043151
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rbx
call fcn.140111a1c
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140113000
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
xor esi, esi
jmp 0x14004313a
int3
Function at 0x140043660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx eax, byte [0x14021da78]
and eax, 1
neg rax
cmp rax, 0xfffffffffffffffd
je 0x140043768
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov r15, qword [rcx]
mov r12, qword [rcx + 8]
xor r13d, r13d
lea rbp, [0x1401e7aa0]
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x1401dfd10]
lea rbx, [rsp + 0x40]
mov rax, r13
shl rax, 4
mov qword [rsp + 0x50], r14
movaps xmmword [rsp + 0x40], xmm6
mov rdx, qword [rax + rbp]
mov r8, qword [rax + rbp + 8]
mov rcx, rbx
call fcn.140053dce
movzx eax, byte [rsp + 0x57]
test al, al
jns 0x1400436fc
mov rcx, qword [rsp + 0x48]
jmp 0x140043701
mov ecx, eax
and ecx, 0x7f
cmp rcx, r12
jbe 0x14004370a
xor edi, edi
jmp 0x14004373e
mov dil, 1
test rcx, rcx
je 0x140043737
mov rdx, rbx
test al, al
jns 0x14004371e
mov rdx, qword [rsp + 0x40]
xor r8d, r8d
movzx r9d, word [r15 + r8*2]
cmp r9w, word [rdx + r8*2]
jne 0x140043706
inc r8
cmp rcx, r8
jne 0x140043721
jmp 0x140043739
xor ecx, ecx
mov qword [rsp + 0x20], rcx
test al, al
jns 0x14004374c
mov rcx, qword [rsp + 0x40]
call fcn.140111a1c
test dil, dil
jne 0x14004378f
inc r13
movzx eax, byte [0x14021da78]
xor rax, 3
cmp r13, rax
jb 0x1400436ca
xor ebx, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140113000
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x140043768
cmp rdi, qword [rsi + 8]
je 0x140043768
lea rax, [0x1401e7b00]
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
mov qword [rdx + 8], 1
movups xmm0, xmmword [rsi]
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm0
xor r8d, r8d
call fcn.1400c8f60
mov rdx, qword [rsi + 8]
sub rdx, rdi
jb 0x140043821
mov r8, qword [rsp + 0x28]
mov rcx, qword [r8 + 8]
sub rax, rdi
cmp rdx, rax
cmovb rax, rdx
cmp rax, rcx
jne 0x140043768
mov bl, 1
test rcx, rcx
je 0x14004376a
mov rax, qword [r8]
add rdi, rdi
add rdi, qword [rsi]
xor edx, edx
movzx r8d, word [rdi + rdx*2]
cmp r8w, word [rax + rdx*2]
jne 0x140043768
inc rdx
cmp rcx, rdx
jne 0x140043804
jmp 0x14004376a
int3