joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000dd50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14000ddab
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000ddab
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000ddc6
cmp eax, 0x42
jne 0x14000ddab
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000de76
cmp byte [r9 + r11], 0x5f
jne 0x14000de76
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000dede
mov rcx, rsi
xor edx, edx
call fcn.140009420
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140009420
test al, al
jne 0x14000df71
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000de02
lea rdx, [0x14003b45b]
mov r8d, 1
call fcn.140003b10
test al, al
jne 0x14000df71
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000ddba
xor r14d, r14d
lea rbx, [0x14003b810]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000de34
cmp byte [rax + rcx], 0x45
je 0x14000df93
sub r14, 1
jb 0x14000de59
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000de59
mov r8d, 2
mov rdx, rbx
call fcn.140003b10
test al, al
jne 0x14000df71
mov rcx, rsi
call fcn.14000ac20
test al, al
jne 0x14000df71
mov rax, qword [rsi]
test rax, rax
jne 0x14000de20
jmp 0x14000ddba
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000df38
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000ded2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000debc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000deab
add dl, 0xa9
jmp 0x14000deba
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000df38
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000df38
movzx edx, bl
add rax, rdx
jae 0x14000de80
jmp 0x14000df38
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000df38
cmp rax, rcx
jae 0x14000df35
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000df8b
cmp qword [rsi + 0x20], 0
je 0x14000df84
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14000dd50
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000ddbc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000df79
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14003b7d0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140003b10
test al, al
je 0x14000df79
mov dil, 2
jmp 0x14000ddba
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000ddba
mov dil, 1
xor r8d, r8d
jmp 0x14000df3a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000ddba
Function at 0x140011260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x140037078]
test ecx, ecx
je 0x140011354
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140011294
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140011294
add rdi, 0x10
jmp 0x14001134a
mov ecx, dword [0x140037078]
test ecx, ecx
je 0x140011367
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140011348
mov rsi, rax
test rax, rax
jne 0x140011317
mov qword [rsp + 0x28], 0
lea rax, [0x140037060]
mov qword [rsp + 0x20], rax
movzx eax, byte [0x140044160]
mov ecx, 0x18
mov edx, 8
call fcn.140002220
test rax, rax
je 0x14001138a
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x140037078]
test ecx, ecx
je 0x14001137a
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x14001134a
test rcx, rcx
je 0x14001134a
lock dec qword [rcx]
jne 0x14001134a
call fcn.1400113e0
jmp 0x14001134a
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x140037060]
call fcn.140011610
mov ecx, eax
jmp 0x140011276
lea rcx, [0x140037060]
call fcn.140011610
mov ecx, eax
jmp 0x1400112a4
lea rcx, [0x140037060]
call fcn.140011610
mov ecx, eax
jmp 0x14001130f
mov ecx, 8
mov edx, 0x18
call fcn.140002680
ud2
Function at 0x140011610
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140011695
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x1400116d6
cmp dword [rsp + 0x2c], 0
je 0x1400116ba
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400116f0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400440e0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400440e0], rsi
jne 0x140011670
mov byte [0x1400440d8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400116cc
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14001173c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400116bf
mov edi, dword [rsp + 0x28]
jmp 0x1400116cc
mov edi, dword [rsi + 0x18]
jmp 0x1400116ca
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400117a0
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.1400030f0
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400117f0
ud2
Function at 0x140011cf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140037098]
test ecx, ecx
je 0x140011d8f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140011d19
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140011d7e
mov ecx, dword [0x140037098]
test ecx, ecx
je 0x140011da2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140011d84
mov rsi, rax
test rax, rax
jne 0x140011d78
movzx eax, byte [0x140044160]
mov ecx, 0x10
mov edx, 8
call fcn.140002220
test rax, rax
je 0x140011dc5
mov rsi, rax
lea rax, [0x140037080]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140037098]
test ecx, ecx
je 0x140011db5
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140011d86
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140037080]
call fcn.140011610
mov ecx, eax
jmp 0x140011d05
lea rcx, [0x140037080]
call fcn.140011610
mov ecx, eax
jmp 0x140011d25
lea rcx, [0x140037080]
call fcn.140011610
mov ecx, eax
jmp 0x140011d70
mov ecx, 8
mov edx, 0x10
call fcn.140002680
ud2
Function at 0x140012950
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140037058]
test ecx, ecx
je 0x140012a0d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140012980
cmp qword [rax + 8], 0
je 0x140012980
add rax, 0x10
jmp 0x140012a07
mov ecx, dword [0x140037058]
test ecx, ecx
je 0x140012a20
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140012a05
mov rsi, rax
test rax, rax
jne 0x1400129eb
movzx eax, byte [0x140044160]
mov ecx, 0x20
mov edx, 8
call fcn.140002220
test rax, rax
je 0x140012a43
mov rsi, rax
lea rax, [0x140037040]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140037058]
test ecx, ecx
je 0x140012a33
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140012a07
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140037040]
call fcn.140011610
mov ecx, eax
jmp 0x140012965
lea rcx, [0x140037040]
call fcn.140011610
mov ecx, eax
jmp 0x140012990
lea rcx, [0x140037040]
call fcn.140011610
mov ecx, eax
jmp 0x1400129e3
mov ecx, 8
mov edx, 0x20
call fcn.140002680
ud2

Function at 0x140015290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
xor edx, edx
cmp r9b, 1
ja 0x1400152fb
movzx r10d, byte [rax + 0x10]
movzx r11d, r10b
test r8b, r8b
jne 0x140015458
cmp r10b, 5
jb 0x140015458
mov r10, qword [rax]
mov rdx, qword [rax + 8]
xor esi, esi
test r9b, r9b
jne 0x1400152eb
cmp r11b, 6
je 0x1400152eb
mov esi, 2
cmp rdx, 2
jb 0x1400154fa
cmp rsi, rdx
jne 0x140015418
xor edx, edx
jmp 0x140015458
xor r10d, r10d
add rdx, r10
lea rdi, [r10 + rsi]
inc rdi
cmp rdi, rdx
sete dl
movzx r10d, byte [r10 + rsi]
test dl, 1
jne 0x14001544d
cmp r10b, 0x2e
jne 0x14001544d
movzx edx, byte [rdi]
cmp dl, 0x5c
cmp r10b, 0x2e
sete r10b
lea r8, [0x14003cfd0]
mov ecx, 2
call fcn.140003130
ud2
Function at 0x140035f00
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 fcn.140036d90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140036d90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140035f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400441d4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140036100
mov rax, qword [0x1400441d8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140035fbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140036045
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140035fa0
mov rcx, rdi
call fcn.140036ad0
test rax, rax
mov r12, rax
je 0x140036152
mov rax, qword [0x1400441d8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140036c10
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400441d8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140036135
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14003603e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400360b0
add dword [0x1400441d4], 1
cmp ebx, 8
jae 0x140036071
test bl, 4
jne 0x140036110
test ebx, ebx
je 0x140036066
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140036124
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140036066
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14003608a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1400441d8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003603e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140035f00
xor esi, esi
jmp 0x140035fc7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140036066
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140036066
mov rax, qword [0x1400441d8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140035f00
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140035f00
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140036720
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140044240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140044220]
test rbx, rbx
je 0x140036774
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 0x14003676b
test rsi, rsi
je 0x14003676b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140036750
lea rcx, [0x140044240]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140036ad0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14003e880]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140036b3f
mov rcx, r9
call fcn.1400369a0
test eax, eax
je 0x140036b3f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140036b3d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140036b34
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140036b3f
add rdx, 0x28
cmp rdx, r9
jne 0x140036b20
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x6d8deb50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8ff5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8decd8
mov rax, qword [0x6d8ff5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8deb9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8dec25
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8deb80
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8ded0d
mov rax, qword [0x6d8ff5e8]
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 [0x6d8ff5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8decf0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8dec1e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8dec80
add dword [0x6d8ff5e4], 1
cmp edi, 8
jae 0x6d8dec53
test dil, 4
jne 0x6d8decc4
test edi, edi
je 0x6d8dec48
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8decdf
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 0x6d8dec48
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 0x6d8dec6c
jmp 0x6d8dec48
add rsi, qword [0x6d8ff5e8]
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 0x6d8dec1e
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 0x6d8dec48
xor esi, esi
jmp 0x6d8deba7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8dec48
mov rax, qword [0x6d8ff5e8]
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 0x6d8df460
Capabilities:
Get thread local storage value

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

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

Function at 0x6d8df710
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 0x6d8df751
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 0x6d8df748
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8df753
add rax, 0x28
cmp rax, r9
jne 0x6d8df734
xor eax, eax
ret

Function at 0x6d8df7f0
Capabilities:
Enumerate pe sections

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

Function at 0x6d8df960
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8fc1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8df980
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8df978
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 0x6d8df9dd
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 0x6d8df9d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8df9e4
add rax, 0x28
cmp rax, r9
jne 0x6d8df9c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8dfa00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8fc1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8dfa6e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8dfa6e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8dfa6e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8dfa6e
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 0x6d8dfa65
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8dfa75
add rcx, 0x28
cmp rcx, rax
jne 0x6d8dfa50
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8dfa88
jmp 0x6d8dfa6e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8dfa96
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8dfa6e
test r9d, r9d
jg 0x6d8dfa80
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8dfe00
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 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140454ec0]
mov dword [rax], 1
mov rax, qword [0x140454ed0]
mov dword [rax], 1
mov rax, qword [0x140454ee0]
mov dword [rax], 1
mov rax, qword [0x140454eb0]
mov dword [rax], 1
mov rax, qword [0x140454d40]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400021c2
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x1400021e3
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp 0x140010e30
jmp qword [sym.imp.msvcrt.dll_fflush]