joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000e5c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400023d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400023d8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400023f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000e5c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002410
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002418
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002410
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002410
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002454
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002468
add rax, 0x28
cmp r9, rax
jne 0x140002440
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x140002480
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000e5c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024a2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400024a2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400024fd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002510
add rdx, 0x28
cmp r10, rdx
jne 0x1400024e8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000251f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000252f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002506
test ecx, ecx
jg 0x140002518
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003ba0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14000e670]
mov rax, qword [rsi]
test rax, rax
je 0x140003c30
cmp qword [rax + 0x30], 0
jne 0x140003c50
lea rbx, [0x14000d078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003c00
cmp qword [rax + 0x30], 0
jne 0x140003c20
lea rdx, [0x14000d078]
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 0x140003be2
test rax, rax
jne 0x140003c20
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003bf0
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003bc0
test rax, rax
jne 0x140003c50
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003bcb
Function at 0x140007820
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14000e670]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x1400078f0
cmp qword [rax + 0x60], 0
jne 0x140007910
lea rcx, [0x14000d068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140007920
cmp qword [rax + 0x1d8], r12
jne 0x140007920
test byte [rax + 0x40], 0xc
jne 0x140007920
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007920
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007920
mov rax, qword [rbx]
test rax, rax
je 0x140007980
cmp qword [rax + 0x60], 0
jne 0x1400079a0
lea rcx, [0x14000d068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x1400079b0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x1400079b8
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 0x14000784b
test rax, rax
jne 0x140007910
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007856
mov rax, qword [rbx]
test rax, rax
je 0x140007950
cmp qword [rax + 0x60], 0
jne 0x140007970
lea rcx, [0x14000d068]
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 0x14000792f
test rax, rax
jne 0x140007970
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x14000793a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400078ba
test rax, rax
jne 0x1400079a0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400078c5
xor eax, eax
jmp 0x140007944
mov eax, 0x16
jmp 0x140007944
Function at 0x14063c0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14063c237
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 0x14063c0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14063c0c7
add dl, dl
jne 0x14063c0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14063c14e
xor eax, eax
add dl, dl
jne 0x14063c0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14063c205
add dl, dl
jne 0x14063c10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063c11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063c128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063c135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14063c142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14063c0d6
mov eax, 1
add dl, dl
jne 0x14063c15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063c16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14063c153
sub eax, ebx
mov ebx, 1
jne 0x14063c1a4
mov ecx, 1
add dl, dl
jne 0x14063c186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14063c193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14063c17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063c0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14063c1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14063c1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14063c1b5
cmp eax, 0x7d00
jae 0x14063c1f3
cmp eax, 0x500
jb 0x14063c1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063c0d6
cmp eax, 0x7f
ja 0x14063c1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063c0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14063c22a
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 0x14063c0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r9d, r9d
mov rbx, r8
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapSetInformation]
xor edi, edi
lea rax, [rsp + 0x90]
sub rbx, rax
lea rcx, [rsp + 0x90]
mov edx, 0x105
mov r9d, edi
lea rax, [rdx + 0x7ffffef9]
test rax, rax
je 0x140001073
movzx eax, word [rbx + rcx]
test ax, ax
je 0x140001073
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140001051
test rdx, rdx
jne 0x140001082
sub rcx, 2
mov r9d, 0x8007007a
mov word [rcx], di
test r9d, r9d
js 0x140001172
lea rbx, [rsp + 0x90]
cmp word [rsp + 0x90], di
je 0x1400010b8
cmp word [rbx], 0x3a
je 0x1400010b1
add rbx, 2
cmp word [rbx], di
jne 0x1400010a0
jmp 0x1400010b8
mov word [rbx], di
add rbx, 2
cmp word [rbx], di
je 0x1400010d6
lea rdx, str._ProcessID
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x1400010de
lea rbx, [rsp + 0x90]
lea rax, [rsp + 0x30]
mov edx, 0x29
sub rbx, rax
lea rcx, [rsp + 0x30]
mov r8d, edi
lea rax, [rdx + 0x7fffffd5]
test rax, rax
je 0x140001115
movzx eax, word [rbx + rcx]
test ax, ax
je 0x140001115
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400010f3
test rdx, rdx
jne 0x140001124
sub rcx, 2
mov r8d, 0x8007007a
mov word [rcx], di
test r8d, r8d
js 0x140001172
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_IIDFromString]
test eax, eax
js 0x140001172
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoInitializeEx]
test eax, eax
js 0x140001172
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_com_private_l1_1_0.dll_CoRegisterSurrogateEx]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoUninitialize]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140001470
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2b0
pop rdi
ret
Function at 0x6daa1a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6dac25e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6daa1bd8
mov rax, qword [0x6dac25e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6daa1a9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6daa1b25
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6daa1a80
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6daa1c0d
mov rax, qword [0x6dac25e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6dac25e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6daa1bf0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6daa1b1e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6daa1b80
add dword [0x6dac25e4], 1
cmp edi, 8
jae 0x6daa1b53
test dil, 4
jne 0x6daa1bc4
test edi, edi
je 0x6daa1b48
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6daa1bdf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6daa1b48
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6daa1b6c
jmp 0x6daa1b48
add rsi, qword [0x6dac25e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6daa1b1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6daa1b48
xor esi, esi
jmp 0x6daa1aa7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6daa1b48
mov rax, qword [0x6dac25e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6daa2360
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6dac28c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6dac28a0]
test rbx, rbx
je 0x6daa23b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6daa23ab
test rsi, rsi
je 0x6daa23ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6daa2390
lea rcx, [0x6dac28c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6daa25f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6daa2600
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6daa2610
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6daa2651
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6daa2648
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6daa2653
add rax, 0x28
cmp rax, r9
jne 0x6daa2634
xor eax, eax
ret

Function at 0x6daa26f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dabf1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6daa275d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daa275d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6daa275d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6daa2754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6daa275f
add rax, 0x28
cmp rax, r9
jne 0x6daa2740
xor eax, eax
add rsp, 0x28
ret

Function at 0x6daa2860
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dabf1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6daa2880
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daa2878
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6daa28dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6daa28d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6daa28e4
add rax, 0x28
cmp rax, r9
jne 0x6daa28c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6daa2900
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6dabf1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6daa296e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daa296e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6daa296e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6daa296e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6daa2965
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6daa2975
add rcx, 0x28
cmp rcx, rax
jne 0x6daa2950
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6daa2988
jmp 0x6daa296e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6daa2996
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6daa296e
test r9d, r9d
jg 0x6daa2980
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6daa2cd0
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140025400
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x20], 8
lea rbx, [rcx + 8]
mov dword [rsp + 0x30], 4
jb 0x14002542b
mov rbx, qword [rbx]
mov rcx, qword [rcx]
mov edx, 1
call fcn.14002df60
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x38]
lea rcx, [rsp + 0x34]
mov rdx, rbx
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140025480
cmp eax, 0xea
je 0x140025480
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002ec60
add rsp, 0x50
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002ec60
add rsp, 0x50
pop rbx
ret

Function at 0x1400254a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x20], 8
lea rbx, [rcx + 8]
mov dword [rsp + 0x30], 4
jb 0x1400254cb
mov rbx, qword [rbx]
mov rcx, qword [rcx]
mov edx, 1
call fcn.14002df60
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x34]
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140025520
cmp eax, 0xea
je 0x140025520
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002ec60
add rsp, 0x50
pop rbx
ret
mov eax, dword [rsp + 0x34]
sub eax, 1
je 0x1400255b9
sub eax, 2
je 0x1400255a1
sub eax, 1
je 0x140025589
sub eax, 3
je 0x140025571
cmp eax, 4
je 0x140025559
mov eax, 6
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002ec60
add rsp, 0x50
pop rbx
ret
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002ec60
add rsp, 0x50
pop rbx
ret
mov eax, 4
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002ec60
add rsp, 0x50
pop rbx
ret
mov eax, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002ec60
add rsp, 0x50
pop rbx
ret
mov eax, 5
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002ec60
add rsp, 0x50
pop rbx
ret
mov eax, 3
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002ec60
add rsp, 0x50
pop rbx
ret
Function at 0x1400255e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
mov dword [rsp + 0x78], 8
lea rbx, [rcx + 8]
cmp qword [rbx + 0x18], 8
jb 0x140025618
mov rbx, qword [rbx]
mov edx, 1
mov rcx, qword [rcx]
call fcn.14002df60
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x7c]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400256c3
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x7c]
cmp ecx, 4
je 0x14002567f
cmp ecx, 0xb
jne 0x140025700
movabs rcx, 0x100000000
cmp rax, rcx
jae 0x1400256a0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14002ec60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
lea rdx, str.Integer_is_too_big_to_see_as_an_Integer
lea rcx, [rsp + 0x30]
call fcn.140004630
lea rdx, [0x14007d148]
lea rcx, [rsp + 0x30]
call fcn.140033e04
int3
mov r8, rdi
lea rdx, str.Failed_to_read_registry_value
lea rcx, [rsp + 0x30]
call fcn.140027780
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rsp + 0x50]
call fcn.140033e04
nop
lea rdx, str.Not_an_integer_value
lea rcx, [rsp + 0x30]
call fcn.140004630
lea rdx, [0x14007d148]
lea rcx, [rsp + 0x30]
call fcn.140033e04
int3

Function at 0x140025730
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
mov dword [rsp + 0x78], 8
lea rbx, [rcx + 8]
cmp qword [rbx + 0x18], 8
jb 0x140025768
mov rbx, qword [rbx]
mov edx, 1
mov rcx, qword [rcx]
call fcn.14002df60
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x7c]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140025809
mov eax, dword [rsp + 0x7c]
cmp eax, 4
je 0x1400257be
cmp eax, 0xb
jne 0x1400257e6
mov rax, qword [rsp + 0x80]
jmp 0x1400257c5
mov eax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14002ec60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
lea rdx, str.Not_an_integer_value
lea rcx, [rsp + 0x30]
call fcn.140004630
lea rdx, [0x14007d148]
lea rcx, [rsp + 0x30]
call fcn.140033e04
int3
mov r8, rdi
lea rdx, str.Failed_to_read_registry_value
lea rcx, [rsp + 0x30]
call fcn.140027780
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rsp + 0x50]
call fcn.140033e04
int3
Function at 0x1400269b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x14007f010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rdx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], r14
mov qword [rdx + 8], r14
mov qword [rdx + 0x10], r14
mov dword [rsp + 0x30], 1
lea rdi, [rcx + 8]
mov rbp, rdi
cmp qword [rdi + 0x18], 8
jb 0x140026a14
mov rbp, qword [rdi]
mov edx, 1
mov rcx, qword [rcx]
call fcn.14002df60
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x8c]
xor r8d, r8d
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x140026b6b
mov eax, dword [rsp + 0x8c]
cmp eax, 0xb
ja case.0x140026a75.2
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x26ba8]
add rcx, rdx
jmp rcx
mov edx, dword [rsp + 0x88]
mov rcx, rbx
call fcn.140026cc0
mov rbp, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140026a93
mov rdi, qword [rdi]
mov edx, 1
mov rcx, qword [rsi]
call fcn.14002df60
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x8c]
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140026afa
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14002ec60
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov r8, rsi
lea rdx, str.Failed_to_read_registry_value_as_binary_data
lea rcx, [rsp + 0x40]
call fcn.140027780
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rsp + 0x60]
call fcn.140033e04
nop
mov r8, rsi
lea rdx, str.Unsuitable_registry_value_for_representing_as_binary_data
lea rcx, [rsp + 0x60]
call fcn.140027780
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001a20
lea rdx, [0x14007d148]
lea rcx, [rsp + 0x40]
call fcn.140033e04
nop
mov r8, rsi
lea rdx, str.Failed_to_read_registry_value
lea rcx, [rsp + 0x40]
call fcn.140027780
mov r9, rax
call fcn.140012df0
mov r8, rax
mov edx, ebp
lea rcx, [rsp + 0x60]
call fcn.1400046a0
lea rdx, [0x14007d108]
lea rcx, [rsp + 0x60]
call fcn.140033e04
int3