joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f1dc
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rdi, rcx
lea rcx, [rbp + 0x30]
call fcn.14000f184
nop
mov rbx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentThreadId]
cmp dword [rbx + 0x18], eax
jne 0x14000f224
lea rcx, str.SourceManager::InvokeOnProviderThreadPool:_cannot_call_when_already_on_provider_thread
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_OutputDebugStringW]
mov ecx, 0x8000ffff
int 0x29
mov rax, qword [rbp + 0x30]
mov cl, byte [rax + 0xc8]
test cl, cl
je 0x14000f23c
mov edi, 0x80004004
jmp 0x14000f2c5
mov dword [rbp + 0x28], 0x80004005
and qword [rbp + 0x38], 0
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x30], rcx
lea rax, [rbp + 0x30]
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdi
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x38]
call fcn.140014508
mov edi, eax
test eax, eax
js 0x14000f2a1
mov rcx, qword [rbp + 0x38]
call fcn.140038d14
mov edi, eax
test eax, eax
js 0x14000f2a1
mov rax, qword [rbp + 0x38]
xor edx, edx
mov rcx, qword [rax + 0x20]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_WaitForThreadpoolWorkCallbacks]
mov edi, dword [rbp + 0x28]
mov rsi, qword [rbp + 0x38]
test rsi, rsi
je 0x14000f2c5
and qword [rbp + 0x38], 0
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140009340]
mov rcx, rsi
call rbx
nop
mov rsi, qword [rbp + 0x30]
test rsi, rsi
je 0x14000f2e8
and qword [rbp + 0x30], 0
mov rdx, qword [rsi]
mov rbx, qword [rdx + 0x10]
mov rcx, rbx
call qword [fcn.140009340]
mov rcx, rsi
call rbx
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002dd4c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, rdx
mov rdi, rcx
lea rdx, [rsp + 0x50]
mov r15, r9
mov rbx, r8
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov r10d, dword [rsp + 0x50]
mov r9d, 0
mov r11, rax
mov eax, 0x811c9dc5
add r10, r10
je 0x14002ddaa
movzx ecx, byte [r9 + r11]
inc r9
xor ecx, eax
imul eax, ecx, 0x1000193
cmp r9, r10
jb 0x14002dd95
xor edx, edx
mov dword [r15], eax
div dword [rdi + 0x18]
mov rdi, qword [rdi + 8]
mov dword [rbx], edx
test rdi, rdi
je 0x14002de35
mov r14, qword [rsp + 0x70]
xor esi, esi
mov rdi, qword [rdi + rdx*8]
and qword [r14], rsi
test rdi, rdi
je 0x14002de35
mov eax, dword [r15]
cmp dword [rdi + 0x18], eax
jne 0x14002de1f
mov rcx, qword [rdi]
lea rdx, [rsp + 0x58]
mov rbx, qword [r12]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
mov ecx, dword [rsp + 0x50]
cmp dword [rsp + 0x58], ecx
jne 0x14002de1f
mov r8d, ecx
mov rdx, rax
add r8, r8
mov rcx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
sete al
test al, al
jne 0x14002de28
mov rsi, rdi
mov rdi, qword [rdi + 0x10]
jmp 0x14002ddcb
mov rax, qword [rsp + 0x78]
mov qword [r14], rsi
mov qword [rax], rdi
jmp 0x14002de3e
mov rax, qword [rsp + 0x78]
and qword [rax], 0
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400386ac
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov edi, edx
mov r15, rcx
test edx, edx
jne 0x1400386ff
and dword [rax - 0x50], edx
lea r8d, [rdx + 0x2c]
lea rcx, [rax - 0x4c]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemInfo]
mov edi, dword [rsp + 0x48]
cmp edi, 1
jae 0x1400386ff
mov eax, 0x80070057
jmp 0x1400388b9
xor ebx, ebx
mov qword [rsp + 0x90], rbx
lea ecx, [rbx + 0x38]
call fcn.1400aa410
test rax, rax
je 0x140038746
lea rcx, [0x1400bc618]
mov qword [rax], rcx
and qword [rax + 8], rbx
lea rcx, [0x1400bca48]
mov qword [rax + 0x10], rcx
and qword [rax + 0x18], rbx
lea rcx, [0x1400bca40]
mov qword [rax + 0x20], rcx
and qword [rax + 0x28], rbx
and qword [rax + 0x30], rbx
test rax, rax
je 0x140038763
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1400389ec
mov rbx, qword [rsp + 0x90]
lea r8, [rbx + 8]
lea rdx, [0x1400388e0]
mov ecx, 4
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleExW]
test eax, eax
jne 0x1400387a0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov esi, 0x80004005
test ebx, ebx
cmovns ebx, esi
jmp 0x140038851
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x1400388e0]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpoolWork]
mov rsi, rax
mov rcx, qword [rbx + 0x28]
cmp rax, rcx
je 0x1400387d3
test rcx, rcx
je 0x1400387cf
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CloseThreadpoolWork]
and qword [rbx + 0x28], 0
mov qword [rbx + 0x28], rsi
cmp qword [rbx + 0x28], 0
jne 0x1400387fe
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
test ecx, ecx
cmovns ecx, esi
test ecx, ecx
jns 0x140038803
jmp 0x14003884f
mov esi, 0x80004005
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpool]
mov r14, rax
mov rcx, qword [rbx + 0x18]
cmp rax, rcx
je 0x14003882b
test rcx, rcx
je 0x140038827
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CloseThreadpool]
and qword [rbx + 0x18], 0
mov qword [rbx + 0x18], r14
cmp qword [rbx + 0x18], 0
jne 0x140038862
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, esi
test ecx, ecx
jns 0x140038862
mov ebx, ecx
lea rcx, [rsp + 0x90]
call fcn.14003896c
mov eax, ebx
jmp 0x1400388b9
mov edx, edi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SetThreadpoolThreadMaximum]
lea rcx, [r15 + 0x10]
lea rax, [rsp + 0x90]
cmp rcx, rax
je 0x140038896
and qword [rsp + 0x90], 0
cmp rbx, qword [rcx]
je 0x140038896
mov rdx, rbx
call fcn.1400389ec
nop
lea rcx, [rsp + 0x90]
call fcn.14003896c
xor eax, eax
jmp 0x1400388b9
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14003c544
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0xc0]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ResetEvent]
lea rdx, [rdi + 0xa8]
mov rcx, rdi
call fcn.14003c2e4
xor esi, esi
test eax, eax
js 0x14003c5e4
mov rcx, qword [rdi + 0xf0]
call fcn.140039258
test eax, eax
js 0x14003c5e4
lea rbx, [rdi + 0xc8]
xor edx, edx
mov rcx, rbx
lea r8d, [rsi + 0x20]
call sub.msvcrt.dll_memset
mov rax, qword [rdi + 0xc0]
mov rdx, rbx
mov rcx, qword [rdi + 0xb0]
mov qword [rdi + 0xe0], rax
call qword [sym.imp.api_ms_win_core_namedpipe_l1_2_0.dll_ConnectNamedPipe]
test eax, eax
jne 0x14003c5c7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
mov dword [rdi + 0xe8], esi
cmp esi, 0x3e5
je 0x14003c5e2
mov rcx, qword [rdi + 0xe0]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14003d91c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, r8
mov esi, edx
mov rbx, rcx
add rcx, 0x78
lea rdx, [rbp + 0x48]
call fcn.14000c9fc
nop
test rdi, rdi
jne 0x14003d95e
mov ebx, 0x80070057
jmp 0x14003dae1
and dword [rbx + 0xc0], 0
and dword [rbx + 0xc4], 0
and dword [rbp + 0x30], 0
mov qword [rbp + 0x40], rbx
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.140014680
nop
lea rdx, [rbp + 0x40]
lea rcx, [rbx + 0x58]
call fcn.1400172d4
nop
cmp byte [rbx + 0x60], 0
je 0x14003d9b0
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14003d9a6
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
nop
mov ebx, 0x8007006d
jmp 0x14003dae1
mov rax, qword [rbx + 0x68]
lea r15, [rbx + 0xb0]
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rax + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
jne 0x14003da2a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003da2a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14003da12
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
nop
cmp byte [rbp - 0x10], 0
je 0x14003dadb
mov rcx, qword [rbp - 0x18]
call fcn.14003d694
jmp 0x14003dadb
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14003da39
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
mov edx, 0xa
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
test eax, eax
je 0x14003da57
mov rcx, rbx
call fcn.14003d694
lea rdx, [rbp + 0x40]
lea rcx, [rbx + 0x58]
call fcn.1400172d4
nop
cmp byte [rbx + 0x60], 0
je 0x14003da81
or edx, 0xffffffff
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
nop
jmp 0x14003d996
mov rax, qword [rbx + 0x68]
mov r9d, 1
lea r8, [rbp + 0x30]
mov rdx, r15
mov rcx, qword [rax + 0x58]
call qword [sym.imp.api_ms_win_core_io_l1_1_1.dll_GetOverlappedResult]
test eax, eax
je 0x14003dab7
cmp dword [rbp + 0x30], esi
jne 0x14003dab7
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14003dab5
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
nop
jmp 0x14003dadf
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14003dac7
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
nop
cmp byte [rbp - 0x10], 0
je 0x14003dad6
mov rcx, qword [rbp - 0x18]
call fcn.14003d694
mov ebx, 0x80004005
test ebx, ebx
js 0x14003dae1
xor ebx, ebx
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14003daf0
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003db0c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbp, rcx
add rcx, 0x58
lea rdx, [rax + 8]
call fcn.1400172d4
nop
cmp byte [rbp + 0x60], 0
je 0x14003db58
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003dc2e
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
jmp 0x14003dc2e
mov rsi, qword [rbp + 0x68]
mov eax, 1
xchg dword [rsi + 0x18], eax
test eax, eax
setne al
test al, al
je 0x14003db77
mov edi, 0x8000ffff
jmp 0x14003dc0d
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_StartThreadpoolIo]
mov rcx, qword [rbp + 0x68]
mov r8, qword [rbp + 0xe0]
sub r8, qword [rbp + 0xd8]
mov edx, dword [rbp + 0xf0]
lea rax, [rcx + 0x30]
sub r8d, edx
add rdx, qword [rbp + 0xd8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
jne 0x14003dbe1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003dbe1
cmp eax, 0xea
je 0x14003dbe1
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14003dbe3
xor edi, edi
test edi, edi
js 0x14003dbfe
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009340]
mov rcx, rsi
call rbx
jmp 0x14003dc0d
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CancelThreadpoolIo]
xor eax, eax
xchg dword [rsi + 0x18], eax
test edi, edi
sets bl
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003dc22
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
test bl, bl
je 0x14003dc2e
mov rcx, rbp
call fcn.14003d694
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14009c768
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov ebx, r9d
mov rdi, r8
mov r14d, edx
mov rsi, rcx
mov r8d, edx
sub r8d, 0xe
je 0x14009c874
sub r8d, 1
je 0x14009c820
sub r8d, 1
je 0x14009c7fa
cmp r8d, 1
je 0x14009c7d4
test ebx, ebx
je 0x14009c8d3
mov edx, r14d
mov rcx, rdi
call fcn.140072158
add ebx, 0xffffffff
jne 0x14009c7bf
jmp 0x14009c8d3
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
test ebx, ebx
je 0x14009c7f5
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.140079820
add ebx, 0xffffffff
jne 0x14009c7e0
jmp 0x14009c8d3
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
test ebx, ebx
je 0x14009c81b
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.140079820
add ebx, 0xffffffff
jne 0x14009c806
jmp 0x14009c8d3
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.14009e4cc
mov r14, qword [rsi]
mov r15, qword [rsi + 8]
cmp r14, r15
je 0x14009c872
mov esi, 1
mov rbx, r14
add r14, 2
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.140080b78
movzx eax, word [rbp + 0x28]
movzx ecx, ax
shr cx, 1
and ax, si
neg ax
xor cx, ax
mov word [rbx], cx
cmp r14, r15
jne 0x14009c840
jmp 0x14009c8d3
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.14009e4cc
mov r9, qword [rsi]
mov r10, qword [rsi + 8]
cmp r9, r10
je 0x14009c8d3
mov esi, 1
mov rax, r9
add r9, 2
mov byte [rbp - 8], 0
mov ecx, dword [rdi + 0x18]
mov r11d, dword [rdi + 0x20]
sub ecx, r11d
cmp ecx, esi
jb 0x14009c8c8
mov rdx, qword [rdi + 0x10]
movsx r8d, byte [r11 + rdx]
lea ecx, [r11 + 1]
mov dword [rdi + 0x20], ecx
mov word [rax], r8w
cmp r9, r10
jne 0x14009c894
jmp 0x14009c8d3
mov edx, esi
mov rcx, rdi
call fcn.140052b74
nop
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x14009ca54
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov ebx, r9d
mov rdi, r8
mov r14d, edx
mov rsi, rcx
mov r8d, edx
sub r8d, 0xe
je 0x14009cb8e
sub r8d, 1
je 0x14009cb3a
sub r8d, 1
je 0x14009caea
cmp r8d, 1
je 0x14009cac4
test ebx, ebx
je 0x14009cbec
mov edx, r14d
mov rcx, rdi
call fcn.140072158
add ebx, 0xffffffff
jne 0x14009caaf
jmp 0x14009cbec
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
test ebx, ebx
je 0x14009cae5
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.140079820
add ebx, 0xffffffff
jne 0x14009cad0
jmp 0x14009cbec
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.14009e60c
mov r14, qword [rsi]
mov r15, qword [rsi + 8]
cmp r14, r15
je 0x14009cb35
mov esi, 1
mov rbx, r14
add r14, 4
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.14006d080
mov eax, dword [rbp + 0x28]
mov ecx, eax
shr ecx, 1
and eax, esi
neg eax
xor ecx, eax
mov dword [rbx], ecx
cmp r14, r15
jne 0x14009cb0a
jmp 0x14009cbec
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.14009e60c
mov r14, qword [rsi]
mov r15, qword [rsi + 8]
cmp r14, r15
je 0x14009cb8c
mov esi, 1
mov rbx, r14
add r14, 4
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.140080b78
movzx eax, word [rbp + 0x28]
movzx ecx, ax
shr cx, 1
and ax, si
neg ax
xor ax, cx
cwde
mov dword [rbx], eax
cmp r14, r15
jne 0x14009cb5a
jmp 0x14009cbec
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.14009e60c
mov r9, qword [rsi]
mov r11, qword [rsi + 8]
cmp r9, r11
je 0x14009cbec
mov esi, 1
mov rax, r9
add r9, 4
mov byte [rbp - 8], 0
mov ecx, dword [rdi + 0x18]
mov r10d, dword [rdi + 0x20]
sub ecx, r10d
cmp ecx, esi
jb 0x14009cbe1
mov rdx, qword [rdi + 0x10]
movsx r8d, byte [r10 + rdx]
lea ecx, [r10 + 1]
mov dword [rdi + 0x20], ecx
mov dword [rax], r8d
cmp r9, r11
jne 0x14009cbae
jmp 0x14009cbec
mov edx, esi
mov rcx, rdi
call fcn.140052b74
nop
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x14009cd7c
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov esi, r9d
mov rdi, r8
mov r14d, edx
mov rbx, rcx
mov ecx, edx
sub ecx, 0xe
je 0x14009cef6
sub ecx, 1
je 0x14009ce9a
sub ecx, 1
je 0x14009ce43
cmp ecx, 1
je 0x14009cde8
test r9d, r9d
je 0x14009cf58
mov edx, r14d
mov rcx, rdi
call fcn.140072158
add esi, 0xffffffff
jne 0x14009cdd3
jmp 0x14009cf58
mov qword [rbp - 0x10], r8
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.14009e744
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x14009ce3e
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140079820
mov rax, qword [rbp - 0x20]
mov rcx, rax
shr rcx, 1
and rax, rsi
neg rax
xor rcx, rax
mov qword [rbx], rcx
cmp r14, r15
jne 0x14009ce0c
jmp 0x14009cf58
mov qword [rbp - 0x10], r8
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.14009e744
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x14009ce95
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.14006d080
mov eax, dword [rbp + 0x28]
mov ecx, eax
shr ecx, 1
and eax, esi
neg eax
xor eax, ecx
cdqe
mov qword [rbx], rax
cmp r14, r15
jne 0x14009ce67
jmp 0x14009cf58
mov qword [rbp - 0x10], r8
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.14009e744
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x14009cef4
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.140080b78
movzx eax, word [rbp + 0x28]
movzx ecx, ax
shr cx, 1
and ax, si
neg ax
xor ax, cx
movsx rax, ax
mov qword [rbx], rax
cmp r14, r15
jne 0x14009cebe
jmp 0x14009cf58
mov qword [rbp - 0x10], r8
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.14009e744
mov r9, qword [rbx]
mov r11, qword [rbx + 8]
cmp r9, r11
je 0x14009cf58
mov esi, 1
mov rax, r9
add r9, 8
mov byte [rbp - 8], 0
mov ecx, dword [rdi + 0x18]
mov r10d, dword [rdi + 0x20]
sub ecx, r10d
cmp ecx, esi
jb 0x14009cf4d
mov rdx, qword [rdi + 0x10]
movsx r8, byte [r10 + rdx]
lea ecx, [r10 + 1]
mov dword [rdi + 0x20], ecx
mov qword [rax], r8
cmp r9, r11
jne 0x14009cf1a
jmp 0x14009cf58
mov edx, esi
mov rcx, rdi
call fcn.140052b74
nop
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x1400aa580
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor r14d, r14d
xor eax, eax
lock cmpxchg qword [0x140103368], rbx
je 0x1400aa5d2
cmp rax, rbx
jne 0x1400aa5c5
mov ebx, 1
mov r14d, ebx
jmp 0x1400aa5d7
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400aa5a9
mov ebx, 1
mov eax, dword [0x140103370]
cmp eax, ebx
jne 0x1400aa5ed
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400aa656
mov eax, dword [0x140103370]
test eax, eax
jne 0x1400aa650
mov dword [0x140103370], ebx
lea r12, [0x1400b8000]
lea rdi, [0x1400b7fe8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r12
jae 0x1400aa642
test eax, eax
jne 0x1400aa646
mov rsi, qword [rdi]
test rsi, rsi
je 0x1400aa637
mov rcx, rsi
mov rax, qword [fcn.140009340]
call rax
call rsi
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400aa614
test eax, eax
je 0x1400aa656
mov eax, 0xff
jmp 0x1400aa737
mov dword [0x1400f36a0], ebx
mov eax, dword [0x140103370]
cmp eax, ebx
jne 0x1400aa67d
lea rdx, [0x1400b7fe0]
lea rcx, [0x1400b76a8]
call sub.msvcrt.dll__initterm
mov dword [0x140103370], 2
test r14d, r14d
jne 0x1400aa68b
xor eax, eax
xchg qword [0x140103368], rax
cmp qword [0x140103388], 0
je 0x1400aa6c3
lea rcx, [0x140103388]
call fcn.1400aabb0
test eax, eax
je 0x1400aa6c3
mov rbx, qword [0x140103388]
mov rcx, rbx
mov rax, qword [fcn.140009340]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov r8, qword [0x1400f36b8]
mov rdx, qword [0x1400f36b0]
mov ecx, dword [0x1400f36a8]
call fcn.140009ef4
mov dword [0x1400f369c], eax
cmp dword [0x1400f36c0], 0
jne 0x1400aa6f3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400f36a0], 0
jne 0x1400aa708
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400f369c]
jmp 0x1400aa737
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
sub rsp, 0x28
call fcn.14019c000
add rsp, 0x28
jmp 0x1400aa580

Function at 0x1400aaa9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400aaae8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400aaae0
cmp dword [rcx + 0x3c], edx
jl 0x1400aaae0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400aaae0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400aaae8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140005850
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1400456a0]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x3034], ecx
test rbx, rbx
je 0x1400058b8
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.1400058c0
mov rcx, rbx
mov rdi, rax
call fcn.140005720
mov rbx, rax
test rax, rax
je 0x1400058b3
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret