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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
movzx ebp, r8b
mov rsi, rdx
mov r14, rcx
mov dword [rsp + 0x20], 0
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::constructor_void____ptr64]
mov dword [rsp + 0x20], 1
mov rax, qword [rsi]
mov edx, dword [rax + 4]
mov rcx, r14
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::resize_int____ptr64]
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::begin_void_const___ptr64]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.Qt5Core.dll_public:_char____ptr64___cdecl_QByteArray::begin_void____ptr64]
mov rdi, rax
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::end_void_const___ptr64]
cmp rbx, rax
je 0x18007e06a
sub rdi, rbx
nop dword [rax + rax]
movzx ecx, byte [rbx]
xor cl, bpl
mov byte [rdi + rbx], cl
inc rbx
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::end_void_const___ptr64]
cmp rbx, rax
jne 0x18007e050
mov rax, r14
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x180082f60
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov ecx, 0x18
mov rdi, r8
mov rbp, rdx
call fcn.1800827c0
mov rsi, rax
test rax, rax
jne 0x180082f96
mov eax, 0xfffff027
jmp 0x180083012
mov qword [rax + 8], rdi
lea r8, [0x180082a90]
xor edi, edi
mov r9, rax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rax], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.MSVCR120.dll__beginthreadex]
test rax, rax
jne 0x180083000
call qword [sym.imp.MSVCR120.dll__errno]
mov rcx, rsi
mov ebx, dword [rax]
call fcn.180082780
test ebx, ebx
je 0x180083010
cmp ebx, 0xb
je 0x180082ff9
cmp ebx, 0xd
je 0x180082ff2
cmp ebx, 0x16
setne dil
lea eax, [rdi - 0xfe7]
jmp 0x180083012
mov eax, 0xfffff004
jmp 0x180083012
mov eax, 0xfffff008
jmp 0x180083012
mov qword [rbx], rax
mov rcx, rax
mov qword [rsi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180083fc0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x180103990]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rdx, [rsp + 0x2c0]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1800841aa
lea r8, [0x180109760]
lea rcx, str.0.0.0.0
xor edx, edx
call fcn.1800827d0
test eax, eax
je 0x180084014
call qword [sym.imp.MSVCR120.dll_abort]
int3
lea r8, [0x180109740]
lea rcx, [0x1800c1ecc]
xor edx, edx
call fcn.180082830
test eax, eax
je 0x180084034
call qword [sym.imp.MSVCR120.dll_abort]
int3
mov qword [rsp + 0x480], rbx
mov qword [rsp + 0x470], rdi
mov edi, 1
lea ecx, [rdi + 1]
xor r8d, r8d
mov edx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800840be
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
mov dword [rsp + 0x30], 0x274
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1800841b9
mov eax, dword [0x180109774]
test dword [rsp + 0x40], 0x20000
mov rcx, rbx
cmove eax, edi
mov dword [0x180109774], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x1800840e5
jmp 0x1800841ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x180084222
cmp eax, 0x273a
jbe 0x180084222
cmp eax, 0x2740
jae 0x180084222
xor r8d, r8d
mov edx, edi
lea ecx, [r8 + 0x17]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18008415b
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
mov dword [rsp + 0x30], 0x274
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1800841e3
mov eax, dword [0x180109770]
test dword [rsp + 0x40], 0x20000
mov rcx, rbx
cmove eax, edi
mov dword [0x180109770], eax
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x180084182
jmp 0x1800841f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273d
je 0x18008420d
cmp eax, 0x273a
jbe 0x18008420d
cmp eax, 0x2740
jae 0x18008420d
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18008b810
add rsp, 0x478
ret
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.180083430
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.getsockopt
mov ecx, eax
call fcn.180083430
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.closesocket
mov ecx, eax
call fcn.180083430
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.getsockopt
mov ecx, eax
call fcn.180083430
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.closesocket
mov ecx, eax
call fcn.180083430
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.socket
mov ecx, eax
call fcn.180083430
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.socket
mov ecx, eax
call fcn.180083430
int3
Function at 0x180089ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r14
sub rsp, 0x40
mov rdi, r9
mov rbp, r8
mov r14d, edx
mov r12, rcx
test r8, r8
je 0x180089f9c
mov qword [rsp + 0x60], rbx
movzx ebx, byte [rsp + 0x30]
mov qword [rsp + 0x68], rsi
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x70], r15
mov r15, qword [rsp + 0x88]
sub r15, rsi
nop word [rax + rax]
movups xmm0, xmmword [rdi]
mov r8, rdi
mov rdx, rdi
mov rcx, r12
dec rbp
movups xmmword [rsp + 0x20], xmm0
call fcn.18008a2a0
test r14d, r14d
jne 0x180089f61
movzx ebx, byte [rsi]
movzx eax, byte [rdi]
inc rsi
movzx ebx, bl
xor al, byte [rsi - 1]
cmp r14d, 1
mov byte [r15 + rsi - 1], al
movzx eax, al
cmove ebx, eax
mov byte [rsp + 0x30], bl
movups xmm0, xmmword [rsp + 0x21]
movups xmmword [rdi], xmm0
test rbp, rbp
jne 0x180089f40
mov r15, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret
Function at 0x18008ac20
Capabilities:
Encrypt data using salsa20 or chacha
Enumerate pe sections

Disassembly:
mov r9, rcx
test rcx, rcx
je 0x18008ad71
test rdx, rdx
je 0x18008ad71
mov dword [rcx], 0x61707865
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
movzx eax, byte [rdx + 2]
movzx r8d, byte [rdx + 3]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 1]
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx]
shl r8d, 8
or r8d, eax
mov dword [rcx + 0x10], r8d
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x14], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x18], ecx
movzx eax, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x1c], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x20], ecx
movzx eax, byte [rdx + 0x16]
movzx ecx, byte [rdx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x24], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0x28], ecx
movzx eax, byte [rdx + 0x1e]
movzx ecx, byte [rdx + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [r9 + 0x2c], ecx
ret
mov eax, 0xffffffaf
ret
Function at 0x1400258f0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140025932
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14002593a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14002594b
jmp 0x140025962
xor r10d, r10d
jmp 0x1400259ed
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140025962
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140025979
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140025999
add r11, r8
jmp 0x140025aca
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140025a62
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140025a10
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140025a80
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140025a92
jmp 0x140025aac
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140025aac
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140025ac6
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret

Function at 0x140051110
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.shell32.dll_SHGetKnownFolderPath
mov rcx, qword [rbp - 8]
test eax, eax
je 0x140051152
call sub.ole32.dll_CoTaskMemFree
mov byte [rsi + 0x18], 2
jmp 0x14005117f
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.1400b6d30
mov rcx, qword [rbp - 8]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x14005b310
Capabilities:
Connect pipe

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r14, rdx
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov rdi, qword [0x140122078]
mov rax, qword [rdi]
shl rax, 1
test rax, rax
jne 0x14005b420
mov dword [rbp - 0xc], 0
movzx eax, byte [r14 + 8]
test al, al
jne 0x14005b437
mov bl, byte [r14 + 0x58]
mov qword [rbp - 0x18], r14
mov rcx, qword [r14 + 0x10]
xor edx, edx
call sub.kernel32.dll_ConnectNamedPipe
test eax, eax
jne 0x14005b385
call sub.kernel32.dll_GetLastError
mov edx, eax
cmp eax, 0x217
jne 0x14005b3e5
test bl, bl
setne r8b
mov rax, qword [rbp - 0x18]
lea rcx, [rax + 0x18]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor edx, edx
xor r9d, r9d
call fcn.14005b500
test rax, rax
jne 0x14005b3ed
mov r14, qword [rbp - 0x18]
mov rbx, qword [r14 + 0x10]
mov qword [r14 + 0x10], rdx
cmp byte [rbp - 0xc], 0
jne 0x14005b3d3
mov rax, qword [rdi]
shl rax, 1
test rax, rax
jne 0x14005b47a
mov rcx, r14
call qword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov qword [rsi], rbx
mov byte [rsi + 8], 1
jmp 0x14005b412
shl rdx, 0x20
or rdx, 2
mov rbx, qword [rbp - 0x18]
mov qword [rsi], rdx
mov byte [rsi + 8], 2
cmp byte [rbp - 0xc], 0
jne 0x14005b409
mov rax, qword [rdi]
shl rax, 1
test rax, rax
jne 0x14005b46b
mov rcx, rbx
call qword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
call fcn.1400daa00
xor al, 1
mov dword [rbp - 0xc], eax
movzx eax, byte [r14 + 8]
test al, al
je 0x14005b360
mov qword [rbp - 0x28], r14
mov eax, dword [rbp - 0xc]
mov byte [rbp - 0x20], al
lea rax, [0x1400e71b8]
mov qword [rsp + 0x20], rax
lea rcx, str.unexpected_lock_poisonC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001finterprocess_1.2.1_srcoswindows_named_pipelistener.rs6q
lea r9, fcn.14001d1c0
lea r8, [rbp - 0x28]
mov edx, 0x16
call fcn.1400db700
ud2
call fcn.1400daa00
test al, al
jne 0x14005b409
mov byte [rbx + 8], 1
jmp 0x14005b409
call fcn.1400daa00
test al, al
jne 0x14005b3d3
mov byte [r14 + 8], 1
jmp 0x14005b3d3
Function at 0x14005bd20
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r9
mov rsi, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdx, r8
mov r8d, eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x14005bd60
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x38], rax
xor eax, eax
jmp 0x14005bd77
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], rax
mov eax, 1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14005bee0
mov rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x14005bda0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rax, r9
mov rsi, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r8
mov r8d, eax
call sub.kernel32.dll_WriteFile
test eax, eax
je 0x14005bddf
mov eax, dword [rsp + 0x2c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14005bdf5
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x1400b0d80
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 0x1400b0e10
jmp 0x1400b0dff
jae 0x1400b0ed0
cmp r8, 0x201
jae 0x1400b0e10
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400b0e68
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400b0e3f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400da4b0
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 0x1400b0e91
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400b0f38
mov r8d, r14d
cmp r15, r8
jne 0x1400b0df0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400b0f5b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400b0dff
jmp 0x1400b0e10
cmp rsi, r8
jb 0x1400b0f75
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400b6d30
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 0x1400b0f21
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.14003cf20
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 0x1400b0f09
jmp 0x1400b0f21
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400db390
jmp 0x1400b0f8a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400db800
ud2
Function at 0x1400b20e0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x1400b20f0
mov rcx, rdx
mov rdx, r8
jmp fcn.1400b2100
mov rcx, rdx
mov rdx, r8
jmp fcn.1400bdf80
Function at 0x1400bdf80
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
sub esp, 0x50

Function at 0x1400be9d0
Capabilities:
Read 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 [0x1400f2978]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400bea14
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_NtReadFile]
cmp eax, 0x103
jne 0x1400bea73
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400bea82
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400beaba
cmp eax, 0x103
je 0x1400beac4
test eax, eax
js 0x1400bea9f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400beaba
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.1400ad8c0
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.1400b68c0
mov rcx, rax
call fcn.1400adf90
mov ecx, 7
int 0x29
ud2
Function at 0x1400beb20
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 [0x1400f2978]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400beb64
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 0x1400bebca
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400bec01
test eax, eax
js 0x1400bebdb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400bebf4
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
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.1400ad8c0
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.1400b68c0
mov rcx, rax
call fcn.1400adf90
mov ecx, 7
int 0x29
ud2

Function at 0x1400c0c90
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 0x1400c0cd3
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, [fcn.1400b3200]
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
add eax, dword [rax]
Function at 0x1400d55e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400d565a
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 0x1400d5650
cmp r11, r10
ja 0x1400d56f3
cmp r10, rdx
ja 0x1400d5707
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400d5652
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400d5630
jmp 0x1400d56c7
ja 0x1400d565a
mov r11, r10
cmp rax, r8
jne 0x1400d5602
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400d56cb
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 0x1400d56a0
mov r8, r10
sub ecx, r9d
jns 0x1400d56be
jmp 0x1400d56cd
cmp r10, rdx
je 0x1400d56d9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400d56cd
xor al, 1
cmp r8, rdx
jne 0x1400d5680
jmp 0x1400d56cd
xor eax, eax
jmp 0x1400d56cd
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, [0x1400f8470]
mov edx, 0x2b
call fcn.1400db390
ud2
lea r8, [0x1400f8488]
mov rcx, r11
mov rdx, r10
call fcn.1400db870
ud2
lea r8, [0x1400f8488]
mov rcx, r10
call fcn.1400db800
ud2
Function at 0x1400d888c
Capabilities:
Parse pe header

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