joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a8544
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CCommonDialog.virtual_712
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x1800a8583
cmp dword [rcx + 0xd8], 0
jne 0x1800a8583
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.180011d68
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1800a84e8
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800aff84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
test r8, r8
jne 0x1800affb5
call fcn.180011d68
mov rdi, qword [rax + 0x18]
mov r8, qword [0x180200230]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x1800affd4
xor eax, eax
jmp 0x1800b0020
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1800affd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x1800b0015
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r12
mov rcx, r13
mov r8d, eax
call fcn.1800afe48
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1800cf484
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1800cf495
xor eax, eax
jmp 0x1800cf4c3
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1800cf658
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1800cf669
xor eax, eax
jmp 0x1800cf68d
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1800cf694
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x1800cf6d6
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x1800cf7e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x1800cf813
call fcn.180013df0
int3
test rbx, rbx
jne 0x1800cf81e
call fcn.180013df0
int3
test r9, r9
jne 0x1800cf829
call fcn.180013df0
int3
and qword [r8], 0
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800cf8ac
cmp dword [rsp + 0x48], 3
jne 0x1800cf8ac
test eax, eax
jne 0x1800cf8ac
cmp dword [rdi], eax
je 0x1800cf8ac
mov ecx, dword [rdi]
call fcn.180010af0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rbx], rax
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800cf8a0
cmp dword [rsp + 0x48], 3
jne 0x1800cf8a0
test eax, eax
jne 0x1800cf8a0
mov eax, 1
jmp 0x1800cf8ae
mov rcx, qword [rbx]
call fcn.180010b34
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1800cf9b8
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180121008
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x180121031
mov rdi, qword [rdx + 0x10]
jmp 0x180121082
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x180121052
call fcn.18001fcec
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x18012106c
call fcn.18001fcec
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x180121082
call fcn.18001fcec
call fcn.180011d68
cmp qword [rax + 0x68], 0
je 0x18012109c
mov rdx, rdi
mov rcx, rbp
call fcn.18011f6c4
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.180120e48
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x1801210c3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x1801210d2
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1801513e7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1801f74b0]
jne 0x18014bb4a
rol rcx, 0x10
test cx, 0xffff
jne 0x18014bb46
repz ret
ror rcx, 0x10
jmp 0x180151340
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180203210]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180203308]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1801513c5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180203210]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1801513e7
mov rax, qword [rsp + 0x88]
mov qword [0x180203308], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1802032a8], rax
mov rax, qword [0x180203308]
mov qword [0x180203180], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180203290], rax
mov dword [0x180203170], 0xc0000409
mov dword [0x180203174], 1
mov rax, qword [0x1801f74b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1801f74b8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180203208], eax
mov ecx, 1
call fcn.18015ccf0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1801bdcc8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180203208], 0
jne 0x18015146e
mov ecx, 1
call fcn.18015ccf0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18015cdec
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1801f74b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1801515c0
xor ebx, ebx
cmp qword [0x180204228], rbx
mov rdi, rax
jne 0x18015ceff
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18015cfd6
lea rdx, [0x1801bf7a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18015cfd6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1801bf798]
mov rcx, rsi
mov qword [0x180204228], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1801bf780]
mov rcx, rsi
mov qword [0x180204230], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180204238], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180204248], rax
test rax, rax
je 0x18015cef6
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180204240], rax
jmp 0x18015cf06
mov rax, qword [0x180204240]
jmp 0x18015cf0d
mov rax, qword [0x180204240]
mov r11, qword [0x180204248]
cmp rax, rdi
je 0x18015cf74
cmp r11, rdi
je 0x18015cf74
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180204248]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18015cf74
test rax, rax
je 0x18015cf74
call rsi
test rax, rax
je 0x18015cf6e
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18015cf6e
test byte [rsp + 0x40], 1
jne 0x18015cf74
bts ebp, 0x15
jmp 0x18015cfb4
mov rcx, qword [0x180204230]
cmp rcx, rdi
je 0x18015cfb4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18015cfb4
call rax
mov rbx, rax
test rax, rax
je 0x18015cfb4
mov rcx, qword [0x180204238]
cmp rcx, rdi
je 0x18015cfb4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18015cfb4
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180204228]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18015cfd6
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18015cfd8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18014bb30
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a6d0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
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 0x14000a705
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14000a70a
call fcn.14001e910
mov ecx, dword [0x14009b138]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 8], 1
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
add rsp, 0x38
ret

Function at 0x14000d100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000d190
cmp r10, r11
jb 0x14000d206
cmp r10, rdx
ja 0x14000d21a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000d192
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000d170
jmp 0x14000d1f4
ja 0x14000d19a
mov r11, r10
cmp rax, r8
jne 0x14000d134
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000d1d0
mov rdi, r8
sub ecx, edx
jns 0x14000d1eb
jmp 0x14000d1f6
cmp r8, rsi
je 0x14000d22b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000d1f6
xor al, 1
cmp rdi, rsi
jne 0x14000d1b0
jmp 0x14000d1f6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400324c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400322b0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__valueinternal_error:_entered_unreachable_code_rustc_88fb1b922b047981fc0cfc62aa1418b4361ae72elibrary_alloc_src_vecmod.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400322c0
ud2
Function at 0x140014c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140014cbb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140014cbb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140014cd6
cmp eax, 0x42
jne 0x140014cbb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140014d86
cmp byte [r9 + r11], 0x5f
jne 0x140014d86
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140014dee
mov rcx, rsi
xor edx, edx
call fcn.14000fdd0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14000fdd0
test al, al
jne 0x140014e81
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014d12
lea rdx, [0x14008abab]
mov r8d, 1
call fcn.14000b140
test al, al
jne 0x140014e81
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140014cca
xor r14d, r14d
lea rbx, [0x14008af76]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140014d44
cmp byte [rax + rcx], 0x45
je 0x140014eaa
sub r14, 1
jb 0x140014d69
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014d69
mov r8d, 2
mov rdx, rbx
call fcn.14000b140
test al, al
jne 0x140014e81
mov rcx, rsi
call fcn.140014ec0
test al, al
jne 0x140014e81
mov rax, qword [rsi]
test rax, rax
jne 0x140014d30
jmp 0x140014cca
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140014e48
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140014de2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140014dcc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140014dbb
add dl, 0xa9
jmp 0x140014dca
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140014e48
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140014e48
movzx edx, bl
add rax, rdx
jae 0x140014d90
jmp 0x140014e48
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140014e48
cmp rax, rcx
jae 0x140014e45
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140014e89
cmp qword [rsi + 0x20], 0
je 0x140014eb6
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140014c60
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140014ccc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140014e98
lea rax, [0x14008af41]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.14000b140
test al, al
je 0x140014e98
mov dil, 2
jmp 0x140014cca
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140014e53
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140014cca
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140014cca
xor edi, edi
jmp 0x140014cca
Function at 0x14001c660
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 0x14001c690
test ecx, ecx
jne 0x14001c6e0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14001c69c
test ecx, ecx
jne 0x14001c6e0
mov rcx, rdi
call fcn.14001c540
movzx eax, al
test bpl, bpl
jne 0x14001c6e7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14001c6d3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14001c858]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14001c6d3.2
xor eax, eax
test bpl, bpl
je 0x14001c6ac
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14001c839
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14001c71a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14001c799
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 0x14001c760
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14001c77b
inc rax
dec rdi
cmp rax, 1
jne 0x14001c740
jmp 0x14001c799
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14001c77b
cmp ebx, 0x5c
je 0x14001c77b
inc rax
dec rdi
cmp rax, 1
jne 0x14001c760
jmp 0x14001c799
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14001c847
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14001c7c3
mov al, 9
cmp rdx, 2
je 0x14001c7c7
cmp rdx, 1
jne 0x14001c7d7
cmp byte [r8], 0x2e
jne 0x14001c7d7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14001c7d7
mov al, 0xa
jmp 0x14001c7d7
cmp byte [r8], 0x2e
jne 0x14001c7d7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
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.0x14001c6d3.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.0x14001c6d3.2
mov ecx, 2
jmp case.0x14001c6d3.2
lea r8, str.library_std_srcpath.rs
call fcn.1400322a0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400322a0
ud2
Function at 0x14001e910
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 0x14001e953
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, [0x14001d660]
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.1400321e0
ud2

Function at 0x140027c68
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140027a58
Function at 0x14002acd0
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 0x14002ad00
xor eax, eax
jmp 0x14002adc3
mov rbp, rbx
cmp word [rax], si
je 0x14002ad25
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002ad0c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002ad08
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.14002ac20
movsxd r14, eax
test eax, eax
jne 0x14002ad63
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14002acf9
mov rcx, r14
call fcn.14002bb84
mov rdi, rax
test rax, rax
jne 0x14002ad7c
xor ecx, ecx
call fcn.1400292b0
jmp 0x14002ad58
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.14002ac20
test eax, eax
jne 0x14002adad
mov rcx, rdi
call fcn.1400292b0
jmp 0x14002adb7
xor ecx, ecx
call fcn.1400292b0
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 0x14002e28c
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.140029d24
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002e316
cmp byte [rbp - 0x21], r15b
je 0x14002e311
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002e34c
call fcn.14002c3a4
test eax, eax
jne 0x14002e338
cmp byte [rbp - 0x21], r15b
je 0x14002e330
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002e34c
cmp byte [rbp - 0x21], r15b
je 0x14002e349
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.140029300
test eax, eax
jne 0x14002e3ec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140029d24
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002e38b
cmp byte [rbp - 0x21], r15b
je 0x14002e3c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002e3c0
call fcn.14002c3a4
test eax, eax
jne 0x14002e3ac
cmp byte [rbp - 0x21], r15b
je 0x14002e3a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002e3c0
cmp byte [rbp - 0x21], r15b
je 0x14002e3bd
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.140029300
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002e3ec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002e3ef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002e3fd
mov rcx, rdi
call fcn.1400292b0
cmp byte [rbp + 0x3f], r15b
je 0x14002e40c
mov rcx, qword [rbp + 0x27]
call fcn.1400292b0
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