joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ec344
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140179c30]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400ec3a2
cmp word [rdx], r12w
jne 0x1400ec3a2
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400ec3a8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400ec503
mov r9d, reloc.WLDAP32.dll_Ordinal_26
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400ec4de
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400ec3e1
mov rcx, r9
jmp 0x1400ec404
cmp r9, rdx
jae 0x1400ec41b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, reloc.WLDAP32.dll_Ordinal_26
add rbx, 2
cmp rcx, rdx
jb 0x1400ec3c5
jmp 0x1400ec503
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ec4d8
cmp dword [rsp + 0x80], edi
je 0x1400ec4d8
mov rdx, r14
lea r11, [0x140179c30]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400ec4b1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400ec484
mov word [rbx], r12w
jmp 0x1400ec4ff
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400ec48d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400ec4ff
cmp word [rsp + 0x70], r12w
jne 0x1400ec4be
cmp rbx, rsi
je 0x1400ec47e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400e365c
cmp word [rsp + 0x70], r12w
je 0x1400ec503
mov word [rbx], r13w
jmp 0x1400ec4ff
lea r11, [0x140179c30]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400ec4fb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400ec503
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400f1d18
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400f1d4a
call fcn.1400d4108
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1400d3b68
jmp 0x1400f1e69
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400f1e69
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400f1e69
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400f1d79
lock or dword [rcx + 0x14], 0x10
jmp 0x1400f1e69
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400f1d8d
call fcn.1400f1f90
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400f0400
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400ec7f0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400f1e57
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400f1e22
mov rcx, rsi
call fcn.1400f0400
cmp eax, edi
je 0x1400f1e0d
mov rcx, rsi
call fcn.1400f0400
cmp eax, 0xfffffffe
je 0x1400f1e0d
mov rcx, rsi
call fcn.1400f0400
movsxd rbx, eax
lea r14, [0x140179c30]
mov rcx, rsi
sar rbx, 6
call fcn.1400f0400
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400f1e14
lea rdx, [0x14016d840]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400f1e22
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400f1e46
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400f1e46
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400f1e46
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400f1e6c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400f7974
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400f79a4
xor eax, eax
jmp 0x1400f7a67
mov rbp, rbx
cmp word [rax], si
je 0x1400f79c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f79b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f79ac
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400f1ee0
movsxd r14, eax
test eax, eax
jne 0x1400f7a07
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f799d
mov rcx, r14
call fcn.1400f0abc
mov rdi, rax
test rax, rax
jne 0x1400f7a20
xor ecx, ecx
call fcn.1400eeb9c
jmp 0x1400f79fc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400f1ee0
test eax, eax
jne 0x1400f7a51
mov rcx, rdi
call fcn.1400eeb9c
jmp 0x1400f7a5b
xor ecx, ecx
call fcn.1400eeb9c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400f7a84
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400f7b0b
mov rsi, rbx
cmp word [rax], bp
je 0x1400f7aca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f7ab4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f7ab0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400f0abc
mov rdi, rax
test rax, rax
je 0x1400f7af8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ff0a0
mov rbp, rdi
xor ecx, ecx
call fcn.1400eeb9c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400fb090
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400e365c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e365c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400fb1e0
cmp rax, 0xffffffffffffffff
je 0x1400fb1e0
xor edi, edi
test rbp, rbp
jle 0x1400fb18b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400eeb24
mov rbx, rax
test rax, rax
jne 0x1400fb118
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400fb181
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ea87c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400ed734
cmp eax, 0xffffffff
je 0x1400fb161
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400fb128
mov edx, r15d
mov ecx, r14d
call fcn.1400ea87c
jmp 0x1400fb181
cmp byte [rsi + 0x38], dil
je 0x1400fb178
cmp dword [rsi + 0x34], 5
jne 0x1400fb178
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400fb181
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400eeb9c
jmp 0x1400fb1f4
jns 0x1400fb1f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e365c
cmp rax, 0xffffffffffffffff
jne 0x1400fb1ac
cmp byte [rsi + 0x30], dil
je 0x1400fb1f4
mov edi, dword [rsi + 0x2c]
jmp 0x1400fb1f4
mov ecx, r14d
call fcn.1400f42ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400fb1f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400fb1f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400fb1ed
mov eax, dword [rsi + 0x2c]
jmp 0x1400fb1f2
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e365c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400fdc4c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400d8714
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400fdcd6
cmp byte [rbp - 0x21], r15b
je 0x1400fdcd1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400fdd0c
call fcn.1400eeef8
test eax, eax
jne 0x1400fdcf8
cmp byte [rbp - 0x21], r15b
je 0x1400fdcf0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400fdd0c
cmp byte [rbp - 0x21], r15b
je 0x1400fdd09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400d847c
test eax, eax
jne 0x1400fddac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400d8714
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400fdd4b
cmp byte [rbp - 0x21], r15b
je 0x1400fdd80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400fdd80
call fcn.1400eeef8
test eax, eax
jne 0x1400fdd6c
cmp byte [rbp - 0x21], r15b
je 0x1400fdd65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400fdd80
cmp byte [rbp - 0x21], r15b
je 0x1400fdd7d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400d847c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400fddac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400fddaf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400fddbd
mov rcx, rdi
call fcn.1400eeb9c
cmp byte [rbp + 0x3f], r15b
je 0x1400fddcc
mov rcx, qword [rbp + 0x27]
call fcn.1400eeb9c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400fecd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400fecf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400fecf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001350
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x140002aa0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
movdqa xmm0, xmmword [rcx]
movdqa xmm10, xmmword [rcx + 0x10]
movdqa xmm9, xmmword [rcx + 0x20]
movdqa xmm8, xmmword [rcx + 0x30]
movdqa xmm2, xmmword [rdx]
pxor xmm2, xmm0
movdqa xmm5, xmmword [rdx + 0x10]
pxor xmm5, xmm0
movdqa xmm6, xmmword [rdx + 0x20]
pxor xmm6, xmm0
movdqa xmm7, xmmword [rdx + 0x30]
pxor xmm7, xmm0
movdqa xmm1, xmmword [rdx + 0x40]
pxor xmm1, xmm0
movdqa xmm3, xmmword [rdx + 0x50]
pxor xmm3, xmm0
movdqa xmm4, xmmword [rdx + 0x60]
pxor xmm4, xmm0
pxor xmm0, xmmword [rdx + 0x70]
aesenc xmm2, xmm10
aesenc xmm5, xmm10
aesenc xmm6, xmm10
aesenc xmm7, xmm10
aesenc xmm1, xmm10
aesenc xmm3, xmm10
aesenc xmm4, xmm10
aesenc xmm0, xmm10
aesenc xmm2, xmm9
aesenc xmm5, xmm9
aesenc xmm6, xmm9
aesenc xmm7, xmm9
aesenc xmm1, xmm9
aesenc xmm3, xmm9
aesenc xmm4, xmm9
aesenc xmm0, xmm9
aesenc xmm2, xmm8
aesenc xmm5, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x40]
aesenc xmm2, xmm8
aesenc xmm5, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x50]
aesenc xmm2, xmm8
aesenc xmm5, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x60]
aesenc xmm2, xmm8
aesenc xmm5, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x70]
aesenc xmm2, xmm8
aesenc xmm5, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x80]
aesenc xmm2, xmm8
aesenc xmm5, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x90]
aesenc xmm2, xmm8
aesenc xmm5, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0xa0]
aesenclast xmm2, xmm8
aesenclast xmm5, xmm8
movdqa xmmword [rdx], xmm2
movdqa xmmword [rdx + 0x10], xmm5
aesenclast xmm6, xmm8
movdqa xmmword [rdx + 0x20], xmm6
aesenclast xmm7, xmm8
movdqa xmmword [rdx + 0x30], xmm7
aesenclast xmm1, xmm8
aesenclast xmm3, xmm8
movdqa xmmword [rdx + 0x40], xmm1
movdqa xmmword [rdx + 0x50], xmm3
aesenclast xmm4, xmm8
movdqa xmmword [rdx + 0x60], xmm4
aesenclast xmm0, xmm8
movdqa xmmword [rdx + 0x70], xmm0
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140008120
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 0x1400081c0
jmp 0x1400081af
jae 0x14000827f
cmp r8, 0x201
jae 0x1400081c0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140008217
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1400081ef
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14001def0
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 0x140008240
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400082eb
mov r8d, r13d
cmp r12, r8
jne 0x1400081a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000831f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400081af
jmp 0x1400081c0
cmp r14, r8
jb 0x140008339
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000a8f0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x1400082d4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140003a30
mov rax, rsi
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 rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1400082bf
jmp 0x1400082d4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_3f5fd8dd41153bc5fdca9427e9e05be2c767ba23library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001ed70
jmp 0x14000834e
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.14001f120
ud2
Function at 0x14000f170
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140022058]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14000f1a8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000f206
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14000f233
test eax, eax
js 0x14000f212
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14000f229
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.14000a5e0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140006860
mov ecx, 7
int 0x29
ud2
Function at 0x14001bdf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14001be7a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001be70
cmp r11, r10
ja 0x14001bef6
cmp r10, rdx
ja 0x14001bf08
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14001be72
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001be50
jmp 0x14001bed7
ja 0x14001be7a
mov r11, r10
cmp rax, r8
jne 0x14001be17
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14001bedb
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001beb0
mov r8, r10
sub ecx, r9d
jns 0x14001bece
jmp 0x14001bedd
cmp r10, rdx
je 0x14001beea
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001bedd
xor al, 1
cmp r8, rdx
jne 0x14001be90
jmp 0x14001bedd
xor eax, eax
jmp 0x14001bedd
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001ec30
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001f190
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001f120
int3

Function at 0x14001d6c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d70e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d70e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d70e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d70e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d70e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001d710
xor al, al
add rsp, 0x28
ret
Function at 0x140004e60
Capabilities:
Check for debugger via api
Check for peb ntglobalflag flag

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140004f79
xor ebx, ebx
mov dword [rsp + 0x48], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x140004ea0
cmp dword [rsp + 0x48], ebx
jne 0x140004f5f
mov qword [rsp + 0x48], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea r8, [rsp + 0x48]
mov edx, 0x1e
call qword [0x1400648b0]
test eax, eax
jne 0x140004ed8
cmp qword [rsp + 0x48], rbx
jne 0x140004f6c
call fcn.140004fc0
test al, al
jne 0x140004f79
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0xd8]
cmp dword [rdx + rax + 0xc], ebx
jne 0x140004f79
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x30]
call fcn.140004d80
test eax, eax
mov edx, 0x70
mov ebx, 0x14
cmovne ebx, edx
call fcn.140004d80
test eax, eax
mov ecx, 0x18
mov edx, 0x74
cmovne ecx, edx
test dword [rbx + rdi], 0xfffffffd
jne 0x140004f79
cmp dword [rcx + rdi], 0
jne 0x140004f79
mov rax, qword gs:[0x60]
test byte [rax + 0xbc], 0x70
jne 0x140004f79
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.140004f90
int3
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.140004f90
int3
lea rcx, str.Sorry__you_cant_use_debuggers_with_this_program.
call fcn.140004f90
int3