joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001e90
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140001e90
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
lea rcx, [0x1400083b7]
call fcn.1400010d2
call fcn.140001019
xor ebp, ebp
mov qword [rsp + 0x78], rbp
call fcn.14000108c
mov rdi, qword [rax + 0x60]
test rdi, rdi
je 0x140002059
cmp dword [rdi + 0x118], 0xa
jne 0x140002059
lea rcx, [rsp + 0x78]
call fcn.1400010a0
mov rbx, rax
test rax, rax
je 0x140002059
movsx r8d, byte [rax]
lea rsi, [rax + 1]
sub qword [rsp + 0x78], 0x11
mov edx, ebp
movzx ecx, byte [rsi]
cmp ecx, r8d
je 0x140001f0b
nop
inc edx
mov eax, ecx
xor eax, edx
cmp eax, r8d
jne 0x140001f00
movsx eax, dl
mov ecx, ebp
movd xmm1, eax
mov rax, rsi
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax]
add ecx, 0x10
lea rax, [rax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [rax - 0x10], xmm0
cmp ecx, 0x10
jb 0x140001f30
movsxd rax, ecx
cmp rax, 0x10
jae 0x140001f6d
add rax, rsi
nop word [rax + rax]
xor byte [rax], dl
lea rax, [rax + 1]
inc ecx
cmp ecx, 0x10
jb 0x140001f60
mov rax, qword [rdi + 0x18]
lea rdx, [rsp + 0x88]
mov rcx, qword [rax + 0x20]
mov rcx, qword [rcx]
mov qword [rsp + 0x88], rbp
mov rcx, qword [rcx + 0x20]
call fcn.140001091
test eax, eax
je 0x140002059
cmp qword [rsp + 0x88], rbp
je 0x140002059
call fcn.14000101e
test eax, eax
je 0x140002059
call fcn.140001023
call fcn.140001032
lea rdx, [rsp + 0x80]
mov dword [rsp + 0x70], ebp
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x80], rbp
call fcn.140001055
test eax, eax
je 0x140002059
mov rcx, qword [rsp + 0x80]
call fcn.14000103c
mov r8, qword [rsp + 0x78]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
lea r9, [rsp + 0x38]
lea rdx, [rbx + 0x11]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
call fcn.1400010b4
test eax, eax
je 0x140002059
mov r9, qword [rsp + 0x78]
mov r8d, 0x10
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140001041
test eax, eax
je 0x140002059
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
call fcn.1400010aa
xor eax, eax
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140002120
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x140002120
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, ecx
lea rcx, [0x14000847e]
call fcn.1400010d2
mov rax, qword gs:[0x60]
mov rbx, qword [rax + 0x18]
mov rbx, qword [rbx + 0x20]
test rbx, rbx
je 0x140002195
mov ebp, 0x102
nop dword [rax]
movzx edx, word [rbx + 0x48]
lea eax, [rdx - 1]
cmp ax, bp
ja 0x140002195
mov rcx, qword [rbx + 0x50]
mov edi, edx
shr rdi, 1
mov edx, edi
call fcn.14000105f
mov rcx, rax
mov byte [rax + rdi - 4], 0
call fcn.140001050
cmp esi, eax
je 0x1400021ac
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140002160
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x140002197
Function at 0x140002200
Capabilities:
Parse pe header

Disassembly:
jmp 0x140002200
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov rdi, rcx
mov r14d, edx
lea rcx, [0x14000847e]
call fcn.1400010d2
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140002327
movsxd rax, dword [rdi + 0x3c]
add rax, rdi
cmp dword [rax], 0x4550
jne 0x140002327
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp + 0x20]
xor ebx, ebx
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov ebp, dword [rsp + 0x90]
add rbp, rdi
mov r15d, dword [rbp + 0x20]
mov r12d, dword [rbp + 0x1c]
add r15, rdi
mov r13d, dword [rbp + 0x24]
add r12, rdi
add r13, rdi
cmp dword [rbp + 0x14], ebx
jbe 0x140002327
movzx eax, word [r13 + rbx*2]
mov ecx, dword [r15 + rbx*4]
add rcx, rdi
mov esi, dword [r12 + rax*4]
add rsi, rdi
call fcn.140001050
cmp r14d, eax
je 0x14000234a
inc ebx
cmp ebx, dword [rbp + 0x14]
jb 0x140002302
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140002329

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400023b0
sub rsp, 0x28
lea rcx, [0x14000847e]
call fcn.1400010d2
mov ecx, 0x43708c00
call fcn.140001064
mov rcx, rax
mov edx, 0x2120e60b
add rsp, 0x28
jmp fcn.1400010be
Function at 0x140002530
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x140002530
sub rsp, 0x48
lea rcx, [0x14000847e]
call fcn.1400010d2
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
call fcn.14000107d
cmp dword [rax], 0x15e
jle 0x1400025d2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetCriticalSectionSpinCount]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetWindowContextHelpId]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_RegisterClassW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_IsWindowVisible]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
xor r9d, r9d
mov dword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_IsDialogMessageW]
jmp 0x1400025f9
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x70797243
mov dword [rsp + 0x34], 0x2e707374
mov word [rsp + 0x38], 0x6c64
mov byte [rsp + 0x3a], 0x6c
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
add rsp, 0x48
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
movabs qword [0x3751b3958700b550], rax
movabs dword [0x9d2e60be8f62543f], eax
push rsp
invalid
invalid
mov esi, 0xcc9d2e60
push rsp
invalid
fidiv dword [rsi + 0x7e]
jbe 0x14000e46b
and eax, 0xb175c912
out dx, eax
push rsp
invalid
invalid
sub byte [rdi], bl
push rcx
jg 0x14000e483
lodsd eax, dword [rsi]
ret
wait
invalid
Function at 0x14000f99f
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x14005ed0f]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x3f20], ebx
jne 0x14000fa35
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.1400233cf
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14002223f
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400e0b1f]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1400222a2
mov qword [rsp], rbx
lea rbx, [0x14005ed0f]
nop dword [rax]
cmp r9b, 0x23
jne 0x140022282
cmp byte [r8], r9b
jne 0x140022282
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14002226f
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c10]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x1400222d6
mov r10, qword [r10 + 0x5c18]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x1400222dd
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x1400222c3
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x14004ed3f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x14004ed73
cmp ecx, r10d
jge 0x14004ed61
mov rcx, rbx
call fcn.14004e53f
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x14004edad
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x14004ed8f
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x14004edd5
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14004ee04
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14004edee
xor dl, dl
jmp 0x14004edf7
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14004ede5
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x14004edb1
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14004ee6e
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14004ee88
mov rcx, rbx
call fcn.14004e68f
test eax, eax
je 0x14004ee61
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.14005d019
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x14005cbb3
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14005e0bf]
test rax, rax
je 0x14005cbfd
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005cbfd
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005cbfd
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005cbfd
cmp dword [rcx + 0x84], 0xe
jbe 0x14005cbfd
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005cbff
xor al, al
add rsp, 0x28
ret
Function at 0x140005110
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
xor edx, edx
mov r13, rcx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140005325
lea r15, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x40], 0x130
mov rdx, r15
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140005280
lea r12, [rsp + 0x30]
lea r14, [rsp + 0x6c]
jmp 0x1400051c5
cmp rax, 1
je 0x140005270
test rax, rax
jne 0x140005308
mov rax, r12
mov qword [rsp + 0x28], rbx
mov byte [rax + rbx], 0
mov r8, qword [rsp + 0x28]
cmp r8, qword [r13 + 8]
je 0x140005218
mov rcx, qword [rsp + 0x20]
cmp rcx, r12
je 0x1400051b2
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.1400c6fe0
mov rdx, r15
mov rcx, rbp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140005280
mov rcx, r14
mov qword [rsp + 0x20], r12
call sub.msvcrt.dll_strlen
mov rbx, rax
cmp rax, 0xf
jbe 0x140005170
lea rcx, [rax + 1]
call fcn.1400c7020
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rax
cmp ebx, 8
jae 0x140005288
test bl, 4
jne 0x140005310
test ebx, ebx
jne 0x1400052e0
mov rax, qword [rsp + 0x20]
jmp 0x140005186
mov rdx, qword [r13]
mov rbx, qword [rsp + 0x20]
test r8, r8
je 0x140005236
mov rcx, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400052c0
cmp rbx, r12
je 0x14000524c
mov rax, qword [rsp + 0x30]
mov rcx, rbx
lea rdx, [rax + 1]
call fcn.1400c6fe0
mov ebx, dword [rsp + 0x48]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rsp + 0x6c]
mov byte [rsp + 0x30], al
jmp 0x140005183
xor ebx, ebx
jmp 0x140005250
mov rdx, qword [r14]
lea rdi, [rax + 8]
mov rsi, r14
and rdi, 0xfffffffffffffff8
mov qword [rax], rdx
mov edx, ebx
mov rcx, qword [r14 + rdx - 8]
mov qword [rax + rdx - 8], rcx
sub rax, rdi
sub rsi, rax
add eax, ebx
shr eax, 3
mov ecx, eax
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rsp + 0x20]
jmp 0x140005186
cmp rbx, r12
je 0x1400051b2
mov rax, qword [rsp + 0x30]
mov rcx, rbx
lea rdx, [rax + 1]
call fcn.1400c6fe0
jmp 0x1400051b2
movzx edx, byte [r14]
mov byte [rax], dl
test bl, 2
je 0x140005208
mov edx, ebx
movzx ecx, word [r14 + rdx - 2]
mov word [rax + rdx - 2], cx
jmp 0x140005208
mov rax, r12
jmp 0x1400051ee
mov edx, dword [r14]
mov dword [rax], edx
mov edx, ebx
mov ecx, dword [r14 + rdx - 4]
mov dword [rax + rdx - 4], ecx
jmp 0x140005208
mov ecx, 0x10
call fcn.1400c7100
lea rdx, str.Failed_to_create_snapshot_of_processes.
mov rcx, rax
mov rbx, rax
call fcn.14009d4d0
lea r8, [fcn.14009d720]
lea rdx, [0x1400d6ec0]
mov rcx, rbx
call fcn.1400c77c0
mov rsi, rax
mov rcx, rbx
call fcn.1400c7460
mov rcx, rsi
call fcn.140015ab0
nop
nop dword [rax + rax]
Function at 0x1400077d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov eax, 0x13c8
push rdi
push rsi
push rbx
call fcn.1400156c0
sub rsp, rax
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
js 0x1400079a1
pxor xmm0, xmm0
mov qword [rcx + 0x10], 0
movups xmmword [rcx], xmm0
je 0x14000798b
mov rcx, rdx
call fcn.1400c7020
lea rdi, [rax + rbx]
mov qword [rsi], rax
lea rcx, [rax + 1]
mov qword [rsi + 0x10], rdi
mov byte [rax], 0
sub rbx, 1
jne 0x140007979
mov qword [rsi + 8], rcx
lea rbx, [rsp + 0x9f0]
lea rdi, [rsp + 0x20]
lea rbp, [rsp + 0xa00]
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0xa00], 0x61666564
mov qword [rsp + 0x9f0], rbp
mov dword [rsp + 0xa03], 0x746c7561
mov qword [rsp + 0x9f8], 7
mov byte [rsp + 0xa07], 0
call fcn.14009d1b0
mov rcx, qword [rsp + 0x9f0]
cmp rcx, rbp
je 0x14000789d
mov rax, qword [rsp + 0xa00]
lea rdx, [rax + 1]
call fcn.1400c6fe0
mov rcx, rdi
call fcn.14009d3b0
mov dword [rsp + 0x9f0], eax
mov ecx, eax
mov edx, 1
nop dword [rax + rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
lea ecx, [rax + rdx]
mov dword [rbx + rdx*4], ecx
add rdx, 1
cmp rdx, 0x270
jne 0x1400078b8
mov r9, qword [rsi + 8]
mov r8, qword [rsi]
mov qword [rsp + 0x13b0], 0x270
cmp r8, r9
jne 0x140007944
jmp 0x140007962
lea rdx, [rax + 1]
mov eax, dword [rsp + rax*4 + 0x9f0]
add r8, 1
mov qword [rsp + 0x13b0], rdx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
shl ecx, 7
and ecx, 0x9d2c5680
xor eax, ecx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc60000
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor eax, ecx
shr rax, 0x18
mov byte [r8 - 1], al
cmp r9, r8
je 0x140007962
mov rax, rdx
cmp rdx, 0x26f
jbe 0x1400078f8
mov rcx, rbx
call fcn.1400a9e30
mov rax, qword [rsp + 0x13b0]
jmp 0x1400078f8
mov rcx, rdi
call fcn.14009d0f0
mov rax, rsi
add rsp, 0x13c8
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, rdi
jmp 0x140007829
mov qword [rcx], 0
mov qword [rcx + 0x10], 0
xor ecx, ecx
jmp 0x140007829
lea rcx, str.cannot_create_std::vector_larger_than_max_size__
call fcn.1400c8f10
mov rcx, rdi
mov rbx, rax
call fcn.14009d0f0
mov rcx, qword [rsi]
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
test rcx, rcx
je 0x1400079cc
call fcn.1400c6fe0
mov rcx, rbx
call fcn.140015ab0
mov rdi, rax
mov rcx, rbx
call fcn.1400aeb20
mov rbx, rdi
jmp 0x1400079b8

Function at 0x140014900
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001edc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001edc0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140014970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400fc164]
mov rbx, rcx
test esi, esi
jle 0x140014aa0
mov rax, qword [0x1400fc168]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400149bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014a45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400149a0
mov rcx, rbx
call fcn.1400153e0
mov rdi, rax
test rax, rax
je 0x140014ac2
mov rax, qword [0x1400fc168]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140015520
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400fc168]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014aa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140014a3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140014a50
add dword [0x1400fc164], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400fc168]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140014a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014900
nop dword [rax]
xor esi, esi
jmp 0x1400149c8
mov rax, qword [0x1400fc168]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140014900
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140014900
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140015050
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400fc1c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400fc1a0]
test rbx, rbx
je 0x1400150ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400150a3
test eax, eax
jne 0x1400150a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140015088
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400153e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400d4770]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140015400
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140015408
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140015400
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001545d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140015454
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140015400
add rax, 0x28
cmp rax, r9
jne 0x140015440
xor eax, eax
ret

Function at 0x140015460
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400d4770]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001547f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140015488
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001547f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140015520
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400d4770]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001553f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140015548
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140016430
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140016460
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140016480
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400164b0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140088fb0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.msvcrt.dll__read]
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call fcn.140088dc0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call rbp
movsxd r13, eax
cmp eax, 0xffffffff
je 0x140089000
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call r12
cmp dword [rax], 4
je 0x140088fd3
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14009d3b0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [0x1400d4870]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 8]
mov r13, rcx
test rax, rax
je 0x14009d400
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x14009d484
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp rax
mov rdi, qword [sym.imp.msvcrt.dll__read]
mov ebx, 4
lea rsi, [rsp + 0x24]
mov r12, qword [sym.imp.msvcrt.dll__errno]
nop dword [rax + rax]
mov ecx, dword [r13 + 0x10]
mov r8d, ebx
mov rdx, rsi
call rdi
test eax, eax
jle 0x14009d460
cdqe
add rsi, rax
sub rbx, rax
jne 0x14009d420
mov eax, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x14009d484
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp eax, 0xffffffff
jne 0x14009d46d
call r12
cmp dword [rax], 4
je 0x14009d420
mov rax, qword [rsp + 0x28]
sub rax, qword [rbp]
jne 0x14009d484
lea rcx, str.random_device_could_not_be_read
call fcn.1400c8fb0
call fcn.140016480
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x1400d4460]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov eax, dword [rax - 8]
test eax, eax
mov rax, qword [rcx + 8]
jg 0x14009d4c0
mov dword [rax - 8], 1
ret
lock add dword [rax - 8], 1
ret