joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c650
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.14000d880
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.14000d880
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 0x14000c6c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002b0e4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14000c850
mov rax, qword [0x14002b0e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000c70c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14000c795
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14000c6f0
mov rcx, rdi
call fcn.14000d220
test rax, rax
mov r12, rax
je 0x14000c8a2
mov rax, qword [0x14002b0e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.14000d360
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14002b0e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000c885
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000c78e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000c800
add dword [0x14002b0e4], 1
cmp ebx, 8
jae 0x14000c7c1
test bl, 4
jne 0x14000c860
test ebx, ebx
je 0x14000c7b6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14000c874
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 0x14000c7b6
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 0x14000c7da
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 [0x14002b0e8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000c78e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000c650
xor esi, esi
jmp 0x14000c717
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14000c7b6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14000c7b6
mov rax, qword [0x14002b0e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000c650
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000c650
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14000ce70
Capabilities:
Get thread local storage value

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

Function at 0x14000d220
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140021a10]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000d28f
mov rcx, r9
call fcn.14000d0f0
test eax, eax
je 0x14000d28f
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 0x14000d28d
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 0x14000d284
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000d28f
add rdx, 0x28
cmp rdx, r9
jne 0x14000d270
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14000d4e0
Capabilities:
Accept command line arguments

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov dword [rsp + 0x4c], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
mov r13, rax
je 0x14000d632
movabs rax, 0xfffffffffffffff
mov esi, dword [rsp + 0x4c]
lea ecx, [rsi + 1]
movsxd rcx, ecx
cmp rcx, rax
ja 0x14000d63a
shl rcx, 3
xor ebx, ebx
call sub.libstdc_6.dll_operator_new___unsigned_long_long_
test esi, esi
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12, rax
je 0x14000d5d0
mov r14, qword [r13 + rbx*8]
xor edx, edx
mov r9d, 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, r14
call rbp
movsxd rcx, eax
mov rdi, rcx
call sub.libstdc_6.dll_operator_new___unsigned_long_long_
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov rsi, rax
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, r14
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call rbp
mov qword [r12 + rbx*8], rsi
lea esi, [rbx + 1]
add rbx, 1
cmp dword [rsp + 0x4c], ebx
jne 0x14000d550
movsxd rsi, esi
mov rcx, r13
xor ebx, ebx
mov qword [r12 + rsi*8], 0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x4c]
mov rdx, r12
call fcn.140005f70
mov r13d, eax
mov eax, dword [rsp + 0x4c]
test eax, eax
jne 0x14000d60f
jmp 0x14000d618
call sub.libstdc_6.dll_operator_delete___void_
add rbx, 1
cmp dword [rsp + 0x4c], ebx
je 0x14000d618
mov rcx, qword [r12 + rbx*8]
test rcx, rcx
jne 0x14000d600
mov rcx, r12
call sub.libstdc_6.dll_operator_delete___void_
mov eax, r13d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r13d, 0xffffffff
jmp 0x14000d620
call sub.libstdc_6.dll___cxa_throw_bad_array_new_length
nop
jmp qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub rsp, 0x28
call fcn.14000c450
mov rax, qword [0x140021ad0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x140021ac0]
mov r8, qword [rax]
mov rax, qword [0x140021ab0]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x14000d4e0
Function at 0x14001e8c0
Capabilities:
Accept command line arguments

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov dword [rsp + 0x4c], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x4c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
mov r13, rax
je 0x14000d632
movabs rax, 0xfffffffffffffff
mov esi, dword [rsp + 0x4c]
lea ecx, [rsi + 1]
movsxd rcx, ecx
cmp rcx, rax
ja 0x14000d63a
shl rcx, 3
xor ebx, ebx
call sub.libstdc_6.dll_operator_new___unsigned_long_long_
test esi, esi
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12, rax
je 0x14000d5d0
mov r14, qword [r13 + rbx*8]
xor edx, edx
mov r9d, 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r8, r14
call rbp
movsxd rcx, eax
mov rdi, rcx
call sub.libstdc_6.dll_operator_new___unsigned_long_long_
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov rsi, rax
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, r14
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call rbp
mov qword [r12 + rbx*8], rsi
lea esi, [rbx + 1]
add rbx, 1
cmp dword [rsp + 0x4c], ebx
jne 0x14000d550
movsxd rsi, esi
mov rcx, r13
xor ebx, ebx
mov qword [r12 + rsi*8], 0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x4c]
mov rdx, r12
call fcn.140005f70
mov r13d, eax
mov eax, dword [rsp + 0x4c]
test eax, eax
jne 0x14000d60f
jmp 0x14000d618
call sub.libstdc_6.dll_operator_delete___void_
add rbx, 1
cmp dword [rsp + 0x4c], ebx
je 0x14000d618
mov rcx, qword [r12 + rbx*8]
test rcx, rcx
jne 0x14000d600
mov rcx, r12
call sub.libstdc_6.dll_operator_delete___void_
mov eax, r13d
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r13d, 0xffffffff
jmp 0x14000d620
call sub.libstdc_6.dll___cxa_throw_bad_array_new_length
nop
jmp qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub rsp, 0x28
call fcn.14000c450
mov rax, qword [0x140021ad0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x140021ac0]
mov r8, qword [rax]
mov rax, qword [0x140021ab0]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x14000d4e0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400098d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400098e0]
mov dword [rax], 1
mov rax, qword [0x1400098f0]
mov dword [rax], 1
mov rax, qword [0x140009850]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400098c0]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400099a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140009980]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009830]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001a60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
mov rbx, rcx
test esi, esi
jle 0x140001c00
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ba5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b00
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001c22
mov rax, qword [0x14000d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b9e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001bb0
add dword [0x14000d094], 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 [0x14000d098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001b28
mov rax, qword [0x14000d098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400021b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x14000220c
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 rsi, rsi
je 0x140002203
test eax, eax
jne 0x140002203
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400021e8
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 0x140002420
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002438
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002440
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002450
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000249d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002494
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000249f
add rax, 0x28
cmp rax, r9
jne 0x140002480
xor eax, eax
ret

Function at 0x1400024a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002530
mov rdx, qword [0x140009850]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000251e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000251e
cmp word [rax + 0x18], 0x20b
jne 0x14000251e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002530
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002509
add rbx, 0x28
cmp rbx, rdi
je 0x140002530
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002500
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x1400025c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009850]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400025df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400025e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400025df
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002600
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009850]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002620
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002628
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002620
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002670
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002667
test rcx, rcx
je 0x140002620
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002658
xor eax, eax
ret

Function at 0x140002680
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140009850]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400026e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400026e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026e0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400026e0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002734
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002740
add rdx, 0x28
cmp rdx, r9
jne 0x140002720
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009850]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002772
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002780
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002772
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002772
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002772
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400027d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400027e8
add rdx, 0x28
cmp r10, rdx
jne 0x1400027c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002807
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400027de
test ecx, ecx
jg 0x1400027f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400ba880
Capabilities:
Encode data using xor

Disassembly:
mov r8, qword [rdx]
bswap r8
xor r8, qword [rcx + 0x70]
mov qword [rcx + 0x70], r8
mov r9, qword [rdx + 8]
bswap r9
xor r9, qword [rcx + 0x78]
pxor xmm0, xmm0
xor r10d, r10d
mov edx, r9d
and edx, 1
mov rax, r9
shr rax, 1
mov qword [rcx + 0x78], rax
neg rdx
movdqu xmm1, xmmword [rcx + r10 + 0x90]
movq xmm2, rdx
pshufd xmm2, xmm2, 0x44
pand xmm2, xmm1
pxor xmm2, xmm0
and eax, 1
shr r9, 2
mov qword [rcx + 0x78], r9
neg rax
movdqu xmm1, xmmword [rcx + r10 + 0xa0]
movq xmm0, rax
pshufd xmm0, xmm0, 0x44
pand xmm0, xmm1
pxor xmm0, xmm2
add r10, 0x20
cmp r10, 0x400
jne 0x1400ba8a0
xor r9d, r9d
nop dword [rax]
mov eax, r8d
and eax, 1
mov rdx, r8
shr rdx, 1
mov qword [rcx + 0x70], rdx
neg rax
movdqu xmm1, xmmword [rcx + r9 + 0x490]
movq xmm2, rax
pshufd xmm2, xmm2, 0x44
pand xmm2, xmm1
pxor xmm2, xmm0
and edx, 1
shr r8, 2
mov qword [rcx + 0x70], r8
neg rdx
movdqu xmm1, xmmword [rcx + r9 + 0x4a0]
movq xmm0, rdx
pshufd xmm0, xmm0, 0x44
pand xmm0, xmm1
pxor xmm0, xmm2
add r9, 0x20
cmp r9, 0x400
jne 0x1400ba910
movdqu xmmword [rcx + 0x70], xmm0
ret

Function at 0x1400bb2bc
Capabilities:
Parse pe header

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

Function at 0x1400c8284
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400c83d8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400c8447
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c8447
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c8447
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c8447
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c8447
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c8447
cmp dword [rcx + 0xf8], 0
je 0x1400c8447
mov ecx, ebx
call fcn.1400c8304
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400c856c
nop
cmp dword [rbp + 0x20], 0
je 0x1400c8495
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c83a4
int3
Function at 0x1400d0680
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1400d069d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400d06f8
test al, 7
jne 0x1400d0690
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400d06b1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400d0722
test dh, dh
je 0x1400d071c
shr rdx, 0x10
test dl, dl
je 0x1400d0716
test dh, dh
je 0x1400d0710
shr rdx, 0x10
test dl, dl
je 0x1400d070a
test dh, dh
je 0x1400d0704
shr edx, 0x10
test dl, dl
je 0x1400d06fe
test dh, dh
jne 0x1400d06b1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400d1cd0
Capabilities:
Parse pe header

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