joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006aca0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18006aec0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18006ada7
mov rax, qword [section._________1]
cmp qword [rsp + 0x20], rax
jb 0x18006ad04
mov rax, qword [0x18008c008]
cmp qword [rsp + 0x20], rax
ja 0x18006ad04
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18006acc6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.kernel32.dll_VirtualQuery]
test rax, rax
jne 0x18006ad33
jmp 0x18006ada7
cmp dword [rsp + 0x50], 0x10000
jne 0x18006ad8a
cmp qword [rsp + 0x48], 0x10000
jb 0x18006ad8a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18006ad78
mov rax, qword [rsp + 0x28]
jmp 0x18006ada9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18006ada2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18006aec0
mov qword [rsp + 0x20], rax
jmp 0x18006acc6
xor eax, eax
add rsp, 0x68
ret

Function at 0x18006adb0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18006af00
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18006aeb3
mov rax, qword [section._________1]
cmp qword [rsp + 0x20], rax
jb 0x18006ae0b
mov rax, qword [0x18008c008]
cmp qword [rsp + 0x20], rax
ja 0x18006ae0b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18006adcd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.kernel32.dll_VirtualQuery]
test rax, rax
jne 0x18006ae3a
jmp 0x18006aeb3
cmp dword [rsp + 0x50], 0x10000
jne 0x18006ae91
cmp qword [rsp + 0x48], 0x10000
jb 0x18006ae91
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18006ae7f
mov rax, qword [rsp + 0x28]
jmp 0x18006aeb5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18006aeae
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18006af00
mov qword [rsp + 0x20], rax
jmp 0x18006adcd
xor eax, eax
add rsp, 0x68
ret
Function at 0x18006e25c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, [0x180074ce0]
mov r9d, 2
call qword [sym.imp.kernel32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.kernel32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18006e2e0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180074be0]
cmp byte [rcx + rax], 0
je 0x18006e2e0
dec r8
sub rdx, 1
jne 0x18006e2c6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x100117e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x1001183b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1001183b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x10011856
cmp eax, 0x42
jne 0x1001183b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x10011906
cmp byte [r8 + r11], 0x5f
jne 0x10011906
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1001196e
mov rcx, rsi
xor edx, edx
call fcn.1000cd30
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.1000cd30
test al, al
jne 0x10011a01
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10011892
lea rdx, [0x10072603]
mov r8d, 1
call fcn.10007680
test al, al
jne 0x10011a01
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1001184a
xor r14d, r14d
lea rbx, [0x10072971]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x100118c4
cmp byte [rax + rcx], 0x45
je 0x10011a2a
sub r14, 1
jb 0x100118e9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x100118e9
mov r8d, 2
mov rdx, rbx
call fcn.10007680
test al, al
jne 0x10011a01
mov rcx, rsi
call fcn.1000e5d0
test al, al
jne 0x10011a01
mov rax, qword [rsi]
test rax, rax
jne 0x100118b0
jmp 0x1001184a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x100119c8
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x10011962
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1001194c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1001193b
add dl, 0xa9
jmp 0x1001194a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x100119c8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x100119c8
movzx edx, bl
add rax, rdx
jae 0x10011910
jmp 0x100119c8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x100119c8
cmp rax, rcx
jae 0x100119c5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x10011a09
cmp qword [rsi + 0x20], 0
je 0x10011a23
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.100117e0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1001184c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10011a18
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x10072950]
test r9b, r9b
cmovne rdx, rax
call fcn.10007680
test al, al
je 0x10011a18
mov dil, 2
jmp 0x1001184a
mov dil, 1
xor r9d, r9d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x100119d3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1001184a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1001184a
Function at 0x10014df0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x10014e75
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x10014eb6
cmp dword [rsp + 0x2c], 0
je 0x10014e9a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x10014ed0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x100800d8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x100800d8], rsi
jne 0x10014e50
mov byte [0x100800d0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x10014eac
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x10014f1c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x10014e9f
mov edi, dword [rsp + 0x28]
jmp 0x10014eac
mov edi, dword [rsi + 0x18]
jmp 0x10014eaa
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.10015380
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x10075378]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.10006c40
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x10075378]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.100153d0
ud2
Function at 0x10014f60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x10014f90
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10014fa9
mov rsi, rax
cmp qword [rax + 8], 0
je 0x10014fa9
add rsi, 0x10
jmp 0x1001506d
lea rcx, [0x10046078]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10014f7d
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x10015090
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x100150ad
mov rdi, rax
test rax, rax
jne 0x1001503e
movzx eax, byte [0x10080120]
mov rcx, qword [0x100800c8]
test rcx, rcx
jne 0x10014ffb
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x100150cc
mov rcx, rax
mov qword [0x100800c8], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x100150cc
mov rdi, rax
lea rax, [0x10046078]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x10046090]
test ecx, ecx
je 0x100150b9
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
lea rsi, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], 0
je 0x1001506d
test rcx, rcx
je 0x1001506d
lock dec qword [rcx]
jne 0x1001506d
call fcn.10014d90
mov rdi, qword [rsi]
test rdi, rdi
jne 0x10015086
call fcn.10014400
mov rdi, rax
cmp qword [rsi], 0
jne 0x100150dd
mov qword [rsi], rdi
lock inc qword [rdi]
jg 0x100150af
ud2
lea rcx, [0x10046078]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x10014fc8
xor edi, edi
mov rax, rdi
add rsp, 0x58
pop rdi
pop rsi
ret
lea rcx, [0x10046078]
call fcn.10014df0
mov ecx, eax
jmp 0x10015036
mov ecx, 8
mov edx, 0x18
call fcn.100064f0
ud2
lea rax, str.reentrant_init
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, [0x10075378]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str._rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srccellonce.rs
lea rcx, [rsp + 0x28]
call fcn.10006c40
ud2
Function at 0x10016f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10016f2d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x10016f46
cmp qword [rax + 8], 0
je 0x10016f46
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x10016f1c
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10016ff1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1001700e
mov rsi, rax
test rax, rax
jne 0x10016fd3
movzx eax, byte [0x10080120]
mov rcx, qword [0x100800c8]
test rcx, rcx
jne 0x10016f98
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x10017026
mov rcx, rax
mov qword [0x100800c8], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x10017026
mov rsi, rax
lea rax, [0x10046058]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x10046070]
test ecx, ecx
je 0x10017016
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014df0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x10016f65
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x10046058]
call fcn.10014df0
mov ecx, eax
jmp 0x10016fcb
mov ecx, 8
mov edx, 0x20
call fcn.100064f0
ud2
Function at 0x1003a1d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1003acc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1003acc0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1003a240
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x10080174]
mov r12, rcx
test ebx, ebx
jle 0x1003a370
mov rax, qword [0x10080178]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1003a28c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1003a313
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1003a270
mov rcx, r12
call fcn.1003a9d0
mov rsi, rax
test rax, rax
je 0x1003a392
mov rax, qword [0x10080178]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1003ab00
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x10080178]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1003a377
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1003a30c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1003a320
add dword [0x10080174], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x10080178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003a30c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1003a1d0
nop dword [rax]
xor ebx, ebx
jmp 0x1003a297
mov rax, qword [0x10080178]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1003a1d0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1003a1d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1003a640
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x100801a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x10080180]
test rbx, rbx
je 0x1003a694
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1003a68b
test r12, r12
je 0x1003a68b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1003a670
lea rcx, [0x100801a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1003a9d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x100761a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1003a9f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1003a9f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1003a9f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1003aa45
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1003aa3c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1003a9f0
add rax, 0x28
cmp rax, r9
jne 0x1003aa28
xor eax, eax
ret

Function at 0x1003aa50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x100761a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1003aa70
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1003aa78
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1003aa70
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1003ab00
Capabilities:
Parse pe header

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

Function at 0x1003c7f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r14
push rdi
push rsi
push rbx
mov r10, rdx
not r8d
cmp rdx, 8
jbe 0x1003c8ee
test cl, 7
je 0x1003c83a
mov rdx, qword [0x10076220]
lea rax, [rcx + r10]
nop dword [rax]
movzx r9d, byte [rcx]
add rcx, 1
mov r10, rax
sub r10, rcx
xor r9d, r8d
shr r8d, 8
movzx r9d, r9b
xor r8d, dword [rdx + r9*4]
test cl, 7
jne 0x1003c818
mov rbx, r10
and r10d, 7
and rbx, 0xfffffffffffffff8
lea r14, [rbx + rcx]
cmp r14, rcx
jbe 0x1003c8ee
mov rdx, qword [0x10076220]
mov r11, rcx
nop dword [rax]
mov r9d, dword [r11 + 4]
mov eax, dword [r11]
add r11, 8
mov edi, r9d
xor eax, r8d
movzx r8d, r9b
mov ebx, r9d
shr edi, 0x18
mov r8d, dword [rdx + r8*4 + 0xc00]
mov esi, eax
shr r9d, 0x10
xor r8d, dword [rdx + rdi*4]
movzx edi, al
shr esi, 0x10
movzx r9d, r9b
xor r8d, dword [rdx + rdi*4 + 0x1c00]
mov edi, eax
movzx esi, sil
movzx eax, ah
shr edi, 0x18
xor r8d, dword [rdx + rdi*4 + 0x1000]
movzx edi, bh
xor r8d, dword [rdx + rdi*4 + 0x800]
xor r8d, dword [rdx + r9*4 + 0x400]
xor r8d, dword [rdx + rax*4 + 0x1800]
xor r8d, dword [rdx + rsi*4 + 0x1400]
cmp r14, r11
ja 0x1003c860
mov rax, rcx
not rax
lea rbx, [r14 + rax]
shr rbx, 3
lea rcx, [rcx + rbx*8 + 8]
test r10, r10
je 0x1003c91c
mov rdx, qword [0x10076220]
add r10, rcx
nop dword [rax]
movzx r9d, byte [rcx]
add rcx, 1
xor r9d, r8d
shr r8d, 8
movzx r9d, r9b
xor r8d, dword [rdx + r9*4]
cmp rcx, r10
jne 0x1003c900
mov eax, r8d
not eax
pop rbx
pop rsi
pop rdi
pop r14
ret
Function at 0x1003c930
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov r10, rcx
mov rbx, rdx
not r8
cmp rdx, 4
jbe 0x1003c9fd
test cl, 3
je 0x1003ca34
mov r11, qword [0x10076230]
add rcx, rdx
nop dword [rax + rax]
movzx edx, byte [r10]
add r10, 1
mov rax, rcx
sub rax, r10
xor edx, r8d
shr r8, 8
movzx edx, dl
xor r8, qword [r11 + rdx*8]
test r10b, 3
jne 0x1003c960
mov rsi, rax
and eax, 3
and rsi, 0xfffffffffffffffc
mov rbx, rax
add rsi, r10
cmp rsi, r10
jbe 0x1003c9fd
mov r11, qword [0x10076230]
mov r9, r10
nop dword [rax]
mov edx, dword [r9]
add r9, 4
xor edx, r8d
shr r8, 0x20
mov eax, edx
movzx ecx, dl
shr eax, 0x18
mov rcx, qword [r11 + rcx*8 + 0x1800]
xor rcx, qword [r11 + rax*8]
movzx eax, dh
shr edx, 0x10
movzx edx, dl
xor r8, rcx
xor r8, qword [r11 + rax*8 + 0x1000]
xor r8, qword [r11 + rdx*8 + 0x800]
cmp rsi, r9
ja 0x1003c9a8
mov rax, r10
not rax
add rsi, rax
shr rsi, 2
lea r10, [r10 + rsi*4 + 4]
test rbx, rbx
je 0x1003ca2b
mov r11, qword [0x10076230]
lea rax, [r10 + rbx]
nop dword [rax]
movzx edx, byte [r10]
add r10, 1
xor edx, r8d
shr r8, 8
movzx edx, dl
xor r8, qword [r11 + rdx*8]
cmp r10, rax
jne 0x1003ca10
mov rax, r8
not rax
pop rbx
pop rsi
ret
mov rax, rdx
jmp 0x1003c982
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001b4c0]
mov dword [rax], 1
mov rax, qword [0x14001b4d0]
mov dword [rax], 1
mov rax, qword [0x14001b4e0]
mov dword [rax], 1
mov rax, qword [0x14001b4b0]
mov dword [rax], 1
mov rax, qword [0x14001b350]
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 0x14000457e
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x1400045ae
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.140004543
mov rdx, rax
jmp 0x1400045b3
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000e1d6
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000fc35
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x58], rax
lea rax, str.C:Usersgiel.vanslembrouck.choosenim_toolchains_nim_2.0.0lib_system.nim
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.14000e56e
call fcn.1400046fc
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], 0xd
lea rax, str.C:Usersgiel.vanslembrouck.choosenim_toolchains_nim_2.0.0lib_systemiterators.nim
mov qword [rbp - 0x48], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0xe
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x14000fda7
mov qword [rbp - 0x50], 0xac6
lea rax, str.C:Usersgiel.vanslembrouck.choosenim_toolchains_nim_2.0.0lib_system.nim
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x14000fcde
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x14000fcf7
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.14000cad3
jmp 0x14000fe1d
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov ecx, 1
mov rax, qword [fcn.140017b80]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdx
lea rax, [rbp - 0x80]
mov r8d, 0
mov rdx, rax
call fcn.14000f8ff
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x14000fe1c
mov qword [rbp - 0x50], 0x10
lea rax, str.C:Usersgiel.vanslembrouck.choosenim_toolchains_nim_2.0.0lib_systemiterators.nim
mov qword [rbp - 0x48], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x14000fd7c
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x14000fd9a
call fcn.14000d691
jmp 0x14000fe1d
mov rax, qword [rbp - 0x68]
mov qword [rbp - 8], rax
jmp 0x14000fcac
nop
mov qword [rbp - 0x50], 0xae1
lea rax, str.C:Usersgiel.vanslembrouck.choosenim_toolchains_nim_2.0.0lib_system.nim
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [fcn.140017b80]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x14001a249]
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xae2
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [fcn.140017b80]
call rax
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0x24], eax
jmp 0x14000fe1d
nop
call fcn.1400047d3
nop
add rsp, 0xa0
pop rbp
ret