joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031764
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, r8
mov rdi, rcx
mov rax, rcx
mov rdx, qword [rcx + 0x18]
cmp rdx, 8
jb 0x1400317a4
mov rax, qword [rcx]
mov rcx, qword [rcx + 0x10]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x60], rax
mov r9d, 0x5c
cmp word [rax - 2], r9w
je 0x1400317e5
cmp rcx, rdx
jae 0x1400317dd
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 8
jb 0x1400317d7
mov rax, qword [rdi]
mov dword [rax + rcx*2], r9d
jmp 0x1400317e5
mov rcx, rdi
call fcn.14000de14
mov rcx, qword [rdi + 0x10]
cmp rcx, qword [rdi + 0x18]
jae 0x14003180d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x140031804
mov rax, qword [rdi]
mov dword [rax + rcx*2], 0x2a
jmp 0x14003181b
mov r9d, 0x2a
mov rcx, rdi
call fcn.14000de14
mov dword [rsp + 0x20], 0x65002e
mov dword [rsp + 0x24], 0x650078
xor eax, eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000dd00
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003184f
mov rcx, qword [rdi]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x1400318f8
test dword [rsp + 0x70], 0x4c14
jne 0x1400318b7
cmp word [rbp - 0x64], 0x2e
je 0x1400318b7
lea rax, [rbp - 0x64]
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbx + 8]
cmp qword [rbx + 0x10], rax
je 0x1400318a5
lea rdx, [rbp - 0x64]
mov rcx, rax
call fcn.14000d330
add qword [rbx + 8], 0x20
jmp 0x1400318b7
lea r8, [rbp + 0x1f8]
mov rdx, rax
mov rcx, rbx
call fcn.14003144c
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14003186c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
or qword [rsp + 0x30], 0xffffffffffffffff
mov rcx, rdi
call fcn.140002adc
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov eax, dword gs:[0x68]
lea rcx, vtable.std::exception.0
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x50], 0xd0001d10
mov dword [rsp + 0x54], eax
lea rdx, [0x14008ec40]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x140031d5c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rdx, rcx
test rcx, rcx
je 0x140031da4
movzx r8d, word [rcx]
test r8w, r8w
je 0x140031da4
mov r9d, 0x811c9dc5
lea eax, [r8 - 0x41]
cmp ax, 0x19
lea ecx, [r8 + 0x20]
lea rdx, [rdx + 2]
cmova cx, r8w
movzx r8d, word [rdx]
movzx eax, cx
xor eax, r9d
imul r9d, eax, 0x1000193
test r8w, r8w
jne 0x140031d74
mov eax, r9d
ret
xor eax, eax
ret
Function at 0x140031da8
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rax - 0x48], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov r13, rcx
mov qword [rsp + 0x48], rdx
xor r15d, r15d
mov dword [rsp + 0x34], r15d
xor ebx, ebx
mov qword [rax - 0x58], rbx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
test rbx, rbx
je 0x140031e09
test r12d, r12d
je 0x140031e09
mov r8d, r12d
xor edx, edx
mov rcx, rbx
call fcn.140060230
nop
and dword [rsp + 0xb8], 0
mov eax, dword [0x140092168]
mov dword gs:[0x68], eax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9, rbx
xor r8d, r8d
mov edx, r15d
mov rcx, qword [r13]
call fcn.14005f720
nop
mov dword [r14], eax
cmp eax, 0xc0000023
je 0x140031e59
cmp eax, 0x80000005
jne 0x140031f07
mov eax, dword [rsp + 0xb8]
test eax, eax
je 0x140031f85
add eax, 2
mov dword [rsp + 0xb8], eax
mov r8d, eax
mov rax, qword gs:[0x60]
mov edx, 8
mov rcx, qword [rax + 0x30]
test rbx, rbx
je 0x140031e9d
mov r9d, r8d
mov r8, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
nop
jmp 0x140031ea4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop
mov qword [rsp + 0x40], rax
mov rbx, rax
test rax, rax
jne 0x140031ebd
mov dword [r14], 0xc000009a
jmp 0x140031f92
mov r12d, dword [rsp + 0xb8]
mov dword [rsp + 0x30], r12d
mov eax, dword [0x140092168]
mov dword gs:[0x68], eax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9, rbx
xor r8d, r8d
mov edx, r15d
mov rcx, qword [r13]
call fcn.14005f720
nop
mov dword [r14], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
test eax, eax
js 0x140031f73
cmp dword [rbx + 0xc], 0
jbe 0x140031f73
lea rcx, [rbx + 0x10]
call fcn.140031d5c
nop
xor eax, 0x530cff3
mov dword [rsp + 0x38], eax
mov rdx, qword [rdi + 8]
cmp qword [rdi + 0x10], rdx
je 0x140031f3c
mov qword [rsp + 0x58], rdx
mov dword [rdx], eax
add qword [rdi + 8], 4
jmp 0x140031f4a
lea r8, [rsp + 0x38]
mov rcx, rdi
call fcn.140031244
nop
jmp 0x140031f73
inc r15d
mov dword [rsp + 0x34], r15d
cmp dword [r14], 0
jge 0x140031df1
cmp dword [r14], 0x8000001a
jne 0x140031f92
and dword [r14], 0
test rbx, rbx
je 0x140031fb8
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop
and qword [rsp + 0x40], 0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
Function at 0x140039304
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, r8
mov r14, rdx
mov r10, rcx
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
lea rsi, [rbx + 0x10]
movzx eax, byte [rsi + r9]
xor r8, rax
movabs rcx, 0x100000001b3
imul r8, rcx
inc r9
cmp r9, 8
jb 0x14003933b
mov rdx, qword [r10 + 0x30]
and rdx, r8
add rdx, rdx
mov rcx, qword [r10 + 0x18]
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x140039392
cmp qword [rcx + rdx*8], rbx
jne 0x140039387
mov rax, qword [r10 + 8]
mov qword [rcx + rdx*8], rax
mov rax, qword [r10 + 8]
mov rcx, qword [r10 + 0x18]
jmp 0x14003938b
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14003939f
cmp qword [rcx + rdx*8], rbx
jne 0x14003939f
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rdi, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r10 + 0x10]
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400393cc
mov rax, qword [rcx]
call qword [rax + 0x10]
and qword [rsi + 8], 0
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [r14], rdi
mov rax, r14
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14003e38c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov byte [rax + 0x18], r8b
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r15, r9
mov r14, rdx
mov r13, rcx
lea rbx, [rdx + 0xd0]
mov qword [rbp + 0x48], rbx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
nop
mov r10, qword [r14 + 0x100]
mov rdi, qword [r14 + 0xf8]
jmp 0x14003e402
lea rcx, [rdi + 0x30]
cmp qword [rdi + 0x48], 8
jb 0x14003e3ed
mov rcx, qword [rcx]
call fcn.140031d5c
xor eax, 0x530cff3
cmp eax, 0x1cf2270f
je 0x14003e407
add rdi, 0x58
cmp rdi, r10
jne 0x14003e3df
xor r12d, r12d
cmp rdi, r10
jne 0x14003e41b
mov dword [r15], 0xd0001413
jmp 0x14003e5b2
mov rsi, qword [r13 + 0x140]
test rsi, rsi
jne 0x14003e521
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.14000f014
nop
mov ecx, 0x5a4d
mov rax, qword [rbp - 0x10]
cmp word [rax], cx
jne 0x14003e586
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
cmp dword [rsi], 0x4550
jne 0x14003e586
mov dword [rbp - 0x28], 0x7865742e
mov dword [rbp - 0x24], 0x74
xor eax, eax
mov dword [rbp - 0x20], eax
mov eax, dword [rbp - 0x28]
lea rdx, [0x140096a70]
cmp qword [0x140096a88], 0x10
cmovae rdx, qword [0x140096a70]
lea r9, [rbp - 0x28]
mov r8, qword [0x140096a80]
mov rcx, qword [rbp - 0x10]
call fcn.14000b6f4
mov rcx, rax
test rax, rax
jne 0x14003e4d9
cmp qword [rbp - 0x10], r12
je 0x14003e4d0
mov eax, dword [0x14009220c]
mov dword gs:[0x68], eax
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
call fcn.14005f720
mov rbx, qword [rbp + 0x48]
jmp 0x14003e5a7
mov rbx, qword [rbp + 0x48]
jmp 0x14003e5ab
movsxd rax, dword [0x140096a90]
mov eax, dword [rcx + rax]
sub eax, dword [rsi + 0x34]
mov esi, eax
mov qword [r13 + 0x140], rsi
cmp qword [rbp - 0x10], r12
je 0x14003e514
mov eax, dword [0x14009220c]
mov dword gs:[0x68], eax
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
call fcn.14005f720
mov qword [rbp - 0x10], r12
mov rbx, qword [rbp + 0x48]
test rsi, rsi
je 0x14003e5ab
mov rdx, qword [rdi]
add rdx, rsi
mov eax, dword [0x1400921ec]
mov dword gs:[0x68], eax
lea r8, [r13 + 0x148]
mov qword [rsp + 0x20], r12
mov r12d, 1
mov r9d, r12d
mov rcx, qword [r14]
call fcn.14005f720
mov dword [r15], eax
mov rdx, qword [rdi]
add rdx, rsi
mov eax, dword [0x1400921e0]
mov dword gs:[0x68], eax
and qword [rsp + 0x20], 0
mov r9d, r12d
lea r8, [rbp + 0x50]
mov rcx, qword [r14]
call fcn.14005f720
xor r12d, r12d
mov dword [r15], r12d
jmp 0x14003e5b2
cmp qword [rbp - 0x10], r12
je 0x14003e5ab
mov eax, dword [0x14009220c]
mov dword gs:[0x68], eax
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
call fcn.14005f720
mov qword [rbp - 0x10], r12
mov dword [r15], 0xc0000001
test rbx, rbx
je 0x14003e5c4
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov qword [rbp + 0x48], r12
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140048ba4
Capabilities:
Delete registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x178]
sub rsp, 0x278
mov qword [rsp + 0x48], 0xfffffffffffffffe
lea rcx, [0x140070d80]
call fcn.1405fa65a
nop
mov rbx, rax
mov qword [rsp + 0x50], rax
lea r9, [rbp + 0x1a0]
lea r8, [rbp + 0x1b0]
mov edx, 0x2001f
mov rcx, rax
call fcn.14000c118
nop
mov rcx, rbx
call fcn.1405fa68e
nop
xor esi, esi
cmp dword [rbp + 0x1a0], esi
jl 0x140048cb3
mov rbx, qword [rbp + 0x1b0]
mov qword [rbp + 0x1b8], rbx
mov dword [rbp + 0x1a8], 1
lea rcx, [0x140070e00]
call fcn.1405fa65a
nop
mov rdi, rax
mov qword [rsp + 0x58], rax
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x140048c3a
add ax, ax
mov word [rsp + 0x38], ax
add ax, 2
mov word [rsp + 0x3a], ax
mov qword [rsp + 0x40], rdi
mov eax, dword [0x1400920e8]
mov dword gs:[0x68], eax
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14005f720
mov dword [rbp + 0x1a0], eax
mov rcx, rdi
call fcn.1405fa68e
nop
nop
test rbx, rbx
je 0x140048cb3
mov rcx, rbx
call qword [0x140068658]
mov qword [rbp + 0x1b8], rsi
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.140060230
lea rcx, [0x140071060]
call fcn.1405fa65a
nop
mov rbx, rax
mov qword [rsp + 0x60], rax
lea r8, [0x140097f30]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14004a450
mov edi, eax
mov rcx, rbx
call fcn.1405fa68e
nop
test edi, edi
jle 0x140048d51
lea r9, [rbp + 0x1a0]
lea r8, [rbp + 0x1b0]
mov edx, 0x3001f
lea rcx, [rsp + 0x70]
call fcn.14000c118
cmp dword [rbp + 0x1a0], esi
jl 0x140048d51
mov rbx, qword [rbp + 0x1b0]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
nop
test rbx, rbx
je 0x140048d51
mov rcx, rbx
call qword [0x140068658]
mov qword [rsp + 0x30], rsi
add rsp, 0x278
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400497f8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r13, rcx
lea rcx, [rbp - 0x59]
call fcn.1400090e4
nop
lea r8, [rbp - 0x59]
cmp qword [rbp - 0x41], 0x10
cmovae r8, qword [rbp - 0x59]
movabs rcx, 0xcbf29ce484222325
xor edx, edx
mov r15, qword [rbp - 0x49]
test r15, r15
je 0x140049875
movzx eax, byte [rdx + r8]
xor rcx, rax
movabs r9, 0x100000001b3
imul rcx, r9
inc rdx
cmp rdx, r15
jb 0x140049857
mov rsi, qword [r13 + 0x80]
and rsi, rcx
add rsi, rsi
mov rax, qword [r13 + 0x68]
mov rbx, qword [rax + rsi*8]
mov r14, qword [r13 + 0x58]
cmp qword [rax + rsi*8], r14
jne 0x140049899
mov rax, r14
jmp 0x1400498a1
mov rax, qword [rax + rsi*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14004990f
lea rdi, [rbx + 0x10]
lea rdx, [rbp - 0x59]
cmp qword [rbp - 0x41], 0x10
cmovae rdx, qword [rbp - 0x59]
mov r12, qword [rdi + 0x10]
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400498c9
mov rcx, qword [rdi]
cmp r12, r15
jne 0x1400498da
mov r8, r12
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400498e3
mov rbx, qword [rbx]
mov rax, qword [r13 + 0x68]
jmp 0x14004988e
cmp qword [rdi + 0x18], 0x10
jb 0x1400498ed
mov rdi, qword [rdi]
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 0x10
cmovae rcx, qword [rbp - 0x59]
cmp r15, r12
jne 0x14004990f
mov r8, r15
mov rdx, rdi
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140049912
mov rbx, r14
lea rcx, [rbp - 0x59]
call fcn.140002bac
cmp rbx, qword [r13 + 0x58]
jne 0x1400499fb
mov rdx, qword [rbp + 0x6f]
lea rcx, [rbp - 0x29]
call fcn.14004954c
nop
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.140001bc0
mov rbx, rax
mov rdx, qword [rbp + 0x6f]
lea rcx, [rbp + 0xf]
call fcn.1400090e4
nop
mov rcx, qword [r13 + 0x58]
mov rsi, qword [rcx]
mov r14, qword [rsi + 8]
mov qword [rsp + 0x20], rbx
mov r9, rax
mov r8, r14
mov rdx, rsi
call fcn.14004a9a0
mov rdx, rax
mov rax, qword [r13 + 0x60]
movabs rcx, 0x3fffffffffffffe
sub rcx, rax
cmp rcx, 1
jb 0x140049a20
inc rax
mov qword [r13 + 0x60], rax
mov qword [rsi + 8], rdx
mov qword [r14], rdx
mov r9, qword [r13 + 0x58]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
lea rdx, [rbp - 1]
lea rcx, [r13 + 0x50]
call fcn.14004a604
mov rbx, qword [rbp - 1]
lea rcx, [rbp + 0xf]
call fcn.140002bac
nop
cmp qword [rbp - 0x31], 0
je 0x1400499f2
mov eax, dword [0x14009220c]
mov dword gs:[0x68], eax
mov rdx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x39]
call fcn.14005f720
and qword [rbp - 0x31], 0
lea rcx, [rbp - 0x29]
call fcn.140002adc
lea rax, [rbx + 0x30]
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str.list_T__too_long
call fcn.14005fb5c
int3
Function at 0x14004aa1c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r9, [r8 + 0x10]
mov rdi, rdx
cmp qword [r9 + 0x18], 0x10
mov r11, rcx
mov rbx, qword [r9 + 0x10]
jb 0x14004aa3e
mov r9, qword [r9]
xor r10d, r10d
movabs rcx, 0xcbf29ce484222325
test rbx, rbx
je 0x14004aa6e
movzx eax, byte [r10 + r9]
movabs rdx, 0x100000001b3
xor rcx, rax
inc r10
imul rcx, rdx
cmp r10, rbx
jb 0x14004aa50
mov rdx, qword [r11 + 0x30]
and rdx, rcx
mov rcx, qword [r11 + 0x18]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], r8
jne 0x14004aaa6
cmp qword [rcx + rdx*8], r8
jne 0x14004aa9b
mov rax, qword [r11 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r11 + 0x18]
mov rax, qword [r11 + 8]
jmp 0x14004aa9f
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14004aab3
cmp qword [rcx + rdx*8], r8
jne 0x14004aab3
mov rax, qword [r8]
mov qword [rcx + rdx*8], rax
lea rcx, [r11 + 8]
mov rdx, rdi
call fcn.14004a908
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140050378
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov esi, edx
lea r8, [rbp + 0x98]
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.14000d3b8
cmp dword [rbp + 0x98], 0
jge 0x1400503bc
xor al, al
jmp 0x14005051d
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or edi, 0xffffffff
cmp eax, edi
je 0x1400504f6
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x90]
mov r8d, 0x40
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400504f6
cmp dword [rbp + 0x90], 0x40
jne 0x1400504f6
mov eax, 0x5a4d
cmp word [rsp + 0x50], ax
jne 0x1400504f6
mov edx, dword [rbp - 0x74]
test edx, edx
je 0x1400504f6
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
je 0x1400504f6
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x90]
mov edi, 0x108
mov r8d, edi
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400504f6
cmp dword [rbp + 0x90], edi
jne 0x1400504f6
cmp dword [rsp + 0x50], 0x4550
jne 0x1400504f6
mov eax, 0x8664
cmp word [rsp + 0x54], ax
jne 0x1400504f6
movzx eax, word [rsp + 0x66]
mov ecx, 0x2022
and ax, cx
cmp ax, cx
jne 0x1400504f6
mov eax, 0x20b
cmp word [rsp + 0x68], ax
jne 0x1400504f6
movzx eax, word [rbp - 0x54]
sub ax, 2
mov di, 1
cmp ax, di
ja 0x1400504f6
test byte [rbp - 0x52], 0x40
je 0x1400504f6
cmp dword [rsp + 0x78], 0
je 0x1400504f6
cmp dword [rbp - 0x2c], 0x10
jb 0x1400504f6
cmp dword [rbp + 0x48], 0
jne 0x1400504f6
cmp dword [rbp + 0x4c], 0
jne 0x1400504f6
cmp dword [rbp - 0x10], 0
je 0x1400504f6
cmp dword [rbp - 0xc], 0
je 0x1400504f6
cmp dword [rbp - 0x60], esi
jae 0x1400504f9
xor dil, dil
test rbx, rbx
je 0x140050514
mov ecx, dword [0x1400921fc]
mov dword gs:[0x68], ecx
mov rcx, rbx
call fcn.14005f720
and qword [rsp + 0x38], 0
mov al, dil
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005127c
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, rdx
mov rbp, rcx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
xor r15d, r15d
mov rdi, rax
test rax, rax
jne 0x1400512b2
mov eax, 0xc000007b
jmp 0x140051316
mov r8d, dword [rax + 0x50]
xor edx, edx
mov rcx, r14
call fcn.140060230
mov r8d, dword [rdi + 0x54]
mov rdx, rbp
mov rcx, r14
call fcn.14005fdc0
movzx ebx, word [rdi + 0x14]
movzx esi, r15w
add rbx, 0x28
cmp r15w, word [rdi + 6]
jae 0x140051314
add rbx, rdi
test dword [rbx + 0x14], 0xe0000000
je 0x140051307
cmp dword [rbx], r15d
je 0x140051307
mov edx, dword [rbx + 4]
mov ecx, dword [rbx - 4]
add rdx, rbp
mov r8d, dword [rbx]
add rcx, r14
call fcn.14005fdc0
inc si
add rbx, 0x28
cmp si, word [rdi + 6]
jb 0x1400512e5
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400513c0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rcx, qword [0x1400987c0]
test rcx, rcx
jne 0x1400514a5
mov rax, qword gs:[0x60]
xor edi, edi
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax]
mov rax, qword gs:[0x60]
mov rbp, qword [rcx + 0x30]
mov rsi, qword [rax + 0x18]
test rsi, rsi
je 0x140051438
add rsi, 0x10
mov rbx, qword [rsi]
call qword [sym.imp.ntdll.dll_RtlAcquirePebLock]
jmp 0x140051428
cmp qword [rbx + 0x30], rbp
je 0x14005142f
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x14005141f
jmp 0x140051432
mov rdi, rbx
call qword [sym.imp.ntdll.dll_RtlReleasePebLock]
mov rbx, qword [rdi + 0x30]
lea rcx, [rdi + 0x58]
mov eax, dword [rdi + 0x40]
lea rsi, [rbx - 1]
add rsi, rax
test rcx, rcx
je 0x14005145b
lea rdx, [rsp + 0x30]
call fcn.140051330
jmp 0x140051460
mov eax, 0xc000000d
test eax, eax
jns 0x140051468
xor eax, eax
jmp 0x1400514a8
mov eax, dword [rsp + 0x30]
and eax, 0x1f
add rdi, 0x70
mov dword [rsp + 0x30], eax
mov rcx, qword [rdi]
cmp rcx, rdi
je 0x14005149e
cmp rcx, rbx
jb 0x140051489
cmp rcx, rsi
jb 0x14005148e
mov rcx, qword [rcx]
jmp 0x14005147a
shl rax, 4
sub rcx, rax
mov qword [0x1400987c0], rcx
jmp 0x1400514a5
mov rcx, qword [0x1400987c0]
mov rax, rcx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14005150c
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, rcx
mov rax, rcx
mov rdx, qword [rcx + 0x18]
cmp rdx, 8
jb 0x140051544
mov rax, qword [rcx]
mov rcx, qword [rcx + 0x10]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x60], rax
mov r9d, 0x5c
cmp word [rax - 2], r9w
je 0x140051585
cmp rcx, rdx
jae 0x14005157d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 8
jb 0x140051577
mov rax, qword [rbx]
mov dword [rax + rcx*2], r9d
jmp 0x140051585
mov rcx, rbx
call fcn.14000de14
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x1400515ad
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400515a4
mov rax, qword [rbx]
mov dword [rax + rcx*2], 0x2a
jmp 0x1400515bb
mov r9d, 0x2a
mov rcx, rbx
call fcn.14000de14
mov dword [rsp + 0x20], 0x64002e
mov dword [rsp + 0x24], 0x6c006c
xor eax, eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000dd00
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400515ef
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov qword [rsp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x1400516a0
test dword [rsp + 0x70], 0x4c14
jne 0x140051664
cmp word [rbp - 0x64], 0x2e
je 0x140051664
lea rax, [rbp - 0x64]
mov qword [rbp + 0x1f8], rax
mov rax, qword [0x140097ad0]
cmp qword [0x140097ad8], rax
je 0x14005164e
lea rdx, [rbp - 0x64]
mov rcx, rax
call fcn.14000d330
add qword [0x140097ad0], 0x20
jmp 0x140051664
lea r8, [rbp + 0x1f8]
mov rdx, rax
lea rcx, [0x140097ac8]
call fcn.14003144c
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14005160c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
or qword [rsp + 0x30], 0xffffffffffffffff
mov rcx, rbx
call fcn.140002adc
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret
mov eax, dword gs:[0x68]
lea rcx, vtable.std::exception.0
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
lea rcx, method.std::bad_alloc.virtual_0
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x50], 0xd0001d10
mov dword [rsp + 0x54], eax
lea rdx, [0x14008ec40]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
int3