joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003aa00
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1400ca1d0]
mov rsi, rcx
test rbx, rbx
je 0x14003aa80
mov rax, qword [0x1400b94c0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x14003aa70
mov rdx, qword [0x1400ca408]
test rdx, rdx
je 0x14003ab70
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x14003aa51
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14001b9d0
test rax, rax
je 0x14003ab90
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a66b2
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14003ab1e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14003ab10
test rbx, rbx
je 0x1400a66b2
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x14003aad0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.14003a890
mov rbx, rax
mov qword [0x1400ca1d0], rbx
jmp 0x14003aa22
lea rcx, [0x1400b5a12]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1400ca408], rax
mov rdx, rax
jmp 0x14003aa42
mov rbx, qword [0x1400ca1e8]
test rbx, rbx
jne 0x14003ab61
cmp byte [0x1400ca402], 0
je 0x14003abd3
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400ca200]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1400ca1e8], rax
mov rbx, rax
test rax, rax
je 0x14003abdf
mov eax, dword [rax]
add eax, 1
je 0x14003ab61
mov dword [rbx], eax
jmp 0x14003ab61
mov ecx, 1
call fcn.14001c650
jmp 0x14003aba5
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
call sub.msvcrt.dll_abort
nop
Function at 0x14003b460
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14001b9d0
test rax, rax
je 0x14003b5b0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a66ca
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14003b516
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14003b508
test rbx, rbx
je 0x1400a66ca
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x14003b4c8
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400cab40]
mov rsi, rax
mov rax, qword [0x1400b94c0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x14003b61d
mov rdx, rbx
call fcn.14000c0a0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14002efd0
mov rdx, qword [rbx]
test edx, edx
js 0x14003b592
sub rdx, 1
mov qword [rbx], rdx
je 0x14003b605
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400ca1e0]
lea rsi, [0x1400ca1e0]
test bl, bl
je 0x14003b5d0
mov rax, qword [0x1400ca1e8]
lea rsi, [0x1400ca1e8]
test rax, rax
jne 0x14003b592
cmp byte [0x1400ca402], 0
je 0x14003b647
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400ca200]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14003b651
mov edx, dword [rax]
add edx, 1
je 0x14003b592
mov dword [rax], edx
jmp 0x14003b592
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x14003b592
mov rcx, qword [0x1400caab8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x14003b65c
mov rdx, rdi
call fcn.14000c0a0
mov qword [0x1400cab40], rax
mov rcx, rax
jmp 0x14003b569
movzx ecx, bl
call fcn.14001c650
jmp 0x14003b5de
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400b05f3]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400caab8], rax
mov rcx, rax
test rax, rax
je 0x1400a66ca
jmp 0x14003b630
Function at 0x140091e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400ca1c1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140091ed8
lea rdx, [0x1400b52ea]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140091f40
mov rbx, qword [0x1400ca060]
jmp 0x140091e75
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140091e70
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140091ec7
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140081e30
mov r8, rax
cmp rdi, rbx
jne 0x140091eb0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400ca060], rax
mov ebx, dword [rax]
mov qword [0x1400ca060], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400ca060], rdx
call fcn.140090f60
cmp eax, ebx
jne 0x140091fa8
mov byte [0x1400ca1c1], 1
jmp 0x140091e50
cmp byte [0x1400ca1c0], 0
jne 0x140091e67
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400cad68], rax
call rbx
mov qword [0x1400cad60], rax
call rbx
mov qword [0x1400cad58], rax
call rbx
mov qword [0x1400cad50], rax
call rbx
mov qword [0x1400cad48], rax
call rbx
mov qword [0x1400cad40], rax
call rbx
mov qword [0x1400cad38], rax
call rbx
mov byte [0x1400ca1c0], 1
mov qword [0x1400cad30], rax
jmp 0x140091e67
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400943f0
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.1400a5b70
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.1400a5b70
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 0x1400950c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400cb228]
test eax, eax
je 0x14009515a
lea rax, [0x1400cb200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400cb230]
mov qword [rbp - 8], rax
jmp 0x14009513e
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 0x140095132
cmp qword [rbp - 0x10], 0
je 0x140095132
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 0x1400950f8
lea rax, [0x1400cb200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14009515b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140095260
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 0x140095288
mov eax, 0
jmp 0x1400952d6
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 0x1400952b1
mov eax, 0
jmp 0x1400952d6
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 0x1400952d1
mov eax, 0
jmp 0x1400952d6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400952dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14009535a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140095351
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140095351
mov rax, qword [rbp - 8]
jmp 0x14009536f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140095324
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401bf210]
mov dword [rax], 1
mov rax, qword [0x1401bf220]
mov dword [rax], 1
mov rax, qword [0x1401bf230]
mov dword [rax], 1
mov rax, qword [0x1401bf200]
mov dword [rax], 1
mov rax, qword [0x1401bf060]
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 0x14000c5d0
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 0x14000c603
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x14000c610
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 0x14000d020
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 0x14000d052
mov rcx, r12
call sym.checkErr__stdZsyncio_u162.part.0
mov rax, r13
add rsp, 0x28
pop r12
pop r13
ret
Function at 0x14000d370
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, [0x14019ada0]
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 0x14000d4e8
mov rcx, qword [0x1401bf030]
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 0x14000d480
mov rcx, r13
call sym.ferror
test eax, eax
je 0x14000d443
mov rcx, r13
call sym.checkErr__stdZsyncio_u162.part.0
cmp byte [rsi], 0
je 0x14000d530
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000d460
test byte [rcx + 7], 0x40
je 0x14000d520
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 0x14000d44c
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 0x14000d4e8
mov r8, rbx
add r8, 1
jo 0x14000d4fd
test r8, r8
js 0x14000d508
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 0x14000d4fd
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jg 0x14000d408
nop dword [rax]
xor ecx, ecx
lea rdx, [rbx - 1]
call sym.raiseIndexError2
mov rcx, qword [rsp + 0x48]
jmp 0x14000d451
call sym.raiseOverflow
jmp 0x14000d4d3
mov r8, r15
xor edx, edx
mov rcx, rbp
call sym.raiseRangeErrorI
jmp 0x14000d4d3
call sym.deallocShared
jmp 0x14000d460
test r12, r12
js 0x14000d5a8
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 0x14000d451
mov r8, rbx
add r8, 1
jo 0x14000d5eb
test r8, r8
js 0x14000d5c6
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 0x14000d5eb
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsp + 0x48]
jmp 0x14000d451
movabs r8, 0x7fffffffffffffff
mov rcx, r12
xor edx, edx
call sym.raiseRangeErrorI
mov rcx, qword [rsp + 0x48]
jmp 0x14000d451
movabs rcx, 0x8000000000000000
xor edx, edx
movabs r8, 0x7fffffffffffffff
call sym.raiseRangeErrorI
mov rcx, qword [rsp + 0x48]
jmp 0x14000d451
call sym.raiseOverflow
jmp 0x14000d44c
Function at 0x14000d600
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0
mov r14, rcx
mov r13, rdx
mov r12, r8
mov qword [rsp + 0x38], 0
test r8, r8
js 0x14000d700
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 0x14000d750
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 0x14000d694
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x14000d720
mov rcx, qword [0x1401bf030]
call sym.__emutls_get_address
cmp byte [rax], 0
mov rbx, rax
jne 0x14000d6e0
mov rcx, r13
call sym.fgetc
mov rdx, r13
mov ecx, eax
mov esi, eax
call sym.ungetc
cmp byte [rbx], 0
jne 0x14000d6e0
test esi, esi
jns 0x14000d760
cmp r12, r15
jle 0x14000d6e0
test r15, r15
js 0x14000d730
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 0x14000d6e0
mov rcx, r13
call sym.checkErr__stdZsyncio_u162.part.0
jmp 0x14000d694
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r15
call sym.raiseRangeErrorI
jmp 0x14000d6e0
sub rdx, 1
xor ecx, ecx
call sym.raiseIndexError2
jmp 0x14000d6e0
mov rdx, r13
mov rcx, rdi
call sym.readAllBuffer__stdZsyncio_u497
cmp byte [rbx], 0
mov rsi, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
jne 0x14000d7bf
lea rcx, [rsp + 0x30]
mov rdx, rsi
call sym.prepareAdd
test rsi, rsi
jle 0x14000d7bf
mov r8, rsi
add r8, 1
jo 0x14000d7e1
test r8, r8
js 0x14000d7f0
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 0x14000d7e1
mov qword [rsp + 0x30], rsi
test r12, r12
je 0x14000d6e0
test byte [r12 + 7], 0x40
jne 0x14000d6e0
mov rcx, r12
call sym.deallocShared
jmp 0x14000d6e0
call sym.raiseOverflow
jmp 0x14000d7bf
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call sym.raiseRangeErrorI
jmp 0x14000d7bf

Function at 0x14000dc80
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, r8
mov rcx, rdx
test r8, r8
jle 0x14000dcd0
mov r9, r12
mov edx, 1
call sym.fread
mov r13, rax
cmp rbx, rax
je 0x14000dcc0
mov rcx, r12
call sym.ferror
test eax, eax
je 0x14000dcc0
mov rcx, r12
call sym.checkErr__stdZsyncio_u162.part.0
mov rax, r13
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
lea rdx, [r8 - 1]
xor ecx, ecx
xor r13d, r13d
call sym.raiseIndexError2
mov rax, r13
add rsp, 0x20
pop rbx
pop r12
pop r13
ret

Function at 0x14000df60
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 0x140013170
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 0x1400131c0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
mov rax, qword [0x1401d9170]
mov r12, rcx
mov rbx, rdx
test rax, rax
je 0x140013258
test rcx, rcx
je 0x140013238
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 [0x1401d9170]
test r12, r12
je 0x140013213
test byte [r12 + 7], 0x40
je 0x140013290
lea rcx, [0x1401964c0]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x1400132b0
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call rax
jmp 0x140013213
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, 0x30
pop rbx
pop r12
pop r13
jmp sym.fflush
lea rcx, [0x1401964e0]
call sym.__emutls_get_address
mov rdx, r12
mov rcx, rax
call sym.rawDealloc__system_u7018
jmp 0x140013213
mov byte [rax], 0
lea rcx, [0x140196400]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x30
pop rbx
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u187

Function at 0x140014910
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, [0x1401d9140]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x14001499f
lea rcx, [0x1401964c0]
xor r14d, r14d
lea r12, [rsp + 0x20]
call sym.__emutls_get_address
mov rbp, qword [sym.__acrt_iob_func]
mov rdi, rax
jmp 0x14001496d
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x1400149a6
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_u9015
cmp byte [rdi], 0
je 0x140014960
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, [0x14019af41]
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 0x140015110
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
test rax, rax
jle 0x140015170
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 0x140015130
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 0x140043f40
Capabilities:
Execute command

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

Function at 0x140068e80
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov rcx, r8
test rax, rax
je 0x140068ea8
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x140068ee0
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x17007a00
jne 0x140068ee0
test rcx, rcx
js 0x140068ec0
mov r9, qword [rax + 0x58]
mov r8, rcx
mov rcx, r9
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u165
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret

Function at 0x140068ef0
Capabilities:
Read file on windows

Disassembly:
push r12
sub rsp, 0x20
mov r9, qword [r8]
mov rax, rcx
mov rcx, qword [r8 + 8]
test rax, rax
je 0x140068f1e
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x140068f80
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x17007a00
jne 0x140068f80
mov r8, qword [rdx]
test r9, r9
js 0x140068f60
cmp r8, r9
jle 0x140068f60
add rcx, 1
jo 0x140068f98
xor r12d, r12d
sub rcx, r9
seto r12b
jo 0x140068f98
test rcx, rcx
js 0x140068fb0
mov rdx, qword [rdx + 8]
mov r8, rcx
lea rdx, [rdx + r9 + 8]
mov r9, qword [rax + 0x58]
mov rcx, r9
add rsp, 0x20
pop r12
jmp sym.readBuffer__stdZsyncio_u165
lea rdx, [r8 - 1]
mov rcx, r9
xor r12d, r12d
call sym.raiseIndexError2
mov rax, r12
add rsp, 0x20
pop r12
ret
call sym.raiseObjectConversionError
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop r12
ret
call sym.raiseOverflow
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop r12
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
jmp 0x140068f6f