joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000e670
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x78], 0xfffffffffffffffe
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.18000d990
nop
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x68]
call fcn.18000da10
test rax, rax
jne 0x18000e6e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
call fcn.18000d9d0
movzx eax, byte [rsp + 0x40]
jmp 0x18000e882
lea rcx, [rsp + 0x58]
call fcn.18000e4c0
nop
mov rax, qword [rsp + 0x90]
mov r9d, dword [rax + 8]
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.18000e520
lea rcx, [rsp + 0x58]
call fcn.18000e620
test rax, rax
jne 0x18000e74f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x41], 0
lea rcx, [rsp + 0x58]
call fcn.18000e4e0
nop
lea rcx, [rsp + 0x68]
call fcn.18000d9d0
movzx eax, byte [rsp + 0x41]
jmp 0x18000e882
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x58]
call fcn.18000e620
mov ecx, dword [rsp + 0xa0]
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x18000e7cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x42], 0
lea rcx, [rsp + 0x58]
call fcn.18000e4e0
nop
lea rcx, [rsp + 0x68]
call fcn.18000d9d0
movzx eax, byte [rsp + 0x42]
jmp 0x18000e882
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xb0]
mov qword [rcx], rax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
dec rax
mov dword [rsp + 0x4c], eax
jmp 0x18000e80b
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x4c]
dec eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x48], eax
jge 0x18000e863
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x98]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x43], al
movsxd rax, dword [rsp + 0x4c]
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x98]
mov r8, qword [rsp + 0x98]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x98]
movzx edx, byte [rsp + 0x43]
mov byte [rcx + rax], dl
jmp 0x18000e7f7
mov byte [rsp + 0x44], 1
lea rcx, [rsp + 0x58]
call fcn.18000e4e0
nop
lea rcx, [rsp + 0x68]
call fcn.18000d9d0
movzx eax, byte [rsp + 0x44]
add rsp, 0x88
ret
Function at 0x18000e940
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov dword [rsp + 0x78], 0
mov r8d, 0xf0000000
mov edx, 0x18
lea rcx, [rsp + 0x50]
call fcn.18000d990
nop
lea rcx, [rsp + 0x50]
call fcn.18000da10
test rax, rax
jne 0x18000e9b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x50]
call fcn.18000d9d0
mov eax, dword [rsp + 0x60]
jmp 0x18000eb3d
lea rcx, [rsp + 0x40]
call fcn.18000de10
nop
mov rax, qword [rsp + 0xa0]
mov r9d, dword [rax + 8]
mov rax, qword [rsp + 0xa0]
mov r8, qword [rax]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.18000de70
test eax, eax
je 0x18000ea0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x40]
call fcn.18000de30
nop
lea rcx, [rsp + 0x50]
call fcn.18000d9d0
mov eax, dword [rsp + 0x64]
jmp 0x18000eb3d
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.18000df90
test eax, eax
je 0x18000ea49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x40]
call fcn.18000de30
nop
lea rcx, [rsp + 0x50]
call fcn.18000d9d0
mov eax, dword [rsp + 0x68]
jmp 0x18000eb3d
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x40]
call fcn.18000dfc0
test eax, eax
je 0x18000ea8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x40]
call fcn.18000de30
nop
lea rcx, [rsp + 0x50]
call fcn.18000d9d0
mov eax, dword [rsp + 0x6c]
jmp 0x18000eb3d
lea rcx, [rsp + 0x40]
call fcn.18000dff0
test rax, rax
jne 0x18000eabf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x40]
call fcn.18000de30
nop
lea rcx, [rsp + 0x50]
call fcn.18000d9d0
mov eax, dword [rsp + 0x70]
jmp 0x18000eb3d
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x40]
call fcn.18000dff0
mov ecx, dword [rsp + 0xb0]
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x40]
call fcn.18000de30
nop
lea rcx, [rsp + 0x50]
call fcn.18000d9d0
mov eax, dword [rsp + 0x74]
add rsp, 0x98
ret
Function at 0x18000eb50
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov dword [rsp + 0x64], 0
mov r8d, 0xf0000000
mov edx, 0x18
lea rcx, [rsp + 0x38]
call fcn.18000d990
nop
lea rcx, [rsp + 0x38]
call fcn.18000da10
test rax, rax
jne 0x18000ebbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x38]
call fcn.18000d9d0
mov eax, dword [rsp + 0x48]
jmp 0x18000ed30
lea rcx, [rsp + 0x30]
call fcn.18000de10
nop
mov rax, qword [rsp + 0x90]
mov r9d, dword [rax + 8]
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.18000de70
test eax, eax
je 0x18000ec1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x30]
call fcn.18000de30
nop
lea rcx, [rsp + 0x38]
call fcn.18000d9d0
mov eax, dword [rsp + 0x4c]
jmp 0x18000ed30
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.18000df90
test eax, eax
je 0x18000ec56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x30]
call fcn.18000de30
nop
lea rcx, [rsp + 0x38]
call fcn.18000d9d0
mov eax, dword [rsp + 0x50]
jmp 0x18000ed30
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x30]
call fcn.18000dfc0
test eax, eax
je 0x18000ec98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x30]
call fcn.18000de30
nop
lea rcx, [rsp + 0x38]
call fcn.18000d9d0
mov eax, dword [rsp + 0x54]
jmp 0x18000ed30
lea rcx, [rsp + 0x30]
call fcn.18000dff0
test rax, rax
jne 0x18000eccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x30]
call fcn.18000de30
nop
lea rcx, [rsp + 0x38]
call fcn.18000d9d0
mov eax, dword [rsp + 0x58]
jmp 0x18000ed30
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x30]
call fcn.18000dff0
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x30]
call fcn.18000de30
nop
lea rcx, [rsp + 0x38]
call fcn.18000d9d0
mov eax, dword [rsp + 0x60]
add rsp, 0x88
ret

Function at 0x18000f0e0
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
mov r8d, 1
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x34], 0
jne 0x18000f138
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x18000f150
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
mov r8d, 1
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x44], 0
jne 0x18000f1ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x1800121e0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001223c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001223c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001223c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001223c
cmp dword [rcx + 0x84], 0xe
jbe 0x18001223c
cmp dword [rcx + 0xf8], 0
je 0x18001223c
mov ecx, ebx
call fcn.180012170
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x180020270]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.180011ff0
cmp dword [rsp + 0x60], 0
jne 0x18001227f
mov ecx, ebx
call fcn.180012120
int3
add rsp, 0x40
pop rbx
ret
Function at 0x180012570
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x18001e008]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1800125ac
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.1800167ac
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x180012668
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1800126ce
test ebx, ebx
jne 0x1800126ce
lea ecx, [rax + 2]
call fcn.1800167ac
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.180016520
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x1800163b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp dword [rcx], 0xe06d7363
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
jne 0x18001646c
mov rax, qword [r9 + 0x38]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax]
add rbx, qword [r9 + 8]
mov eax, dword [rbx]
and eax, 0x1fffffff
sub eax, 0x19930521
cmp eax, 1
ja 0x180016467
mov eax, 1
xchg dword [0x1817802e0], eax
cmp eax, 1
jne 0x180016420
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
xchg dword [0x1817802e0], eax
cmp eax, 1
je 0x180016405
mov edx, 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18001645f
and dword [rbx], 0xf9930520
lea r9, [rsp + 0x40]
or dword [rbx], 0x19930520
mov edx, 4
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xchg dword [0x1817802e0], eax
mov rbx, qword [rsp + 0x48]
mov r9, rdi
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.msvcrt.dll___CxxFrameHandler]
Function at 0x140008fd0
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 0x140009060
jmp 0x14000904f
jae 0x140009120
cmp r8, 0x201
jae 0x140009060
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400090b8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000908f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400287b0
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 0x1400090e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009188
mov r8d, r14d
cmp r15, r8
jne 0x140009040
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400091ab
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000904f
jmp 0x140009060
cmp rsi, r8
jb 0x1400091c5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000ab40
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 0x140009171
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400024a0
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 0x140009159
jmp 0x140009171
lea rcx, str.internal_error:_entered_unreachable_codeh
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140029180
jmp 0x1400091da
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400295d0
ud2
Function at 0x140009230
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.140019d30
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x1400093b6
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x1400092f0
jmp 0x1400092df
jae 0x1400093c8
cmp r8, 0x201
jae 0x1400092f0
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x140009348
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14000931f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.1400287b0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140009377
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000949b
mov r8d, esi
cmp r12, r8
jne 0x1400092d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400094c5
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400092df
jmp 0x1400092f0
lea rcx, [rbp - 0x58]
call fcn.1400035b0
mov byte [rsi + 0x18], 2
jmp 0x14000945a
cmp r15, r8
jb 0x1400094df
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.14000ab40
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140009419
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.1400024a0
cmp byte [rbp + 0x3d8], 2
jne 0x140009471
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.1400035b0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14000945a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1400024a0
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 + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x140009445
jmp 0x14000945a
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 0x140009401
jmp 0x140009419
lea rcx, str.internal_error:_entered_unreachable_codeh
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140029180
jmp 0x1400094f4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.1400295d0
ud2
Function at 0x14000dc60
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.140027d00
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140013490]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.140013230
cmp qword [rbp + 0xfe8], 0
jne 0x14000de37
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x14000de03
cmp r12, 0x1000
ja 0x14000de59
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x14000ddd7
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14000dd80
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14000dddd
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x14000ddc0
jbe 0x14000dd30
jmp 0x14000de45
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x14000dce5
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.1400035b0
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.1400035b0
jmp 0x14000de03
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140029650
jmp 0x14000de6d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.1400295d0
ud2
Function at 0x140010d60
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 [0x140030c48]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140010da4
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 0x140010e0a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140010e41
test eax, eax
js 0x140010e1b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140010e34
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000a9b0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140003b20
mov ecx, 7
int 0x29
ud2
Function at 0x140017f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
sub esp, 0x88

Function at 0x140018e80
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 0x140018ec3
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, [0x140009b40]
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
lea rcx, [rbp - 0x60]
call fcn.1400290d0
ud2