joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004b30
Capabilities:
Enumerate process modules

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x4a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x20], rdx
xor r14d, r14d
mov ebp, r14d
mov edx, dword [rcx]
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140004bbd
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140004bb6
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x140004bb1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004dc7
mov rcx, r8
call fcn.1400054bc
xor eax, eax
jmp 0x140004d40
xor edx, edx
mov r8d, 0x434
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x438
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x140004bf4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004b77
xorps xmm0, xmm0
movups xmmword [rsp + 0x470], xmm0
mov qword [rsp + 0x480], r14
mov qword [rsp + 0x488], r14
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x140004c20
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x470]
call fcn.140003ad0
lea rax, [rsp + 0x470]
mov r9, qword [rsp + 0x470]
mov r10, qword [rsp + 0x488]
cmp r10, 7
cmova rax, r9
mov rdx, qword [rbx + 0x10]
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140004c6d
mov r8, qword [rbx]
cmp rdx, qword [rsp + 0x480]
jne 0x140004d6e
test rdx, rdx
je 0x140004ca8
sub r8, rax
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x140004d6e
add rax, 2
sub rdx, 1
jne 0x140004c90
test rsi, rsi
je 0x140004cb4
mov eax, dword [rsp + 0x50]
mov qword [rsi], rax
mov rbp, qword [rsp + 0x48]
cmp r10, 7
jbe 0x140004cf4
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x140004cec
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004dc0
mov rcx, r9
call fcn.1400054bc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140004d3d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140004d38
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004dc7
mov rcx, r8
call fcn.1400054bc
mov rax, rbp
mov word [rbx], r14w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140005460
add rsp, 0x4a0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp r10, 7
jbe 0x140004da5
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x140004d9d
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004dc0
mov rcx, r9
call fcn.1400054bc
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140004bf4
jmp 0x140004cf4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140004dd0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140004e0a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140004e0f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140004e58
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400073f0]
cmp byte [rcx + rax], 0
je 0x140004e58
dec r8
sub rdx, 1
jne 0x140004e3e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140005e5c
Capabilities:
Parse pe header

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

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

Function at 0x140005ecc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005cc8
Function at 0x140008f8c
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 0x140008fbc
xor eax, eax
jmp 0x14000907f
mov rbp, rbx
cmp word [rax], si
je 0x140008fe1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008fc8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008fc4
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.140008eac
movsxd r14, eax
test eax, eax
jne 0x14000901f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008fb5
mov rcx, r14
call fcn.140009e68
mov rdi, rax
test rax, rax
jne 0x140009038
xor ecx, ecx
call fcn.14000750c
jmp 0x140009014
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.140008eac
test eax, eax
jne 0x140009069
mov rcx, rdi
call fcn.14000750c
jmp 0x140009073
xor ecx, ecx
call fcn.14000750c
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 0x14000c570
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.140007f7c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c5fa
cmp byte [rbp - 0x21], r15b
je 0x14000c5f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c630
call fcn.14000a678
test eax, eax
jne 0x14000c61c
cmp byte [rbp - 0x21], r15b
je 0x14000c614
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c630
cmp byte [rbp - 0x21], r15b
je 0x14000c62d
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.14000755c
test eax, eax
jne 0x14000c6d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007f7c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c66f
cmp byte [rbp - 0x21], r15b
je 0x14000c6a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c6a4
call fcn.14000a678
test eax, eax
jne 0x14000c690
cmp byte [rbp - 0x21], r15b
je 0x14000c689
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c6a4
cmp byte [rbp - 0x21], r15b
je 0x14000c6a1
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.14000755c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c6d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c6d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c6e1
mov rcx, rdi
call fcn.14000750c
cmp byte [rbp + 0x3f], r15b
je 0x14000c6f0
mov rcx, qword [rbp + 0x27]
call fcn.14000750c
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 0x14000f520
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f548
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f548
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000b130
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
sub rsp, 0x70
mov qword [rsp + 0x28], r9
cmp r9, 0xf
jae 0x18000b1a0
mov eax, 0x5545
bt eax, r9d
jae 0x18000b1a0
mov rsi, rcx
lea rax, [0x180065320]
mov eax, dword [rax + r9*4]
mov dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov rcx, rdx
mov rdx, r8
mov r8d, eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x18000b180
mov dword [rsi], 5
jmp 0x18000b197
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov dword [rsi], 3
mov qword [rsi + 8], rax
mov rax, rsi
add rsp, 0x70
pop rsi
ret
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [0x18000b3e0]
mov qword [rsp + 0x38], rax
lea rax, str.internal_error:_entered_unreachable_code:_Protection:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.C:UsersVincent.cargo_registry_srcindex.crates.io_6f17d22bba15001f_region_3.0.0_srcoswindows.rs
lea rcx, [rsp + 0x40]
call fcn.18005dda0
ud2
Function at 0x180011000
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov r9, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x180011047
mov r15d, 8
sub r15, r11
cmp r8, r15
mov rax, r15
cmovb rax, r8
cmp rax, 3
jbe 0x18001104f
mov r14d, dword [rdx]
mov r10d, 4
mov rcx, r10
or rcx, 1
cmp rcx, rax
jb 0x180011061
jmp 0x180011078
xor r15d, r15d
jmp 0x180011103
xor r10d, r10d
xor r14d, r14d
mov rcx, r10
or rcx, 1
cmp rcx, rax
jae 0x180011078
movzx edi, word [rdx + r10]
lea ecx, [r10*8]
shl rdi, cl
or r14, rdi
or r10, 2
cmp r10, rax
jae 0x18001108f
movzx eax, byte [rdx + r10]
shl r10d, 3
mov ecx, r10d
shl rax, cl
or r14, rax
lea ecx, [r11*8]
shl r14, cl
or r14, qword [r9 + 0x38]
mov qword [r9 + 0x38], r14
cmp r15, r8
jbe 0x1800110af
add r11, r8
jmp 0x1800111e9
mov rdi, qword [r9 + 0x18]
mov rcx, qword [r9 + 0x10]
mov rax, qword [r9]
add rax, rcx
rol rcx, 0xd
xor rdi, r14
xor rcx, rax
rol rax, 0x20
mov rsi, qword [r9 + 8]
add rsi, rdi
rol rdi, 0x10
xor rdi, rsi
add rax, rdi
rol rdi, 0x15
xor rdi, rax
add rsi, rcx
rol rcx, 0x11
mov qword [r9 + 0x18], rdi
xor rcx, rsi
rol rsi, 0x20
mov qword [r9 + 0x10], rcx
mov qword [r9 + 8], rsi
xor rax, r14
mov qword [r9], rax
sub r8, r15
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r15, r8
jae 0x180011182
mov rax, qword [r9 + 0x18]
mov rsi, qword [r9]
mov rcx, qword [r9 + 8]
mov rdi, qword [r9 + 0x10]
nop word cs:[rax + rax]
add rsi, rdi
rol rdi, 0xd
mov rbx, qword [rdx + r15]
xor rdi, rsi
rol rsi, 0x20
xor rax, rbx
add rcx, rax
rol rax, 0x10
xor rax, rcx
add rsi, rax
rol rax, 0x15
add rcx, rdi
rol rdi, 0x11
xor rdi, rcx
rol rcx, 0x20
xor rax, rsi
xor rsi, rbx
add r15, 8
cmp r15, r8
jb 0x180011130
mov qword [r9 + 0x18], rax
mov qword [r9], rsi
mov qword [r9 + 0x10], rdi
mov qword [r9 + 8], rcx
cmp r11d, 3
jbe 0x1800111a0
mov esi, dword [rdx + r15]
mov r8d, 4
mov rax, r8
or rax, 1
cmp rax, r11
jb 0x1800111b1
jmp 0x1800111cb
xor r8d, r8d
xor esi, esi
mov rax, r8
or rax, 1
cmp rax, r11
jae 0x1800111cb
lea rax, [r8 + r15]
movzx eax, word [rdx + rax]
lea ecx, [r8*8]
shl rax, cl
or rsi, rax
or r8, 2
cmp r8, r11
jae 0x1800111e5
add r15, r8
movzx eax, byte [rdx + r15]
shl r8d, 3
mov ecx, r8d
shl rax, cl
or rsi, rax
mov qword [r9 + 0x38], rsi
mov qword [r9 + 0x40], r11
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180039d30
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], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor r12d, r12d
xor r13d, r13d
xor edi, edi
cmp r8, 0x201
jae 0x180039dd0
jmp 0x180039dbf
jae 0x180039e8e
cmp r8, 0x201
jae 0x180039dd0
lea rbx, [rbp - 0x58]
mov r14d, 0x200
mov rsi, r8
jmp 0x180039e27
sub r8, rdi
sub r13, rdi
cmp r13, r8
jae 0x180039dff
lea rcx, [rbp + 0x3c8]
mov rdx, rdi
call fcn.18005d0f0
mov r12, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovb rdi, r12
mov qword [rbp + 0x3d8], rdi
mov r13, r12
mov rbx, qword [rbp + 0x3e8]
mov r14, rdi
mov rsi, rdi
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r15d, eax
test eax, eax
jne 0x180039e4f
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x180039ef6
mov r8d, r15d
cmp rsi, r8
jne 0x180039db0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180039f19
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x180039dbf
jmp 0x180039dd0
cmp r14, r8
jb 0x180039f33
lea rcx, [rbp + 0x3a8]
mov rdx, rbx
call fcn.18003dee0
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 r12, r12
je 0x180039edf
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r12
call fcn.180004d70
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 r12, r12
jne 0x180039ec7
jmp 0x180039edf
lea rcx, [0x18006b58b]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.18005de40
jmp 0x180039f48
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.18005e230
ud2
Function at 0x18003a680
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x18003a690
mov rcx, rdx
mov rdx, r8
jmp fcn.18003a6a0
mov rcx, rdx
mov rdx, r8
jmp fcn.180044440

Function at 0x18003e7c0
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 + 0x38]
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 0x18003e7f3
test ecx, ecx
jne 0x18003e842
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x18003e800
test ecx, ecx
jne 0x18003e842
mov rcx, rdi
call fcn.18003e6a0
movzx r10d, al
test bl, bl
jne 0x18003e849
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x18003e836.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x18003e9bc]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x18003e836.2
xor r10d, r10d
test bl, bl
je 0x18003e810
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x18003e99e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
cmp rdx, rcx
jne 0x18003e87b
movzx r8d, byte [rdi + 0x10]
xor edi, edi
jmp 0x18003e8f8
movzx r8d, byte [rdi + 0x10]
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x18003e8c0
nop dword [rax + rax]
cmp byte [rax], 0x5c
je 0x18003e8db
inc rsi
dec rax
cmp rsi, 1
jne 0x18003e8a0
jmp 0x18003e8f8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x18003e8db
cmp ebx, 0x5c
je 0x18003e8db
inc rsi
dec rax
cmp rsi, 1
jne 0x18003e8c0
jmp 0x18003e8f8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x18003e9ac
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x18003e922
mov al, 9
cmp rdx, 2
je 0x18003e926
cmp rdx, 1
jne 0x18003e936
cmp byte [r9], 0x2e
jne 0x18003e936
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x18003e936
mov al, 0xa
jmp 0x18003e936
cmp byte [r9], 0x2e
jne 0x18003e936
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.0x18003e836.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.0x18003e836.2
mov esi, 2
jmp case.0x18003e836.2
lea r8, str.library_std_srcpath.rs
call fcn.18005e220
ud2
lea r8, str.library_std_srcpath.rs
call fcn.18005e220
ud2
Function at 0x180040440
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x180040461
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp r8, 1
je 0x180040497
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x180040492
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x180040497
call fcn.1800460a0
mov r8d, dword [0x18009cd0c]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0xd0], 1
mov qword [rcx + 0xd8], rax
mov qword [rcx + 0xe0], rdx
add rsp, 0x38
ret

Function at 0x180044440
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.180047250
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1800444f7
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.1800458e0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x1800444f7
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x1800444cb
test rsi, rsi
je 0x1800444c7
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.180004d70
xor esi, esi
jmp 0x1800444f7
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1800444f4
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.180004d70
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x180044a40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov r10, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
movaps xmm0, xmmword [0x18006b120]
movaps xmmword [rsp + 0x50], xmm0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x80], r10
test rcx, rcx
cmove rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x50]
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 0x180044ae5
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x50]
cmp eax, 0x103
je 0x180044b1c
test eax, eax
js 0x180044af6
mov rax, qword [rsp + 0x58]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x180044b0f
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, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x4c], 0
mov dword [rsp + 0x48], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, str.attempt_to_divide_by_zero_rustc_1db9c061d387a66ab16a90ec5a1b90adf216e2dalibrarycore_src_strpattern.rs9
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x180050ea0]
mov qword [rsp + 0x70], rax
lea rax, str.fatal_runtime_error:__n
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0xa8]
call fcn.18003da00
mov rcx, rax
call fcn.180036d70
mov ecx, 7
int 0x29
ud2

Function at 0x1800460a0
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 0x1800460e3
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, [0x18003b620]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.18005dda0
ud2
Function at 0x180054d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x180054d7a
mov r11, rdx
mov rdx, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rbx, r11
movzx edi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x180054d70
cmp r10, rax
jb 0x180054e0d
cmp r10, rdx
ja 0x180054e21
add rax, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x180054d72
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x180054d50
jmp 0x180054de2
ja 0x180054d7a
mov rax, r10
cmp r11, r8
jne 0x180054d20
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x180054de6
mov rsi, qword [rsp + 0x78]
add rdx, rsi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [rsi + 1]
movzx edi, byte [rsi]
test dil, dil
js 0x180054dc0
mov rsi, rbx
sub ecx, edi
jns 0x180054dd9
jmp 0x180054de8
cmp rbx, rdx
je 0x180054df3
movzx ebp, byte [rsi + 1]
add rsi, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x180054de8
xor al, 1
cmp rsi, rdx
jne 0x180054da0
jmp 0x180054de8
xor eax, eax
jmp 0x180054de8
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x18006f0c9]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.18005de40
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.18005e240
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.18005e230
ud2