joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b300
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 fcn.140015cc0
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.140015cc0
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 0x14000b370
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14012a0a4]
mov rbx, rcx
test esi, esi
jle 0x14000b4a0
mov rax, qword [0x14012a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b3bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b445
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b3a0
mov rcx, rbx
call fcn.14000bde0
mov rdi, rax
test rax, rax
je 0x14000b4c2
mov rax, qword [0x14012a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000bf20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14012a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b4a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000b43e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000b450
add dword [0x14012a0a4], 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 [0x14012a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b43e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b300
nop dword [rax]
xor esi, esi
jmp 0x14000b3c8
mov rax, qword [0x14012a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b300
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b300
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ba50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14012a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14012a0e0]
test rbx, rbx
je 0x14000baac
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 0x14000baa3
test eax, eax
jne 0x14000baa3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ba88
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 0x14000bde0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000be60
Capabilities:
Parse pe header

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

Function at 0x14000bf20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140104260]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000bf3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000bf48
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140079240
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140079288
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007925a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b3b70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400fd680]
jmp 0x14000cc40

Function at 0x1400b3b80
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400fd680]
jmp 0x14000cc40

Function at 0x1400b4330
Capabilities:
Create thread
Inject thread

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
lea rsi, [0x1400b6380]
call fcn.14000b0f0
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0x44460
call rbx
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x28], 4
mov rcx, rax
mov dword [rsp + 0x20], 0x3000
call sub.ntdll.dll_NtAllocateVirtualMemory
call fcn.1400167b0
mov edx, dword [0x1400fd6a0]
mov r9d, 0x10
mov rcx, rsi
lea r8, [0x1400fd6b0]
call fcn.140016620
mov rdi, qword [rsp + 0x68]
call rbx
mov r9d, 0x44460
mov r8, rsi
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rdi
call sub.ntdll.dll_NtWriteVirtualMemory
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x64]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400b4478
call fcn.1400167b0
mov rsi, qword [rsp + 0x68]
call rbx
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x50], 0
mov r9, rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
call sub.ntdll.dll_NtCreateThreadEx
call fcn.1400167b0
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
xor edx, edx
call sub.ntdll.dll_NtWaitForSingleObject
call fcn.1400167b0
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtClose
xor eax, eax
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.VirtualProtect_failed_with_error_code:__lx_n
mov edx, eax
call fcn.1400165d0
or eax, 0xffffffff
jmp 0x1400b4470
Function at 0x14006bb20
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14006bbc0
jmp 0x14006bbaf
jae 0x14006bc7f
cmp r8, 0x201
jae 0x14006bbc0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14006bc17
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14006bbef
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14007f2b0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14006bc40
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14006bceb
mov r8d, r13d
cmp r12, r8
jne 0x14006bba0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006bd1f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14006bbaf
jmp 0x14006bbc0
cmp r14, r8
jb 0x14006bd39
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14006d820
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14006bcd4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140069a40
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14006bcbf
jmp 0x14006bcd4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_f8060d282d42770fadd73905e3eefb85660d3278library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400801c0
jmp 0x14006bd4e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140080570
ud2
Function at 0x1400718c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1400ead30]
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
movaps xmmword [rbp + 0x10], xmm0
test r9, r9
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140071952
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x14007197f
test eax, eax
js 0x14007195e
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x140071975
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.14006d550
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.14006a270
mov ecx, 7
int 0x29
ud2
Function at 0x14007d3c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14007d44a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14007d440
cmp r10, r11
jb 0x14007d4c6
cmp r10, rdx
ja 0x14007d4d8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14007d442
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14007d420
jmp 0x14007d4a7
ja 0x14007d44a
mov r11, r10
cmp rax, r8
jne 0x14007d3e7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14007d4ab
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14007d480
mov r8, r10
sub ecx, r9d
jns 0x14007d49e
jmp 0x14007d4ad
cmp r10, rdx
je 0x14007d4ba
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14007d4ad
xor al, 1
cmp r8, rdx
jne 0x14007d460
jmp 0x14007d4ad
xor eax, eax
jmp 0x14007d4ad
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400800a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400805e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140080570
int3

Function at 0x14007eb74
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0xf6d89d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xf6d8ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xf6d895
lea eax, [rcx + 1]
jmp 0xf6d8bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xf6d8ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xf6d8b4
sub eax, 3
jb 0xf6d8ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xf6d93d
sar eax, 1
movsxd rbp, eax
jb 0xf6d924
jmp 0xf6d8fc
add ebx, ebx
jne 0xf6d8fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xf6d924
inc ecx
add ebx, ebx
jne 0xf6d90a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xf6d924
call r11
adc ecx, ecx
add ebx, ebx
jne 0xf6d91d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xf6d90c
add ecx, 2
jmp 0xf6d929
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00f6d852
jmp 0xf6d89d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb5f000]
mov eax, dword [rdi]
or eax, eax
je 0xf6d999
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb6d288]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xf6d949
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xf6d993
mov qword [rbx], rax
add rbx, 8
jmp 0xf6d969
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xf6d9dd
cmp al, 0xef
ja 0xf6d9c5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xf6d9a5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xf6d9b4
mov eax, dword [rdi]
add rdi, 4
jmp 0xf6d9b4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xf6da31
sub rsp, 0xffffffffffffff80
jmp 0x461d80

Function at 0x140001be0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c2c
xor al, al
add rsp, 0x28
ret
Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x14000c008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000c008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000c008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret

Function at 0x140001908
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b4c2
mov al, 1
jmp 0x14001b522
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b4d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b520
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019600
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b520
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b520
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b520
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b522
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f740
Capabilities:
Parse pe header

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

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x14000c008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000c008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000c008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x14001d610
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r11, rdx
sub r11, rcx
mov r9, rcx
inc r11
mov r10d, r8d
shr r11, 1
cmp rcx, rdx
cmova r11, r8
test r11, r11
je 0x14001d65e
movzx ecx, word [r9]
lea r9, [r9 + 2]
sub ecx, 0x61c88647
mov rax, r8
shl rax, 6
inc r10
add rcx, rax
mov rax, r8
shr rax, 2
add rcx, rax
xor r8, rcx
cmp r10, r11
jne 0x14001d631
movabs rax, 0x200000005
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x1e
imul eax, eax, 0x7fffffff
sub r8d, eax
bts r8d, 0x1e
mov eax, r8d
ret
Function at 0x14002be90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1401b4048]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov edx, 0x361
mov dword [rbp - 0x59], 0x3610300
mov dword [rbp - 0x55], 0x4860483
lea rax, [rbp - 0x57]
mov dword [rbp - 0x51], 0x9030903
mov dword [rbp - 0x4d], 0x940093e
mov dword [rbp - 0x49], 0x94c0949
mov dword [rbp - 0x45], 0x9830982
mov dword [rbp - 0x41], 0x9c009be
mov dword [rbp - 0x3d], 0x9cc09c7
mov dword [rbp - 0x39], 0x9d709d7
mov dword [rbp - 0x35], 0xa400a3e
mov dword [rbp - 0x31], 0xa830a83
mov dword [rbp - 0x2d], 0xac00abe
mov dword [rbp - 0x29], 0xacc0ac9
mov dword [rbp - 0x25], 0xb030b02
mov dword [rbp - 0x21], 0xb3e0b3e
mov dword [rbp - 0x1d], 0xb400b40
mov dword [rbp - 0x19], 0xb4c0b47
mov dword [rbp - 0x15], 0xb570b57
mov dword [rbp - 0x11], 0xb830b83
mov dword [rbp - 0xd], 0xbbf0bbe
mov dword [rbp - 9], 0xbcc0bc1
mov dword [rbp - 5], 0xbd70bd7
mov dword [rbp - 1], 0xc030c01
mov dword [rbp + 3], 0xc440c41
mov dword [rbp + 7], 0xc830c82
mov dword [rbp + 0xb], 0xcbe0cbe
mov dword [rbp + 0xf], 0xcc40cc0
mov dword [rbp + 0x13], 0xccb0cc7
mov dword [rbp + 0x17], 0xcd60cd5
mov dword [rbp + 0x1b], 0xd030d02
mov dword [rbp + 0x1f], 0xd400d3e
mov dword [rbp + 0x23], 0xd4c0d46
mov dword [rbp + 0x27], 0xd570d57
mov dword [rbp + 0x2b], 0xf7f0f7f
mov dword [rbp + 0x2f], 0x20e120d0
mov dword [rbp + 0x33], 0x309a3099
mov qword [rbp + 0x37], 0xfffffffffe23fe20
cmp dx, cx
jae 0x14002bfc9
nop
add rax, 4
cmp word [rax], cx
jb 0x14002bfc0
cmp cx, word [rax - 2]
jb 0x14002bfd8
cmp cx, word [rax]
ja 0x14002bfd8
mov al, 1
jmp 0x14002bfda
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400bf400
add rsp, 0xb0
pop rbp
ret