joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rbx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x90]
mov rbx, rdx
mov rsi, rcx
lea edx, [rax + 5]
cmp edx, dword [rcx + 0x94]
jg 0x1400437f0
lea rdx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea rax, [rax + rdx*8]
movzx edx, byte [rbx]
mov byte [rax], dl
movsx edx, byte [rbx + 1]
mov dword [rax + 4], edx
movsx ecx, byte [rbx + 2]
lea rdx, [0x1401bfb00]
mov dword [rax + 8], ecx
movzx r8d, byte [rbx]
test byte [rdx + r8], 1
je 0x140043695
cmp byte [rbx + 2], 0
jle 0x140043695
add ecx, dword [rsi + 0x90]
mov dword [rax + 8], ecx
movsx ecx, byte [rbx + 3]
xor r10d, r10d
mov byte [rax + 1], 0
mov qword [rax + 0x10], 0
mov dword [rax + 0xc], ecx
mov word [rax + 2], r10w
movzx ecx, byte [rbx + 4]
mov byte [rax + 0x18], cl
movsx ecx, byte [rbx + 5]
mov dword [rax + 0x1c], ecx
movsx ecx, byte [rbx + 6]
mov dword [rax + 0x20], ecx
movzx r8d, byte [rbx + 4]
test byte [rdx + r8], 1
je 0x1400436e0
cmp byte [rbx + 6], 0
jle 0x1400436e0
add ecx, dword [rsi + 0x90]
mov dword [rax + 0x20], ecx
movsx ecx, byte [rbx + 7]
xor r9d, r9d
mov byte [rax + 0x19], 0
mov qword [rax + 0x28], 0
mov dword [rax + 0x24], ecx
mov word [rax + 0x1a], r9w
movzx ecx, byte [rbx + 8]
mov byte [rax + 0x30], cl
movsx ecx, byte [rbx + 9]
mov dword [rax + 0x34], ecx
movsx ecx, byte [rbx + 0xa]
mov dword [rax + 0x38], ecx
movzx r8d, byte [rbx + 8]
test byte [rdx + r8], 1
je 0x14004372b
cmp byte [rbx + 0xa], 0
jle 0x14004372b
add ecx, dword [rsi + 0x90]
mov dword [rax + 0x38], ecx
movsx ecx, byte [rbx + 0xb]
xor r8d, r8d
mov byte [rax + 0x31], 0
mov qword [rax + 0x40], 0
mov dword [rax + 0x3c], ecx
mov word [rax + 0x32], r8w
movzx ecx, byte [rbx + 0xc]
mov byte [rax + 0x48], cl
movsx ecx, byte [rbx + 0xd]
mov dword [rax + 0x4c], ecx
movsx ecx, byte [rbx + 0xe]
mov dword [rax + 0x50], ecx
movzx r8d, byte [rbx + 0xc]
test byte [rdx + r8], 1
je 0x140043776
cmp byte [rbx + 0xe], 0
jle 0x140043776
add ecx, dword [rsi + 0x90]
mov dword [rax + 0x50], ecx
movsx ecx, byte [rbx + 0xf]
mov byte [rax + 0x49], 0
mov qword [rax + 0x58], 0
mov dword [rax + 0x54], ecx
xor ecx, ecx
mov word [rax + 0x4a], cx
movzx ecx, byte [rbx + 0x10]
mov byte [rax + 0x60], cl
movsx ecx, byte [rbx + 0x11]
mov dword [rax + 0x64], ecx
movsx ecx, byte [rbx + 0x12]
mov dword [rax + 0x68], ecx
movzx r8d, byte [rbx + 0x10]
test byte [rdx + r8], 1
je 0x1400437bf
cmp byte [rbx + 0x12], 0
jle 0x1400437bf
add ecx, dword [rsi + 0x90]
mov dword [rax + 0x68], ecx
movsx edx, byte [rbx + 0x13]
mov byte [rax + 0x61], 0
mov qword [rax + 0x70], 0
mov dword [rax + 0x6c], edx
xor edx, edx
mov word [rax + 0x62], dx
add dword [rsi + 0x90], 5
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400433d0
test eax, eax
jne 0x140043805
movsxd rax, dword [rsi + 0x90]
jmp 0x140043652
xor eax, eax
jmp 0x1400437df
Function at 0x1400516d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, qword [rcx + 0xa0]
mov r14, qword [rcx + 0x10]
mov rbp, qword [rcx]
mov rdi, rcx
test rsi, rsi
je 0x140051830
lea r12, [0x1401b9290]
jmp 0x1400517e7
sub eax, 1
mov byte [rdi + 0x1f], al
movzx eax, al
mov r13d, dword [rdi + rax*4 + 0xe0]
movsxd rax, dword [r14 + 0x90]
lea r8d, [rbx + 2]
lea r9d, [rax + 7]
cmp eax, dword [r14 + 0x94]
jge 0x140051818
lea edx, [rax + 1]
mov dword [r14 + 0x90], edx
lea rdx, [rax + rax*2]
mov rax, qword [r14 + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], r8d
mov dword [rax + 8], r9d
mov dword [rax + 0xc], ebx
mov qword [rax + 0x10], 0
mov dword [rax], 0x37
mov rax, qword [r15 + 0x18]
mov r8d, dword [rsi + 0x10]
xor edx, edx
mov rcx, rdi
mov r9, qword [rax + 0x68]
mov dword [rsp + 0x20], 0x71
call fcn.140051460
mov rdx, r12
mov rcx, r14
call fcn.140043630
test rax, rax
je 0x140051830
lea edx, [rbx + 1]
sub ebx, 1
mov dword [rax + 0x3c], r13d
mov dword [rax + 4], edx
mov dword [rax + 0x20], edx
mov dword [rax + 0x54], edx
mov edx, 8
mov dword [rax + 0x34], ebx
mov dword [rax + 0x50], r13d
mov word [rax + 0x4a], dx
test r13d, r13d
je 0x1400517df
movzx eax, byte [rdi + 0x1f]
cmp al, 7
ja 0x1400517df
lea edx, [rax + 1]
mov byte [rdi + 0x1f], dl
mov dword [rdi + rax*4 + 0xe0], r13d
mov rsi, qword [rsi]
test rsi, rsi
je 0x140051830
movsxd r15, dword [rsi + 0x10]
movzx eax, byte [rdi + 0x1f]
mov ebx, dword [rsi + 0x14]
shl r15, 5
add r15, qword [rbp + 0x20]
test al, al
jne 0x140051710
mov eax, dword [rdi + 0x38]
lea r13d, [rax + 1]
mov dword [rdi + 0x38], r13d
jmp 0x140051721
mov dword [rsp + 0x20], ebx
mov edx, 0x37
mov rcx, r14
call fcn.1400445b0
jmp 0x14005176f
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140068310
Capabilities:
Create thread

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [rcx + 0x48]
mov rbp, qword [rdi]
mov esi, edx
mov rax, qword [rbp + 0x10]
mov rdx, qword [rdi + 8]
mov rbx, rcx
mov r8d, esi
mov rcx, rbp
mov r12, qword [rax + 0x20]
call fcn.140068430
test eax, eax
jne 0x1400683bc
mov eax, dword [rdi + 0x20]
movsxd r13, dword [rdi + 0x18]
test eax, eax
jne 0x1400683d0
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x1400683a0
mov qword [rdi + 0x38], rax
mov rax, qword [rbp + 0x60]
add r13, rax
mov qword [rdi + 0x10], rax
mov qword [rbp + 0x60], r13
mov eax, dword [rdi + 0x20]
mov edx, 1
test eax, eax
jne 0x140068410
cmp esi, 1
je 0x1400683bc
test dl, dl
je 0x1400683bc
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140067990
mov rdx, qword [rbp + 0x60]
lea r8, [rbp + 0x58]
mov rcx, r12
call fcn.140013b10
mov qword [rbp + 0x60], 0
test eax, eax
je 0x140068400
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea r8, [rdi + 0x28]
mov rdx, r13
mov rcx, r12
call fcn.140013b10
test eax, eax
jne 0x1400683bc
lea r8, [rdi + 0x38]
mov rdx, r13
mov rcx, r12
call fcn.140013b10
test eax, eax
jne 0x1400683bc
jmp 0x14006836e
mov rax, qword [rbp + 0x58]
jmp 0x14006835b
mov rcx, rdi
call fcn.140068030
test eax, eax
sete dl
jmp 0x14006837e
Function at 0x1400a6990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
cmp byte [rcx + 0x23], 0
mov rbx, rcx
mov ebp, r8d
je 0x1400a6a68
mov eax, 2
lea rsi, [0x14000c1a0]
mov dword [rsp + 0x58], 0
mov word [rsp + 0x54], ax
lea rax, [0x140003d70]
movq xmm0, rsi
movq xmm1, rax
punpcklqdq xmm0, xmm1
movups xmmword [rsp + 0x38], xmm0
test rdx, rdx
je 0x1400a6a40
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
call fcn.14001d770
cmp word [rsp + 0x54], 0
mov rdx, qword [rsp + 0x28]
jne 0x1400a6a40
mov rdi, qword [rbx]
mov rcx, rdi
call fcn.14002a250
cmp byte [rdi + 0x67], 0
mov rsi, rax
jne 0x1400a6a25
cmp qword [rbx + 0x10], 0
je 0x1400a6a25
mov r8d, ebp
mov rdx, rax
mov rcx, rbx
call fcn.1400a4df0
test rsi, rsi
je 0x1400a6a58
mov rdx, rsi
mov rcx, rdi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140018b80
mov r8d, ebp
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400a5c60
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdi, qword [rcx]
test rdx, rdx
jne 0x1400a69ff
cmp byte [rdi + 0x67], 0
jne 0x1400a6a58
cmp qword [rcx + 0x10], 0
je 0x1400a6a58
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400a4df0

Function at 0x1400a8110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rsi, r8
test rdx, rdx
je 0x1400a8146
nop word [rax + rax]
mov eax, dword [rdx + 4]
test eax, 0x82000
je 0x1400a81a3
test eax, 0x80000
je 0x1400a8190
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
jne 0x1400a8128
movzx eax, byte [rbx + 0x1f]
test al, al
je 0x1400a8250
sub eax, 1
mov byte [rbx + 0x1f], al
movzx eax, al
mov edi, dword [rbx + rax*4 + 0xe0]
mov r8d, edi
mov rcx, rbx
call fcn.1400a2790
cmp eax, edi
je 0x1400a8240
test edi, edi
jne 0x1400a8220
mov dword [rsi], 0
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov rdx, qword [rdx + 0x10]
test rdx, rdx
je 0x1400a8146
mov eax, dword [rdx + 4]
test eax, 0x82000
jne 0x1400a8132
cmp byte [rbx + 0x23], 0
je 0x1400a8146
cmp byte [rdx], 0xb0
je 0x1400a8146
mov eax, 2
lea rcx, [rsp + 0x30]
lea rdi, [0x14000c1a0]
mov qword [rsp + 0x28], rdx
mov word [rsp + 0x54], ax
lea rax, [0x140003d70]
movq xmm0, rdi
movq xmm1, rax
mov dword [rsp + 0x58], 0
punpcklqdq xmm0, xmm1
movups xmmword [rsp + 0x38], xmm0
call fcn.14001d770
cmp word [rsp + 0x54], 0
mov rdx, qword [rsp + 0x28]
je 0x1400a8146
mov r8d, 0xffffffff
mov rcx, rbx
mov dword [rsi], 0
add rsp, 0x60
pop rbx
pop rsi
pop rdi
jmp fcn.1400a5c60
movzx edx, byte [rbx + 0x1f]
cmp dl, 7
ja 0x1400a817d
lea ecx, [rdx + 1]
mov byte [rbx + 0x1f], cl
mov dword [rbx + rdx*4 + 0xe0], edi
jmp 0x1400a817d
mov dword [rsi], edi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov eax, dword [rbx + 0x38]
lea edi, [rax + 1]
mov dword [rbx + 0x38], edi
jmp 0x1400a8162
Function at 0x1400a8260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
movzx eax, byte [rdx]
mov rbx, rcx
mov rsi, rdx
cmp al, 0xb0
jne 0x1400a8286
movzx eax, byte [rdx + 2]
cmp al, 0xb1
je 0x1400a8420
cmp al, 0x8a
je 0x1400a82b8
movaps xmm6, xmmword [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400a8110
mov rax, qword [rsi + 0x20]
mov rax, qword [rax + 0x20]
mov edi, dword [rax]
cmp edi, 1
je 0x1400a8292
mov dword [r8], 0
cmp byte [rsi], 0x8a
je 0x1400a8430
mov eax, dword [rbx + 0x38]
lea r12d, [rax + 1]
add eax, edi
mov dword [rbx + 0x38], eax
test edi, edi
jle 0x1400a83ff
lea rax, [0x140003d70]
lea rdx, [0x14000c1a0]
xor r14d, r14d
movq xmm0, rax
movq xmm6, rdx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
punpcklqdq xmm6, xmm0
jmp 0x1400a839f
mov eax, 2
mov dword [rsp + 0x58], 0
mov word [rsp + 0x54], ax
movups xmmword [rsp + 0x38], xmm6
test r15, r15
je 0x1400a83e8
mov rcx, qword [rsp + 0x28]
mov rdx, r15
call fcn.14001d770
cmp word [rsp + 0x54], 0
jne 0x1400a83e8
mov r13, qword [rbx]
mov rdx, r15
mov rcx, r13
call fcn.14002a250
cmp byte [r13 + 0x67], 0
mov r15, rax
jne 0x1400a8386
cmp qword [rbx + 0x10], 0
je 0x1400a8386
mov r8d, ebp
mov rdx, rax
mov rcx, rbx
call fcn.1400a4df0
test r15, r15
je 0x1400a8396
mov rdx, r15
mov rcx, r13
call fcn.140018b80
add r14d, 1
cmp r14d, edi
je 0x1400a83ff
mov rdx, qword [rsi + 0x20]
movsxd rax, r14d
cmp byte [rbx + 0x23], 0
lea ebp, [r12 + r14]
lea rax, [rax + rax*2]
lea rax, [rdx + rax*8]
mov r15, qword [rax + 8]
jne 0x1400a8320
mov r13, qword [rbx]
test r15, r15
jne 0x1400a835c
cmp byte [r13 + 0x67], 0
jne 0x1400a8396
cmp qword [rbx + 0x10], 0
je 0x1400a8396
mov r8d, ebp
xor edx, edx
mov rcx, rbx
call fcn.1400a4df0
jmp 0x1400a8396
mov r8d, ebp
mov rdx, r15
mov rcx, rbx
add r14d, 1
call fcn.1400a5c60
cmp r14d, edi
jne 0x1400a839f
movaps xmm6, xmmword [rsp + 0x60]
mov eax, r12d
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x20]
mov edi, dword [rax]
jmp 0x1400a82c2
movaps xmm6, xmmword [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.14009ec00
Function at 0x14010c5b0
Capabilities:
Read file on windows

Disassembly:
endbr64
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, rdi
call sub.msvcrt.dll_fread
mov rsi, rax
cmp rbx, rax
je 0x14010c5e1
mov rcx, rdi
call fcn.14010c0d0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14010d8d0
Capabilities:
Write file on windows

Disassembly:
endbr64
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov edx, 1
mov r9, rbx
call sub.msvcrt.dll_fwrite
mov rcx, rbx
mov rsi, rax
call fcn.14010c0d0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14010dd40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x14010dd5f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x1401183e0
Capabilities:
Write file on windows

Disassembly:
endbr64
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rax, qword [0x1401f5610]
mov rbx, rcx
mov rdi, rdx
test rax, rax
je 0x1401184a0
pxor xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
test rcx, rcx
je 0x140118460
call sub.msvcrt.dll_strlen
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov rcx, rsi
mov r8, rax
call fcn.140117120
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1401f5610]
test rbx, rbx
je 0x140118440
test byte [rbx + 7], 0x40
je 0x140118480
lea rcx, [0x1401b0760]
call fcn.14019d400
cmp byte [rax], 0
jne 0x1401184d0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call rax
jmp 0x140118440
lea rcx, [0x1401b0780]
call fcn.14019d400
mov rdx, rbx
mov rcx, rax
call fcn.140112d30
jmp 0x140118440
mov ecx, 2
call qword [fcn.1401a5ce0]
mov rcx, rbx
mov r8, rdi
mov edx, 1
mov rsi, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sub.msvcrt.dll_fflush
mov byte [rax], 0
lea rcx, [0x1401b0660]
call fcn.14019d400
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp fcn.140113af0
Function at 0x14011a1a0
Capabilities:
Write file on windows

Disassembly:
endbr64
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rax, str.echoBinSafe
lea rdi, [0x1401c10b1]
mov rbx, rcx
mov rsi, rdx
xor edx, edx
mov qword [rsp + 0x38], rax
lea rcx, [0x1401b0700]
mov word [rsp + 0x50], dx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], 0
call fcn.14019d400
mov rdx, qword [rax]
mov rbp, rax
test rdx, rdx
je 0x14011a2e0
movzx eax, word [rdx + 0x22]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x30]
mov qword [rbp], rdx
add eax, 1
mov word [rsp + 0x52], ax
cmp ax, 0x7d0
je 0x14011a2d0
mov qword [rsp + 0x40], 0xac5
lea rcx, [0x1401f55e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x14011a2fe
mov r12, qword [fcn.1401a5ce0]
xor r15d, r15d
lea r14, [rsp + 0x20]
lea r13, [0x1401b0760]
jmp 0x14011a271
add r15, 1
add rbx, 0x10
cmp rsi, r15
je 0x14011a308
mov ecx, 1
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], 0xac6
call r12
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r14
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call fcn.140119f10
mov rcx, r13
call fcn.14019d400
cmp byte [rax], 0
je 0x14011a260
mov rax, qword [rbp]
mov rax, qword [rax]
mov qword [rbp], rax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14010df50
jmp 0x14011a221
mov qword [rsp + 0x30], 0
xor eax, eax
mov word [rsp + 0x52], ax
lea rax, [rsp + 0x30]
mov qword [rbp], rax
jmp 0x14011a221
mov r12, qword [fcn.1401a5ce0]
nop dword [rax]
mov qword [rsp + 0x40], 0xae1
mov ecx, 1
mov qword [rsp + 0x48], rdi
call r12
mov r8d, 1
mov edx, 1
lea rcx, [0x1401c1061]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
mov qword [rsp + 0x40], 0xae2
call r12
mov rcx, rax
call sub.msvcrt.dll_fflush
lea rcx, [0x1401f55e0]
mov qword [rsp + 0x40], 0xae6
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14011a2ab
Function at 0x1401735e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
endbr64
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
lea rax, str.crc32
lea r12, str._home_admin_.nimble_pkgs2_crunchy_0.1.11_d34f03fc0f6876dbf53f99601096728ec31f47a3_crunchy_crc32.nim
mov rsi, rcx
mov rcx, qword [0x1401e1380]
mov rdi, rdx
xor edx, edx
mov word [rsp + 0x40], dx
mov ebx, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14019d400
mov rdx, qword [rax]
mov rbp, rax
test rdx, rdx
je 0x140173770
movzx eax, word [rdx + 0x22]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
mov qword [rbp], rdx
add eax, 1
mov word [rsp + 0x42], ax
cmp ax, 0x7d0
je 0x140173760
test rdi, rdi
lea r9, [rdi + 7]
cmovns r9, rdi
sar r9, 3
cmp rdi, 7
jle 0x14017378e
mov qword [rsp + 0x38], r12
mov r10d, dword [rsi]
xor r8d, r8d
xor r12d, r12d
mov qword [rsp + 0x30], 0x26
mov eax, 4
lea rdx, [0x1401da7a0]
jmp 0x1401736be
add r8, 1
cmp r8, r9
jge 0x140173798
mov r10d, dword [rsi + rax]
mov rax, r12
add rax, 4
jo 0x140173742
xor r10d, ebx
mov eax, dword [rsi + rax]
mov r11d, r10d
movzx ebx, r10b
mov ecx, r10d
shr r10d, 0x10
shr r11d, 0x18
mov ebx, dword [rdx + rbx*4 + 0x1c00]
movzx ecx, ch
movzx r10d, r10b
xor ebx, dword [rdx + r11*4 + 0x1000]
movzx r11d, al
xor ebx, dword [rdx + r11*4 + 0xc00]
mov r11d, eax
shr r11d, 0x18
xor ebx, dword [rdx + r11*4]
xor ebx, dword [rdx + rcx*4 + 0x1800]
movzx ecx, ah
shr eax, 0x10
movzx eax, al
xor ebx, dword [rdx + r10*4 + 0x1400]
xor ebx, dword [rdx + rcx*4 + 0x800]
xor ebx, dword [rdx + rax*4 + 0x400]
mov rax, r12
add rax, 8
mov r12, rax
jno 0x1401736a0
mov qword [rsp + 0x30], 0x23
call fcn.1401145f0
mov rax, qword [rbp]
mov rax, qword [rax]
mov qword [rbp], rax
mov eax, ebx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14010df50
jmp 0x14017365e
mov qword [rsp + 0x20], 0
xor eax, eax
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x20]
mov qword [rbp], rax
jmp 0x14017365e
xor r12d, r12d
nop dword [rax]
mov qword [rsp + 0x30], 0x78
lea r8, [0x1401da770]
mov qword [rsp + 0x38], r8
cmp rdi, r12
jle 0x140173747
lea rcx, [r12 + rsi]
add rdi, rsi
lea rdx, [0x1401da7a0]
movzx eax, byte [rcx]
add rcx, 1
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [rdx + rax*4]
cmp rdi, rcx
jne 0x1401737c0
mov qword [rsp + 0x30], 0x7a
mov qword [rsp + 0x38], r8
jmp 0x140173747
Function at 0x14019c590
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.1401a5ce0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1401a5ce0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14019c600
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401f5c84]
mov rbx, rcx
test esi, esi
jle 0x14019c730
mov rax, qword [0x1401f5c88]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14019c64b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14019c6d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14019c630
mov rcx, rbx
call fcn.14019d050
mov rdi, rax
test rax, rax
je 0x14019c752
mov rax, qword [0x1401f5c88]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14019d190
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401f5c88]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14019c737
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14019c6ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14019c6e0
add dword [0x1401f5c84], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401f5c88]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14019c6ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14019c590
nop dword [rax]
xor esi, esi
jmp 0x14019c658
mov rax, qword [0x1401f5c88]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14019c590
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14019c590
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14019ccc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401f5ce0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401f5cc0]
test rbx, rbx
je 0x14019cd1c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14019cd13
test rsi, rsi
je 0x14019cd13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14019ccf8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14019d050
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401e13c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14019d070
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14019d078
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14019d070
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14019d0cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14019d0c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14019d070
add rax, 0x28
cmp rax, r9
jne 0x14019d0b0
xor eax, eax
ret

Function at 0x14019d0d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401e13c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14019d0ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14019d0f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14019d0ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14019d190
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401e13c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14019d1af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14019d1b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14019fc50
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14019fc80
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1401a6fe0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1401a70e2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1401a70ba
add rax, 1
cmp rax, 0x6b
je 0x1401a70d7
cmp byte [rcx + rax], 0
jne 0x1401a70b0
movsxd rdx, eax
cmp eax, 0x6a
je 0x1401a70d7
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1401a70cb