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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1402ed650]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401fa64f
cmp word [rdx], r13w
jne 0x1401fa64f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401fa654
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401fa779
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401fa79a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401fa68d
mov rdx, r9
mov word [rbx], cx
jmp 0x1401fa6b4
cmp r9, r8
jae 0x1401fa6c4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401fa66e
jmp 0x1401fa779
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401fa76e
cmp dword [rsp + 0x80], esi
je 0x1401fa76e
lea r8, [0x1402ed650]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401fa746
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401fa716
mov word [rbx], r13w
jmp 0x1401fa776
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401fa723
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401fa776
cmp word [rsp + 0x70], r13w
jne 0x1401fa753
cmp rbx, r14
je 0x1401fa710
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401f63a8
cmp word [rsp + 0x70], r13w
je 0x1401fa779
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1402ed650]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401fa773
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401fa779
Function at 0x1401fd344
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401fd35a
mov al, 1
jmp 0x1401fd3ba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401fd36b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401fd3b8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140202e9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401fd3b8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401fd3b8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401fd3b8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401fd3ba
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140202fac
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.1401f63a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401f63a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402030fc
cmp rax, 0xffffffffffffffff
je 0x1402030fc
xor edi, edi
test rbp, rbp
jle 0x1402030a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401fc6e0
mov rbx, rax
test rax, rax
jne 0x140203034
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14020309d
mov edx, 0x8000
mov ecx, r14d
call fcn.1401f8b74
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.1401fb9b0
cmp eax, 0xffffffff
je 0x14020307d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140203044
mov edx, r15d
mov ecx, r14d
call fcn.1401f8b74
jmp 0x14020309d
cmp byte [rsi + 0x38], dil
je 0x140203094
cmp dword [rsi + 0x34], 5
jne 0x140203094
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14020309d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401fd1b0
jmp 0x140203110
jns 0x140203110
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401f63a8
cmp rax, 0xffffffffffffffff
jne 0x1402030c8
cmp byte [rsi + 0x30], dil
je 0x140203110
mov edi, dword [rsi + 0x2c]
jmp 0x140203110
mov ecx, r14d
call fcn.140202e9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140203110
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 0x140203110
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140203109
mov eax, dword [rsi + 0x2c]
jmp 0x14020310e
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401f63a8
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 0x140204074
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140204094
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401dccb0
or eax, 0xffffffff
jmp 0x140204096
xor eax, eax
add rsp, 0x28
ret
Function at 0x140205694
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 0x1402056c4
xor eax, eax
jmp 0x140205787
mov rbp, rbx
cmp word [rax], si
je 0x1402056e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402056d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402056cc
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.1401ff784
movsxd r14, eax
test eax, eax
jne 0x140205727
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402056bd
mov rcx, r14
call fcn.1401fd1ec
mov rdi, rax
test rax, rax
jne 0x140205740
xor ecx, ecx
call fcn.1401fd1b0
jmp 0x14020571c
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.1401ff784
test eax, eax
jne 0x140205771
mov rcx, rdi
call fcn.1401fd1b0
jmp 0x14020577b
xor ecx, ecx
call fcn.1401fd1b0
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 0x1402057a4
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 0x14020582b
mov rsi, rbx
cmp word [rax], bp
je 0x1402057ea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402057d4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402057d0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401fd1ec
mov rdi, rax
test rax, rax
je 0x140205818
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14021a050
mov rbp, rdi
xor ecx, ecx
call fcn.1401fd1b0
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 0x14020878c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401fcc04
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14020882d
cmp ebx, dword [rsp + 0x30]
je 0x140208826
test esi, esi
je 0x140208826
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140208801
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14020880e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1402087eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140208812
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14020882f
mov eax, 1
jmp 0x14020882f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14020b178
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402e7900]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14020b1c2
call fcn.1401dcd1c
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1401dcd3c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1401de3c8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401d5b70
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14020b1cd
lea eax, [rbx + 1]
jmp 0x14020b1af
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14020b1ad
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14020b1af
Function at 0x14020b2e0
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.1401df130
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14020b36a
cmp byte [rbp - 0x21], r15b
je 0x14020b365
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14020b3a0
call fcn.1401fda20
test eax, eax
jne 0x14020b38c
cmp byte [rbp - 0x21], r15b
je 0x14020b384
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14020b3a0
cmp byte [rbp - 0x21], r15b
je 0x14020b39d
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.1401e1750
test eax, eax
jne 0x14020b440
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401df130
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14020b3df
cmp byte [rbp - 0x21], r15b
je 0x14020b414
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14020b414
call fcn.1401fda20
test eax, eax
jne 0x14020b400
cmp byte [rbp - 0x21], r15b
je 0x14020b3f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14020b414
cmp byte [rbp - 0x21], r15b
je 0x14020b411
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.1401e1750
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14020b440
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14020b443
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14020b451
mov rcx, rdi
call fcn.1401fd1b0
cmp byte [rbp + 0x3f], r15b
je 0x14020b460
mov rcx, qword [rbp + 0x27]
call fcn.1401fd1b0
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 0x14020f790
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov dword [rsp + 0x10], 0x3020100
mov r10, rdx
mov rdx, qword [r8 + 0x1b8]
mov r9, rcx
mov ecx, dword [rsp + 0x10]
mov r11, r8
mov dword [r8 + 0x1c4], ecx
mov eax, 1
nop dword [rax + rax]
add ecx, 0x4040404
mov dword [r8 + rax*4 + 0x1c4], ecx
inc rax
cmp rax, rdx
jbe 0x14020f7c0
xor r8d, r8d
test r10, r10
je 0x14020f823
nop
movzx eax, byte [r9]
or r8, rax
movzx ecx, byte [rax + r11 + 0x1c4]
mov byte [r9], cl
mov byte [r11 + 0x1c3], cl
nop word [rax + rax]
movzx ecx, byte [rax + r11 + 0x1c3]
mov rdx, rax
sub rax, 1
mov byte [rdx + r11 + 0x1c4], cl
jns 0x14020f800
inc r9
sub r10, 1
jne 0x14020f7e0
shr r8, 2
mov qword [r11 + 0x1b8], r8
ret

Function at 0x1402174c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402174e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402174e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180005460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r11, rdx
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rdi, r11
movzx esi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rsi]
cmp byte [rdi], bpl
jne 0x1800054e0
cmp r10, rax
jb 0x180005554
cmp r10, rdx
ja 0x180005568
add rax, r9
xor edi, edi
nop
cmp rsi, rdi
je 0x1800054e2
lea rbx, [rdi + 1]
cmp byte [rax + rdi], cl
mov rdi, rbx
jne 0x1800054c0
jmp 0x180005543
ja 0x1800054ea
mov rax, r10
cmp r11, r8
jne 0x180005492
add r14, r15
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [r15 + 1]
movzx edx, byte [r15]
test dl, dl
js 0x180005520
mov r15, rbx
sub ecx, edx
jns 0x18000553a
jmp 0x180005545
cmp rbx, r14
je 0x180005579
movzx ebp, byte [r15 + 1]
add r15, 2
and edx, 0x7f
shl edx, 8
or edx, ebp
sub ecx, edx
js 0x180005545
xor al, 1
cmp r15, r14
jne 0x180005500
jmp 0x180005545
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.180036b40
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.180036ae0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_69f9c33d71c871fc16ac445211281c6e7a340943library_alloc_srccollections_btreemapentry.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.180036af0
ud2
Function at 0x18000b800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x18000b852
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x18000b852
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x18000b86d
cmp eax, 0x42
jne 0x18000b852
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x18000b8aa
cmp byte [rdi + rcx], 0x5f
jne 0x18000b8aa
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x18000b9a2
mov rcx, rsi
xor edx, edx
call fcn.180006fd0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r9
mov qword [rsi + 0x10], r9
mov rcx, rsi
xor edx, edx
call fcn.180006fd0
test al, al
jne 0x18000b8a5
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18000b91c
lea rdx, [0x180039bab]
mov r8d, 1
call fcn.1800031e0
test al, al
je 0x18000b91c
mov dil, 2
jmp 0x18000b861
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x18000b9be
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x18000b996
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x18000b8ff
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x18000b8ee
add dl, 0xa9
jmp 0x18000b8fd
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x18000b9be
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x18000b9be
movzx edx, bl
add rax, rdx
jae 0x18000b8c0
jmp 0x18000b9be
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x18000b861
xor ebx, ebx
lea r14, [0x180039f86]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x18000b954
cmp byte [rax + rcx], 0x45
je 0x18000ba4c
sub rbx, 1
jb 0x18000b979
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18000b979
mov r8d, 2
mov rdx, r14
call fcn.1800031e0
test al, al
jne 0x18000b8a5
mov rcx, rsi
call fcn.18000ba60
test al, al
jne 0x18000b8a5
mov rax, qword [rsi]
test rax, rax
jne 0x18000b940
jmp 0x18000b861
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x18000b9be
cmp rax, r9
jae 0x18000b9bb
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
jbe 0x18000ba0f
mov bl, 1
xor r8d, r8d
jmp 0x18000b9c0
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18000b9fe
lea rax, [0x180039f51]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1800031e0
mov dil, 2
test al, al
jne 0x18000b861
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x18000b861
cmp qword [rsi + 0x20], 0
je 0x18000ba08
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.18000b800
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x18000b863
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x18000b861
Function at 0x180012ab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x39]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x180012ae3
test ecx, ecx
jne 0x180012b32
movzx r15d, byte [rdi + 0x38]
cmp al, 0xff
je 0x180012af0
test ecx, ecx
jne 0x180012b32
mov rcx, rdi
call fcn.180012990
movzx r10d, al
test bl, bl
jne 0x180012b39
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x180012b26.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x180012cac]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x180012b26.2
xor r10d, r10d
test bl, bl
je 0x180012b00
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x180012c8e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x180012b6b
xor edi, edi
jmp 0x180012be8
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x180012bb0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x180012bcb
inc rsi
dec rax
cmp rsi, 1
jne 0x180012b90
jmp 0x180012be8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x180012bcb
cmp ebx, 0x5c
je 0x180012bcb
inc rsi
dec rax
cmp rsi, 1
jne 0x180012bb0
jmp 0x180012be8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x180012c9c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x180012c12
mov al, 9
cmp rdx, 2
je 0x180012c16
cmp rdx, 1
jne 0x180012c26
cmp byte [r9], 0x2e
jne 0x180012c26
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x180012c26
mov al, 0xa
jmp 0x180012c26
cmp byte [r9], 0x2e
jne 0x180012c26
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x180012b26.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x180012b26.2
mov esi, 2
jmp case.0x180012b26.2
lea r8, str.library_std_srcpath.rs
call fcn.180036ad0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.180036ad0
ud2
Function at 0x180020ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
movdqa xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.180016c90
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x18002103b
movdqu xmm6, xmmword [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18002109e
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x180021092
mov rdx, qword [rbp - 0x38]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x18002108b
lea rax, [rdx - 1]
mov qword [rbp - 0x28], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x20], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rdi, qword [rbp - 0x28]
je 0x18002107e
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.180001050
mov edx, 8
mov rcx, rdi
call fcn.180001050
mov qword [rsi], 0
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x180021092
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
jmp fcn.180001050
Function at 0x180023f80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1800294b0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfb8], rdx
lea rdi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.18002ade0
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x18001a020]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xfc0]
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x18002418c
mov r14, qword [sym.imp.KERNEL32.dll_SleepEx]
mov r15d, 0xffffffff
lea r12, [rbp + 0xfc0]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x180024050
cmp dword [rbp + 0xfec], 0
jne 0x180024192
mov eax, dword [rbp + 0xff0]
test eax, eax
je 0x180024192
mov ebx, eax
cmp eax, 0x1000
ja 0x1800241dd
xor edi, edi
cmp rdi, rbx
ja 0x1800241c2
lea rdx, [rdi + rbp]
add rdx, 0xffffffffffffffb0
mov r13, rbx
sub rbx, rdi
cmp rbx, r15
cmovae rbx, r15
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x18001a020]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r8d, ebx
mov r9, r12
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x18002418c
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x180024100
cmp dword [rbp + 0xfec], 0
jne 0x180024192
mov eax, dword [rbp + 0xff0]
add rdi, rax
mov rbx, r13
cmp rdi, r13
jne 0x180024090
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x18001a020]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0xfe0]
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, r12
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x180024050
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xfe0]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rdi
mov qword [rbp + 0xfe0], rbx
mov rdx, rbx
call fcn.180036b40
jmp 0x1800241f8
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
call fcn.180036ae0
ud2