joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001aa0
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400019a0
mov rcx, rbx
call fcn.1400023c0
mov rdi, rax
test rax, rax
je 0x140001ac2
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002500
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001aa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a50
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001900
nop dword [rax]
xor esi, esi
jmp 0x1400019c8
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001900
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001900
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002030
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000208c
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 0x140002083
test rsi, rsi
je 0x140002083
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002068
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 0x1400023c0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002440
Capabilities:
Parse pe header

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

Function at 0x140002500
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000251f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002528
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180001108
Capabilities:
Resolve function by parsing pe exports

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 r12
push r14
push r15
sub rsp, 0x230
movsxd rax, dword [rcx + 0x3c]
mov r15, r8
mov r12d, edx
mov rdi, rcx
mov r9d, dword [rax + rcx + 0x88]
mov esi, dword [r9 + rcx + 0x20]
mov r14d, dword [r9 + rcx + 0x1c]
add rsi, rcx
mov ebp, dword [r9 + rcx + 0x24]
add r14, rcx
add rbp, rcx
mov ebx, dword [rsi]
add rbx, rcx
jmp 0x180001169
lea rsi, [rsi + 4]
mov ebx, dword [rsi]
lea rbp, [rbp + 2]
add rbx, rdi
mov edx, 0x208
lea rcx, [rsp + 0x20]
call fcn.180001dac
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180001698
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.180001a0c
movzx ecx, word [rbp]
mov edx, dword [r14 + rcx*4]
add rdx, rdi
cmp r12d, eax
jne 0x18000115c
lea r11, [rsp + 0x230]
mov rax, rdx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x180001768
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov r12, qword [rsp + 0xa0]
mov ebp, edx
mov r14, rcx
xor edi, edi
lea rcx, [rax - 0x50]
lea rdx, [r12 + 0xcc]
lea r8d, [rdi + 4]
call fcn.1800010a0
lea rdx, [r12 + 0xec]
lea r8d, [rdi + 4]
lea rcx, [rsp + 0x2c]
call fcn.1800010a0
lea edx, [rbp - 8]
xor ebx, ebx
lea rcx, [r14 + 1]
xor esi, esi
lea r9d, [rdi + 8]
xor r13d, r13d
lea r8, [rsp + 0x28]
call fcn.1800011c8
mov r15, rax
test rax, rax
je 0x18000190a
mov ecx, dword [r15]
lea rbp, [r15 + 8]
mov dword [rsp + 0x20], ecx
movzx r14d, byte [rsp + 0x22]
movzx eax, byte [rsp + 0x21]
shl eax, 0x10
shl r14d, 8
add r14d, eax
movzx eax, cl
shl eax, 0x18
add r14d, eax
shr ecx, 0x18
mov eax, dword [r12 + 0x50]
add r14d, ecx
cmp dword [rbp], eax
jne 0x18000185c
test rbx, rbx
jne 0x180001861
mov esi, dword [rbp + 8]
lea ecx, [rbx + 0x40]
mov rax, qword [rsp + 0x98]
add esi, 0x10
mov edx, esi
mov r13, rbp
call qword [rax + 0xc8]
mov r8d, r14d
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call fcn.1800010a0
add edi, r14d
jmp 0x180001885
test rbx, rbx
je 0x180001885
mov ecx, edi
lea r12d, [r14 + rdi]
add rcx, rbx
mov rdx, rbp
cmp r12d, esi
ja 0x1800018bc
mov r8d, r14d
call fcn.1800010a0
mov edi, r12d
mov r12, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x80]
lea rcx, [r15 + 1]
mov edx, dword [rsp + 0x88]
lea r8, [rsp + 0x28]
sub eax, r15d
add edx, 0xfffffff8
add edx, eax
mov r9d, 8
call fcn.1800011c8
mov r15, rax
test rax, rax
je 0x1800018c6
jmp 0x1800017ec
sub esi, edi
mov r8d, esi
call fcn.1800010a0
test rbx, rbx
je 0x18000190a
mov r8d, dword [r13 + 4]
lea rcx, [rbx + 0x10]
mov eax, dword [r13 + 8]
jmp 0x1800018db
dec eax
test al, 3
jne 0x1800018d9
test eax, eax
je 0x1800018f8
lea edx, [rax - 1]
shr edx, 2
inc edx
xor dword [rcx], r8d
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x1800018eb
mov rax, qword [rsp + 0x90]
test edi, edi
mov qword [rax], rbx
setne al
jmp 0x18000190c
xor al, al
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180002591
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0xa0]
mov rax, qword [0x18001e028]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rsi, rsi
je 0x18000262c
lea rax, [rsp + 0x44]
mov dword [rax], 0
lea rcx, [rsp + 0x40]
mov dword [rcx], 4
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8, rbx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x180002655
mov rcx, rdi
mov rdx, rbx
mov r8, r15
mov r9, r14
call 0x180002685
test al, al
je 0x180002668
mov rcx, qword [r15]
xor edx, edx
mov r8d, 0xa
call fcn.180006920
jmp 0x180002659
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180009290
mov rcx, rdi
mov rdx, rbx
mov r8, r15
mov r9, r14
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x180002685
mov eax, dword [rsp + 0x44]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [rsi], ecx
mov sil, 1
jmp 0x18000266a
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180009290
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x250
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x18001e028]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
xor edx, edx
call fcn.180004f10
lea rax, [rsp + 0x3c]
mov dword [rax], 0x104
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
mov r8, rbx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jne 0x180002720
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.18000661c
mov rcx, r15
mov rdx, rsi
mov r8, rax
call fcn.18000283a
mov rax, qword [r15 + 0x10]
mov qword [r14], rax
test ebx, ebx
sete bl
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.180009290
mov eax, ebx
add rsp, 0x250
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180002685
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0xa0]
mov rax, qword [0x18001e028]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rsi, rsi
je 0x18000262c
lea rax, [rsp + 0x44]
mov dword [rax], 0
lea rcx, [rsp + 0x40]
mov dword [rcx], 4
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8, rbx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x180002655
mov rcx, rdi
mov rdx, rbx
mov r8, r15
mov r9, r14
call 0x180002685
test al, al
je 0x180002668
mov rcx, qword [r15]
xor edx, edx
mov r8d, 0xa
call fcn.180006920
jmp 0x180002659
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180009290
mov rcx, rdi
mov rdx, rbx
mov r8, r15
mov r9, r14
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x180002685
mov eax, dword [rsp + 0x44]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [rsi], ecx
mov sil, 1
jmp 0x18000266a
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180009290
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x250
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x18001e028]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
xor edx, edx
call fcn.180004f10
lea rax, [rsp + 0x3c]
mov dword [rax], 0x104
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
mov r8, rbx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jne 0x180002720
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.18000661c
mov rcx, r15
mov rdx, rsi
mov r8, rax
call fcn.18000283a
mov rax, qword [r15 + 0x10]
mov qword [r14], rax
test ebx, ebx
sete bl
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.180009290
mov eax, ebx
add rsp, 0x250
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1800029d4
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x180002a21
mov ebx, eax
mov edx, eax
mov rcx, rsi
call fcn.180002780
test al, al
je 0x180002a21
mov rdx, qword [rsi + 0x10]
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, eax
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1800028b4
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x6d90f770
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d9305e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d90f8f8
mov rax, qword [0x6d9305e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d90f7bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d90f845
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d90f7a0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d90f92d
mov rax, qword [0x6d9305e8]
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 [0x6d9305e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d90f910
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d90f83e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d90f8a0
add dword [0x6d9305e4], 1
cmp edi, 8
jae 0x6d90f873
test dil, 4
jne 0x6d90f8e4
test edi, edi
je 0x6d90f868
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d90f8ff
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 0x6d90f868
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 0x6d90f88c
jmp 0x6d90f868
add rsi, qword [0x6d9305e8]
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 0x6d90f83e
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 0x6d90f868
xor esi, esi
jmp 0x6d90f7c7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d90f868
mov rax, qword [0x6d9305e8]
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 0x6d910080
Capabilities:
Get thread local storage value

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

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

Function at 0x6d910330
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 0x6d910371
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 0x6d910368
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d910373
add rax, 0x28
cmp rax, r9
jne 0x6d910354
xor eax, eax
ret

Function at 0x6d910410
Capabilities:
Enumerate pe sections

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

Function at 0x6d910580
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d92d1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d9105a0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d910598
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 0x6d9105fd
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 0x6d9105f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d910604
add rax, 0x28
cmp rax, r9
jne 0x6d9105e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d910620
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d92d1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d91068e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d91068e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d91068e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d91068e
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 0x6d910685
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d910695
add rcx, 0x28
cmp rcx, rax
jne 0x6d910670
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d9106a8
jmp 0x6d91068e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d9106b6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d91068e
test r9d, r9d
jg 0x6d9106a0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d910a20
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 0x180009400
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180013010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18000944f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180017030]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18000948d
cmp rsi, r14
jb 0x180009485
cmp rsi, r15
jae 0x180009485
cmp qword [rsi + 8], 0
jne 0x180009657
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180009470
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180009522
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180009519
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180009519
cmp dword [rsp + 0x40], 0x10000
je 0x18000959b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180009519
sub rbx, rbp
cmp rbx, r14
jae 0x1800094e0
test rsi, rsi
jne 0x180009600
cmp rdi, r15
ja 0x18000963f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18000963f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000963f
cmp dword [rsp + 0x40], 0x10000
je 0x1800095d1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180009552
jmp 0x18000963f
test rbx, rbx
je 0x180009519
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180009600
cmp rbx, r14
jae 0x1800094c0
jmp 0x180009522
test rdi, rdi
je 0x18000963f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180009600
cmp rdi, r15
jbe 0x180009530
jmp 0x18000963f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180009610
mov rax, qword [0x180017030]
mov qword [rsi], rax
mov qword [0x180017030], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18000acc0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18000a070
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180013010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000a19b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18000a192
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18000a174
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18000a174
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18000a174
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18000a132
mov rcx, qword [0x180014b80]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18000a192
jmp 0x18000a167
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18000a167
mov rcx, qword [0x180014b80]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18000a192
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18000a0e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18000a1f3
cmp dword [rbx + 0xc], esi
jbe 0x18000a1f3
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18000a1ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180009ec0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18000a1b0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000acc0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret