joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412871
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r14d, 9
mov r11, rcx
mov qword [rsp + 0x98], rdx
mov r8, rdx
mov rdx, rcx
mov ecx, 0xa
call sym.AddRoundKey
lea rax, [r11 + 4]
mov qword [rsp + 0x28], rax
lea rax, [r11 + 0x10]
mov qword [rsp + 0x30], rax
mov dl, byte [r11 + 9]
mov al, byte [r11 + 0xd]
mov rbx, r11
mov byte [r11 + 0xd], dl
mov dl, byte [r11 + 5]
mov byte [r11 + 9], dl
mov dl, byte [r11 + 1]
mov byte [r11 + 1], al
mov al, byte [r11 + 2]
mov byte [r11 + 5], dl
mov dl, byte [r11 + 0xa]
mov byte [r11 + 0xa], al
mov al, byte [r11 + 6]
mov byte [r11 + 2], dl
mov dl, byte [r11 + 0xe]
mov byte [r11 + 0xe], al
mov al, byte [r11 + 3]
mov byte [r11 + 6], dl
mov dl, byte [r11 + 7]
mov byte [r11 + 3], dl
mov dl, byte [r11 + 0xb]
mov byte [r11 + 7], dl
mov dl, byte [r11 + 0xf]
mov byte [r11 + 0xf], al
mov byte [r11 + 0xb], dl
mov rdx, r11
mov rax, rdx
xor ecx, ecx
movzx r8d, byte [rax]
lea rdi, [0x0041c6a0]
inc ecx
add rax, 4
mov r8b, byte [rdi + r8]
mov byte [rax - 4], r8b
cmp cl, 4
jne 0x41291f
inc rdx
cmp qword [rsp + 0x28], rdx
jne 0x41291a
mov r8, qword [rsp + 0x98]
mov rdx, r11
mov ecx, r14d
call sym.AddRoundKey
test r14d, r14d
je 0x412ab4
mov al, byte [rbx]
mov r15b, byte [rbx + 3]
mov byte [rsp + 0x3a], al
mov al, byte [rbx + 1]
movzx ecx, byte [rsp + 0x3a]
mov byte [rsp + 0x3b], al
mov al, byte [rbx + 2]
mov byte [rsp + 0x3c], al
call sym.xtime
movzx ecx, al
mov byte [rsp + 0x3d], al
call sym.xtime
movzx ecx, al
mov r8d, ecx
call sym.xtime
movzx ecx, byte [rsp + 0x3b]
mov edi, eax
call sym.xtime
movzx ecx, al
mov r9d, ecx
call sym.xtime
movzx ecx, al
mov byte [rsp + 0x3e], al
call sym.xtime
movzx ecx, byte [rsp + 0x3c]
mov esi, eax
call sym.xtime
movzx ecx, al
mov byte [rsp + 0x3f], cl
call sym.xtime
movzx ecx, al
mov r13d, ecx
call sym.xtime
movzx ecx, r15b
mov r10d, eax
call sym.xtime
movzx ecx, al
mov r12d, ecx
call sym.xtime
movzx ecx, al
mov ebp, ecx
call sym.xtime
mov dl, byte [rsp + 0x3f]
mov ecx, eax
mov al, byte [rsp + 0x3d]
xor eax, r8d
xor eax, edi
xor eax, r9d
xor eax, esi
xor eax, r13d
xor eax, r10d
xor eax, ecx
xor al, byte [rsp + 0x3b]
xor eax, dword [rsp + 0x3c]
xor eax, r15d
mov byte [rbx], al
mov eax, r9d
xor eax, edi
xor al, byte [rsp + 0x3e]
xor eax, esi
xor eax, edx
xor eax, r10d
xor eax, ebp
xor eax, ecx
xor al, byte [rsp + 0x3a]
xor eax, dword [rsp + 0x3c]
xor eax, r15d
xor r8d, edi
add rbx, 4
xor r8d, esi
mov byte [rbx - 3], al
mov al, byte [rsp + 0x3d]
xor edx, r8d
xor r13d, edx
xor eax, edi
xor r13d, r10d
xor r13d, r12d
xor r13d, ecx
xor r13b, byte [rsp + 0x3a]
xor r13b, byte [rsp + 0x3b]
xor r15d, r13d
mov byte [rbx - 2], r15b
xor al, byte [rsp + 0x3e]
xor esi, eax
xor r10d, esi
xor r12d, r10d
xor ebp, r12d
xor ebp, ecx
xor bpl, byte [rsp + 0x3a]
xor bpl, byte [rsp + 0x3b]
xor ebp, dword [rsp + 0x3c]
mov byte [rbx - 1], bpl
cmp qword [rsp + 0x30], rbx
jne 0x412963
dec r14d
jmp 0x4128b4
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x412b02
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov r8, rcx
mov rcx, rdx
mov rdx, r8
jmp sym.Cipher

Function at 0x412b10
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov r8, rcx
mov rcx, rdx
mov rdx, r8
jmp sym.InvCipher

Function at 0x412b1e
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor esi, esi
mov r12, rdx
mov rbx, rcx
lea rdx, [rcx + 0xb0]
mov rbp, r8
lea rdi, [r12 + rsi]
cmp rsi, rbp
jae 0x412b68
xor eax, eax
mov cl, byte [rdx + rax]
xor byte [rdi + rax], cl
inc rax
cmp rax, 0x10
jne 0x412b45
mov rdx, rbx
mov rcx, rdi
add rsi, 0x10
call sym.Cipher
mov rdx, rdi
jmp 0x412b3a
mov rax, qword [rdx]
mov rdx, qword [rdx + 8]
mov qword [rbx + 0xb0], rax
mov qword [rbx + 0xb8], rdx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x412b88
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
mov rdi, rdx
mov rbp, r8
lea r12, [rdi + rbx]
cmp rbx, rbp
jae 0x412bd8
mov rdx, rsi
mov rcx, r12
movups xmm0, xmmword [rdi + rbx]
call sym.InvCipher
xor eax, eax
mov dl, byte [rsi + rax + 0xb0]
xor byte [r12 + rax], dl
inc rax
cmp rax, 0x10
jne 0x412bb7
movups xmmword [rsi + 0xb0], xmm0
add rbx, 0x10
jmp 0x412b9d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4133d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x413440
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00422994]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4135e8
mov rax, qword [0x00422998]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x41348c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x413517
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x413470
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x413622
mov rax, qword [0x00422998]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00422998]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x413631
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x413510
sub eax, 4
and eax, 0xfffffffb
jne 0x4135a0
add dword [0x00422994], 1
cmp ebx, 8
jae 0x413548
test bl, 4
jne 0x4135f0
test ebx, ebx
je 0x413539
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x413610
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x413539
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x41357a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00422998]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x413510
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 edi, edi
jmp 0x413497
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x413539
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x413539
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00422998]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x413e10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00422c80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00422c60]
test rbx, rbx
je 0x413e64
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x413e5b
test r12, r12
je 0x413e5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x413e40
lea rcx, [0x00422c80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x414090
Capabilities:
Parse pe header

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

Function at 0x4140b0
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 0x4140f5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x4140ec
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4140f7
add rax, 0x28
cmp rax, r9
jne 0x4140d8
xor eax, eax
ret

Function at 0x4141a0
Capabilities:
Enumerate pe sections

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

Function at 0x414300
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0041d1d0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x41436f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x41436f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x41436d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x414364
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x414378
add rax, 0x28
cmp rax, r9
jne 0x414350
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x414390
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0041d1d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x414408
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x414408
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x414408
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x414408
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x4143fc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x414410
add rdx, 0x28
cmp rdx, r10
jne 0x4143e8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x414420
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x41442e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x414405
test r8d, r8d
jg 0x414418
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x14112c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14112c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14112c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14112c06f
add dl, dl
jne 0x14112c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14112c0f6
xor eax, eax
add dl, dl
jne 0x14112c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14112c1ad
add dl, dl
jne 0x14112c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14112c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14112c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14112c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14112c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14112c07e
mov eax, 1
add dl, dl
jne 0x14112c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14112c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14112c0fb
sub eax, ebx
mov ebx, 1
jne 0x14112c14c
mov ecx, 1
add dl, dl
jne 0x14112c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14112c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14112c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14112c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14112c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14112c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14112c15d
cmp eax, 0x7d00
jae 0x14112c19b
cmp eax, 0x500
jb 0x14112c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14112c07e
cmp eax, 0x7f
ja 0x14112c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14112c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14112c1d2
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 0x14112c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x6d895030
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8b65e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8951b8
mov rax, qword [0x6d8b65e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d89507c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d895105
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d895060
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8951ed
mov rax, qword [0x6d8b65e8]
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 [0x6d8b65e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8951d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8950fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d895160
add dword [0x6d8b65e4], 1
cmp edi, 8
jae 0x6d895133
test dil, 4
jne 0x6d8951a4
test edi, edi
je 0x6d895128
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8951bf
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 0x6d895128
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 0x6d89514c
jmp 0x6d895128
add rsi, qword [0x6d8b65e8]
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 0x6d8950fe
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 0x6d895128
xor esi, esi
jmp 0x6d895087
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d895128
mov rax, qword [0x6d8b65e8]
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 0x6d895940
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8b68c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8b68a0]
test rbx, rbx
je 0x6d895994
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 0x6d89598b
test rsi, rsi
je 0x6d89598b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d895970
lea rcx, [0x6d8b68c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d895bd0
Capabilities:
Parse pe header

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

Function at 0x6d895bf0
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 0x6d895c31
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 0x6d895c28
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d895c33
add rax, 0x28
cmp rax, r9
jne 0x6d895c14
xor eax, eax
ret

Function at 0x6d895cd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8b31f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d895d3d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d895d3d
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 0x6d895d3d
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 0x6d895d34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d895d3f
add rax, 0x28
cmp rax, r9
jne 0x6d895d20
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d895e40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8b31f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d895e60
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d895e58
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 0x6d895ebd
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 0x6d895eb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d895ec4
add rax, 0x28
cmp rax, r9
jne 0x6d895ea0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d895ee0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8b31f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d895f4e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d895f4e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d895f4e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d895f4e
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 0x6d895f45
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d895f55
add rcx, 0x28
cmp rcx, rax
jne 0x6d895f30
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d895f68
jmp 0x6d895f4e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d895f76
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d895f4e
test r9d, r9d
jg 0x6d895f60
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8962e0
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 0x140011154
Capabilities:
Create thread

Disassembly:
jmp 0x140013fa0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
lea rcx, [0x14002a0e0]
call fcn.140011631
mov rdx, qword [rbp + 0x148]
lea rcx, [rbp + 0x108]
call fcn.140011334
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.140011172
nop
lea rcx, [rbp + 0x108]
call fcn.140011294
lea rax, [0x140011447]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x140]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.14001145b
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x140]
mov qword [rcx], rax
mov rax, qword [rbp + 0x140]
cmp qword [rax], 0
je 0x140014081
lea rcx, [rbp + 8]
call fcn.1400112a8
jmp 0x14001409a
mov rax, qword [rbp + 0x140]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.140011181
nop
lea rcx, [rbp + 8]
call fcn.140011294
lea rcx, [rbp - 0x30]
lea rdx, [0x140020330]
call fcn.140011555
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x14001138e
Capabilities:
Terminate process

Disassembly:
jmp 0x14001aee0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011442
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1400166f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4e8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xd2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x508]
lea rcx, [0x14002a0e7]
call fcn.140011631
xor edx, edx
mov ecx, 2
call fcn.1400112fd
mov qword [rbp + 8], rax
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400113e8
test eax, eax
jne 0x140016773
mov qword [rbp + 0x408], 0
mov rcx, qword [rbp + 0x4e0]
call fcn.14001159b
mov rax, qword [rbp + 0x408]
jmp 0x14001680a
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400115a0
test eax, eax
je 0x1400167ec
lea rdx, [rbp + 0x5c]
lea rcx, [rbp + 0x448]
call fcn.140011212
mov qword [rbp + 0x4b8], rax
mov rdx, qword [rbp + 0x4e0]
mov rcx, qword [rbp + 0x4b8]
call fcn.1400111ae
mov byte [rbp + 0x424], al
lea rcx, [rbp + 0x448]
call fcn.14001159b
movzx eax, byte [rbp + 0x424]
test eax, eax
je 0x1400167ea
mov eax, dword [rbp + 0x38]
mov qword [rbp + 0x488], rax
mov rcx, qword [rbp + 0x4e0]
call fcn.14001159b
mov rax, qword [rbp + 0x488]
jmp 0x14001680a
jmp 0x140016773
mov qword [rbp + 0x4a8], 0
mov rcx, qword [rbp + 0x4e0]
call fcn.14001159b
mov rax, qword [rbp + 0x4a8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140020090]
call fcn.140011555
mov rax, rdi
lea rsp, [rbp + 0x4c8]
pop rdi
pop rbp
ret