joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a03f4
Capabilities:
Get file size

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

Function at 0x1400a7260
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140051140
sub rsp, rax
mov rax, qword [0x14013c660]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14009ed18
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400a72af
mov rax, rbp
jmp 0x1400a73b7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x13ff70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400a8a08
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x13ff70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400a73b3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a73b3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400a8a08
test rax, rax
js 0x1400a73b3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400a73b3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400a73a5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400a73a5
cmp byte [rcx], 0xd
jne 0x1400a738b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400a739a
cmp byte [rcx + 1], 0xa
jne 0x1400a739a
inc rcx
jmp 0x1400a739a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x13ca40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400a736d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400a73b7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400511a0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a7860
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, [0x14013ff70]
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 0x1400a78b7
cmp word [rdx], r13w
jne 0x1400a78b7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400a78bc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400a79e1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400a7a02
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400a78f5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400a791c
cmp r9, r8
jae 0x1400a792c
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 0x1400a78d6
jmp 0x1400a79e1
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 0x1400a79d6
cmp dword [rsp + 0x80], esi
je 0x1400a79d6
lea r8, [0x14013ff70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400a79ae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400a797e
mov word [rbx], r13w
jmp 0x1400a79de
mov ecx, 0xd
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 0x1400a798b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400a79de
cmp word [rsp + 0x70], r13w
jne 0x1400a79bb
cmp rbx, r14
je 0x1400a7978
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a8a10
cmp word [rsp + 0x70], r13w
je 0x1400a79e1
mov ecx, 0xd
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, [0x14013ff70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400a79db
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400a79e1
Function at 0x1400ad81c
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 0x1400ad84c
xor eax, eax
jmp 0x1400ad90f
mov rbp, rbx
cmp word [rax], si
je 0x1400ad871
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400ad858
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400ad854
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.1400a9520
movsxd r14, eax
test eax, eax
jne 0x1400ad8af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400ad845
mov rcx, r14
call fcn.1400a076c
mov rdi, rax
test rax, rax
jne 0x1400ad8c8
xor ecx, ecx
call fcn.14009e128
jmp 0x1400ad8a4
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.1400a9520
test eax, eax
jne 0x1400ad8f9
mov rcx, rdi
call fcn.14009e128
jmp 0x1400ad903
xor ecx, ecx
call fcn.14009e128
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 0x1400ad92c
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 0x1400ad9b3
mov rsi, rbx
cmp word [rax], bp
je 0x1400ad972
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ad95c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ad958
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a076c
mov rdi, rax
test rax, rax
je 0x1400ad9a0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400531e0
mov rbp, rdi
xor ecx, ecx
call fcn.14009e128
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 0x1400b1784
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.14009dd08
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 0x1400b1825
cmp ebx, dword [rsp + 0x30]
je 0x1400b181e
test esi, esi
je 0x1400b181e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400b17f9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400b1806
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400b17e3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400b180a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400b1827
mov eax, 1
jmp 0x1400b1827
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bb714
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.14008d68c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400bb79e
cmp byte [rbp - 0x21], r15b
je 0x1400bb799
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400bb7d4
call fcn.1400a4108
test eax, eax
jne 0x1400bb7c0
cmp byte [rbp - 0x21], r15b
je 0x1400bb7b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400bb7d4
cmp byte [rbp - 0x21], r15b
je 0x1400bb7d1
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.140091b78
test eax, eax
jne 0x1400bb874
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14008d68c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400bb813
cmp byte [rbp - 0x21], r15b
je 0x1400bb848
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400bb848
call fcn.1400a4108
test eax, eax
jne 0x1400bb834
cmp byte [rbp - 0x21], r15b
je 0x1400bb82d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400bb848
cmp byte [rbp - 0x21], r15b
je 0x1400bb845
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.140091b78
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400bb874
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400bb877
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400bb885
mov rcx, rdi
call fcn.14009e128
cmp byte [rbp + 0x3f], r15b
je 0x1400bb894
mov rcx, qword [rbp + 0x27]
call fcn.14009e128
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 0x1400bc450
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.1400a8a10
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a8a10
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400bc5a0
cmp rax, 0xffffffffffffffff
je 0x1400bc5a0
xor edi, edi
test rbp, rbp
jle 0x1400bc54b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009e0a8
mov rbx, rax
test rax, rax
jne 0x1400bc4d8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400bc541
mov edx, 0x8000
mov ecx, r14d
call fcn.140097ea0
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.14009fd60
cmp eax, 0xffffffff
je 0x1400bc521
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400bc4e8
mov edx, r15d
mov ecx, r14d
call fcn.140097ea0
jmp 0x1400bc541
cmp byte [rsi + 0x38], dil
je 0x1400bc538
cmp dword [rsi + 0x34], 5
jne 0x1400bc538
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400bc541
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009e128
jmp 0x1400bc5b4
jns 0x1400bc5b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a8a10
cmp rax, 0xffffffffffffffff
jne 0x1400bc56c
cmp byte [rsi + 0x30], dil
je 0x1400bc5b4
mov edi, dword [rsi + 0x2c]
jmp 0x1400bc5b4
mov ecx, r14d
call fcn.1400aeccc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400bc5b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400bc5b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400bc5ad
mov eax, dword [rsi + 0x2c]
jmp 0x1400bc5b2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a8a10
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 0x1400bea70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400bea98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400bea98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400042c0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3e0], 0xfffffffffffffffe
mov qword [rbp + 0x3d8], rcx
xor ebx, ebx
lea rcx, [rbp - 0x58]
mov r8d, 0x400
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x3c0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c8], xmm0
mov esi, 0x200
mov r13d, 2
cmp rsi, 0x201
jae 0x140004342
jmp 0x140004390
mov rsi, r8
jae 0x1400043ed
cmp rsi, 0x201
jb 0x140004390
mov r8, rsi
sub r8, rbx
mov rax, qword [rbp + 0x3c8]
sub rax, rbx
cmp rax, r8
jae 0x14000436d
lea rcx, [rbp + 0x3c0]
mov rdx, rbx
call fcn.14001ca30
mov r13, qword [rbp + 0x3c0]
mov qword [rbp + 0x3d0], rsi
mov rbx, rsi
mov r15, r13
mov r14, rsi
mov r12, r13
jmp 0x14000439d
lea r12, [rbp - 0x58]
mov r15, r12
mov r14d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1400043c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004435
mov r8d, edi
cmp rsi, r8
jne 0x140004330
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000448c
add rsi, rsi
cmp rsi, 0x201
jae 0x140004342
jmp 0x140004390
cmp r14, r8
jb 0x1400044a6
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140006a80
mov rax, qword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rbp + 0x3a8]
movups xmmword [rsi + 8], xmm0
xor eax, eax
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3c8]
test rdx, rdx
jne 0x140004462
jmp 0x140004475
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3c8]
test rdx, rdx
je 0x140004475
add rdx, rdx
je 0x140004475
mov r8d, 2
mov rcx, r13
call fcn.1400016b0
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.internal_error:_entered_unreachable_code_rustc_a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001d490
jmp 0x1400044bb
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001d6f0
ud2
Function at 0x140016170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov dword [rsp + 0x2c], r8d
lea eax, [r8 - 2]
cmp eax, 0x22
ja 0x14001633a
mov r9, rdx
mov edx, 1
test r9, r9
je 0x1400161ac
mov al, byte [rcx]
cmp al, 0x2d
je 0x1400161b4
cmp al, 0x2b
jne 0x1400161c5
add r9, 0xffffffffffffffff
je 0x1400161ba
add rcx, 1
jmp 0x1400161c5
xor r10d, r10d
jmp 0x140016322
cmp r9, 1
jne 0x1400161c5
mov r10d, 0x100
jmp 0x140016322
cmp r8d, 0x10
ja 0x14001622d
cmp r9, 9
jae 0x14001622d
xor r10d, r10d
cmp r8d, 0xa
jbe 0x14001629b
mov r11d, 0xffffffff
xor edx, edx
xor eax, eax
jmp 0x140016203
imul eax, r8d
add eax, edi
add rdx, 1
cmp r9, rdx
je 0x1400162fa
movzx esi, byte [rcx + rdx]
lea edi, [rsi - 0x30]
cmp edi, 9
jbe 0x1400161f0
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
mov edi, esi
cmp esi, r8d
jb 0x1400161f0
mov edx, 0x101
jmp 0x140016316
xor r10d, r10d
cmp r8d, 0xa
jbe 0x1400162c4
mov r11d, 0xffffffff
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
movzx esi, byte [rcx + r10]
mul r8d
seto dl
lea edi, [rsi - 0x30]
mov ebx, 1
cmp edi, 0xa
jb 0x14001627f
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
xor ebx, ebx
cmp esi, r8d
setb bl
mov edi, esi
test ebx, ebx
sete bl
or dl, bl
jne 0x1400162fe
add eax, edi
jb 0x140016311
add r10, 1
cmp r9, r10
jne 0x140016250
jmp 0x1400162f7
xor edx, edx
xor eax, eax
nop
movzx ebx, byte [rcx + rdx]
lea edi, [rbx - 0x30]
cmp edi, r8d
jae 0x140016223
imul eax, r8d
add eax, ebx
add eax, 0xffffffd0
add rdx, 1
cmp r9, rdx
jne 0x1400162a0
jmp 0x1400162fa
xor eax, eax
nop word cs:[rax + rax]
movzx edi, byte [rcx + r10]
mul r8d
seto dl
add edi, 0xffffffd0
cmp edi, r8d
setae bl
jae 0x1400162fe
test dl, dl
jne 0x1400162fe
add eax, edi
jb 0x140016311
add r10, 1
cmp r9, r10
jne 0x1400162d0
xor r10d, r10d
xor edx, edx
jmp 0x140016322
xor bl, 1
movzx edx, bl
shl rdx, 8
add rdx, 0x101
jmp 0x140016316
mov edx, 0x201
mov r10d, edx
and r10d, 0x300
xor eax, eax
shl rax, 0x20
or rax, r10
movzx ecx, dl
or rcx, rax
mov rax, rcx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [0x14001b430]
mov qword [rsp + 0x38], rax
lea rax, str.from_str_radix_int:_must_lie_in_the_range___2__36_____found
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.librarycore_src_nummod.rs
lea rcx, [rsp + 0x40]
call fcn.14001d600
ud2
jmp 0x140016170
Function at 0x14001a780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001a7fa
mov r11, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [rdx + r8*2]
xor eax, eax
mov rbx, rdx
movzx edi, byte [rdx + 1]
add rdx, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x14001a7f0
cmp r10, rax
jb 0x14001a88d
cmp r10, r11
ja 0x14001a89a
add rax, r9
xor ebx, ebx
nop dword [rax + rax]
cmp rdi, rbx
je 0x14001a7f2
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x14001a7d0
jmp 0x14001a862
ja 0x14001a7fa
mov rax, r10
cmp rdx, r8
jne 0x14001a79d
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001a866
mov rbx, qword [rsp + 0x78]
add rdx, rbx
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
nop
lea rsi, [rbx + 1]
movzx edi, byte [rbx]
test dil, dil
js 0x14001a840
mov rbx, rsi
sub ecx, edi
jns 0x14001a859
jmp 0x14001a868
cmp rsi, rdx
je 0x14001a873
and edi, 0x7f
shl edi, 8
movzx ebp, byte [rbx + 1]
add rbx, 2
or edi, ebp
sub ecx, edi
js 0x14001a868
xor al, 1
cmp rbx, rdx
jne 0x14001a820
jmp 0x14001a868
xor eax, eax
jmp 0x14001a868
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value:
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001d490
ud2
mov rcx, rax
mov rdx, r10
call fcn.14001d700
ud2
mov rcx, r10
mov rdx, r11
call fcn.14001d6f0
ud2
Function at 0x14001aa90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov dword [rsp + 0x2c], r8d
lea eax, [r8 - 2]
cmp eax, 0x22
ja 0x14001633a
mov r9, rdx
mov edx, 1
test r9, r9
je 0x1400161ac
mov al, byte [rcx]
cmp al, 0x2d
je 0x1400161b4
cmp al, 0x2b
jne 0x1400161c5
add r9, 0xffffffffffffffff
je 0x1400161ba
add rcx, 1
jmp 0x1400161c5
xor r10d, r10d
jmp 0x140016322
cmp r9, 1
jne 0x1400161c5
mov r10d, 0x100
jmp 0x140016322
cmp r8d, 0x10
ja 0x14001622d
cmp r9, 9
jae 0x14001622d
xor r10d, r10d
cmp r8d, 0xa
jbe 0x14001629b
mov r11d, 0xffffffff
xor edx, edx
xor eax, eax
jmp 0x140016203
imul eax, r8d
add eax, edi
add rdx, 1
cmp r9, rdx
je 0x1400162fa
movzx esi, byte [rcx + rdx]
lea edi, [rsi - 0x30]
cmp edi, 9
jbe 0x1400161f0
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
mov edi, esi
cmp esi, r8d
jb 0x1400161f0
mov edx, 0x101
jmp 0x140016316
xor r10d, r10d
cmp r8d, 0xa
jbe 0x1400162c4
mov r11d, 0xffffffff
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
movzx esi, byte [rcx + r10]
mul r8d
seto dl
lea edi, [rsi - 0x30]
mov ebx, 1
cmp edi, 0xa
jb 0x14001627f
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
xor ebx, ebx
cmp esi, r8d
setb bl
mov edi, esi
test ebx, ebx
sete bl
or dl, bl
jne 0x1400162fe
add eax, edi
jb 0x140016311
add r10, 1
cmp r9, r10
jne 0x140016250
jmp 0x1400162f7
xor edx, edx
xor eax, eax
nop
movzx ebx, byte [rcx + rdx]
lea edi, [rbx - 0x30]
cmp edi, r8d
jae 0x140016223
imul eax, r8d
add eax, ebx
add eax, 0xffffffd0
add rdx, 1
cmp r9, rdx
jne 0x1400162a0
jmp 0x1400162fa
xor eax, eax
nop word cs:[rax + rax]
movzx edi, byte [rcx + r10]
mul r8d
seto dl
add edi, 0xffffffd0
cmp edi, r8d
setae bl
jae 0x1400162fe
test dl, dl
jne 0x1400162fe
add eax, edi
jb 0x140016311
add r10, 1
cmp r9, r10
jne 0x1400162d0
xor r10d, r10d
xor edx, edx
jmp 0x140016322
xor bl, 1
movzx edx, bl
shl rdx, 8
add rdx, 0x101
jmp 0x140016316
mov edx, 0x201
mov r10d, edx
and r10d, 0x300
xor eax, eax
shl rax, 0x20
or rax, r10
movzx ecx, dl
or rcx, rax
mov rax, rcx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [0x14001b430]
mov qword [rsp + 0x38], rax
lea rax, str.from_str_radix_int:_must_lie_in_the_range___2__36_____found
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.librarycore_src_nummod.rs
lea rcx, [rsp + 0x40]
call fcn.14001d600
ud2
jmp 0x140016170

Function at 0x14001c50c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001c556
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001c556
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001c556
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001c556
cmp dword [rcx + 0x84], 0xe
jbe 0x14001c556
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001c558
xor al, al
add rsp, 0x28
ret