joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800367d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor esi, esi
mov edi, esi
mov dword [rsp + 0x20], esi
mov rbx, qword [0x180085640]
mov qword [rsp + 0x48], rsi
mov eax, dword [0x180084c80]
test eax, eax
je 0x18003681d
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180084c80]
test eax, eax
jne 0x180036826
call fcn.18000d3b0
test eax, eax
je 0x18003683c
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x180036840
xor eax, eax
jmp 0x180036899
test rbx, rbx
jne 0x180036860
lea rcx, str.ImageList_Destroy
call fcn.1800365f0
mov rbx, rax
test rax, rax
je 0x18003686b
mov qword [0x180085640], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
mov ebx, esi
test edi, edi
sete bl
test ebx, ebx
je 0x18003687e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x180036897
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1800368b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor esi, esi
mov edi, esi
mov dword [rsp + 0x20], esi
mov rbx, qword [0x180085648]
mov qword [rsp + 0x48], rsi
mov eax, dword [0x180084c80]
test eax, eax
je 0x1800368fd
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180084c80]
test eax, eax
jne 0x180036906
call fcn.18000d3b0
test eax, eax
je 0x18003691c
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x180036920
xor eax, eax
jmp 0x180036979
test rbx, rbx
jne 0x180036940
lea rcx, str.ImageList_GetImageCount
call fcn.1800365f0
mov rbx, rax
test rax, rax
je 0x18003694b
mov qword [0x180085648], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
mov ebx, esi
test edi, edi
sete bl
test ebx, ebx
je 0x18003695e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x180036977
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x180036990
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor esi, esi
mov edi, esi
mov dword [rsp + 0x20], esi
mov rbx, qword [0x180085630]
mov qword [rsp + 0x48], rsi
mov eax, dword [0x180084c80]
test eax, eax
je 0x1800369dd
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x180084c80]
test eax, eax
jne 0x1800369e6
call fcn.18000d3b0
test eax, eax
je 0x1800369fc
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x180036a00
xor eax, eax
jmp 0x180036a59
test rbx, rbx
jne 0x180036a20
lea rcx, str.InitCommonControlsEx
call fcn.1800365f0
mov rbx, rax
test rax, rax
je 0x180036a2b
mov qword [0x180085630], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
mov ebx, esi
test edi, edi
sete bl
test ebx, ebx
je 0x180036a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x180036a57
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140a1f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a1f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a1f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a1f06f
add dl, dl
jne 0x140a1f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a1f0f6
xor eax, eax
add dl, dl
jne 0x140a1f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a1f1ad
add dl, dl
jne 0x140a1f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a1f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a1f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a1f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a1f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a1f07e
mov eax, 1
add dl, dl
jne 0x140a1f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a1f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a1f0fb
sub eax, ebx
mov ebx, 1
jne 0x140a1f14c
mov ecx, 1
add dl, dl
jne 0x140a1f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a1f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a1f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a1f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a1f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a1f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a1f15d
cmp eax, 0x7d00
jae 0x140a1f19b
cmp eax, 0x500
jb 0x140a1f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a1f07e
cmp eax, 0x7f
ja 0x140a1f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a1f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a1f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a1f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140010880]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140010890]
mov dword [rax], 1
mov rax, qword [0x1400108a0]
mov dword [rax], 1
mov rax, qword [0x140010820]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140010870]
mov dword [0x140014020], 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 [0x140010950]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140010930]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400107d0]
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 0x140004a10
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x128
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
call sym.inputWaiting
test eax, eax
je 0x140004ae7
mov dword [rsi + 0x20], 1
mov rdi, qword [dbg.__acrt_iob_func]
lea rsi, [rsp + 0x20]
nop dword [rax]
xor ecx, ecx
call rdi
mov rcx, rax
call sub.msvcrt.dll__fileno
mov ecx, eax
mov rdx, rsi
mov r8d, 0x100
call sub.msvcrt.dll__read
test eax, eax
js 0x140004ab0
lea rcx, [rsp + 0x20]
mov edx, 0xa
call sub.msvcrt.dll_strchr
test rax, rax
je 0x140004ae7
mov byte [rax], 0
add rsp, 0x128
pop rdi
pop rsi
ret

Function at 0x140007060
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 0x1400070d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140017204]
mov rbx, rcx
test esi, esi
jle 0x140007200
mov rax, qword [0x140017208]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000711b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400071a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140007100
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140007222
mov rax, qword [0x140017208]
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 [0x140017208]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140007207
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000719e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400071b0
add dword [0x140017204], 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 [0x140017208]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000719e
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 0x140007128
mov rax, qword [0x140017208]
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 0x140007790
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140017260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140017240]
test rbx, rbx
je 0x1400077ec
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 0x1400077e3
test rsi, rsi
je 0x1400077e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400077c8
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 0x140007a00
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140007a18
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140007a20
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140007a30
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 0x140007a7d
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 0x140007a74
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140007a7f
add rax, 0x28
cmp rax, r9
jne 0x140007a60
xor eax, eax
ret

Function at 0x140007a80
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140007b10
mov rdx, qword [0x140010820]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140007afe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140007afe
cmp word [rax + 0x18], 0x20b
jne 0x140007afe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140007b10
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140007ae9
add rbx, 0x28
cmp rbx, rdi
je 0x140007b10
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x140007ae0
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 0x140007b20
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140007ba0
Capabilities:
Parse pe header

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

Function at 0x140007be0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140010820]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140007c00
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140007c08
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140007c00
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140007c50
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140007c47
test rcx, rcx
je 0x140007c00
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140007c38
xor eax, eax
ret
Function at 0x140007c60
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140010820]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140007cc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140007cc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007cc0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140007cc0
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 0x140007d14
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140007d20
add rdx, 0x28
cmp r9, rdx
jne 0x140007d00
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140010820]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140007d52
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140007d60
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007d52
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140007d52
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140007d52
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 0x140007db5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140007dc8
add rdx, 0x28
cmp rdx, r10
jne 0x140007da0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140007dd7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140007de7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140007dbe
test ecx, ecx
jg 0x140007dd0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14001b630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x14001b660
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14001b688
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001b68a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001b6e3
test ecx, ecx
jle 0x14001b6c3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14001b6e3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001b6e3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test dword [rdx - 0x25], edi
invalid
Function at 0x14001b710
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001b732
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14001b741
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x20], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001b764
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001b766
xor ecx, ecx
mov qword [rsp + 0x28], rbx
movsxd rax, ecx
test ecx, ecx
je 0x14001b7a0
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001b847
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14001b7db
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, r8
cmp r8, 0xfff
jbe 0x14001b821
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x14001b860
cmp rdi, rax
ja 0x14001b7f0
mov r8, rbx
test rbx, rbx
je 0x14001b847
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x28]
mov rax, rbp
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rdi
jmp 0x14001b84a
pop rcx
invalid
Function at 0x7ff72ccd25f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10d, dword [0x7ff72cd1dc20]
lea rsi, [0x7ff72ccd0000]
xor r10d, dword [rcx + 4]
mov ebx, 2
mov eax, dword [rcx + 8]
mov r11, rcx
lea edi, [rbx + 6]
nop
mov ecx, r10d
shr rcx, 0x10
movzx edx, cl
mov ecx, r10d
shr rcx, 0x18
mov r9d, dword [rsi + rdx*4 + 0x4e450]
add r9d, dword [rsi + rcx*4 + 0x4e050]
mov ecx, r10d
shr rcx, 8
movzx edx, cl
movzx ecx, r10b
xor r9d, dword [rsi + rdx*4 + 0x4ec50]
add r9d, dword [rsi + rcx*4 + 0x4e850]
lea ecx, [rbx - 1]
xor r9d, dword [rsi + rcx*4 + 0x4dc20]
xor eax, r9d
mov ecx, eax
shr rcx, 0x10
movzx edx, cl
mov ecx, eax
shr rcx, 0x18
mov r8d, dword [rsi + rdx*4 + 0x4e450]
add r8d, dword [rsi + rcx*4 + 0x4e050]
mov ecx, eax
shr rcx, 8
movzx edx, cl
movzx ecx, al
xor r8d, dword [rsi + rdx*4 + 0x4ec50]
add r8d, dword [rsi + rcx*4 + 0x4e850]
mov ecx, ebx
add ebx, 2
xor r8d, dword [rsi + rcx*4 + 0x4dc20]
xor r10d, r8d
sub rdi, 1
jne 0x7ff72ccd2620
xor eax, dword [0x7ff72cd1dc64]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov dword [r11 + 4], eax
mov dword [r11 + 8], r10d
ret
Function at 0x7ff72ccd7c50
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rcx
mov rsi, r8
mov rbp, rdx
sub r14, qword [r8 + 0x30]
je 0x7ff72ccd7dd2
test byte [r8 + 0x5e], 0x40
jne 0x7ff72ccd7c7d
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x7ff72ccd7dd2
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x7ff72ccd7cb6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x7ff72ccd7ccd
add rdx, 0x28
cmp rdx, r9
jb 0x7ff72ccd7ca4
mov eax, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x7ff72ccd7dc8
cmp rbx, r15
jae 0x7ff72ccd7dc8
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x7ff72ccd7dc3
add eax, 0xfffffff8
shr eax, 1
je 0x7ff72ccd7db4
lea r11, [rbx + 8]
mov edi, eax
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x7ff72ccd7d42
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x7ff72ccd7d4e
cmp ax, 0xa
jne 0x7ff72ccd7da6
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x7ff72ccd7d9b
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x7ff72ccd7d82
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x7ff72ccd7d8d
add rax, 0x28
cmp rax, r10
jb 0x7ff72ccd7d70
jmp 0x7ff72ccd7d9b
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x7ff72ccd7d9e
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x7ff72ccd7d20
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x7ff72ccd7d04
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 1
pop r14
pop rsi
ret