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

Disassembly:
sub cl, byte [rdi]
test byte [rsi + rcx*2 + 0x75], dh
jmp 0x149985c
test byte [rsi + 0xf000002], dh
test dword [rax + 2], esi
add byte [rax], al
add byte [rax - 0x3f7bc3fc], cl
mov rax, qword [rcx + 0x10]
mov edx, dword [rcx + 0x3c]
jmp 0x69020a
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 8], 0x5b41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xa], 0x5a41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xc], 0x5941
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xe], 0x5841
je 0x6902b4
jne 0x6902b4
jmp 0x1d7eb52
ret
mov qword [rcx + 0x10], rdx
jmp 0x690385
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 6], 0x5c41
jmp 0x69014e
cmp edx, 0x8664
je 0x6902d1
cmp edx, 0x14c
jne 0x69018b
je 0x69026b
jne 0x69026b
jmp 0x698bbe
jne 0x6902c6
add byte [rax], al
add byte [rax], al
jmp 0x690193
jne 0x690342
je 0x10b28d3d
mov r9, qword [rcx + 0x10]
lea rdx, [r9 + 1]
mov qword [rcx + 0x10], rdx
je 0x690303
jne 0x690303
jmp 0x6902f4
je 0x690285
jne 0x690285
add byte [rax], al
add byte [rax], al
mov rdx, qword [rcx + 8]
mov byte [rdx + r8], 0x58
mov qword [rcx + 0x10], r9
jmp 0x69018b
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x11], 0x5e
mov rdx, qword [rcx + 8]
je 0x69028c
jne 0x69028c
je 0x2794706
mov byte [rax + rdx + 2], 0x5d
pop rbp
je 0x690342
jmp 0x6901e5
mov byte [rax + rdx + 4], 0x5a
mov rdx, qword [rcx + 8]
lea r8, [rax + 6]
je 0x6902c6
jmp 0x6901d7
mov byte [rax + rdx + 3], 0x5b
mov rdx, qword [rcx + 8]
jmp 0x69024b
mov rdx, qword [rcx + 8]
mov byte [rdx + rax], 0x5f
mov rdx, qword [rcx + 8]
mov byte [rax + rdx + 1], 0x5e
mov rdx, qword [rcx + 8]
je 0x69023c
jne 0x69023c
jmp 0x682972
jmp 0x6901b0
jne 0x6902f4
mov byte [r9 + rdx + 0x12], 0x5d
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x13], 0x5b
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x14], 0x5a
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x15], 0x59
jmp 0x6902dd
je 0x8ba8e00
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x10], 0x5f
jmp 0x690228
jne 0x690317
jmp 0x5794790
mov byte [rax + rdx + 5], 0x59
lea r9, [rax + 7]
jmp 0x6902e5
mov r8, qword [rcx + 8]
lea rdx, [rax + 1]
jmp 0x690339
lea r8, [r9 + 0x16]
add r9, 0x17
je 0x690212
jne 0x690212
jmp 0x6902b2
jmp 0x6901a0
je 0x690317
jmp 0x6902c3
mov byte [r8 + r9], 0x8b
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
je 0x690383
jne 0x690383
jmp 0x690317
mov qword [rcx + 0x10], rdx
mov byte [r8 + r9], 0xe5
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
lea rdx, [r9 + 1]
jmp 0x69035d
lea rdx, [r9 + 1]
jmp 0x6902f9
mov qword [rcx + 0x10], rdx
je 0x69036d
jne 0x69036d
jmp 0x8ba8e8e
mov rdx, qword [rcx + 8]
je 0x69025f
jne 0x69025f
je 0x681641
inc dword [rax]
add byte [rax], al
add byte [rdi], cl
test byte [rsi - 2], bh
invalid
je 0x6901e1
jne 0x6901e1
add byte [rax], al
add byte [rax], al
mov byte [r8 + rax], 0x48
mov r8, qword [rcx + 8]
je 0x6901ed
jne 0x6901ed
jmp 0xffffffffc6acae72
jmp 0x69032f
mov byte [r8 + r9], 0x5d
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
mov word [r8 + r9], 0x5f41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 2], 0x5e41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 4], 0x5d41
je 0x6902f4
jmp 0x69028a
invalid
Function at 0x69a860
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
jmp 0x69aab8
mov edi, edx
jmp 0x69ab91
je 0x69aabe
jne 0x69aabe
je 0x53bf0218
push rsi
push rdi
push rbp
push rbx
jmp 0x69abba
sub rsp, 0xa8
jmp 0x69a9b8

Function at 0x6a8c50
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x006bfbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret

Function at 0x6a8d90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x50], rcx
mov eax, dword [rdx]
mov dword [rsp + 0xc], eax
mov eax, dword [rdx + 4]
mov dword [rsp + 0x10], eax
mov eax, dword [rdx + 8]
mov dword [rsp + 0x14], eax
mov r12d, dword [rdx + 0xc]
mov r13d, dword [rdx + 0x10]
mov r14d, dword [rdx + 0x14]
mov r15d, dword [rdx + 0x18]
mov r10d, dword [rdx + 0x1c]
mov edi, dword [rdx + 0x20]
mov r11d, dword [rdx + 0x24]
mov ebx, dword [rdx + 0x28]
mov ebp, dword [rdx + 0x2c]
mov ecx, dword [rdx + 0x30]
mov eax, dword [rdx + 0x34]
mov r9d, dword [rdx + 0x38]
mov r8d, dword [rdx + 0x3c]
mov dword [rsp + 0x4c], 0xfffffff8
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], ecx
mov edx, ecx
mov dword [rsp + 0x38], ebp
mov dword [rsp + 8], ebp
mov dword [rsp + 0x34], ebx
mov dword [rsp], ebx
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x2c], edi
mov ebp, edi
mov dword [rsp + 0x28], r10d
mov edi, r10d
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
mov dword [rsp + 0x1c], r13d
mov dword [rsp + 0x18], r12d
mov r14d, r12d
mov r12d, dword [rsp + 0x14]
mov r10d, dword [rsp + 0x10]
mov ecx, dword [rsp + 0xc]
nop

Function at 0x6aed00
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x6aed8b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x40], rax
xor eax, eax
ret
mov eax, 1
ret
Function at 0x6af7b0
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.006af520
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.006ac170
mov rcx, rdi
mov rdx, rbx
call fcn.006ac0f0
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0x6af810
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0x6af830
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.006a9570
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.006a9200
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.006a9220
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.006ab4a0
mov rcx, rbx
mov rdx, rbx
call fcn.006a9800
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.006a9fa0
lea rcx, [rsp + 0x80]
call fcn.006a9200
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.006a91e0
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.006a9550
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.006a9200
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.006a93b0
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.006a93b0
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.006ab4a0
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.006ab4a0
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.006a9220
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.006a9220
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.006a9fa0
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.006a9fa0
mov rcx, rbp
mov rdx, rbx
call fcn.006a9a90
mov rcx, rbx
mov rdx, rsi
call fcn.006a9a90
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.006a9220
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.006ab4a0
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.006a9fa0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.006ab4a0
mov rcx, rdi
mov rdx, rdi
call fcn.006a9a90
mov rcx, r14
mov rdx, rbx
call fcn.006aaae0
mov rcx, r12
mov rdx, r12
call fcn.006a9a90
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.006a9220
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.006a9fa0
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.006a9fa0
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0x6af900
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.006a93b0
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.006a93b0
mov rcx, rdi
mov rdx, rdi
call fcn.006a9800
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.006a9fa0
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.006aa810
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400e9100
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400e910d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400e911d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400e9105
lea eax, [rcx + 1]
jmp 0x1400e912b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400e913e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400e9124
sub eax, 3
jb 0x1400e915e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400e91ad
sar eax, 1
movsxd rbp, eax
jb 0x1400e9194
jmp 0x1400e916c
add ebx, ebx
jne 0x1400e916a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400e9194
inc ecx
add ebx, ebx
jne 0x1400e917a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400e9194
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400e918d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400e917c
add ecx, 2
jmp 0x1400e9199
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400e90c2
jmp 0x1400e910d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x42e00
mov dl, 0x29
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400e91fd
cmp rsi, rcx
jae 0x1400e9205
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400e91e4
cmp al, 0x8f
ja 0x1400e91e4
cmp byte [rsi - 2], 0xf
je 0x1400e91ea
sub al, 0xe8
cmp al, 1
ja 0x1400e91ce
cmp rsi, rcx
jae 0x1400e9205
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400e91d4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400e9205
lodsb al, byte [rsi]
jmp 0x1400e91e4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xe6000]
mov eax, dword [rdi]
or eax, eax
je 0x1400e9262
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xe91e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400e9212
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400e925c
mov qword [rbx], rax
add rbx, 8
jmp 0x1400e9232
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400e929c
cmp al, 0xef
ja 0x1400e928e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400e926e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400e927d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400e92f0
sub rsp, 0xffffffffffffff80
jmp 0x140042b14
Function at 0x14000d590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000d610
cmp r11, r10
ja 0x14000d687
cmp r10, rdx
ja 0x14000d699
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x14000d612
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000d5f0
jmp 0x14000d674
ja 0x14000d61a
mov r11, r10
cmp rax, r8
jne 0x14000d5be
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000d650
mov rdi, r8
sub ecx, edx
jns 0x14000d66b
jmp 0x14000d676
cmp r8, rsi
je 0x14000d6a8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000d676
xor al, 1
cmp rdi, rsi
jne 0x14000d630
jmp 0x14000d676
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140056b50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140056970
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140056c50
int3

Function at 0x1400167c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400167e5
cmp rax, rcx
je 0x1400167eb
cmp rdx, 4
jae 0x1400167f2
xor eax, eax
xor r8d, r8d
jmp 0x140016890
pop rbp
jmp fcn.14000a500
xor eax, eax
jmp 0x1400168a7
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14005b860]
movdqa xmm3, xmmword [0x14005b870]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140016820
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400168a7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140016890
pop rbp
ret
Function at 0x14001ad50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140063da8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001adc1
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14001adee
test eax, eax
js 0x14001adcd
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14001ade4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14001a5e0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14001a670
mov ecx, 7
int 0x29
ud2
Function at 0x14001d270
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14001d310
jmp 0x14001d2ff
jae 0x14001d3cf
cmp r8, 0x201
jae 0x14001d310
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14001d367
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14001d33f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140057ed0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14001d390
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001d433
mov r8d, r13d
cmp r12, r8
jne 0x14001d2f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001d465
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14001d2ff
jmp 0x14001d310
cmp r14, r8
jb 0x14001d47f
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14001daf0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rax, qword [rbp + 0x3d0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
cmp qword [rbp + 0x3d8], 0
je 0x14001d41e
mov rcx, qword [rbp + 0x3e0]
mov edx, 2
call fcn.140007060
nop
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x3d0]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
cmp qword [rbp + 0x3d8], 0
jne 0x14001d40d
jmp 0x14001d41e
lea rcx, [0x14006c19a]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140056980
jmp 0x14001d494
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140056970
ud2
Function at 0x14002c6d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.140021560
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs rbx, 0x8000000000000000
cmp rcx, rbx
jne 0x14002c70e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x14002c734
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.14002c5f0
mov r14, qword [rbp - 0x10]
cmp r14, rbx
jne 0x14002c74d
lea rcx, [rbp - 8]
call fcn.14001a690
mov qword [rsi], rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002c770
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x14002c740
mov qword [rsi], rbx
test r14, r14
je 0x14002c740
mov edx, 2
mov rcx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140007060
Function at 0x14002f770
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14007e348]
mov edx, 0x10
xor ecx, ecx
call fcn.140033250
test rax, rax
je 0x14002f844
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14002f930]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14002f836
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x14002f813
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140007060
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.140007060
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140056560
ud2

Function at 0x140032ac0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140032c28
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140032afd
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140032c12
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140032bf5
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140032b5c
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x140032b9f
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140032ba3
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x140032ba7
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x140032bd1
lea rax, [rbp - 8]
jmp 0x140032bb3
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140032bd7
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.14001a690
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x140032be2
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x140032b45
mov ecx, 1
jmp 0x140032b4f
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140057e30
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140032b0a
mov r8d, 0x10
mov rcx, rbx
call fcn.140057e30
mov rax, qword [rbx]
jmp 0x140032afd
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140058110
int3