joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008367c
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.140075d64
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140075d64
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400837cc
cmp rax, 0xffffffffffffffff
je 0x1400837cc
xor edi, edi
test rbp, rbp
jle 0x140083777
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140074d60
mov rbx, rax
test rax, rax
jne 0x140083704
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14008376d
mov edx, 0x8000
mov ecx, r14d
call fcn.140070874
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.1400772e0
cmp eax, 0xffffffff
je 0x14008374d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140083714
mov edx, r15d
mov ecx, r14d
call fcn.140070874
jmp 0x14008376d
cmp byte [rsi + 0x38], dil
je 0x140083764
cmp dword [rsi + 0x34], 5
jne 0x140083764
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14008376d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400734e4
jmp 0x1400837e0
jns 0x1400837e0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140075d64
cmp rax, 0xffffffffffffffff
jne 0x140083798
cmp byte [rsi + 0x30], dil
je 0x1400837e0
mov edi, dword [rsi + 0x2c]
jmp 0x1400837e0
mov ecx, r14d
call fcn.14007c98c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400837e0
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 0x1400837e0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400837d9
mov eax, dword [rsi + 0x2c]
jmp 0x1400837de
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140075d64
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 0x2fc4d67b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d71b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d724a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d722e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d7222
cmp qword [rbp - 0x10], 0
je 0x2fc4d7222
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d71e8
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d724b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7350
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d7378
mov eax, 0
jmp 0x2fc4d73c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d73a1
mov eax, 0
jmp 0x2fc4d73c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d73c1
mov eax, 0
jmp 0x2fc4d73c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d73cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d744a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7441
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d7441
mov rax, qword [rbp - 8]
jmp 0x2fc4d745f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d7414
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b76
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b78
xor al, al
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040a980]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x0040a990]
mov dword [rax], 1
mov rax, qword [0x0040a9a0]
mov dword [rax], 1
mov rax, qword [0x0040a920]
cmp word [rax], 0x5a4d
jne 0x40105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x0040a970]
mov dword [0x0040d020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0040aa50]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x0040aa30]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0040a8d0]
cmp dword [rax], 1
je 0x4010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401110
cmp dx, 0x20b
jne 0x40105a
cmp dword [rax + 0x84], 0xe
jbe 0x40105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x40105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x40105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x40105a
Function at 0x401be0
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 dword [rax]

Function at 0x401c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040d0b4]
test esi, esi
mov rbx, rcx
jle 0x401d80
mov rax, qword [0x0040d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x401c9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x401d25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x401c80
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x401da2
mov rax, qword [0x0040d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x0040d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401d87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401d1e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x401d30
add dword [0x0040d0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x0040d0b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401d1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x401ca8
mov rax, qword [0x0040d0b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x402340
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x0040d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040d100]
test rbx, rbx
je 0x40239c
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 0x402393
test eax, eax
jne 0x402393
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402378
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 0x4025b0
Capabilities:
Parse pe header

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

Function at 0x4025e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x40262d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x402624
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40262f
add rax, 0x28
cmp rax, r9
jne 0x402610
xor eax, eax
ret

Function at 0x402630
Capabilities:
Parse pe header

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

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

Function at 0x402750
Capabilities:
Parse pe header

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

Function at 0x402790
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x0040a920]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x4027b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x4027b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x4027b0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x402800
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x4027f7
test rcx, rcx
je 0x4027b0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x4027e8
xor eax, eax
ret
Function at 0x402810
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x0040a920]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x402902
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x402910
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402902
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x402902
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x402902
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]
cmp rax, r9
mov r8, r9
jb 0x402965
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x402978
add rdx, 0x28
cmp r10, rdx
jne 0x402950
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x402987
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x402997
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40296e
test ecx, ecx
jg 0x402980
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x141118058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1411181df
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 0x141118089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14111806f
add dl, dl
jne 0x141118096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411180f6
xor eax, eax
add dl, dl
jne 0x1411180a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411181ad
add dl, dl
jne 0x1411180b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411180c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411180d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411180dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411180ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14111807e
mov eax, 1
add dl, dl
jne 0x141118106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141118113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411180fb
sub eax, ebx
mov ebx, 1
jne 0x14111814c
mov ecx, 1
add dl, dl
jne 0x14111812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14111813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141118123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14111807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141118168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141118175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14111815d
cmp eax, 0x7d00
jae 0x14111819b
cmp eax, 0x500
jb 0x141118196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14111807e
cmp eax, 0x7f
ja 0x14111819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14111807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411181d2
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 0x14111807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x7ff6db8dfd10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov r9, r8
mov rbx, rcx
xor r10d, r10d
cmp byte [r8 + 8], r10b
je 0x7ff6db8dfd45
mov r8d, r10d
nop
lea eax, [r8 + 0x46]
xor byte [r8 + r9], al
inc r8
cmp r8, 7
jb 0x7ff6db8dfd30
mov byte [r9 + 8], r10b
lea rax, [r9 + 7]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r10
mov qword [rbp - 0x30], r10
mov qword [rbp - 0x30], 0xf
cmp r9, rax
jne 0x7ff6db8dfd6f
mov qword [rbp - 0x38], r10
mov byte [rbp - 0x48], r10b
jmp 0x7ff6db8dfd92
mov qword [rbp - 0x38], 7
mov eax, dword [r9]
mov dword [rbp - 0x48], eax
movzx eax, word [r9 + 4]
mov word [rbp - 0x44], ax
movzx eax, byte [r9 + 6]
mov byte [rbp - 0x42], al
mov byte [rbp - 0x41], r10b
cmp byte [rdx + 9], 0
je 0x7ff6db8dfdb3
mov rcx, r10
nop dword [rax + rax]
lea eax, [rcx + 0x46]
xor byte [rcx + rdx], al
inc rcx
cmp rcx, 8
jb 0x7ff6db8dfda0
mov byte [rdx + 9], 0
lea rax, [rdx + 8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r10
mov qword [rbp - 0x10], r10
mov qword [rbp - 0x10], 0xf
cmp rdx, rax
jne 0x7ff6db8dfddd
mov qword [rbp - 0x18], r10
mov byte [rbp - 0x28], 0
jmp 0x7ff6db8dfdf0
mov qword [rbp - 0x18], 8
mov rax, qword [rdx]
mov qword [rbp - 0x28], rax
mov byte [rbp - 0x20], 0
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x28]
movzx edx, byte [rbp + 0x20]
mov rcx, rbx
call fcn.7ff6db8e5b70
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x7ff6db8dfe44
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff6db8dfe3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff6db8dfe3e
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff6db9407ec
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x7ff6db8dfe82
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff6db8dfe7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff6db8dfe7d
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff6db9407ec
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret

Function at 0x7ff6db8e68c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x10], al
je 0x7ff6db8e68e3
lea edx, [rax + 0x46]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xf
jb 0x7ff6db8e68d0
mov byte [rcx + 0x10], 0
lea r8, [rcx + 0xf]
mov rdx, rcx
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.7ff6db8df780
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x7ff6db905330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x7ff6db90538e
mov dl, 1
call fcn.7ff6db8f5d90
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.7ff6db8f5d90
mov eax, ebx
jmp 0x7ff6db9053d2
cmp ebx, 2
ja 0x7ff6db9053d0
mov r9, qword [rdi + 0x668]
lea rdx, [0x7ff6db983f40]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.ucrtbase.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ucrtbase.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x7ff6db9053f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x7ff6db943198]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x7ff6db905433
cmp qword [rcx + 0x678], 0
je 0x7ff6db905510
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.7ff6db916740
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x7ff6db905461
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x7ff6db9054a8
cmp byte [rdi + 0x1597], 0
jne 0x7ff6db9054a8
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x7ff6db905490
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x7ff6db905508
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x7ff6db905563
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x7ff6db905529
mov dl, 1
mov rcx, rdi
call fcn.7ff6db8f5d90
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.7ff6db8f5d90
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.7ff6db941050
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x7ff6db983f40]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.ucrtbase.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.ucrtbase.dll_fwrite]
jmp 0x7ff6db905508
call fcn.7ff6db941178
int3