joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e8380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x18], 0xb
mov rbp, rcx
jne 0x1400e83bb
mov eax, dword [rcx + 0x1c]
lea rdx, [rcx + 0x38]
mov r9, qword [rcx + 0x28]
dec eax
mov ecx, 0x1e
lea r8, [rax + rax*2]
mov r9, qword [r9 + r8*8 + 0x10]
lea r8, str.__lld_
add rsp, 0x30
pop rbp
jmp fcn.1400de550
mov edx, dword [rcx + 0xc]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
add rcx, 0xc0
xor esi, esi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x40], esi
call fcn.1400e1080
add eax, dword [rbp + 0xc]
mov r9d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov edx, eax
add rdx, qword [rbp + 0xc0]
test r9d, r9d
je 0x1400e842f
movzx eax, byte [rdx]
lea r8, [0x1400edd90]
test byte [rax + r8], 2
je 0x1400e842f
test r9d, r9d
je 0x1400e8422
movzx ecx, byte [rsi + rdx]
test byte [rcx + r8], 6
je 0x1400e842f
inc esi
cmp esi, r9d
jb 0x1400e8410
lea ecx, [r9 + 2]
lea r8, str.._.s
jmp 0x1400e843a
lea ecx, [r9 + 4]
lea r8, str..__.s_
add rbp, 0x38
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call fcn.1400de550
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret
Function at 0x1400e9520
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea r8, [rbp - 0x39]
mov edx, 0x20
mov r14, rcx
call qword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x1400e956d
lea rcx, [0x1400fb0b0]
call fcn.1400e94c0
mov rax, 0xffffffffffffffff
jmp 0x1400e9760
mov qword [rsp + 0xf0], rdi
lea rcx, str.capture_ecran.bmp
mov qword [rsp + 0xb8], r12
xor r9d, r9d
xor r12d, r12d
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e95ca
lea rcx, str.Erreur_:_impossible_de_cr
call fcn.1400e94c0
mov rax, rdi
jmp 0x1400e9750
mov edx, dword [rbp - 0x31]
lea r9, [rbp - 0x19]
mov ecx, dword [rbp - 0x35]
mov eax, 0x4d42
mov word [rbp - 0x11], ax
mov r8d, 0xe
mov eax, edx
mov dword [rbp + 3], ecx
imul eax, ecx
mov rcx, rdi
mov dword [rbp + 7], edx
lea rdx, [rbp - 0x11]
mov qword [rsp + 0xe8], rsi
mov dword [rbp - 0xb], r12d
mov dword [rbp - 7], 0x36
mov dword [rbp - 1], 0x28
mov qword [rbp + 0xb], 0x200001
mov qword [rbp + 0x13], r12
lea eax, [rax*4 + 0x36]
mov qword [rbp + 0x1b], r12
mov dword [rbp - 0xf], eax
mov dword [rbp + 0x23], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rbp - 0x19]
mov qword [rsp + 0x20], r12
mov r8d, 0x28
lea rdx, [rbp - 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbp - 0x31]
mov rbx, 0xffffffffffffffff
imul eax, dword [rbp - 0x35]
imul eax, eax, 4
movsxd rcx, eax
cmovo rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x1400e9696
lea rcx, str.Erreur_:_m
call fcn.1400e94c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400e9748
xor ecx, ecx
mov qword [rsp + 0xb0], r15
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rcx, rax
mov rdx, r14
mov r15, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov r9d, dword [rbp - 0x31]
lea rax, [rbp - 1]
mov dword [rsp + 0x30], r12d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rsi
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x1400e9701
lea rcx, str.Erreur_:_impossible_de_r
call fcn.1400e94c0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400e9740
mov r8d, dword [rbp - 0x31]
lea r9, [rbp - 0x19]
imul r8d, dword [rbp - 0x35]
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r12
shl r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
mov r15, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xb8]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400ea480
add rsp, 0xc0
pop r14
pop rbx
pop rbp
ret
Function at 0x1400e9f30
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov rbp, r8
mov qword [rsp + 0x30], r14
mov rbx, rdx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x50], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x60]
xor r9d, r9d
mov rdx, rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov r8, qword [rsp + 0xc0]
mov rcx, rbp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
call fcn.1400ea070
mov r8d, dword [rsp + 0x50]
xor r9d, r9d
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400ea480
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400eae4c
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005b92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005b92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005b92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005b92
cmp dword [rcx + 0x84], 0xe
jbe 0x140005b92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005b94
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov eax, 0xe320
call fcn.140001f60
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe298], 0xfffffffffffffffe
mov dword [rbp + 0xe294], 0
lea rdx, [0x140012320]
lea rcx, [rbp - 0x11]
mov qword [rbp - 0x40], rcx
mov r8d, 0xe279
call fcn.140010ba0
mov rax, qword [rbp - 0x40]
mov qword [rbp + 0xe268], rax
lea rax, [rbp + 0xe268]
mov qword [rbp + 0xe270], rax
lea rcx, [rbp - 0x12]
mov qword [rbp - 0x38], rcx
call fcn.140001150
mov r8, qword [rbp - 0x38]
lea rcx, [rbp + 0xe278]
mov qword [rbp - 0x30], rcx
lea rdx, [rbp + 0xe268]
call fcn.140001160
mov rcx, qword [rbp - 0x30]
call fcn.1400011f0
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 0x40
call rax
mov qword [rbp - 0x28], rax
jmp 0x1400010b2
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0xe278]
mov qword [rbp - 0x58], rcx
call fcn.140001220
mov rcx, qword [rbp - 0x58]
mov qword [rbp - 0x48], rax
call fcn.1400011f0
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov r8, rax
call fcn.140010ba0
mov rax, qword [rbp - 0x20]
call rax
jmp 0x1400010fa
mov dword [rbp + 0xe294], 0
lea rcx, [rbp + 0xe278]
call fcn.140001240
mov eax, dword [rbp + 0xe294]
add rsp, 0xe320
pop rbp
ret

Function at 0x1400027b4
Capabilities:
Parse pe header

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

Function at 0x1400074ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400072e8
Function at 0x14000a258
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 0x14000a288
xor eax, eax
jmp 0x14000a34b
mov rbp, rbx
cmp word [rax], si
je 0x14000a2ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000a294
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000a290
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.14000a178
movsxd r14, eax
test eax, eax
jne 0x14000a2eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000a281
mov rcx, r14
call fcn.14000860c
mov rdi, rax
test rax, rax
jne 0x14000a304
xor ecx, ecx
call fcn.14000866c
jmp 0x14000a2e0
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.14000a178
test eax, eax
jne 0x14000a335
mov rcx, rdi
call fcn.14000866c
jmp 0x14000a33f
xor ecx, ecx
call fcn.14000866c
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 0x14000d6b0
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.140009248
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000d73a
cmp byte [rbp - 0x21], r15b
je 0x14000d735
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000d770
call fcn.14000b82c
test eax, eax
jne 0x14000d75c
cmp byte [rbp - 0x21], r15b
je 0x14000d754
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000d770
cmp byte [rbp - 0x21], r15b
je 0x14000d76d
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.140008828
test eax, eax
jne 0x14000d810
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140009248
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000d7af
cmp byte [rbp - 0x21], r15b
je 0x14000d7e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000d7e4
call fcn.14000b82c
test eax, eax
jne 0x14000d7d0
cmp byte [rbp - 0x21], r15b
je 0x14000d7c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000d7e4
cmp byte [rbp - 0x21], r15b
je 0x14000d7e1
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.140008828
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000d810
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000d813
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000d821
mov rcx, rdi
call fcn.14000866c
cmp byte [rbp + 0x3f], r15b
je 0x14000d830
mov rcx, qword [rbp + 0x27]
call fcn.14000866c
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 0x140010710
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140010738
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140010738
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000bc20
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp qword [0x18002c418], 0
mov rdi, rcx
jne 0x18000bc80
xor edx, edx
lea rax, [0x18002c418]
lea r9, [0x18002acb0]
mov qword [rsp + 0x20], rax
lea rcx, [0x18002aca0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x18000bc76
xor eax, eax
jmp 0x18000bdd1
cmp qword [0x18002c418], 0
je 0x18000bc6f
mov rcx, qword [rdi + 0x38]
mov qword [rsp + 0x88], rsi
call qword [sym.imp.ProcessHacker.exe_PhReferenceProcessItem]
mov rsi, rax
test rax, rax
je 0x18000bcac
mov rcx, qword [rax + 0x50]
test rcx, rcx
jne 0x18000bcb3
mov rcx, rax
call qword [sym.imp.ProcessHacker.exe_PhDereferenceObject]
xor eax, eax
jmp 0x18000bdc9
mov edx, dword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xa8], rbx
xor ebx, ebx
shr edx, 1
mov qword [rsp + 0x80], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov r14, rax
test rax, rax
je 0x18000bdae
mov ecx, dword [rdi + 4]
mov qword [rsp + 0xb0], rbp
mov ebp, ebx
test ecx, ecx
je 0x18000bd1b
cmp ecx, 1
jne 0x18000bcfa
cmp dword [rdi + 8], ebx
jmp 0x18000bd07
cmp ecx, 2
jne 0x18000bd1b
mov rax, qword [rdi + 0x10]
or rax, qword [rdi + 8]
sete cl
test cl, cl
jne 0x18000bd1b
lea rcx, [rdi + 0x62]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbp, rax
mov r8d, dword [rdi]
mov edx, 6
mov r10, qword [0x18002c418]
mov ecx, r8d
mov r9d, dword [rdi + 0x18]
and cl, 0x20
mov eax, 0x11
mov rcx, r10
cmovne edx, eax
shr r8d, 1
mov r11, qword [r10]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
and r8d, 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov rdx, r14
mov qword [rsp + 0x20], rbp
call qword [r11 + 0x50]
test eax, eax
js 0x18000bd8f
cmp word [rsp + 0x60], bx
je 0x18000bd84
cmp word [rsp + 0x48], bx
setne bl
inc ebx
jmp 0x18000bd8f
cmp word [rsp + 0x48], bx
setne bl
add ebx, 3
test rbp, rbp
je 0x18000bd9d
mov rcx, rbp
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rbp, qword [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.ProcessHacker.exe_PhDereferenceObject]
mov r14, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180011980
add rsp, 0x90
pop rdi
ret
Function at 0x180012130
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x1800121c1
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1800121c1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800121c1
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1800121a5
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18001219f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1800121a7
add rdx, 0x28
jmp 0x180012184
xor edx, edx
test rdx, rdx
jne 0x1800121b0
xor al, al
jmp 0x1800121c7
test dword [rdx + 0x24], 0x80000000
je 0x1800121bd
xor al, al
jmp 0x1800121c7
mov al, 1
jmp 0x1800121c7
xor al, al
jmp 0x1800121c7
add rsp, 0x18
ret
Function at 0x140249500
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1403531c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rcx + 8]
cmp qword [rdx + 8], rax
jne 0x140249635
mov r9, rax
movups xmm1, xmmword [rcx]
movups xmm2, xmmword [rdx]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x20], xmm2
cmp rax, 0x20
jb 0x1402495f9
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x20]
movups xmm1, xmmword [r8]
mov rax, qword [rdx + 8]
movups xmm3, xmmword [r8 + 0x10]
movups xmmword [rsp + 0x50], xmm1
xor qword [rsp + 0x58], rax
mov rax, qword [rdx + 0x18]
movq rcx, xmm1
xor rcx, qword [rdx]
mov qword [rsp + 0x50], rcx
movq rcx, xmm3
xor rcx, qword [rdx + 0x10]
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x60], xmm3
xor qword [rsp + 0x68], rax
lea rax, [r8 + 0x20]
mov qword [rsp + 0x30], rax
lea rax, [rdx + 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rcx
add rax, 0xffffffffffffffe0
movups xmm1, xmmword [rsp + 0x60]
lea rcx, [r9 - 0x20]
mov qword [rsp + 0x48], rax
movaps xmm2, xmmword [rsp + 0x40]
mov qword [rsp + 0x38], rcx
movaps xmmword [rsp + 0x20], xmm2
movups xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
cmp rcx, 0x20
jb 0x1402495eb
mov r9, qword [rsp + 0x58]
jmp 0x140249541
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r9, xmm0
test r9, r9
je 0x140249620
movq rcx, xmm1
movq rdx, xmm2
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x140249610
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1402d55d0
add rsp, 0x88
ret
lea r8, str.C:UsersRosalyn_vcpkg_buildtrees_botanx64_windows_static_rel_buildincludepublic_botan_concepts.h
lea rdx, str.assert_equal_byte_lengths
lea rcx, str.memory_regions_dont_have_equal_lengths
call fcn.1402516f0
int3
Function at 0x14024d990
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [r11 - 0x78], r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rsp + 0x20], 1
mov qword [r11 + 0x10], rdx
test rdx, rdx
je 0x14024d9ea
movabs rax, 0x1fffffffffffffff
cmp rdx, rax
ja 0x14024db0c
lea rdx, [r11 + 0x10]
call fcn.14024d7e0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14d, dword [rsp + 0x2c]
test rsi, rsi
je 0x14024dafa
lea r15, [r14 + r14*2]
nop word [rax + rax]
mov r9d, 4
mov r8d, 0x3000
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14024daf0
lea rbp, [rax + r14]
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualLock]
mov rcx, rbx
test eax, eax
jne 0x14024da5d
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14024daf0
mov r8, r15
xor edx, edx
call fcn.1402f7260
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0xa8], r12d
mov edx, dword [rsp + 0x2c]
lea r9, [rsp + 0xa8]
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0xb0], r12d
mov edx, dword [rsp + 0x2c]
lea rcx, [rbx + r14*2]
lea r9, [rsp + 0xb0]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rsp + 0xb8], rbp
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14024dae0
mov qword [rdx], rbp
add qword [rdi + 8], 8
jmp 0x14024daf0
lea r8, [rsp + 0xb8]
mov rcx, rdi
call fcn.14024d680
sub rsi, 1
jne 0x14024da10
mov rax, rdi
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14024a5d0
int3
Function at 0x14024db40
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push r14
push r15
sub rsp, 0x58
mov rsi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, qword [rsi]
xor r15d, r15d
mov rax, qword [rsi + 8]
mov r14d, r15d
mov ebp, dword [rsp + 0x24]
sub rax, rcx
cmp rax, 8
jb 0x14024dc45
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x50], rdi
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rcx + r14*8]
xor eax, eax
mov rdi, rbx
mov rcx, rbp
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x24]
lea r9, [rsp + 0x80]
mov rdi, rbx
mov dword [rsp + 0x80], r15d
sub rdi, rbp
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x24]
lea rcx, [rbx + rbp]
lea r9, [rsp + 0x88]
mov dword [rsp + 0x88], r15d
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualUnlock]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsi]
inc r14
mov rax, qword [rsi + 8]
sub rax, rcx
sar rax, 3
cmp r14, rax
jne 0x14024db90
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x90]
add rsp, 0x58
pop r15
pop r14
pop rsi
pop rbp
ret

Function at 0x14024dd30
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0x15
lea rax, str.BOTAN_MLOCK_POOL_SIZE
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
movaps xmm0, xmmword [rsp + 0x20]
mov edi, 0x200
mov edx, edi
movdqa xmmword [rsp + 0x20], xmm0
call fcn.14024e0f0
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
test eax, eax
je 0x14024ddd7
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
imul rcx, rax, 0xb
mov rax, qword [rsp + 0x70]
cmp rax, rcx
jbe 0x14024ddd7
sub rax, rcx
cmp rbx, rdi
cmova rbx, rdi
shl rbx, 0xa
cmp rbx, rax
cmovb rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x80]
xor eax, eax
add rsp, 0x60
pop rdi
ret