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

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x40], rcx
mov rax, rcx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rdx
xor edx, edx
mov r8d, 0x10
call fcn.140003111
mov rcx, qword [rsp + 0x68]
mov edx, 0x80000000
mov r8d, 1
xor eax, eax
mov r9d, eax
xor eax, eax
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rax
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x60], rax
jne 0x140008cca
jmp 0x140008da4
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 0
jne 0x140008ce8
jmp 0x140008da4
mov rcx, qword [rsp + 0x58]
call fcn.14000296e
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov edx, eax
xor eax, eax
mov ecx, eax
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], rcx
cmp qword [rax + 8], 0
jne 0x140008d2e
jmp 0x140008da4
mov rax, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 0
je 0x140008d7e
mov eax, dword [rsp + 0x50]
cmp eax, dword [rsp + 0x54]
jne 0x140008d7e
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x54]
mov dword [rax], ecx
jmp 0x140008d99
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call fcn.140008e80
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x48]
add rsp, 0x78
ret

Function at 0x140008db0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x60], r8d
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x4c], 0
mov rcx, qword [rsp + 0x50]
mov edx, 0x40000000
xor r8d, r8d
xor eax, eax
mov r9d, eax
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x40], rax
jne 0x140008e20
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x64], eax
jmp 0x140008e75
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x3c]
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 0
je 0x140008e62
mov eax, dword [rsp + 0x3c]
cmp eax, dword [rsp + 0x60]
sete al
and al, 1
movzx eax, al
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
add rsp, 0x68
ret
Function at 0x14000cfec
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000cfec
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d036
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d036
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d036
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d036
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d036
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d038
xor al, al
add rsp, 0x28
ret
Function at 0x6d88fdc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8b15e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d88ff48
mov rax, qword [0x6d8b15e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d88fe0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d88fe95
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d88fdf0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d88ff7d
mov rax, qword [0x6d8b15e8]
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 [0x6d8b15e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d88ff60
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d88fe8e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d88fef0
add dword [0x6d8b15e4], 1
cmp edi, 8
jae 0x6d88fec3
test dil, 4
jne 0x6d88ff34
test edi, edi
je 0x6d88feb8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d88ff4f
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 0x6d88feb8
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 0x6d88fedc
jmp 0x6d88feb8
add rsi, qword [0x6d8b15e8]
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 0x6d88fe8e
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 0x6d88feb8
xor esi, esi
jmp 0x6d88fe17
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d88feb8
mov rax, qword [0x6d8b15e8]
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 0x6d8906d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8b18c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8b18a0]
test rbx, rbx
je 0x6d890724
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 0x6d89071b
test rsi, rsi
je 0x6d89071b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d890700
lea rcx, [0x6d8b18c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d890960
Capabilities:
Parse pe header

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

Function at 0x6d890980
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 0x6d8909c1
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 0x6d8909b8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8909c3
add rax, 0x28
cmp rax, r9
jne 0x6d8909a4
xor eax, eax
ret

Function at 0x6d890a60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8ae1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d890acd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d890acd
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 0x6d890acd
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 0x6d890ac4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d890acf
add rax, 0x28
cmp rax, r9
jne 0x6d890ab0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d890bd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8ae1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d890bf0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d890be8
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 0x6d890c4d
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 0x6d890c44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d890c54
add rax, 0x28
cmp rax, r9
jne 0x6d890c30
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d890c70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8ae1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d890cde
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d890cde
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d890cde
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d890cde
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 0x6d890cd5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d890ce5
add rcx, 0x28
cmp rcx, rax
jne 0x6d890cc0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d890cf8
jmp 0x6d890cde
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d890d06
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d890cde
test r9d, r9d
jg 0x6d890cf0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d891070
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 0x14001124e
Capabilities:
Terminate process

Disassembly:
jmp 0x140013920
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112e4
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x1400165f0
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x1400230f2]
call fcn.1400113fc
mov dword [rbp + 4], 0x64
mov dword [rbp + 0x24], 0xc8
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_SetCursorPos]
xor eax, eax
cmp eax, 1
je 0x140016727
mov dword [rbp + 0x44], 0
jmp 0x1400166cd
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0x100
jge 0x14001671a
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140016718
lea rdx, str.Tu__bas_ld_:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
mov edx, dword [rbp + 0x44]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400166c5
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400166b5
xor eax, eax
jmp 0x140016786
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400112ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014c70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014c90
xor al, al
jmp 0x140014d11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014ca3
xor al, al
jmp 0x140014d11
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014ccd
xor al, al
jmp 0x140014d11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014ce1
xor al, al
jmp 0x140014d11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014cf3
xor al, al
jmp 0x140014d11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014d0f
xor al, al
jmp 0x140014d11
mov al, 1
add rsp, 0x38
ret
Function at 0x140006ac0
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 r13d, r13d
cmp r8, 0x201
jae 0x140006b50
jmp 0x140006b3f
jae 0x140006c10
cmp r8, 0x201
jae 0x140006b50
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140006ba8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x140006b7f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.14001e080
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3d8], r13
mov rbx, rdi
mov r12, qword [rbp + 0x3e8]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140006bd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140006c78
mov r8d, r14d
cmp r15, r8
jne 0x140006b30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006c9b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140006b3f
jmp 0x140006b50
cmp rsi, r8
jb 0x140006cb5
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.1400086e0
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 0x140006c61
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140002e30
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 0x140006c49
jmp 0x140006c61
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001ebb0
jmp 0x140006cca
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001f000
ud2
Function at 0x140006d20
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14000f420
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x140006e96
mov qword [rbp + 0x408], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x400], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor esi, esi
cmp r8, 0x201
jae 0x140006dd0
jmp 0x140006dbf
jae 0x140006ea8
cmp r8, 0x201
jae 0x140006dd0
lea r13, [rbp - 0x60]
mov r15d, 0x200
mov r12, r8
jmp 0x140006e27
sub r8, rsi
sub rbx, rsi
cmp rbx, r8
jae 0x140006dff
lea rcx, [rbp + 0x3e8]
mov rdx, rsi
call fcn.14001e080
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x418], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov esi, 0xffffffff
cmovb rsi, rdi
mov qword [rbp + 0x3f8], rsi
mov rbx, rdi
mov r13, qword [rbp + 0x418]
mov r15, rsi
mov r12, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140006e57
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140006f7b
mov r8d, r14d
cmp r12, r8
jne 0x140006db0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006fa5
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140006dbf
jmp 0x140006dd0
lea rcx, [rbp - 0x58]
call fcn.140004920
mov byte [rsi + 0x18], 2
jmp 0x140006f3a
cmp r15, r8
jb 0x140006fbf
lea rcx, [rbp + 0x3a0]
mov rdx, r13
call fcn.1400086e0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140006ef9
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x418]
mov rdx, rdi
call fcn.140002e30
cmp byte [rbp + 0x3d8], 2
jne 0x140006f51
mov rsi, qword [rbp + 0x408]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140004920
mov rdx, qword [rbp + 0x400]
test rdx, rdx
je 0x140006f3a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
call fcn.140002e30
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x408]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x400]
test rdx, rdx
jne 0x140006f25
jmp 0x140006f3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140006ee1
jmp 0x140006ef9
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001ebb0
jmp 0x140006fd4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14001f000
ud2
Function at 0x1400090e0
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 0x140009110
test ecx, ecx
jne 0x140009160
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14000911c
test ecx, ecx
jne 0x140009160
mov rcx, rdi
call fcn.140008fc0
movzx eax, al
test bpl, bpl
jne 0x140009167
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140009153.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1400092d8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140009153.2
xor eax, eax
test bpl, bpl
je 0x14000912c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400092b9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14000919a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140009219
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 0x1400091e0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400091fb
inc rax
dec rdi
cmp rax, 1
jne 0x1400091c0
jmp 0x140009219
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400091fb
cmp ebx, 0x5c
je 0x1400091fb
inc rax
dec rdi
cmp rax, 1
jne 0x1400091e0
jmp 0x140009219
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1400092c7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140009243
mov al, 9
cmp rdx, 2
je 0x140009247
cmp rdx, 1
jne 0x140009257
cmp byte [r8], 0x2e
jne 0x140009257
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140009257
mov al, 0xa
jmp 0x140009257
cmp byte [r8], 0x2e
jne 0x140009257
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.0x140009153.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.0x140009153.2
mov ecx, 2
jmp case.0x140009153.2
lea r8, str.library_std_srcpath.rs
call fcn.14001ef80
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14001ef80
ud2