joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029b84
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029cd4
cmp rax, 0xffffffffffffffff
je 0x140029cd4
xor edi, edi
test rbp, rbp
jle 0x140029c7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fda4
mov rbx, rax
test rax, rax
jne 0x140029c0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c75
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aac0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de00
cmp eax, 0xffffffff
je 0x140029c55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c1c
mov edx, r15d
mov ecx, r14d
call fcn.14001aac0
jmp 0x140029c75
cmp byte [rsi + 0x38], dil
je 0x140029c6c
cmp dword [rsi + 0x34], 5
jne 0x140029c6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b404
jmp 0x140029ce8
jns 0x140029ce8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d124
cmp rax, 0xffffffffffffffff
jne 0x140029ca0
cmp byte [rsi + 0x30], dil
je 0x140029ce8
mov edi, dword [rsi + 0x2c]
jmp 0x140029ce8
mov ecx, r14d
call fcn.1400195f8
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x140029ce8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029ce8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ce1
mov eax, dword [rsi + 0x2c]
jmp 0x140029ce6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d124
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ade0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400111f4
Capabilities:
Terminate process

Disassembly:
jmp 0x140012dc0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001126c
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140011840
push rbp
push rsi
push rdi
sub rsp, 0x180
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x24
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x1400220f4]
call fcn.140011375
nop
lea rax, [rbp + 8]
lea rcx, [0x14001ac88]
mov rdi, rax
mov rsi, rcx
mov ecx, 0xb
rep movsb byte [rdi], byte [rsi]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0xb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x38], rax
mov r8d, 0xb
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x38]
call fcn.1400111b3
nop
lea rax, [rbp + 0x54]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x78], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ac50]
call fcn.14001130c
mov eax, edi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.1400111ae
lea rsp, [rbp + 0x150]
pop rdi
pop rsi
pop rbp
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014110
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014130
xor al, al
jmp 0x1400141b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014143
xor al, al
jmp 0x1400141b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001416d
xor al, al
jmp 0x1400141b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014181
xor al, al
jmp 0x1400141b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014193
xor al, al
jmp 0x1400141b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400141af
xor al, al
jmp 0x1400141b1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011ff0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001139d
movzx eax, al
test eax, eax
jne 0x140012010
mov ecx, 7
call fcn.140011316
nop
mov byte [rsp + 0x20], 0
call fcn.14001132a
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140012034
mov ecx, 7
call fcn.140011316
nop
jmp 0x14001208c
cmp dword [0x14001d868], 0
jne 0x140012087
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.14001119a
test eax, eax
je 0x140012068
mov eax, 0xff
jmp 0x140012191
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011320
mov dword [0x14001d868], 2
jmp 0x14001208c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011302
call fcn.140011299
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400120e9
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400120e9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140023020]
nop
call fcn.1400112cb
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001211d
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x14001211d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011357
nop
call fcn.140012240
mov dword [rsp + 0x28], eax
call fcn.140011276
movzx eax, al
test eax, eax
jne 0x14001213c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001214b
call fcn.140011361
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x140012191
add rsp, 0x68
ret
Function at 0x140151050
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14015105d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14015106d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140151055
lea eax, [rcx + 1]
jmp 0x14015107b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14015108e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140151074
sub eax, 3
jb 0x1401510ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401510fd
sar eax, 1
movsxd rbp, eax
jb 0x1401510e4
jmp 0x1401510bc
add ebx, ebx
jne 0x1401510ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401510e4
inc ecx
add ebx, ebx
jne 0x1401510ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401510e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401510dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401510cc
add ecx, 2
jmp 0x1401510e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140151012
jmp 0x14015105d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3b600
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140151149
cmp rsi, rcx
jae 0x140151151
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140151130
cmp al, 0x8f
ja 0x140151130
cmp byte [rsi - 2], 0xf
je 0x140151136
sub al, 0xe8
cmp al, 1
ja 0x14015111a
cmp rsi, rcx
jae 0x140151151
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140151120
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140151151
lodsb al, byte [rsi]
jmp 0x140151130
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x14d000]
mov eax, dword [rdi]
or eax, eax
je 0x1401511ba
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x162158]
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 0x14015115e
jns 0x140151193
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14015119d
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 0x1401511b4
mov qword [rbx], rax
add rbx, 8
jmp 0x14015117e
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 0x1401511f4
cmp al, 0xef
ja 0x1401511e6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401511c6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1401511d5
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 + 0x23f]
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 0x140151248
sub rsp, 0xffffffffffffff80
jmp 0x140022b70
Function at 0x141836058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1418361df
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 0x141836089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14183606f
add dl, dl
jne 0x141836096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418360f6
xor eax, eax
add dl, dl
jne 0x1418360a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418361ad
add dl, dl
jne 0x1418360b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418360c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418360d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418360dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1418360ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14183607e
mov eax, 1
add dl, dl
jne 0x141836106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141836113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418360fb
sub eax, ebx
mov ebx, 1
jne 0x14183614c
mov ecx, 1
add dl, dl
jne 0x14183612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14183613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141836123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14183607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141836168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141836175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14183615d
cmp eax, 0x7d00
jae 0x14183619b
cmp eax, 0x500
jb 0x141836196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14183607e
cmp eax, 0x7f
ja 0x14183619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14183607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1418361d2
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 0x14183607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001596
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.140002340
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov rax, qword [0x1401d2000]
mov edx, 0x100
mov r9, rax
lea r8, section..data
lea rax, section..rdata
mov rcx, rax
call fcn.140001430
mov rax, qword [0x1401d2000]
mov rdx, rax
lea rax, section..data
mov rcx, rax
call fcn.140001f7b
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000160d
mov eax, 1
jmp 0x1400016f4
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.1400017d4
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000165a
lea rax, str.Failed_to_allocate_mem_n
mov rcx, rax
call fcn.1400014a7
jmp 0x1400016bb
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call fcn.140001ef6
test al, al
jne 0x140001686
lea rax, str.Failed_to_load_pe_into_mem_n
mov rcx, rax
call fcn.1400014a7
jmp 0x1400016bb
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x70]
mov edx, eax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.1400017a2
mov qword [rbp - 8], 0
mov rax, qword [rbp - 0x20]
call rax
mov eax, 0
jmp 0x1400016f4
cmp qword [rbp - 8], 0
je 0x1400016ce
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.1400017a2
cmp qword [rbp - 0x10], 0
je 0x1400016ef
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r8d, 0x8000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x140001cdb
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov rax, qword [rbp + 0x20]
movzx eax, word [rax + 0xa6]
movzx eax, ax
and eax, 0x40
test eax, eax
jne 0x140001d3c
mov ecx, 2
mov rax, qword [fcn.140008fb0]
call rax
mov r9, rax
mov r8d, 0x2b
mov edx, 1
lea rax, str.Cannot_relocate_pe__missing_characteristic_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov eax, 0
jmp 0x140001eef
mov rax, qword [rbp + 0x20]
movzx eax, byte [rax + 0x54]
test al, al
je 0x140001d58
mov rax, qword [rbp + 0x20]
add rax, 0xd0
add rax, 0x28
jmp 0x140001d66
mov rax, qword [rbp + 0x20]
add rax, 0xc0
add rax, 0x28
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax]
test eax, eax
jne 0x140001da9
mov ecx, 2
mov rax, qword [fcn.140008fb0]
call rax
mov r9, rax
mov r8d, 0x2f
mov edx, 1
lea rax, str._pe_relocate_in_mem__Relocation_table_is_empty_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov eax, 1
jmp 0x140001eef
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x78]
sub rdx, rax
mov qword [rbp - 0x20], rdx
mov rax, qword [rbp - 0x18]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x28]
add rax, rdx
mov qword [rbp - 8], rax
jmp 0x140001edc
mov rax, qword [rbp - 8]
mov eax, dword [rax + 4]
mov eax, eax
sub rax, 8
shr rax, 1
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 8]
add rax, 8
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x10], 0
jmp 0x140001ec1
mov rax, qword [rbp - 0x10]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x30]
add rax, rdx
movzx eax, word [rax]
shr ax, 0xc
mov word [rbp - 0x32], ax
mov rax, qword [rbp - 0x10]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x30]
add rax, rdx
movzx eax, word [rax]
and ax, 0xfff
mov word [rbp - 0x34], ax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov edx, eax
movzx eax, word [rbp - 0x34]
add rdx, rax
mov rax, qword [rbp + 0x28]
add rax, rdx
mov qword [rbp - 0x40], rax
cmp word [rbp - 0x32], 0xa
jne 0x140001ebc
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x30]
add rdx, rax
mov rax, qword [rbp - 0x40]
cmp rdx, rax
jae 0x140001ea7
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x30]
lea rbx, [rdx + rax]
mov ecx, 2
mov rax, qword [fcn.140008fb0]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x40]
mov r9, rbx
mov r8, rax
lea rax, str.ptr:__p_is_bigger_than_mem__memsize:__p_n
mov rdx, rax
call fcn.140003380
mov eax, 0
jmp 0x140001eef
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x20]
add rdx, rax
mov rax, qword [rbp - 0x40]
mov qword [rax], rdx
add qword [rbp - 0x10], 1
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x28]
jb 0x140001e01
mov rax, qword [rbp - 8]
mov eax, dword [rax + 4]
mov eax, eax
add qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
test eax, eax
jne 0x140001dd4
mov eax, 1
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x140002530
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.140008fb0
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.140008fb0
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 0x1400025a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401d7094]
mov rbx, rcx
test esi, esi
jle 0x1400026d0
mov rax, qword [0x1401d7098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400025eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002675
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400025d0
mov rcx, rbx
call fcn.140003060
mov rdi, rax
test rax, rax
je 0x1400026f2
mov rax, qword [0x1401d7098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400031a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401d7098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400026d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000266e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002680
add dword [0x1401d7094], 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 [0x1401d7098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000266e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002530
nop dword [rax]
xor esi, esi
jmp 0x1400025f8
mov rax, qword [0x1401d7098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002530
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002530
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002ca0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401d7100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401d70e0]
test rbx, rbx
je 0x140002d04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002cfb
test eax, eax
jne 0x140002cfb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002ce0
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 0x140003060
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400030e0
Capabilities:
Parse pe header

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

Function at 0x1400031a0
Capabilities:
Parse pe header

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