joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400387d0
test rdx, rdx
je 0x1400387d0
xor r9d, r9d
lea rdx, [0x140056c68]
lea edi, [r9 + 1]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x140038757
xor ebx, ebx
jmp 0x140038766
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
xor r9d, r9d
lea rdx, [0x140056c68]
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x140038785
xor ecx, ecx
jmp 0x140038794
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
test rbx, rbx
je 0x1400387c5
test rcx, rcx
je 0x1400387c5
mov eax, 0xfecdfecd
cmp dword [rbx], eax
jne 0x1400387bf
cmp dword [rcx], eax
jne 0x1400387bf
mov rax, qword [rbx + 0x1c]
cmp rax, qword [rcx + 0x1c]
jne 0x1400387bf
mov rax, qword [rbx + 0x24]
cmp rax, qword [rcx + 0x24]
je 0x1400387c1
xor edi, edi
mov eax, edi
jmp 0x1400387d2
mov ecx, 0xd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140039310
Capabilities:
Access the windows event log

Disassembly:
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, 0x50
mov r14, r9
mov r15d, r8d
mov edi, edx
mov r13, rcx
mov esi, dword [r9 + 8]
sub esi, dword [r9]
sar rsi, 5
xor r12d, r12d
mov ebx, r12d
test si, si
je 0x1400393a3
movzx ebp, si
lea eax, [r12 + 8]
mul rbp
lea rcx, [r12 - 1]
cmovo rax, rcx
lea rdx, [0x1400569e0]
mov rcx, rax
call fcn.140024d00
test rax, rax
je 0x1400393ce
mov rbx, rax
test rbp, rbp
je 0x1400393a3
mov edx, r12d
mov r9d, r12d
mov r8, qword [r14]
add r8, r9
cmp qword [r8 + 0x18], 8
jb 0x140039393
mov r8, qword [r8]
mov qword [rax + rdx*8], r8
inc rdx
add r9, 0x20
cmp rdx, rbp
jl 0x140039383
lea r14, [0x140063230]
mov r10, qword [0x140063230]
mov ebp, 1
mov eax, 4
test edi, edi
je 0x14003941d
sub edi, 1
je 0x140039416
cmp edi, 1
je 0x140039412
movzx edi, bp
jmp 0x140039420
mov r10, qword [0x140063230]
lea r14, [0x140063230]
cmp r10, r14
je 0x1400393b1
mov ebp, 1
test byte [r10 + 0x1c], bpl
je 0x1400393b6
movzx eax, si
lea edx, [rbp + 0xd]
mov dword [rsp + 0x20], eax
mov r9d, r15d
lea r8, [0x140056dd8]
mov rcx, qword [r10 + 0x10]
call fcn.1400272c0
mov r10, qword [0x140063230]
jmp 0x1400393b6
mov edi, ebp
jmp 0x140039420
mov edi, 2
jmp 0x140039420
movzx edi, ax
cmp r10, r14
je 0x14003944b
test byte [r10 + 0x1c], al
je 0x14003944b
movzx eax, si
movzx ecx, di
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x20], ecx
mov r9, qword [r13 + 8]
mov rcx, qword [r10 + 0x10]
call fcn.1400395b0
xor r8d, r8d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x28], si
mov qword [rsp + 0x20], r12
mov r9d, r15d
movzx edx, di
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x1400394ce
call fcn.140025d38
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x48]
mov rcx, rdx
call qword [case.0x140026b7f.0]
test eax, eax
jle 0x14003949f
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x140063230]
cmp rcx, r14
je 0x1400394ce
test byte [rcx + 0x1c], bpl
je 0x1400394ce
mov edx, 0x10
mov dword [rsp + 0x20], r15d
mov r9d, eax
lea r8, [0x140056dd8]
mov rcx, qword [rcx + 0x10]
call fcn.1400272c0
test rbx, rbx
je 0x1400394dc
mov rcx, rbx
call fcn.1400151b0
nop
lea r11, [rsp + 0x50]
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
Function at 0x14003f960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov r15, rdx
mov rbp, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14003fa7a
movzx edx, r9w
mov r8, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
jne 0x14003f9c2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14003f9ba
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14003fab8
mov rdx, rsi
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x14003f9f4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14003f9ec
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14003faf1
and qword [rsp + 0x40], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14003fa3c
test r14, r14
je 0x14003fa20
mov rdx, rsi
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [r14], eax
mov qword [r15], rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea rax, [0x140063230]
mov ebx, 0x8007000e
mov rcx, qword [0x140063230]
cmp rcx, rax
je 0x14003fa72
test byte [rcx + 0x1c], 1
je 0x14003fa72
mov edx, 0xf
mov r9d, ebx
lea r8, [0x140056ea0]
mov rcx, qword [rcx + 0x10]
call fcn.140025858
mov ecx, ebx
call fcn.1400352a4
nop
lea rax, [0x140063230]
mov ebx, 0x80070057
mov rcx, qword [0x140063230]
cmp rcx, rax
je 0x14003fab0
test byte [rcx + 0x1c], 1
je 0x14003fab0
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r9d, ebx
lea r8, [0x140056ea0]
mov rcx, qword [rcx + 0x10]
call fcn.140025858
mov ecx, ebx
call fcn.1400352a4
int3
lea rax, [0x140063230]
mov rcx, qword [0x140063230]
cmp rcx, rax
je 0x14003fae9
test byte [rcx + 0x1c], 1
je 0x14003fae9
mov edx, 0xd
mov r9d, ebx
lea r8, [0x140056ea0]
mov rcx, qword [rcx + 0x10]
call fcn.140025858
mov ecx, ebx
call fcn.1400352a4
int3
lea rax, [0x140063230]
mov rcx, qword [0x140063230]
cmp rcx, rax
je 0x14003fb22
test byte [rcx + 0x1c], 1
je 0x14003fb22
mov edx, 0xe
mov r9d, ebx
lea r8, [0x140056ea0]
mov rcx, qword [rcx + 0x10]
call fcn.140025858
mov ecx, ebx
call fcn.1400352a4
int3
Function at 0x140047628
Capabilities:
Parse pe header

Disassembly:
test cx, cx
jne 0x14004770c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
mov rdi, rcx
cmp word [rcx], ax
jne 0x140047702
test byte [rcx + 0x3c], 3
jne 0x140047702
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140047702
cmp dword [rdx + 0x84], 6
jb 0x140047702
mov r8d, dword [rdx + 0x50]
mov r9d, dword [rdx + 0xb8]
lea eax, [r8 - 1]
lea ecx, [r9 - 1]
cmp ecx, eax
jae 0x140047702
mov ecx, dword [rdx + 0xbc]
mov eax, r8d
sub eax, r9d
cmp ecx, eax
ja 0x140047702
movabs rax, 0x2492492492492493
lea r10, [rdi + r9]
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 4
test ecx, ecx
je 0x140047702
dec ecx
mov eax, ecx
imul rbx, rax, 0x1c
add rbx, r10
cmp dword [rbx + 0xc], 2
jne 0x1400476bb
cmp dword [rbx + 0x14], r8d
jae 0x1400476bb
mov eax, r8d
sub eax, dword [rbx + 0x14]
cmp dword [rbx + 0x10], eax
ja 0x1400476bb
mov edx, 0x1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualLock]
test eax, eax
je 0x140047702
mov ecx, dword [rbx + 0x14]
mov edx, dword [rbx + 0x10]
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualLock]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c9700]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c9710]
mov dword [rax], 1
mov rax, qword [0x1400c9720]
mov dword [rax], 1
mov rax, qword [0x1400c9660]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400c96f0]
mov dword [0x1400f300c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400c97e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400c97c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400c8b00]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001877
Capabilities:
Get keyboard layout

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov qword [rbp - 8], 0x4090409
mov qword [rbp - 0x10], 0x4190419
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_GetKeyboardLayout]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1400018fb
lea rax, str.Error:
mov rdx, rax
mov rax, qword [0x1400c90e0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call method.std::ostream.operator___unsigned_long_
mov edx, 0xa
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
mov eax, 1
jmp 0x1400019af
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbp - 0x10]
jne 0x140001931
mov rax, qword [rbp - 0x18]
mov rdx, rax
mov rax, qword [0x1400c90e0]
mov rcx, rax
call method.std::ostream.operator___void_const_
mov edx, 0xa
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
mov rax, qword [rbp + 0x20]
mov byte [rax], 1
jmp 0x1400019aa
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbp - 8]
jne 0x140001967
mov rax, qword [rbp - 0x18]
mov rdx, rax
mov rax, qword [0x1400c90e0]
mov rcx, rax
call method.std::ostream.operator___void_const_
mov edx, 0xa
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
mov rax, qword [rbp + 0x20]
mov byte [rax], 0
jmp 0x1400019aa
lea rax, str.Error:
mov rdx, rax
mov rax, qword [0x1400c90e0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call method.std::ostream.operator___unsigned_long_
mov edx, 0xa
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_
mov eax, 1
jmp 0x1400019af
mov eax, 0
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x14000f2b0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14000f320
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400f31a4]
mov rbx, rcx
test esi, esi
jle 0x14000f450
mov rax, qword [0x1400f31a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000f36b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000f3f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000f350
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000f472
mov rax, qword [0x1400f31a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400f31a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f457
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000f3ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f400
add dword [0x1400f31a4], 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 [0x1400f31a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000f3ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14000f378
mov rax, qword [0x1400f31a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000f9e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400f3200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f31e0]
test rbx, rbx
je 0x14000fa3c
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 eax, eax
jne 0x14000fa33
test rsi, rsi
je 0x14000fa33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000fa18
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 0x14000fc50
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000fc68
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000fc70
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000fc80
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000fccd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14000fcc4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000fccf
add rax, 0x28
cmp rax, r9
jne 0x14000fcb0
xor eax, eax
ret

Function at 0x14000fcd0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000fd60
mov rdx, qword [0x1400c9660]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000fd4e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000fd4e
cmp word [rax + 0x18], 0x20b
jne 0x14000fd4e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000fd60
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000fd39
add rbx, 0x28
cmp rbx, rdi
je 0x14000fd60
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000fd30
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000fd70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c9660]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000fd90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000fd98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000fd90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000fded
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 0x14000fde4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000fd90
add rax, 0x28
cmp rax, r9
jne 0x14000fdd0
xor eax, eax
ret

Function at 0x14000fdf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c9660]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000fe0f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000fe18
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000fe0f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14000fe30
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c9660]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000fe50
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000fe58
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000fe50
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000fea0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000fe97
test rcx, rcx
je 0x14000fe50
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000fe88
xor eax, eax
ret

Function at 0x14000feb0
Capabilities:
Parse pe header

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

Function at 0x14000fef0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c9660]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000ff10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000ff18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ff10
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14000ff10
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000ff64
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000ff70
add rdx, 0x28
cmp r9, rdx
jne 0x14000ff50
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14000ff80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400c9660]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000ffa2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000ffb0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ffa2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000ffa2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14000ffa2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140010005
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140010018
add rdx, 0x28
cmp rdx, r10
jne 0x14000fff0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140010027
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140010037
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14001000e
test ecx, ecx
jg 0x140010020
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140010d60
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sym.write
mov ecx, 0x17
call sym.IsProcessorFeaturePresent
test eax, eax
je 0x140010d90
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 0x140019150
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x140019198
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x1400f3d80], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14001917e

Function at 0x14001b9e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14001ba0c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14001c630
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400c2e80], 0
jne 0x14001c736
mov byte [0x1400c2e80], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001c70c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001c6fd
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400c3431]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14001c6f8
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14001c6c7
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14001c7cb
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001c731
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14001c731
Function at 0x14007cfc0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007d008
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007cfda
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008f9d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008f9f8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14008fa40
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008fa10
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008fa4c
call rbp
cmp dword [rax], 4
je 0x14008fa10
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop