joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055350
Capabilities:
Hide graphical window

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rsi, rcx
mov rax, qword [0x140071c00]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x9a], 0
je 0x14005552d
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, 0x10000000
or eax, dword [0x140071bd8]
mov dword [0x140071be0], eax
mov rcx, qword [rsi]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r8d, dword [0x140071bec]
cmp eax, r8d
je 0x1400553bd
mov rcx, qword [rsi]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_SetWindowLongW]
vxorps xmm0, xmm0, xmm0
vmovups ymmword [rsp + 0x98], ymm0
vmovups ymmword [rsp + 0x80], ymm0
mov dword [rsp + 0x98], 2
mov dword [rsp + 0x80], 0x1c
vmovaps xmm0, xmmword [0x140062f00]
vmovaps xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0xb0], 2
mov dword [rsp + 0x94], 0x20
mov rax, qword [rsi]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x8c], 1
mov dword [rsp + 0xa8], 1
movabs rax, 0xa0000000b000
mov qword [rsp + 0xc8], rax
lea rax, [rsi + 0x60]
lea rcx, [rsi + 0x58]
lea rdx, [rsi + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
xor edi, edi
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
vzeroupper
call sub.d3d11.dll_D3D11CreateDeviceAndSwapChain
test eax, eax
jne 0x140055511
mov qword [rsp + 0xc0], 0
mov rcx, qword [rsi + 0x68]
mov rax, qword [rcx]
lea r8, [0x140063228]
lea r9, [rsp + 0xc0]
xor edx, edx
call qword [rax + 0x48]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsi + 0x58]
lea r9, [rsi + 0x70]
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax + 0x48]
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov edi, 1
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140056c60
mov eax, edi
add rsp, 0xd8
pop rdi
pop rsi
ret
mov eax, 0x10000000
or eax, dword [0x140071bdc]
mov dword [0x140071be0], eax
mov rcx, qword [rsi]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r8d, dword [0x140071be8]
cmp eax, r8d
jne 0x1400553af
jmp 0x1400553bd
Function at 0x140056770
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x268
mov rdi, rdx
mov rax, qword [0x140071c00]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor esi, esi
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x14005684f
mov rbx, rax
xor esi, esi
lea r14, [rsp + 0x28]
mov r8d, 0x238
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x28], 0x238
mov rcx, rbx
mov rdx, r14
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140056846
lea r14, [rsp + 0x54]
mov rcx, qword [rdi]
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140056842
lea rdx, [rsp + 0x28]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x140056846
xor esi, esi
mov r12, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea r15, [rsp + 0x28]
jmp 0x14005682f
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x140056846
mov rcx, qword [rdi]
mov rdx, r14
call r12
test eax, eax
jne 0x140056820
mov esi, dword [rsp + 0x30]
jmp 0x140056820
mov esi, dword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140056c60
mov eax, esi
add rsp, 0x268
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140056880
Capabilities:
Hide graphical window

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, qword [0x140071c00]
xor rax, rsp
mov qword [rsp + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rsi, rax
lea rdx, [rsp + 0x44]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x226
mov rcx, rsi
mov r9d, 0x3b6
call qword [sym.imp.USER32.dll_MoveWindow]
mov qword [rsp + 0x54], 0x54
mov dword [rsp + 0x5c], 0x100000
movabs rax, 0x19000000000
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x68]
lea rdx, str.Cascadia_Code
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r8, [rsp + 0x54]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetCurrentConsoleFontEx]
mov dword [rsp + 0x30], 0x63
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, 0xffffffffffffffff
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, rsi
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140056c60
mov al, 1
add rsp, 0xb0
pop rsi
ret

Function at 0x1400572d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005731a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005731a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005731a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005731a
cmp dword [rcx + 0x84], 0xe
jbe 0x14005731a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005731c
xor al, al
add rsp, 0x28
ret
Function at 0x140006e80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp - 0x28], rcx
mov r14, qword [rdx]
add r9, r8
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
mov word [rbp - 0x10], 0
mov dword [rbp - 8], 1
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
call fcn.140009750
mov dword [rbp + 0x1c], 0x800
mov dword [rbp + 0x18], 0
movzx eax, byte [0x14006e181]
mov ecx, 0x800
mov edx, 1
call fcn.14000bc10
test rax, rax
je 0x14000705d
mov rbx, rax
mov qword [rbp], 0x800
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rdi, qword [rbp - 0x40]
lea r12, [rbp + 0x1c]
lea r15, [rbp + 0x18]
mov rsi, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov r13, qword [rbp]
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x30], rax
sub r13, rax
nop word cs:[rax + rax]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call rsi
cmp eax, 0xea
jne 0x140006f7a
mov r8d, dword [rbp + 0x1c]
cmp r13, r8
jae 0x140006f40
mov rcx, rbp
mov rdx, qword [rbp - 0x30]
call fcn.14004abf0
mov rbx, qword [rbp + 8]
jmp 0x140006f26
movabs r14, 0x8000000000000000
test eax, eax
jne 0x140006fab
mov eax, dword [rbp + 0x1c]
mov qword [rbp + 0x10], rax
mov eax, dword [rbp + 0x18]
cmp eax, 0xb
mov rsi, qword [rbp - 0x28]
jbe 0x14000703f
movabs rax, 0xde00000002
jmp 0x140006fb7
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], r14
mov rdx, qword [rbp]
test rdx, rdx
je 0x140006fd6
mov r8d, 1
mov rcx, rbx
call fcn.14000bc20
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x140006ff0
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.14000bc20
cmp qword [rbp - 0x20], r14
jne 0x140007003
mov rax, qword [rbp - 0x18]
mov qword [rsi + 8], rax
mov qword [rsi], r14
jmp 0x140007028
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.14002e680
movabs rax, 0x8000000000000000
cmp qword [rbp - 0x20], rax
je 0x140007028
lea rcx, [rbp - 0x20]
call fcn.140006a10
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x10], rcx
movups xmm0, xmmword [rbp]
movaps xmmword [rbp - 0x20], xmm0
mov byte [rbp - 8], al
mov rdx, qword [rbp - 0x48]
test rdx, rdx
jne 0x140006fdf
jmp 0x140006ff0
mov ecx, 1
mov edx, 0x800
call fcn.14004ddc0
ud2
Function at 0x140007160
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea rcx, [rbp - 0x18]
mov rdx, r9
call fcn.14002e9f0
mov rdi, qword [rdi]
add rsi, rbx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x40], 0
mov dword [rbp - 0x38], 1
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x50]
call fcn.140009750
movzx r9d, byte [rbp]
mov rdx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x10]
mov eax, dword [rbp - 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov qword [rbp + 8], rdx
xor r8d, r8d
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov edi, eax
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x1400071fe
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 8]
call fcn.14000bc20
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x140007215
mov r8d, 1
mov rcx, rsi
call fcn.14000bc20
mov rcx, rdi
shl rcx, 0x20
or rcx, 2
xor eax, eax
test edi, edi
cmovne rax, rcx
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f540
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14000f550
test al, 1
je 0x14000f56f
test al, 2
jne 0x14000f587
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140051040]
mov edx, 0x23
call fcn.14004e080
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140051080]
mov edx, 0x25
call fcn.14004e080
int3

Function at 0x1400211d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x18], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400211f0
test al, 1
je 0x1400212b9
test al, 2
jne 0x1400212d1
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x18]
call fcn.14000c1c0
test rax, rax
je 0x14002124e
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x20], rdx
call qword [rdx]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x14002124e
mov r8, qword [rax + 0x10]
call fcn.14000bc20
mov rcx, qword [rbp + 0x18]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x1400212e9
jne 0x1400212af
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x20], rax
lea rcx, [rax + 0x28]
call fcn.1400203f0
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x58]
test rax, rax
je 0x14002129b
mov rcx, qword [rbp + 0x20]
mov rcx, qword [rcx + 0x60]
call qword [rax + 0x18]
mov edx, 0x80
mov r8d, 0x80
mov rcx, qword [rbp + 0x20]
call fcn.14000bc20
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140051040]
mov edx, 0x23
call fcn.14004e080
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140051080]
mov edx, 0x25
call fcn.14004e080
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.140049c70]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
lea rdx, [0x1400510c8]
lea rcx, [rbp - 0x58]
call fcn.14004dfb0
int3

Function at 0x14002a440
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140031900
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 ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400319a0
jmp 0x14003198f
jae 0x140031a60
cmp r8, 0x201
jae 0x1400319a0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400319f8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400319cf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14004d620
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
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 0x140031a21
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140031ac8
mov r8d, r14d
cmp r15, r8
jne 0x140031980
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140031af5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14003198f
jmp 0x1400319a0
cmp rsi, r8
jb 0x140031b0f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140033e90
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 rbx, rbx
je 0x140031ab1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.14000bc20
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 + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140031a99
jmp 0x140031ab1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14004e080
jmp 0x140031b24
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14004e570
ud2
Function at 0x140039230
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.14003b9f0
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
movabs r14, 0x8000000000000000
cmp rax, r14
je 0x1400392a2
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.14003a100
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
cmp rax, r14
jne 0x1400392c0
mov qword [rsi + 8], rdx
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 8], rax
mov qword [rbp], rdx
mov r8, qword [rbp + 0x70]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.14003b9f0
mov rax, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
cmp rax, r14
je 0x140039312
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.14003a100
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
cmp rbx, r14
jne 0x140039343
mov r14, qword [rbp]
mov r15, qword [rbp + 8]
mov qword [rsi + 8], rdi
mov qword [rsi], 1
test r15, r15
je 0x1400392ad
add r15, r15
mov r8d, 2
mov rcx, r14
mov rdx, r15
call fcn.14000bc20
jmp 0x1400392ad
mov qword [rbp - 0x18], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140039420]
lea r9, [rbp - 0x18]
mov r14, qword [rbp]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
mov r15, qword [rbp + 8]
je 0x140039395
mov rax, qword [rbp - 0x18]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rbx, rbx
jne 0x1400393b7
jmp 0x140039325
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
je 0x140039325
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.14000bc20
jmp 0x140039325
Function at 0x140039440
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 [0x140057640]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140039484
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 0x1400394ea
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140039521
test eax, eax
js 0x1400394fb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140039514
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, [0x1400576a8]
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.140033bd0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14002f9c0
mov ecx, 7
int 0x29
ud2

Function at 0x14003a8c0
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 0x14003a8f8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14003a910
nop
add rsp, 0x38
ret

Function at 0x14003a910
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 0x14003a953
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, [0x140032620]
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_syspalwindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14004dfb0
ud2
Function at 0x14003afe0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14006e181]
mov ecx, 0x10
mov edx, 8
call fcn.14000bc10
test rax, rax
je 0x14003b0bf
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003b170]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003b0b1
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14003b088
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.14000bc20
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.14000bc20
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14004ddc0
ud2
Function at 0x140048fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14004901a
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 0x140049010
cmp r11, r10
ja 0x1400490a5
cmp r10, rdx
ja 0x1400490b7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140049012
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140048ff0
jmp 0x140049087
ja 0x14004901a
mov r11, r10
cmp rax, r8
jne 0x140048fc2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14004908b
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 0x140049060
mov r8, r10
sub ecx, r9d
jns 0x14004907e
jmp 0x14004908d
cmp r10, rdx
je 0x140049099
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14004908d
xor al, 1
cmp r8, rdx
jne 0x140049040
jmp 0x14004908d
xor eax, eax
jmp 0x14004908d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14004df20
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14004e5f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14004e570
int3

Function at 0x14004a7d4
Capabilities:
Parse pe header

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