joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45dcc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45dd6f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [sym.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x006202a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp sym.runtime.callers

Function at 0x468800
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x0062008b], 0
je 0x46880e
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x468820
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x0062008b], 0
je 0x468835
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x468840
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x0062008b], 0
je 0x468875
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x006206a0]
aesenc xmm0, xmmword [0x006206b0]
aesenc xmm0, xmmword [0x006206c0]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback

Function at 0x468880
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x0062008b], 0
je 0x4688b6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x006206a0]
aesenc xmm0, xmmword [0x006206b0]
aesenc xmm0, xmmword [0x006206c0]
movq rax, xmm0
ret
jmp sym.runtime.memhash64Fallback
Function at 0x469f40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
xorps xmm15, xmm15
xor r14, r14
mov rax, qword [0x006202a0]
mov rax, qword gs:[rax]
cmp rax, 0
je 0x469fdb
mov r14, qword [rax]
sub rsp, 0x10
mov rax, rcx
mov rbx, rdx
call sym.runtime.sigtrampgo
add rsp, 0x10
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
pop rbp
ret

Function at 0x46a200
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x28
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
mov rax, qword [0x006202a0]
mov rax, qword gs:[rax]
cmp rax, 0
jne 0x46a297
int 3
mov r14, qword [rax]
sub rsp, 0x28
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], r9
call sym.runtime.sehhandler.abi0
mov eax, dword [rsp + 0x20]
add rsp, 0x28
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
add rsp, 0x28
pop rbp
ret
Function at 0x46a660
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46a694
mov rcx, 0x28
jmp 0x46a69f
shl rcx, 3
add rcx, 0x1480
mov qword [0x006202a0], rcx
pop rbp
ret
Function at 0x484ae0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x484baa
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x006202a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x484b8f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004bf100]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x484b7e
mov edi, 1
lea rsi, [0x004bf100]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00503f18]
lea rsi, [0x005036e0]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString

Function at 0x4a90e0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4a981f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4a910d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x4a9391
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4a93bd
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x005055c0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004bf000]
lea rbx, [0x00503df0]
call sym.runtime.gopanic
inc rax
cmp rax, r8
jge 0x4a93e2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4a9417
lea rdi, [0x004bf080]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4a9103
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4a93fb
jmp 0x4a93d0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.internal_bisect.Hash

Function at 0x4a99c0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4a99d7
inc rax
cmp rax, 4
jge 0x4a99ef
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4a99d4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4a9a00
inc rax
cmp rax, 4
jge 0x4a9a0e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4a9a37
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4a9a1b
jmp 0x4a99fd
Function at 0x415a30
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.00421db0
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.00421db0
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 0x415aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0154b174]
mov r12, rcx
test ebx, ebx
jle 0x415bd0
mov rax, qword [0x0154b178]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x415aec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x415b73
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x415ad0
mov rcx, r12
call fcn.00416450
mov rsi, rax
test rax, rax
je 0x415bf2
mov rax, qword [0x0154b178]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.00416580
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0154b178]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x415bd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x415b6c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x415b80
add dword [0x0154b174], 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 [0x0154b178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x415b6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00415a30
nop dword [rax]
xor ebx, ebx
jmp 0x415af7
mov rax, qword [0x0154b178]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00415a30
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00415a30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4160c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0154b1e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0154b1c0]
test rbx, rbx
je 0x416114
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 0x41610b
test r12, r12
je 0x41610b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4160f0
lea rcx, [0x0154b1e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x416450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x01524bc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x416470
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x416478
ret
cmp word [r8 + 0x18], 0x20b
jne 0x416470
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x4164c5
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 0x4164bc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x416470
add rax, 0x28
cmp rax, r9
jne 0x4164a8
xor eax, eax
ret

Function at 0x4164d0
Capabilities:
Parse pe header

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

Function at 0x416580
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x01524bc0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4165a0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4165a8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x4167d0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x0154b1c8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x416150
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x4161a3
mov dword [rax], edi
lea rcx, [0x0154b1e0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x0154b1c0]
lea rcx, [0x0154b1e0]
mov qword [0x0154b1c0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x416146
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x416800
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x422160
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x422170
xor eax, eax
ret
jmp 0x416130

Function at 0x416840
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x416880
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x416898
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x47eab0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x47ead7
call rbp
cmp dword [rax], 4
jne 0x47eaf4
mov rcx, rdi
call fcn.0047e8d0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x47ead0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0xe483c8
Capabilities:
Decompress data using aplib

Disassembly:
call 0xe4854f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xe483f9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe483df
add dl, dl
jne 0xe48406
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe48466
xor eax, eax
add dl, dl
jne 0xe48415
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe4851d
add dl, dl
jne 0xe48426
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe48433
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe48440
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe4844d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xe4845a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xe483ee
mov eax, 1
add dl, dl
jne 0xe48476
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe48483
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe4846b
sub eax, ebx
mov ebx, 1
jne 0xe484bc
mov ecx, 1
add dl, dl
jne 0xe4849e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe484ab
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe48493
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe483ee
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe484d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe484e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe484cd
cmp eax, 0x7d00
jae 0xe4850b
cmp eax, 0x500
jb 0xe48506
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe483ee
cmp eax, 0x7f
ja 0xe4850e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe483ee
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xe48542
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 0xe483ee
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x100024f8
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1005a018]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, qword [rbp - 8]
add rcx, 8
mov rax, qword [rax]
mov rcx, qword [rcx]
cmp rax, rcx
jb 0x100025f6
mov rax, qword [rbp - 8]
add rax, 0x10
mov eax, dword [rax]
cmp eax, 0
jl 0x1000258c
mov eax, 0x2000
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
add rax, 0x10
mov rcx, qword [rbp - 8]
add rcx, 0x44c
mov edx, dword [rbp - 0xc]
mov r8, rdx
mov r11, rcx
mov eax, dword [rax]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll__read
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
cmp eax, 0
jge 0x10002587
mov eax, 0
mov dword [rbp - 0xc], eax
jmp 0x10002594
mov eax, 0
mov dword [rbp - 0xc], eax
mov rax, qword [section..bss]
add rax, 0x660
mov qword [rbp - 0x18], rax
mov eax, dword [rax]
mov ecx, dword [rbp - 0xc]
add eax, ecx
mov rcx, qword [rbp - 0x18]
mov dword [rcx], eax
mov rax, qword [rbp - 8]
mov rcx, qword [rbp - 8]
add rcx, 0x44c
mov qword [rax], rcx
mov rax, qword [rbp - 8]
add rax, 8
mov rcx, qword [rbp - 8]
add rcx, 0x44c
mov edx, dword [rbp - 0xc]
movsxd rdx, edx
add rcx, rdx
mov qword [rax], rcx
mov rax, qword [rbp - 8]
add rax, 8
mov rax, qword [rax]
mov ecx, 0x5c
mov byte [rax], cl
mov rax, qword [rbp - 8]
mov rcx, qword [rbp - 8]
add rcx, 8
mov rax, qword [rax]
mov rcx, qword [rcx]
cmp rax, rcx
jae 0x10002620
mov rax, qword [rbp - 8]
mov rax, qword [rax]
movzx eax, byte [rax]
jmp 0x1000263c
mov rax, qword [rbp - 8]
mov rcx, qword [rbp - 8]
add rcx, 8
mov rcx, qword [rcx]
mov qword [rax], rcx
mov eax, 0xffffffff
jmp 0x1000263c
leave
ret
Function at 0x10002503
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1005a018]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, qword [rbp - 8]
add rcx, 8
mov rax, qword [rax]
mov rcx, qword [rcx]
cmp rax, rcx
jb 0x100025f6
mov rax, qword [rbp - 8]
add rax, 0x10
mov eax, dword [rax]
cmp eax, 0
jl 0x1000258c
mov eax, 0x2000
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
add rax, 0x10
mov rcx, qword [rbp - 8]
add rcx, 0x44c
mov edx, dword [rbp - 0xc]
mov r8, rdx
mov r11, rcx
mov eax, dword [rax]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll__read
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
cmp eax, 0
jge 0x10002587
mov eax, 0
mov dword [rbp - 0xc], eax
jmp 0x10002594
mov eax, 0
mov dword [rbp - 0xc], eax
mov rax, qword [section..bss]
add rax, 0x660
mov qword [rbp - 0x18], rax
mov eax, dword [rax]
mov ecx, dword [rbp - 0xc]
add eax, ecx
mov rcx, qword [rbp - 0x18]
mov dword [rcx], eax
mov rax, qword [rbp - 8]
mov rcx, qword [rbp - 8]
add rcx, 0x44c
mov qword [rax], rcx
mov rax, qword [rbp - 8]
add rax, 8
mov rcx, qword [rbp - 8]
add rcx, 0x44c
mov edx, dword [rbp - 0xc]
movsxd rdx, edx
add rcx, rdx
mov qword [rax], rcx
mov rax, qword [rbp - 8]
add rax, 8
mov rax, qword [rax]
mov ecx, 0x5c
mov byte [rax], cl
mov rax, qword [rbp - 8]
mov rcx, qword [rbp - 8]
add rcx, 8
mov rax, qword [rax]
mov rcx, qword [rcx]
cmp rax, rcx
jae 0x10002620
mov rax, qword [rbp - 8]
mov rax, qword [rax]
movzx eax, byte [rax]
jmp 0x1000263c
mov rax, qword [rbp - 8]
mov rcx, qword [rbp - 8]
add rcx, 8
mov rcx, qword [rcx]
mov qword [rax], rcx
mov eax, 0xffffffff
jmp 0x1000263c
leave
ret
Function at 0x1003392e
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, 0
mov dword [rbp - 0x10], eax
mov eax, 1
mov dword [rbp - 0xc], eax
mov rax, qword [rbp + 0x10]
add rax, 0x520
mov ecx, dword [rbp - 0xc]
mov eax, dword [rax]
cmp ecx, eax
jge 0x10033a69
jmp 0x1003397f
mov eax, dword [rbp - 0xc]
mov ecx, eax
add eax, 1
mov dword [rbp - 0xc], eax
jmp 0x10033955
mov rax, qword [rbp + 0x10]
add rax, 0x518
mov ecx, dword [rbp - 0xc]
movsxd rcx, ecx
shl rcx, 2
mov rdx, qword [rbp + 0x20]
add rdx, rcx
mov edx, dword [rdx]
movsxd rdx, edx
shl rdx, 3
mov rax, qword [rax]
add rax, rdx
mov rax, qword [rax]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
add rax, 0x28
mov eax, dword [rax]
cmp eax, 8
je 0x10033a64
mov rax, qword [rbp - 8]
add rax, 0x2c
mov eax, dword [rax]
and eax, 2
cmp eax, 0
je 0x10033a64
mov rax, qword [rbp - 8]
add rax, 0x48
mov ecx, dword [rbp - 0x10]
mov eax, dword [rax]
cmp ecx, eax
jae 0x10033a16
mov rax, qword [rbp + 0x18]
mov r11, rax
mov eax, 0
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fputc
mov eax, dword [rbp - 0x10]
mov ecx, eax
add eax, 1
mov dword [rbp - 0x10], eax
jmp 0x100339da
mov rax, qword [rbp - 8]
add rax, 0x3c
mov eax, dword [rax]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
add rax, 8
mov ecx, dword [rbp - 0x14]
movsxd rcx, ecx
mov rdx, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
movabs rcx, 1
mov r11, rcx
mov rax, qword [rax]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov eax, dword [rbp - 0x10]
mov ecx, dword [rbp - 0x14]
add eax, ecx
mov dword [rbp - 0x10], eax
jmp 0x10033972
mov eax, 0
leave
ret