joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402b5180
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14d, dword [rcx + 0x48]
lea rbp, [rcx + 0x28]
mov r15, qword [rcx]
add r14, 0x28
add r14, rcx
movabs rax, 0x27d4eb2f165667c5
movabs rsi, 0x7a1435883d4d519d
movabs r13, 0xc2b2ae3d27d4eb4f
movabs r12, 0x9e3779b185ebca87
cmp r15, 0x20
jb 0x1402b5292
mov r11, qword [rcx + 8]
mov rbx, qword [rcx + 0x10]
mov r10, r11
mov rdi, qword [rcx + 0x18]
mov r8, rbx
mov rsi, qword [rcx + 0x20]
mov rdx, rdi
imul rbx, r13
imul r11, r13
imul rdi, r13
mov r9, rsi
mov ecx, 1
rol r10, cl
mov ecx, 7
rol r8, cl
mov ecx, 0xc
rol rdx, cl
mov ecx, 0x12
rol r9, cl
imul rsi, r13
add r9, rdx
lea edx, [rcx + 0xd]
mov ecx, edx
add r9, r8
rol rbx, cl
movabs r8, 0x7a1435883d4d519d
imul rbx, r12
rol r11, cl
add r9, r10
rol rdi, cl
imul r11, r12
imul rdi, r12
rol rsi, cl
xor r11, r9
imul rsi, r12
imul r11, r12
sub r11, r8
xor rbx, r11
imul rbx, r12
sub rbx, r8
xor rdi, rbx
movabs rbx, 0x85ebca77c2b2ae63
imul rdi, r12
sub rdi, r8
xor rsi, rdi
imul rsi, r12
add rbx, rsi
mov rsi, r8
add rbx, r15
jmp 0x1402b529a
lea rbx, [r15 + rax]
add rbx, qword [rcx + 0x18]
lea rdi, [rbp + 8]
jmp 0x1402b52e2
mov r8d, 8
lea rcx, [rsp + 0x70]
mov rdx, rbp
call fcn.1402bc108
mov rax, qword [rsp + 0x70]
mov ecx, 0x1f
imul rax, r13
add rbp, 8
rol rax, cl
mov ecx, 0x1b
imul rax, r12
xor rbx, rax
rol rbx, cl
imul rbx, r12
sub rbx, rsi
add rdi, 8
cmp rdi, r14
jbe 0x1402b52a0
lea rdi, [rbp + 4]
movabs rsi, 0x165667b19e3779f9
cmp rdi, r14
ja 0x1402b532a
mov r8d, 4
lea rcx, [rsp + 0x68]
mov rdx, rbp
call fcn.1402bc108
mov eax, dword [rsp + 0x68]
mov ecx, 0x17
imul rax, r12
mov rbp, rdi
xor rbx, rax
rol rbx, cl
imul rbx, r13
add rbx, rsi
cmp rbp, r14
jae 0x1402b5358
movabs rdx, 0x27d4eb2f165667c5
movzx eax, byte [rbp]
mov ecx, 0xb
imul rax, rdx
inc rbp
xor rbx, rax
rol rbx, cl
imul rbx, r12
cmp rbp, r14
jb 0x1402b5339
mov rax, rbx
shr rax, 0x21
xor rax, rbx
mov rbx, qword [rsp + 0x60]
imul rax, r13
mov rcx, rax
shr rcx, 0x1d
xor rcx, rax
imul rcx, rsi
mov rax, rcx
shr rax, 0x20
xor rax, rcx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x6d7d43a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f55e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d4528
mov rax, qword [0x6d7f55e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d43ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d4475
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d43d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d455d
mov rax, qword [0x6d7f55e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f55e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d4540
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d446e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d44d0
add dword [0x6d7f55e4], 1
cmp edi, 8
jae 0x6d7d44a3
test dil, 4
jne 0x6d7d4514
test edi, edi
je 0x6d7d4498
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d452f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d4498
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d44bc
jmp 0x6d7d4498
add rsi, qword [0x6d7f55e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d446e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d4498
xor esi, esi
jmp 0x6d7d43f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d4498
mov rax, qword [0x6d7f55e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d4cb0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f58c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f58a0]
test rbx, rbx
je 0x6d7d4d04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d4cfb
test rsi, rsi
je 0x6d7d4cfb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d4ce0
lea rcx, [0x6d7f58c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d4f40
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d4f50
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d4f60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d4fa1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d4f98
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d4fa3
add rax, 0x28
cmp rax, r9
jne 0x6d7d4f84
xor eax, eax
ret

Function at 0x6d7d5040
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f21f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d50ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d50ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d50ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d50a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d50af
add rax, 0x28
cmp rax, r9
jne 0x6d7d5090
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d51b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f21f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d51d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d51c8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d522d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d5224
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d5234
add rax, 0x28
cmp rax, r9
jne 0x6d7d5210
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d5250
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f21f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d52be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d52be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d52be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d52be
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d52b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d52c5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d52a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d52d8
jmp 0x6d7d52be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d52e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d52be
test r9d, r9d
jg 0x6d7d52d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d5620
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14070a0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14070a237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14070a0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14070a0c7
add dl, dl
jne 0x14070a0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14070a14e
xor eax, eax
add dl, dl
jne 0x14070a0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14070a205
add dl, dl
jne 0x14070a10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14070a11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14070a128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14070a135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14070a142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14070a0d6
mov eax, 1
add dl, dl
jne 0x14070a15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14070a16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14070a153
sub eax, ebx
mov ebx, 1
jne 0x14070a1a4
mov ecx, 1
add dl, dl
jne 0x14070a186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14070a193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14070a17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14070a0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14070a1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14070a1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14070a1b5
cmp eax, 0x7d00
jae 0x14070a1f3
cmp eax, 0x500
jb 0x14070a1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14070a0d6
cmp eax, 0x7f
ja 0x14070a1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14070a0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14070a22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14070a0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000dd30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14000ddaa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
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 0x14000dda0
cmp r10, r11
jb 0x14000de43
cmp r10, rdx
ja 0x14000de57
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14000dda2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14000dd80
jmp 0x14000de17
ja 0x14000ddaa
mov r11, r10
cmp rax, r8
jne 0x14000dd52
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14000de1b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14000ddf0
mov r8, r10
sub ecx, r9d
jns 0x14000de0e
jmp 0x14000de1d
cmp r10, rdx
je 0x14000de29
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14000de1d
xor al, 1
cmp r8, rdx
jne 0x14000ddd0
jmp 0x14000de1d
xor eax, eax
jmp 0x14000de1d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueassertion_failed:__buf.is_empty__
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400576d0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140057c10
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140057b90
ud2
Function at 0x140012300
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 + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140012390
jmp 0x14001237f
jae 0x140012450
cmp r8, 0x201
jae 0x140012390
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400123e8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400123bf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140057f40
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140012411
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400124b8
mov r8d, r14d
cmp r15, r8
jne 0x140012370
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400124db
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001237f
jmp 0x140012390
cmp rsi, r8
jb 0x1400124f5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400143f0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1400124a1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400464c0
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 + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140012489
jmp 0x1400124a1
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_self.is_char_boundary_new_len__rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_src_string.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400576d0
jmp 0x14001250a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140057b90
ud2
Function at 0x140014df0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140014e20
test ecx, ecx
jne 0x140014e70
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140014e2c
test ecx, ecx
jne 0x140014e70
mov rcx, rdi
call fcn.140014cd0
movzx eax, al
test bpl, bpl
jne 0x140014e77
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140014e63.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140014fe8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140014e63.2
xor eax, eax
test bpl, bpl
je 0x140014e3c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140014fc9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140014eaa
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140014f29
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140014ef0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140014f0b
inc rax
dec rdi
cmp rax, 1
jne 0x140014ed0
jmp 0x140014f29
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140014f0b
cmp ebx, 0x5c
je 0x140014f0b
inc rax
dec rdi
cmp rax, 1
jne 0x140014ef0
jmp 0x140014f29
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140014fd7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140014f53
mov al, 9
cmp rdx, 2
je 0x140014f57
cmp rdx, 1
jne 0x140014f67
cmp byte [r8], 0x2e
jne 0x140014f67
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140014f67
mov al, 0xa
jmp 0x140014f67
cmp byte [r8], 0x2e
jne 0x140014f67
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140014e63.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140014e63.2
mov ecx, 2
jmp case.0x140014e63.2
lea r8, str.library_std_srcpath.rs
call fcn.140057b10
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140057b10
ud2
Function at 0x140019150
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14006a188]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140019194
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400191fa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140019231
test eax, eax
js 0x14001920b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140019224
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140014080
mov rcx, rax
call fcn.140010720
mov ecx, 7
int 0x29
ud2

Function at 0x140019ba0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140019bd8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140019bf0
nop
add rsp, 0x38
ret

Function at 0x140019bf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140019c33
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140012da0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140057630
ud2
Function at 0x140023c80
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
sub rsp, 0x20
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140023d71
lea rdx, str.SetCurrentProcessExplicitAppUserModelID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac428], rax
test rax, rax
je 0x140023d71
lea rcx, str.PROPSYS.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140023d71
lea rdx, str.PropVariantToString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac430], rax
test rax, rax
je 0x140023d71
lea rcx, str.COMBASE.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140023d71
mov rsi, rax
lea rdx, str.RoGetActivationFactory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac438], rax
test rax, rax
je 0x140023d71
lea rdx, str.WindowsCreateStringReference
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac440], rax
test rax, rax
je 0x140023d71
lea rdx, str.WindowsGetStringRawBuffer
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac498], rax
test rax, rax
je 0x140023d71
lea rdx, str.WindowsDeleteString
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ac448], rax
add rsp, 0x20
pop rsi
ret
Function at 0x140028c60
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rdx
mov rax, qword [0x1400ac070]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdx, r8
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140028e06
lea r8, str.MicrosoftWindowsStart_MenuPrograms_
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140028e06
movabs rax, 0x7fffffffffffffec
mov r15, qword [rdi + 0x10]
lea rcx, [r15 + rax]
add rcx, 0x19
cmp rcx, 3
jbe 0x140028e25
mov rdx, qword [rdi]
mov r13, qword [rdi + 0x18]
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
lea rbp, [r15 + 4]
mov r12d, 7
mov r14, rbx
cmp rbp, 8
jb 0x140028d6d
mov rcx, rbp
or rcx, 7
cmp rcx, 0xb
mov r12d, 0xa
cmovae r12, rcx
movabs rcx, 0x7ffffffffffffffe
cmp r12, rcx
cmovae r12, rcx
lea rcx, [r12 + r12]
cmp r12, 0x7ff
mov qword [rsp + 0x28], rdx
jb 0x140028d57
cmp r12, rax
jae 0x140028e2a
add rcx, 0x29
call fcn.1400559d0
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140028d63
add rcx, 2
call fcn.1400559d0
mov r14, rax
mov qword [rsp + 0x30], r14
mov rdx, qword [rsp + 0x28]
cmp r13, 8
cmovae rdi, rdx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r12
lea r8, [r15 + r15]
mov rcx, r14
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
movabs rax, 0x6b006e006c002e
mov qword [r14 + r15*2], rax
mov word [r14 + r15*2 + 8], 0
cmp qword [rsp + 0x48], 8
jb 0x140028db1
mov rbx, qword [rsp + 0x30]
mov edx, 0x104
mov rcx, rsi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x140028e06
mov rcx, qword [rsp + 0x30]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140028e01
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140028e2f
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140055a14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140056980
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140059b90
call fcn.140059bb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3