joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6da2de50
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6da2de60
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6da2de70
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6da2deb1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6da2dea8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6da2deb3
add rax, 0x28
cmp rax, r9
jne 0x6da2de94
xor eax, eax
ret

Function at 0x6da2df50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da4b1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6da2dfbd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da2dfbd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da2dfbd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da2dfb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da2dfbf
add rax, 0x28
cmp rax, r9
jne 0x6da2dfa0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6da2e0c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da4b1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6da2e0e0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da2e0d8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da2e13d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da2e134
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da2e144
add rax, 0x28
cmp rax, r9
jne 0x6da2e120
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6da2e160
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6da4b1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6da2e1ce
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da2e1ce
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6da2e1ce
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6da2e1ce
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6da2e1c5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6da2e1d5
add rcx, 0x28
cmp rcx, rax
jne 0x6da2e1b0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6da2e1e8
jmp 0x6da2e1ce
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6da2e1f6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6da2e1ce
test r9d, r9d
jg 0x6da2e1e0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6da2e530
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001a2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a76
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a78
xor al, al
add rsp, 0x28
ret

Function at 0x140005c2c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005a1c
Function at 0x140008c90
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140008cc0
xor eax, eax
jmp 0x140008d83
mov rbp, rbx
cmp word [rax], si
je 0x140008ce5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008ccc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008cc8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140008be0
movsxd r14, eax
test eax, eax
jne 0x140008d23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008cb9
mov rcx, r14
call fcn.140009b44
mov rdi, rax
test rax, rax
jne 0x140008d3c
xor ecx, ecx
call fcn.140007270
jmp 0x140008d18
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140008be0
test eax, eax
jne 0x140008d6d
mov rcx, rdi
call fcn.140007270
jmp 0x140008d77
xor ecx, ecx
call fcn.140007270
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000c24c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007ce4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c2d6
cmp byte [rbp - 0x21], r15b
je 0x14000c2d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c30c
call fcn.14000a364
test eax, eax
jne 0x14000c2f8
cmp byte [rbp - 0x21], r15b
je 0x14000c2f0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c30c
cmp byte [rbp - 0x21], r15b
je 0x14000c309
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400072c0
test eax, eax
jne 0x14000c3ac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007ce4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c34b
cmp byte [rbp - 0x21], r15b
je 0x14000c380
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c380
call fcn.14000a364
test eax, eax
jne 0x14000c36c
cmp byte [rbp - 0x21], r15b
je 0x14000c365
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c380
cmp byte [rbp - 0x21], r15b
je 0x14000c37d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400072c0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c3ac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c3af
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c3bd
mov rcx, rdi
call fcn.140007270
cmp byte [rbp + 0x3f], r15b
je 0x14000c3cc
mov rcx, qword [rbp + 0x27]
call fcn.140007270
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000f220
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f248
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f248
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001c6c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cb6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cb6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cb6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cb6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cb6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cb8
xor al, al
add rsp, 0x28
ret

Function at 0x1409dc9a0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409dcb27
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 0x1409dc9d1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409dc9b7
add dl, dl
jne 0x1409dc9de
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409dca3e
xor eax, eax
add dl, dl
jne 0x1409dc9ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409dcaf5
add dl, dl
jne 0x1409dc9fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409dca0b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409dca18
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409dca25
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409dca32
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409dc9c6
mov eax, 1
add dl, dl
jne 0x1409dca4e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409dca5b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409dca43
sub eax, ebx
mov ebx, 1
jne 0x1409dca94
mov ecx, 1
add dl, dl
jne 0x1409dca76
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409dca83
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409dca6b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409dc9c6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409dcab0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409dcabd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409dcaa5
cmp eax, 0x7d00
jae 0x1409dcae3
cmp eax, 0x500
jb 0x1409dcade
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409dc9c6
cmp eax, 0x7f
ja 0x1409dcae6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409dc9c6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409dcb1a
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 0x1409dc9c6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x6d7d6fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f85e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d7138
mov rax, qword [0x6d7f85e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d6ffc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d7085
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d6fe0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d716d
mov rax, qword [0x6d7f85e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f85e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d7150
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d707e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d70e0
add dword [0x6d7f85e4], 1
cmp edi, 8
jae 0x6d7d70b3
test dil, 4
jne 0x6d7d7124
test edi, edi
je 0x6d7d70a8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d713f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d70a8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d70cc
jmp 0x6d7d70a8
add rsi, qword [0x6d7f85e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d707e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d70a8
xor esi, esi
jmp 0x6d7d7007
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d70a8
mov rax, qword [0x6d7f85e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d78c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f88c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f88a0]
test rbx, rbx
je 0x6d7d7914
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d790b
test rsi, rsi
je 0x6d7d790b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d78f0
lea rcx, [0x6d7f88c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d7b50
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d7b60
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d7b70
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d7bb1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d7ba8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d7bb3
add rax, 0x28
cmp rax, r9
jne 0x6d7d7b94
xor eax, eax
ret

Function at 0x6d7d7c50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f51f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d7cbd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7cbd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d7cbd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d7cb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d7cbf
add rax, 0x28
cmp rax, r9
jne 0x6d7d7ca0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d7dc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f51f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d7de0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7dd8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d7e3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d7e34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d7e44
add rax, 0x28
cmp rax, r9
jne 0x6d7d7e20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d7e60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f51f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d7ece
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7ece
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d7ece
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d7ece
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d7ec5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d7ed5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d7eb0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d7ee8
jmp 0x6d7d7ece
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d7ef6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d7ece
test r9d, r9d
jg 0x6d7d7ee0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d8230
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x414bc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414d4b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004324a0
xorps xmm15, xmm15
mov r14, qword [0x005edbc0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414c25
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414c34
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414c53
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414c63
cmp rbx, 0x1000
jae 0x414c2b
jmp 0x414ccd
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414c75
xor edx, edx
jmp 0x414cc4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004324a0
xorps xmm15, xmm15
mov r14, qword [0x005edbc0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x414c59
jmp 0x414c48
call fcn.00464080
xorps xmm15, xmm15
mov r14, qword [0x005edbc0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00436b00
lea rax, [0x004e637a]
mov ebx, 0x18
nop dword [rax]
call fcn.00437380
mov rax, qword [rsp + 0x38]
call fcn.004370c0
lea rax, [0x004e68ba]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00437380
mov rax, qword [rsp + 0x30]
call fcn.004370c0
call fcn.00436d40
call fcn.00436b60
lea rax, [0x004e88f5]
mov ebx, 0x21
call fcn.00435160
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00414bc0
Function at 0x414d80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414fa6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00432520
xorps xmm15, xmm15
mov r14, qword [0x005edbc0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x414df3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x414e02
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x414e25
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x414e35
cmp rbx, 0x1000
jae 0x414df9
nop
jmp 0x414eb8
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x414e4d
xor esi, esi
jmp 0x414eaa
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00432520
xorps xmm15, xmm15
mov r14, qword [0x005edbc0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x414e2b
jmp 0x414e16
call fcn.00464080
xorps xmm15, xmm15
mov r14, qword [0x005edbc0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x414f40
nop dword [rax + rax]
call fcn.00436b00
lea rax, [0x004e68d3]
mov ebx, 0x19
call fcn.00437380
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.004370c0
lea rax, [0x004e68ba]
mov ebx, 0x19
call fcn.00437380
mov eax, dword [rsp + 0x34]
call fcn.004370c0
nop
call fcn.00436d40
call fcn.00436b60
lea rax, [0x004e3358]
mov ebx, 0xd
call fcn.00435160
nop dword [rax + rax]
cmp eax, 0x5af
je 0x414ee0
call fcn.00436b00
lea rax, [0x004e68d3]
mov ebx, 0x19
call fcn.00437380
mov rax, qword [rsp + 0x38]
call fcn.004370c0
lea rax, [0x004e68ba]
mov ebx, 0x19
call fcn.00437380
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.004370c0
call fcn.00436d40
call fcn.00436b60
lea rax, [0x004e823c]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00435160
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460980
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00414d80