joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037d70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x238]
sub rsp, 0x338
mov rax, qword [0x1400a98b8]
xor edx, edx
lea ecx, [rdx + 2]
call rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140037fec
mov r8, qword [0x1400a9898]
lea rdx, [rbp - 0x10]
xor esi, esi
mov dword [rbp - 0x10], 0x238
mov rcx, rax
mov ebx, esi
call r8
test eax, eax
je 0x140037e4b
mov dword [rbp + 0x280], 0x67
nop word [rax + rax]
mov eax, dword [rbp + 0x280]
lea rcx, [rsp + 0x30]
mov word [rsp + 0x48], ax
mov dword [rsp + 0x30], 0x350012
mov dword [rsp + 0x34], 0x1d001e
mov dword [rsp + 0x38], 0x160036
mov dword [rsp + 0x3c], 0x80000
mov dword [rsp + 0x40], 0x20007e
mov dword [rsp + 0x44], 0x280039
call fcn.140003280
lea rcx, [rbp + 0x1c]
mov rdx, qword [rax]
call fcn.1400175e4
test eax, eax
jne 0x140037e37
inc ebx
mov rax, qword [0x1400a98a8]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call rax
test eax, eax
jne 0x140037de0
mov rcx, rdi
call qword [0x1400a9890]
cmp ebx, 1
jg 0x140037fec
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x40
call qword [0x1400a9880]
mov eax, 0x80000000
cmp qword [rbp - 0x78], rax
jae 0x140037fec
call qword [0x1400a98b0]
mov ecx, 0x3e8
mov rbx, rax
call qword [0x1400a9858]
call qword [0x1400a98b0]
sub rax, rbx
cmp rax, 0x3e8
jb 0x140037fe8
lea rcx, [rbp - 0x40]
call qword [0x1400a9888]
cmp dword [rbp - 0x20], 2
jb 0x140037fe8
mov rbx, qword [0x1400a98c0]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x220024
mov dword [rsp + 0x34], 0x50008
mov dword [rsp + 0x38], reloc.KERNEL32.dll_RtlCaptureContext
mov dword [rsp + 0x3c], 0x1f0017
mov dword [rsp + 0x40], 0x16000c
mov dword [rsp + 0x44], 0x230020
mov dword [rsp + 0x48], 0x310003
mov dword [rsp + 0x4c], 0x200028
mov dword [rsp + 0x50], 0x290023
mov dword [rsp + 0x54], 0x2a0000
mov dword [rsp + 0x58], 0x310013
mov dword [rsp + 0x5c], 0x2c0018
mov dword [rsp + 0x60], 0x780033
call fcn.140002aa0
lea rcx, [rbp + 0x298]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov rdx, qword [rax]
call rbx
test eax, eax
jne 0x140037f6c
mov rcx, qword [rbp + 0x298]
call qword [0x1400a9878]
mov al, 1
jmp 0x140037fee
lea rcx, [rbp + 0x290]
call qword [0x1400a98c8]
mov ecx, 0x3e8
call qword [0x1400a9858]
lea rcx, [rbp + 0x288]
call qword [0x1400a98c8]
mov eax, dword [rbp + 0x288]
cmp dword [rbp + 0x290], eax
jne 0x140037fad
mov eax, dword [rbp + 0x28c]
cmp dword [rbp + 0x294], eax
je 0x140037fe8
mov rbx, qword [0x1400a98a0]
lea rcx, [rbp + 0x280]
mov dword [rbp + 0x280], 0x770034
mov dword [rbp + 0x284], 0x710032
call fcn.140002930
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
mov rcx, qword [rax]
call rbx
mov al, 1
jmp 0x140037fee
xor al, al
add rsp, 0x338
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x6d864da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8865e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d864f28
mov rax, qword [0x6d8865e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d864dec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d864e75
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d864dd0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d864f5d
mov rax, qword [0x6d8865e8]
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 [0x6d8865e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d864f40
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d864e6e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d864ed0
add dword [0x6d8865e4], 1
cmp edi, 8
jae 0x6d864ea3
test dil, 4
jne 0x6d864f14
test edi, edi
je 0x6d864e98
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d864f2f
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 0x6d864e98
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 0x6d864ebc
jmp 0x6d864e98
add rsi, qword [0x6d8865e8]
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 0x6d864e6e
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 0x6d864e98
xor esi, esi
jmp 0x6d864df7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d864e98
mov rax, qword [0x6d8865e8]
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 0x6d8656b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8868c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8868a0]
test rbx, rbx
je 0x6d865704
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 0x6d8656fb
test rsi, rsi
je 0x6d8656fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8656e0
lea rcx, [0x6d8868c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d865940
Capabilities:
Parse pe header

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

Function at 0x6d865960
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 0x6d8659a1
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 0x6d865998
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8659a3
add rax, 0x28
cmp rax, r9
jne 0x6d865984
xor eax, eax
ret

Function at 0x6d865a40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8831f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d865aad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d865aad
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 0x6d865aad
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 0x6d865aa4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d865aaf
add rax, 0x28
cmp rax, r9
jne 0x6d865a90
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d865bb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8831f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d865bd0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d865bc8
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 0x6d865c2d
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 0x6d865c24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d865c34
add rax, 0x28
cmp rax, r9
jne 0x6d865c10
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d865c50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8831f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d865cbe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d865cbe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d865cbe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d865cbe
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 0x6d865cb5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d865cc5
add rcx, 0x28
cmp rcx, rax
jne 0x6d865ca0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d865cd8
jmp 0x6d865cbe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d865ce6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d865cbe
test r9d, r9d
jg 0x6d865cd0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d866050
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 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14010b080]
mov dword [rax], 1
mov rax, qword [0x14010b090]
mov dword [rax], 1
mov rax, qword [0x14010b0a0]
mov dword [rax], 1
mov rax, qword [0x14010b070]
mov dword [rax], 1
mov rax, qword [0x14010af20]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400067a0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sym.fread
mov r12, rax
cmp rbx, rax
je 0x1400067d3
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x1400067e0
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov rcx, r13
call sym.checkErr__stdZsyncio_u162.part.0
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret

Function at 0x140007210
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov edx, 1
mov r9, r12
call sym.fwrite
mov rcx, r12
mov r13, rax
call sym.ferror
test eax, eax
je 0x140007242
mov rcx, r12
call sym.checkErr__stdZsyncio_u162.part.0
mov rax, r13
add rsp, 0x28
pop r12
pop r13
ret
Function at 0x140007480
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, [0x1400ee460]
mov r14, rcx
mov r13, rdx
lea rcx, [rsp + 0x20]
mov edx, 0xfa0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call sym.mnewString
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov rbx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
test rbx, rbx
jle 0x1400075f8
mov rcx, qword [0x14010aef0]
lea rdi, [rsp + 0x30]
movabs r15, 0x7fffffffffffffff
movabs rbp, 0x8000000000000000
call sym.__emutls_get_address
mov rsi, rax
nop dword [rax]
mov rax, qword [rsp + 0x48]
mov r9, r13
mov r8d, 0xfa0
mov edx, 1
lea rcx, [rax + 8]
call sym.fread
mov r12, rax
cmp rax, 0xfa0
je 0x140007590
mov rcx, r13
call sym.ferror
test eax, eax
je 0x140007553
mov rcx, r13
call sym.checkErr__stdZsyncio_u162.part.0
cmp byte [rsi], 0
je 0x140007640
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140007570
test byte [rcx + 7], 0x40
je 0x140007630
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, r14
movups xmmword [r14], xmm0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi], 0
jne 0x14000755c
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call sym.prepareAdd
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
test rbx, rbx
jle 0x1400075f8
mov r8, rbx
add r8, 1
jo 0x14000760d
test r8, r8
js 0x140007618
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rdx, 8
lea rcx, [rcx + rax + 8]
call sym.memcpy
add rbx, qword [rsp + 0x30]
jo 0x14000760d
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jg 0x140007518
nop dword [rax]
xor ecx, ecx
lea rdx, [rbx - 1]
call sym.raiseIndexError2
mov rcx, qword [rsp + 0x48]
jmp 0x140007561
call sym.raiseOverflow
jmp 0x1400075e3
mov r8, r15
xor edx, edx
mov rcx, rbp
call sym.raiseRangeErrorI
jmp 0x1400075e3
call sym.deallocShared
jmp 0x140007570
test r12, r12
js 0x1400076b8
lea rcx, [rsp + 0x40]
mov rdx, r12
call sym.setLengthStrV2
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call sym.prepareAdd
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test rbx, rbx
jle 0x140007561
mov r8, rbx
add r8, 1
jo 0x1400076fb
test r8, r8
js 0x1400076d6
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea r9, [rdx + rax + 8]
lea rdx, [rcx + 8]
mov rcx, r9
call sym.memcpy
add rbx, qword [rsp + 0x30]
jo 0x1400076fb
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsp + 0x48]
jmp 0x140007561
movabs r8, 0x7fffffffffffffff
mov rcx, r12
xor edx, edx
call sym.raiseRangeErrorI
mov rcx, qword [rsp + 0x48]
jmp 0x140007561
movabs rcx, 0x8000000000000000
xor edx, edx
movabs r8, 0x7fffffffffffffff
call sym.raiseRangeErrorI
mov rcx, qword [rsp + 0x48]
jmp 0x140007561
call sym.raiseOverflow
jmp 0x14000755c
Function at 0x140007710
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r14, rcx
mov r13, rdx
mov r12, r8
test r8, r8
js 0x140007800
lea rdi, [rsp + 0x20]
mov rdx, r8
mov rcx, rdi
call sym.mnewString
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
test rdx, rdx
jle 0x140007850
mov rax, qword [rsp + 0x38]
mov r9, r13
mov r8, r12
mov edx, 1
lea rcx, [rax + 8]
call sym.fread
mov r15, rax
cmp r12, rax
je 0x140007792
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x140007820
mov rcx, qword [0x14010aef0]
call sym.__emutls_get_address
cmp byte [rax], 0
mov rbx, rax
jne 0x1400077de
mov rcx, r13
call sym.fgetc
mov rdx, r13
mov ecx, eax
mov esi, eax
call sym.ungetc
cmp byte [rbx], 0
jne 0x1400077de
test esi, esi
jns 0x140007860
cmp r12, r15
jle 0x1400077de
test r15, r15
js 0x140007830
lea rcx, [rsp + 0x30]
mov rdx, r15
call sym.setLengthStrV2
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, r14
movups xmmword [r14], xmm0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r12
call sym.raiseRangeErrorI
jmp 0x1400077de
mov rcx, r13
call sym.checkErr__stdZsyncio_u162.part.0
jmp 0x140007792
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r15
call sym.raiseRangeErrorI
jmp 0x1400077de
sub rdx, 1
xor ecx, ecx
call sym.raiseIndexError2
jmp 0x1400077de
mov rdx, r13
mov rcx, rdi
call sym.readAllBuffer__stdZsyncio_u511
cmp byte [rbx], 0
mov rsi, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
jne 0x1400078bf
lea rcx, [rsp + 0x30]
mov rdx, rsi
call sym.prepareAdd
test rsi, rsi
jle 0x1400078bf
mov r8, rsi
add r8, 1
jo 0x1400078e1
test r8, r8
js 0x1400078f0
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea rcx, [rdx + rax + 8]
lea rdx, [r12 + 8]
call sym.memcpy
add rsi, qword [rsp + 0x30]
jo 0x1400078e1
mov qword [rsp + 0x30], rsi
test r12, r12
je 0x1400077de
test byte [r12 + 7], 0x40
jne 0x1400077de
mov rcx, r12
call sym.deallocShared
jmp 0x1400077de
call sym.raiseOverflow
jmp 0x1400078bf
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call sym.raiseRangeErrorI
jmp 0x1400078bf

Function at 0x140007e10
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov r13, rdx
call sym.strlen
mov rcx, r13
mov r9, r12
mov edx, 1
mov r8, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x14000d160
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r13, rcx
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r13
mov r8, rbx
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.fflush
Function at 0x14000d1b0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov rax, qword [0x14011c170]
mov r12, rcx
mov rbx, rdx
test rax, rax
je 0x14000d260
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x14000d240
call sym.strlen
lea r13, [rsp + 0x20]
mov rdx, r12
mov rcx, r13
mov r8, rax
call sym.toNimStr
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x14011c170]
test r12, r12
je 0x14000d219
test byte [r12 + 7], 0x40
je 0x14000d298
lea rcx, [0x1400ed440]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14000d2b8
add rsp, 0x40
pop rbx
pop r12
pop r13
ret
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call rax
jmp 0x14000d219
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sym.fwrite
mov rcx, r13
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.fflush
lea rcx, [0x1400ed460]
call sym.__emutls_get_address
mov rdx, r12
mov rcx, rax
call sym.rawDealloc__system_u7002
jmp 0x14000d219
mov byte [rax], 0
lea rcx, [0x1400ed340]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u171

Function at 0x14000e0e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
test rax, rax
jle 0x14000e140
lea r8, [rax + rdx + 8]
lea rcx, [rdx + 8]
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rcx]
add rcx, 1
add rdx, rax
mov rax, rdx
shl rax, 0xa
add rax, rdx
mov rdx, rax
shr rdx, 6
xor rax, rdx
cmp r8, rcx
jne 0x14000e100
lea rax, [rax + rax*8]
mov rdx, rax
shr rdx, 0xb
xor rdx, rax
mov rax, rdx
shl rax, 0xf
add rax, rdx
ret
xor eax, eax
ret

Function at 0x140010720
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
cmp qword [0x14011c170], 0
je 0x140010780
lea r12, [rsp + 0x20]
mov r8d, 0x1d
lea rdx, [0x1400eed28]
mov rcx, r12
call sym.toNimStr
mov r13, qword [rsp + 0x28]
mov rcx, r12
call qword [0x14011c170]
test r13, r13
je 0x140010766
test byte [r13 + 7], 0x40
je 0x1400107c0
lea rcx, [0x1400ed440]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x1400107e0
add rsp, 0x38
pop r12
pop r13
ret
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, [0x1400eed28]
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp sym.fflush
lea rcx, [0x1400ed460]
call sym.__emutls_get_address
mov rdx, r13
mov rcx, rax
call sym.rawDealloc__system_u7002
jmp 0x140010766
mov byte [rax], 0
lea rcx, [0x1400ed340]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u171
Function at 0x140012470
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x14011c140]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x1400124ff
lea rcx, [0x1400ed440]
xor r14d, r14d
lea r12, [rsp + 0x20]
call sym.__emutls_get_address
mov rbp, qword [sym.__acrt_iob_func]
mov rdi, rax
jmp 0x1400124cd
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x140012506
mov ecx, 1
call rbp
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u8960
cmp byte [rdi], 0
je 0x1400124c0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbp, qword [sym.__acrt_iob_func]
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400ee601]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140027e40
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [0x1400f2640]
mov rax, qword [rcx + 8]
add rax, 8
cmp qword [rcx], 0
cmovne rdx, rax
mov rcx, rdx
call sym.system
mov rcx, qword [0x14010aef0]
movsxd rbx, eax
call sym.__emutls_get_address
cmp byte [rax], 0
mov eax, 0
cmove rax, rbx
add rsp, 0x20
pop rbx
ret