joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001abb
Capabilities:
Send icmp echo request

Disassembly:
push r13
push r12
sub rsp, 0x68
mov edx, 0x726566
movabs rax, 0x6675422061746144
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
call sym.IcmpCreateFile
mov ecx, 0x48
mov r13, rax
call sym.malloc
lea r8, [rsp + 0x40]
or edx, 0xffffffff
mov rcx, r13
mov qword [rsp + 0x28], rax
mov r12, rax
mov r9d, 0x20
mov dword [rsp + 0x38], 0x927c0
mov dword [rsp + 0x30], 0x48
mov qword [rsp + 0x20], 0
call sym.IcmpSendEcho
mov rcx, r12
call sym.free
xor eax, eax
add rsp, 0x68
pop r12
pop r13
ret

Function at 0x140001b70
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, str.ping_localhost__n_600
call sym.system
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001bcd
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rbx
mov qword [0x14002a030], rax
test rax, rax
je 0x140001c09
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rbx
mov qword [0x14002a038], rax
test rax, rax
jne 0x140001c1d
lea rcx, str.CreateEvent_error_n
call sym.printf.constprop.0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov r9d, 0x927c0
xor r8d, r8d
mov ecx, 2
lea rdx, [0x14002a030]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14002a030]
call rbx
mov rcx, qword [0x14002a038]
call rbx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001ecb
Capabilities:
Enumerate processes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
xor eax, eax
xor edx, edx
lea rbp, [rsp + 0x20]
mov rbx, rcx
mov ecx, 0x4c
mov rdi, rbp
rep stosd dword [rdi], eax
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov r12, rax
xor eax, eax
cmp r12, 0xffffffffffffffff
je 0x140001f63
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x20], 0x130
call sym.Process32First
test eax, eax
je 0x140001f58
lea rsi, [rsp + 0x4c]
mov rdi, qword [sym.imp.msvcrt.dll__stricmp]
mov rdx, rbx
mov rcx, rsi
call rdi
test eax, eax
jne 0x140001f41
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140001f63
mov rdx, rbp
mov rcx, r12
call sym.Process32Next
test eax, eax
je 0x140001f58
mov rdx, rbx
mov rcx, rsi
jmp 0x140001f2c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400022a0
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 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140002310
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14002a0d4]
mov r12, rcx
test ebx, ebx
jle 0x140002440
mov rax, qword [0x14002a0d8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000235b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x1400023e5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140002340
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140002462
mov rax, qword [0x14002a0d8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002a0d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002447
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400023de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400023f0
add dword [0x14002a0d4], 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 [0x14002a0d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400023de
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 ebx, ebx
jmp 0x140002368
mov rax, qword [0x14002a0d8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400029e0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14002a140]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002a120]
test rbx, rbx
je 0x140002a3c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002a33
test r12, r12
je 0x140002a33
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002a18
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002c70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002c88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002c90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002ca0
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 0x140002ce5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x140002cdc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002ce7
add rax, 0x28
cmp rax, r9
jne 0x140002cc8
xor eax, eax
ret

Function at 0x140002cf0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002d80
mov rdx, qword [0x140026940]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x140002d6e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002d6e
cmp word [rax + 0x18], 0x20b
jne 0x140002d6e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002d80
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002d59
add r12, 0x28
cmp r12, rsi
je 0x140002d80
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002d50
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140026940]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002db0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002db8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002db0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002e05
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 0x140002dfc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002db0
add rax, 0x28
cmp rax, r9
jne 0x140002de8
xor eax, eax
ret

Function at 0x140002e10
Capabilities:
Parse pe header

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

Function at 0x140002e50
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140026940]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002e70
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002e78
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002e70
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002eb8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002eaf
test rcx, rcx
je 0x140002e70
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002ea0
xor eax, eax
ret
Function at 0x140002ec0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140026940]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002f20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002f28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002f20
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002f20
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002f6c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002f80
add rdx, 0x28
cmp rdx, r9
jne 0x140002f58
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140026940]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002fb2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002fc0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002fb2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002fb2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002fb2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000300d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003020
add rdx, 0x28
cmp r10, rdx
jne 0x140002ff8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000302f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000303f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140003016
test ecx, ecx
jg 0x140003028
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140005a30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor esi, esi
movzx eax, r8b
mov rdi, rcx
add rcx, 0x7c
mov rbx, rdx
mov r10d, esi
imul r9d, eax, 0x1010101
lea rax, [rdx + 0x7c]
lea r11d, [rsi + 8]
lea r8d, [rsi + 0x20]
movd xmm1, r9d
pshufd xmm1, xmm1, 0
cmp rdi, rax
ja 0x140005a79
cmp rcx, rdx
jae 0x140005aa7
mov rcx, rdi
mov rax, rdx
mov r10d, r8d
sub rcx, rdx
mov rdx, r11
nop dword [rax + rax]
movdqu xmm0, xmmword [rax]
lea rax, [rax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [rcx + rax - 0x10], xmm0
dec rdx
jne 0x140005a90
movsxd rax, r10d
cmp rax, r8
jge 0x140005ad3
mov r10, rbx
mov rdx, r8
lea rcx, [rdi + rax*4]
sub r10, rdi
sub rdx, rax
nop
mov eax, dword [r10 + rcx]
lea rcx, [rcx + 4]
xor eax, r9d
mov dword [rcx - 4], eax
dec rdx
jne 0x140005ac0
lea r10, [rdi + 0x80]
lea rdx, [rbx + 0x80]
lea rax, [rdx + 0x7c]
lea rcx, [r10 + 0x7c]
cmp r10, rax
ja 0x140005af3
cmp rcx, rdx
jae 0x140005b17
mov rcx, r10
mov rax, rdx
mov esi, r8d
sub rcx, rdx
nop
movdqu xmm0, xmmword [rax]
lea rax, [rax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [rcx + rax - 0x10], xmm0
dec r11
jne 0x140005b00
movsxd rax, esi
cmp rax, r8
jge 0x140005b42
sub rdx, r10
lea rcx, [r10 + rax*4]
sub r8, rax
nop dword [rax]
mov eax, dword [rdx + rcx]
lea rcx, [rcx + 4]
xor eax, r9d
mov dword [rcx - 4], eax
dec r8
jne 0x140005b30
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140005bd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
xor r14d, r14d
lea r15, [0x140000000]
nop dword [rax]
movzx esi, byte [r14 + r15 + 0xa020]
movzx r11d, byte [r14 + r15 + 0xa120]
movzx eax, sil
mov byte [rsp + 0x18], r11b
movzx ecx, sil
and al, 2
movzx edi, sil
movzx ebx, sil
neg al
movzx r10d, r11b
movzx r9d, r11b
sbb r8b, r8b
and cl, 1
and r8b, 0xb4
movzx eax, cl
neg al
sbb dl, dl
shr bl, 1
shr dil, 2
xor bl, sil
and dl, 0x5a
xor dil, dl
shr bl, 1
xor dil, r8b
xor dil, sil
neg cl
movzx ecx, r11b
sbb al, al
and al, 0xb4
xor bl, al
movzx eax, r11b
and al, 2
xor bl, dl
xor bl, r8b
xor bl, sil
neg al
sbb r8b, r8b
and cl, 1
and r8b, 0xb4
movzx eax, cl
neg al
sbb dl, dl
shr r9b, 1
shr r10b, 2
xor r9b, r11b
and dl, 0x5a
shr r9b, 1
xor r10b, dl
xor r10b, r8b
xor r10b, r11b
neg cl
sbb al, al
mov byte [rsp + 0x19], r10b
and al, 0xb4
xor r9b, al
xor r9b, dl
xor r9b, r8b
xor r9b, r11b
inc r14
mov byte [rsp + 0x1a], r9b
mov byte [rsp + 0x1b], r9b
mov eax, dword [rsp + 0x18]
mov byte [rsp + 0x18], bl
mov byte [rsp + 0x19], bl
mov byte [rsp + 0x1a], dil
mov dword [r15 + r14*4 + 0x1aa9fac], eax
mov byte [rsp + 0x1b], sil
mov eax, dword [rsp + 0x18]
mov byte [rsp + 0x18], r10b
mov byte [rsp + 0x19], r9b
mov byte [rsp + 0x1a], r11b
mov dword [r15 + r14*4 + 0x1aaa3ac], eax
mov byte [rsp + 0x1b], r9b
mov eax, dword [rsp + 0x18]
mov dword [r15 + r14*4 + 0x1aaa7ac], eax
mov byte [rsp + 0x18], dil
mov byte [rsp + 0x19], sil
mov byte [rsp + 0x1a], bl
mov byte [rsp + 0x1b], dil
mov eax, dword [rsp + 0x18]
mov dword [r15 + r14*4 + 0x1aaabac], eax
cmp r14, 0x100
jl 0x140005bf0
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov dword [0x141aa99c0], 0
pop r15
pop r14
ret
Function at 0x140005d50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor eax, eax
mov edi, edx
mov esi, ecx
mov ebx, eax
nop word [rax + rax]
test ebx, ebx
mov r8d, edi
cmovne r8d, esi
xor eax, r8d
mov r8d, eax
shr r8d, 0x18
mov r10d, r8d
movzx ecx, r8b
and cl, 0x80
neg cl
lea ecx, [r8 + r8]
sbb edx, edx
and r8b, 1
and edx, 0x14d
xor edx, ecx
mov ecx, r10d
neg r8b
movzx r9d, dl
sbb edx, edx
shr ecx, 1
and edx, 0xa6
xor edx, ecx
xor edx, r9d
mov r11d, edx
shl r11d, 8
xor r11d, r9d
shl r11d, 8
xor r11d, edx
xor r11d, eax
shl r11d, 8
xor r11d, r10d
mov edx, r11d
shr edx, 0x18
mov r9d, edx
movzx eax, dl
and al, 0x80
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
and dl, 1
and ecx, 0x14d
xor ecx, eax
neg dl
mov eax, r9d
movzx r8d, cl
sbb ecx, ecx
shr eax, 1
and ecx, 0xa6
xor ecx, eax
xor ecx, r8d
mov r10d, ecx
shl r10d, 8
xor r10d, r8d
shl r10d, 8
xor r10d, ecx
xor r10d, r11d
shl r10d, 8
xor r10d, r9d
mov edx, r10d
shr edx, 0x18
movzx eax, dl
mov r9d, edx
and al, 0x80
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
and dl, 1
and ecx, 0x14d
xor ecx, eax
neg dl
mov eax, r9d
movzx r8d, cl
sbb ecx, ecx
shr eax, 1
and ecx, 0xa6
xor ecx, eax
xor ecx, r8d
mov r11d, ecx
shl r11d, 8
xor r11d, r8d
shl r11d, 8
xor r11d, ecx
xor r11d, r10d
shl r11d, 8
xor r11d, r9d
mov edx, r11d
shr edx, 0x18
movzx eax, dl
mov r9d, edx
and al, 0x80
neg al
lea eax, [rdx + rdx]
sbb ecx, ecx
and dl, 1
and ecx, 0x14d
xor ecx, eax
neg dl
mov eax, r9d
movzx r8d, cl
sbb ecx, ecx
shr eax, 1
and ecx, 0xa6
inc ebx
xor ecx, eax
xor ecx, r8d
mov eax, ecx
shl eax, 8
xor eax, r8d
shl eax, 8
xor eax, ecx
xor eax, r11d
shl eax, 8
xor eax, r9d
cmp ebx, 2
jl 0x140005d70
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x140004dd0
Capabilities:
Compute adler32 checksum

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor edi, edi
mov rsi, r9
mov r9, qword [rsp + 0xe0]
mov rbx, r8
mov r15, rdx
mov qword [rsp + 0x48], rdi
mov r14, rcx
mov qword [rsp + 0x68], rdi
mov rax, qword [r9 + 0x20]
test rax, rax
je 0x140004e3a
mov qword [rsp + 0x20], r9
lea rdx, [rsp + 0x68]
mov r9, rsi
lea rcx, [rsp + 0x48]
call rax
mov rcx, qword [rsp + 0x68]
neg eax
sbb ebp, ebp
and ebp, 0x6f
jmp 0x140004e85
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rdi
mov r8, rsi
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rdi
mov rdx, rbx
movsd xmm1, qword [rsp + 0x40]
movups xmmword [rsp + 0x50], xmm0
movsd qword [rsp + 0x60], xmm1
call fcn.140004ab0
mov rcx, qword [rsp + 0x58]
mov ebp, eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], rcx
mov qword [r14], rdi
mov qword [r15], rdi
test ebp, ebp
jne 0x140004f7f
add rcx, 6
mov qword [r15], rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r14], rax
mov r9, rax
test rax, rax
jne 0x140004eb5
mov ebp, 0x53
jmp 0x140004f7f
mov ecx, 1
mov r8d, edi
test esi, esi
je 0x140004f1b
mov r10d, 0x15b0
nop word [rax + rax]
cmp esi, r10d
mov eax, esi
cmova eax, r10d
sub esi, eax
mov edx, eax
nop dword [rax]
movzx eax, byte [rbx]
inc rbx
add ecx, eax
add r8d, ecx
sub rdx, 1
jne 0x140004ee0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
mov eax, 0x80078071
mul r8d
shr edx, 0xf
imul eax, edx, 0xfff1
sub r8d, eax
test esi, esi
jne 0x140004ed0
mov byte [r9], 0x78
mov rax, qword [r14]
shl r8d, 0x10
or r8d, ecx
mov byte [rax + 1], 1
cmp qword [rsp + 0x68], rdi
je 0x140004f5a
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rsp + 0x48]
mov rdx, qword [r14]
movzx ecx, byte [rdi + rax]
mov byte [rdi + rdx + 2], cl
inc rdi
cmp rdi, qword [rsp + 0x68]
jne 0x140004f40
mov rdx, qword [r15]
mov ecx, r8d
add rdx, qword [r14]
shr ecx, 0x18
mov byte [rdx - 4], cl
mov ecx, r8d
shr ecx, 0x10
mov byte [rdx - 3], cl
mov ecx, r8d
shr ecx, 8
mov byte [rdx - 2], cl
mov byte [rdx - 1], r8b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebp
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003c5a0
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004fb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov eax, 0xffffffff
mov r9, rdx
lea rbx, [0x140000000]
mov r10, rcx
cmp rdx, 8
jb 0x140005078
mov r11, rdx
shr r11, 3
imul r8, r11, 0xfffffffffffffff8
add r9, r8
nop
movzx edx, byte [r10 + 2]
movzx ecx, byte [r10 + 1]
mov r8d, eax
shr rax, 0x10
movzx eax, al
xor rdx, rax
mov eax, r8d
shr rax, 8
movzx eax, al
xor rcx, rax
mov eax, dword [rbx + rdx*4 + 0x42010]
movzx edx, byte [r10 + 3]
xor eax, dword [rbx + rcx*4 + 0x40aa0]
mov ecx, r8d
shr rcx, 0x18
xor rdx, rcx
movzx ecx, byte [r10]
xor eax, dword [rbx + rdx*4 + 0x41810]
movzx edx, r8b
xor rdx, rcx
movzx ecx, byte [r10 + 7]
xor eax, dword [rbx + rdx*4 + 0x41390]
xor eax, dword [rbx + rcx*4 + 0x424e0]
movzx ecx, byte [r10 + 6]
xor eax, dword [rbx + rcx*4 + 0x40ec0]
movzx ecx, byte [r10 + 5]
xor eax, dword [rbx + rcx*4 + 0x42900]
movzx ecx, byte [r10 + 4]
add r10, 8
xor eax, dword [rbx + rcx*4 + 0x41c10]
sub r11, 1
jne 0x140004fe0
test r9, r9
je 0x1400050a0
nop dword [rax]
movzx edx, byte [r10]
lea r10, [r10 + 1]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [rbx + rcx*4 + 0x424e0]
sub r9, 1
jne 0x140005080
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140017a90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140017ab8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140017ade
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140017ae0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140017b39
test ecx, ecx
jle 0x140017b19
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140017b39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140017b39
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140017b60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140017b82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140017b98
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140017bb4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140017bb6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140017bf2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140017c8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140017c2d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140017c6e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140017c8e
cmp rbx, rax
ja 0x140017c40
test rbx, rbx
je 0x140017c8e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret