joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400eef50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rsi, qword [rdx]
mov r11d, dword [rdx + 0x18]
mov ebp, dword [rdx + 0x1c]
mov rax, rcx
mov r10d, r8d
mov ecx, r11d
mov edx, dword [rax + 0xb98]
sub ecx, ebp
mov r9d, 8
movzx edi, byte [rcx + rsi]
dec ecx
and edx, r10d
movzx r8d, byte [rcx + rsi]
mov ecx, r9d
lea rbx, [rax + 0xb9c]
sub cl, byte [rax + 0xb94]
shr r8d, cl
mov ecx, dword [rax + 0xb94]
shl edx, cl
add r8d, edx
lea rdx, [r8 + r8*2]
shl rdx, 9
add rbx, rdx
cmp dword [rax + 0x2e0], 7
jge 0x1400ef00c
lea r10d, [r9 - 7]
movzx r11d, dil
nop dword [rax]
dec r9d
mov r8d, r11d
movzx ecx, r9b
shr r8d, cl
mov rcx, qword [rax + 0x18]
and r8d, 1
mov dword [rax + rcx*4 + 0x28], r8d
mov ecx, r10d
lea rdx, [rbx + rcx*2]
mov rcx, qword [rax + 0x18]
lea r10d, [r8 + r10*2]
mov qword [rax + rcx*8 + 0x110], rdx
inc qword [rax + 0x18]
test r9d, r9d
jne 0x1400eefd0
jmp 0x1400ef080
sub r11d, dword [rax + 0x2e4]
mov r9d, 0x100
movzx r8d, dil
sub r11d, ebp
dec r11d
add r8d, r9d
movzx r10d, byte [r11 + rsi]
nop dword [rax + rax]
mov rcx, qword [rax + 0x18]
mov edx, r8d
add r10d, r10d
shr edx, 7
and edx, 1
mov dword [rax + rcx*4 + 0x28], edx
mov ecx, r9d
mov edx, r8d
and ecx, r10d
shr edx, 8
add r8d, r8d
add ecx, r9d
add edx, ecx
mov rcx, qword [rax + 0x18]
lea rdx, [rbx + rdx*2]
mov qword [rax + rcx*8 + 0x110], rdx
inc qword [rax + 0x18]
mov ecx, r10d
xor ecx, r8d
not ecx
and r9d, ecx
cmp r8d, 0x10000
jb 0x1400ef030
mov ecx, dword [rax + 0x2e0]
cmp ecx, 3
jg 0x1400ef097
mov dword [rax + 0x2e0], 0
jmp 0x1400ef0aa
cmp ecx, 9
jg 0x1400ef0a1
add ecx, 0xfffffffd
jmp 0x1400ef0a4
add ecx, 0xfffffffa
mov dword [rax + 0x2e0], ecx
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret

Function at 0x1400f45c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rsi, rcx
xor r9d, r9d
lea rdi, [rcx + 0x10e98]
lea rbp, [0x14019d8a0]
nop dword [rax + rax]
mov r10d, r9d
mov ebx, 4
xor eax, eax
mov r11d, 1
mov ecx, r11d
mov r8d, r10d
shr r10d, 1
movzx edx, word [rsi + rcx*2 + 0x71e0]
and r8d, 1
mov ecx, r8d
shr rdx, 4
lea r11d, [r8 + r11*2]
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rdx, rcx
movzx ecx, byte [rdx + rbp]
add eax, ecx
dec ebx
jne 0x1400f4600
inc r9d
mov dword [rdi], eax
add rdi, 4
cmp r9d, 0x10
jb 0x1400f45f0
mov rbp, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
mov dword [rsi + 0x10ed8], ebx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x18]
ret
Function at 0x1400f4660
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov r14d, 4
mov r10, rcx
xor edi, edi
lea rbx, [rcx + 0x10290]
lea rsi, [rcx + 0x10694]
lea r15, [0x14019d8a0]
mov ebp, r14d
nop dword [rax + rax]
xor r11d, r11d
cmp dword [r10 + 0x10e90], r11d
jbe 0x1400f4704
nop dword [rax]
xor r9d, r9d
lea eax, [r11 + 0x40]
nop word [rax + rax]
mov edx, eax
shr eax, 1
and edx, 1
mov ecx, eax
add rcx, rdi
movzx r8d, word [r10 + rcx*2 + 0x6efc]
mov ecx, edx
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r15]
add r9d, ecx
cmp eax, 1
jne 0x1400f46c0
mov dword [rbx + r11*4], r9d
inc r11d
cmp r11d, dword [r10 + 0x10e90]
jb 0x1400f46b0
mov edx, reloc.WS2_32.dll_ntohl
cmp dword [r10 + 0x10e90], edx
jbe 0x1400f472f
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
inc edx
shr eax, 1
sub eax, 5
shl eax, 4
add dword [rcx], eax
cmp edx, dword [r10 + 0x10e90]
jb 0x1400f4712
mov eax, dword [rbx]
add rsi, 0x200
add rbx, 0x100
mov dword [rsi - 0x204], eax
mov eax, dword [rbx - 0xfc]
add rdi, 0x40
mov dword [rsi - 0x200], eax
mov eax, dword [rbx - 0xf8]
mov dword [rsi - 0x1fc], eax
mov eax, dword [rbx - 0xf4]
mov dword [rsi - 0x1f8], eax
dec rbp
jne 0x1400f46a0
lea rdi, [r10 + 0x108a0]
nop dword [rax]
cmp r14d, 4
ja 0x1400f478b
mov edx, r14d
jmp 0x1400f479d
bsr edx, r14d
mov eax, r14d
lea ecx, [rdx - 1]
shr eax, cl
and eax, 1
lea edx, [rax + rdx*2]
mov r9d, edx
mov eax, edx
mov ebx, r14d
and eax, 1
shr r9d, 1
mov r11d, edx
dec r9d
or eax, 2
mov ecx, r9d
shl eax, cl
sub ebx, eax
xor r8d, r8d
mov ebp, eax
lea esi, [r8 + 1]
mov eax, esi
mov edx, ebx
shr ebx, 1
sub rax, r11
and edx, 1
add rax, rbp
lea esi, [rdx + rsi*2]
movzx ecx, word [r10 + rax*2 + 0x70fa]
mov eax, edx
neg eax
shr rcx, 4
shr rax, 4
and eax, 0x7f
xor rcx, rax
movzx eax, byte [rcx + r15]
add r8d, eax
dec r9d
jne 0x1400f47c4
mov ecx, dword [r10 + r11*4 + 0x10290]
inc r14d
add rdi, 4
add ecx, r8d
mov dword [rdi - 0x204], ecx
mov ecx, dword [r10 + r11*4 + 0x10390]
add ecx, r8d
mov dword [rdi - 4], ecx
mov ecx, dword [r10 + r11*4 + 0x10490]
add ecx, r8d
mov dword [rdi + 0x1fc], ecx
mov ecx, dword [r10 + r11*4 + 0x10590]
add ecx, r8d
mov dword [rdi + 0x3fc], ecx
cmp r14d, 0x80
jb 0x1400f4780
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov dword [r10 + 0x10e94], r9d
pop r15
pop r14
ret
Function at 0x1400f4960
Capabilities:
Encode data using xor

Disassembly:
push rdi
mov r10d, dword [rcx + 0xb94]
mov r11, rcx
mov ecx, 8
mov eax, dword [r11 + 0xb98]
sub ecx, r10d
shr r8d, cl
and eax, edx
mov ecx, r10d
shl eax, cl
xor r10d, r10d
add r8d, eax
lea rdi, [r8 + r8*2]
shl rdi, 9
add rdi, r11
lea r11, [0x14019d8a0]
test r9b, r9b
jne 0x1400f49e6
mov ecx, dword [rsp + 0x38]
add ecx, 0x100
nop dword [rax]
mov r8d, ecx
shr ecx, 1
movzx r9d, word [rdi + rcx*2 + 0xb9c]
and r8d, 1
neg r8d
shr r9, 4
shr r8, 4
and r8d, 0x7f
xor r9, r8
movzx edx, byte [r9 + r11]
add r10d, edx
cmp ecx, 1
jne 0x1400f49b0
mov eax, r10d
pop rdi
ret
mov r8d, dword [rsp + 0x38]
mov r9d, 0x100
mov qword [rsp + 0x10], rbx
mov ebx, dword [rsp + 0x30]
add r8d, r9d
nop dword [rax]
mov ecx, r8d
add ebx, ebx
mov eax, r9d
shr ecx, 8
and eax, ebx
add eax, r9d
add ecx, eax
movzx edx, word [rdi + rcx*2 + 0xb9c]
mov ecx, r8d
add r8d, r8d
shr ecx, 7
shr rdx, 4
and ecx, 1
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rdx, rcx
movzx eax, byte [rdx + r11]
add r10d, eax
mov eax, ebx
xor eax, r8d
not eax
and r9d, eax
cmp r8d, 0x10000
jb 0x1400f4a00
mov rbx, qword [rsp + 0x10]
mov eax, r10d
pop rdi
ret
Function at 0x1400f9dd0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov eax, dword [rcx + 0x60]
movzx r9d, byte [rcx + 0x5c]
test eax, eax
jle 0x1400f9e27
mov r8d, dword [rcx + 0x288]
mov qword [rsp], rbx
movzx r11d, r9b
lea rbx, [0x14078af10]
mov r10d, eax
nop dword [rax]
mov edx, r8d
mov eax, r8d
shr rdx, 0x18
shl eax, 8
xor rdx, r11
mov r8d, dword [rbx + rdx*4]
xor r8d, eax
mov dword [rcx + 0x288], r8d
dec r10
jne 0x1400f9e00
mov rbx, qword [rsp]
mov eax, dword [rcx + 0x5c]
mov byte [rax + rcx + 0x80], 1
movsxd r8, dword [rcx + 0x60]
mov edx, r8d
dec edx
je 0x1400f9ec6
dec edx
je 0x1400f9eb7
dec edx
je 0x1400f9ea8
mov byte [r8 + rcx + 0x7c], 1
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movzx r8d, byte [rcx + 0x60]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
sub r8b, 4
mov byte [rdx + rax], r8b
inc dword [rcx + 0x6c]
add rsp, 8
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
add rsp, 8
ret
Function at 0x1401219e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x70]
mov r15, rdx
mov rsi, rcx
mov eax, dword [rdi + 0x18]
cmp eax, 0xc
jle 0x140121a1c
mov dword [rcx + 0x60], reloc.WS2_32.dll_WSASetLastError
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], r14
cmp dword [rdi + 0x2c], eax
jge 0x140121b04
nop
movzx ecx, byte [rdi + 0x50]
test cl, cl
jne 0x140121ad7
mov r9, qword [rsi + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x140121a5c
lea rdx, [rdi + 0x50]
mov r8d, 1
mov rcx, rsi
call rax
cdqe
jmp 0x140121a72
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rdi + 0x50]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 1
jne 0x140121b7a
movzx eax, byte [rdi + 0x50]
test al, al
je 0x140121b6f
mov r9, qword [rsi + 0x70]
lea r14, [rdi + 0x51]
mov r10, qword [r9 + 0x40]
test r10, r10
je 0x140121aaa
movzx r8d, al
mov rdx, r14
mov rcx, rsi
call r10
cdqe
jmp 0x140121ac0
mov r9, qword [r9 + 0x38]
movzx r8d, al
mov edx, 1
mov rcx, r14
call qword [sym.imp.msvcrt.dll_fread]
movzx ecx, byte [rdi + 0x50]
cmp rax, rcx
jne 0x140121b7a
movzx edx, byte [r14]
mov byte [r14], 2
jmp 0x140121ae5
movzx eax, byte [rdi + 0x51]
movzx edx, byte [rax + rdi + 0x50]
inc al
mov byte [rdi + 0x51], al
dec cl
movzx eax, dl
mov byte [rdi + 0x50], cl
mov ecx, dword [rdi + 0x2c]
shl eax, cl
or dword [rdi + 0x30], eax
lea eax, [rcx + 8]
mov dword [rdi + 0x2c], eax
cmp eax, dword [rdi + 0x18]
jl 0x140121a30
movsxd rax, dword [rdi + 0x18]
lea rcx, [0x1401a0a40]
movzx ecx, word [rcx + rax*2]
and ecx, dword [rdi + 0x30]
mov dword [r15], ecx
mov edx, dword [rdi + 0x18]
sub dword [rdi + 0x2c], edx
mov ecx, edx
shr dword [rdi + 0x30], cl
mov ecx, dword [rdi + 0x14]
cmp ecx, 0x1001
jge 0x140121b4f
mov r8d, dword [rdi + 0x1c]
inc ecx
mov dword [rdi + 0x14], ecx
cmp ecx, r8d
jle 0x140121b4f
cmp edx, 0xc
jge 0x140121b4f
lea ecx, [r8 + r8]
mov dword [rdi + 0x1c], ecx
lea ecx, [rdx + 1]
mov dword [rdi + 0x18], ecx
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
mov dword [rsi + 0x60], reloc.WS2_32.dll_WSASetLastError
xor eax, eax
jmp 0x140121b54
mov dword [rsi + 0x60], 0x66
xor eax, eax
jmp 0x140121b54
Function at 0x140121e50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x70]
mov rsi, rdx
mov rbx, rcx
mov rax, qword [rdi + 0x40]
test rax, rax
je 0x140121e83
lea rdx, [rsp + 0x30]
mov r8d, 1
call rax
cdqe
jmp 0x140121e9a
mov r9, qword [rdi + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 1
jne 0x140121ef9
movzx ecx, byte [rsp + 0x30]
test cl, cl
je 0x140121f12
lea rax, [rdi + 0x50]
mov qword [rsi], rax
mov byte [rax], cl
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x140121ed4
mov rdx, qword [rsi]
movzx r8d, byte [rsp + 0x30]
mov rcx, rbx
inc rdx
call rax
cdqe
jmp 0x140121eef
mov rcx, qword [rsi]
movzx r8d, byte [rsp + 0x30]
mov r9, qword [r9 + 0x38]
inc rcx
mov edx, 1
call qword [sym.imp.msvcrt.dll_fread]
movzx ecx, byte [rsp + 0x30]
cmp rax, rcx
je 0x140121f1d
mov dword [rbx + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov qword [rsi], rax
mov byte [rdi + 0x50], al
mov dword [rdi + 0x34], eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140121ff0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx + 0x70]
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rsi + 0x40]
test rax, rax
je 0x140122023
lea rdx, [rsp + 0x30]
mov r8d, 1
call rax
cdqe
jmp 0x14012203a
mov r9, qword [rsi + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 1
jne 0x140122099
movzx ecx, byte [rsp + 0x30]
test cl, cl
je 0x1401220b2
lea rax, [rsi + 0x50]
mov qword [rdi], rax
mov byte [rax], cl
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x140122074
mov rdx, qword [rdi]
movzx r8d, byte [rsp + 0x30]
mov rcx, rbx
inc rdx
call rax
cdqe
jmp 0x14012208f
mov rcx, qword [rdi]
movzx r8d, byte [rsp + 0x30]
mov r9, qword [r9 + 0x38]
inc rcx
mov edx, 1
call qword [sym.imp.msvcrt.dll_fread]
movzx ecx, byte [rsp + 0x30]
cmp rax, rcx
je 0x1401220b9
mov dword [rbx + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1401225b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x70]
mov rdi, rdx
mov rbx, rcx
test byte [r9], 8
jne 0x1401225de
mov dword [rcx + 0x60], reloc.WS2_32.dll_WSAGetLastError
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x1401225f8
lea rdx, [rsp + 0x30]
mov r8d, 1
call rax
cdqe
jmp 0x14012260f
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 1
je 0x140122629
mov dword [rbx + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rsp + 0x30]
cmp al, 0x21
je 0x140122680
cmp al, 0x2c
je 0x14012266a
cmp al, 0x3b
je 0x140122654
mov dword [rdi], 0
xor eax, eax
mov dword [rbx + 0x60], WSAGetLastError
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [rdi], 4
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [rdi], 2
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov dword [rdi], 3
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1401226a0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x70]
mov rbx, rcx
test byte [rax], 8
jne 0x1401226c1
mov dword [rcx + 0x60], reloc.WS2_32.dll_WSAGetLastError
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, rcx
call fcn.1401228b0
test eax, eax
je 0x1401226b9
lea rdx, [rbx + 4]
mov rcx, rbx
call fcn.1401228b0
test eax, eax
je 0x1401226b9
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x1401226fe
lea rdx, [rsp + 0x30]
mov r8d, 3
mov rcx, rbx
call rax
cdqe
jmp 0x140122716
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 2]
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 3
je 0x14012273c
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 0x60], 0x66
call fcn.140123320
mov qword [rbx + 0x18], 0
xor eax, eax
add rsp, 0x20
pop rbx
ret
movzx edx, byte [rsp + 0x30]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov eax, edx
mov ecx, edx
movzx edi, dl
shr eax, 4
shr dil, 3
and ecx, 7
and eax, 7
and dil, 1
inc ecx
inc eax
mov dword [rbx + 8], eax
movzx eax, byte [rsp + 0x31]
mov dword [rbx + 0xc], eax
movzx eax, byte [rsp + 0x32]
mov byte [rbx + 0x10], al
test dl, dl
jns 0x14012288f
mov eax, 1
xor edx, edx
shl eax, cl
mov ecx, eax
call fcn.140123460
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1401227b2
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov dword [rbx + 0x60], WSAStartup
add rsp, 0x20
pop rbx
ret
mov byte [rax + 8], dil
mov rax, qword [rbx + 0x18]
xor esi, esi
cmp dword [rax], esi
jle 0x140122897
xor edi, edi
nop word [rax + rax]
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x1401227f1
lea rdx, [rsp + 0x30]
mov r8d, 3
mov rcx, rbx
call rax
cdqe
jmp 0x140122809
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 2]
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 3
jne 0x140122865
mov rax, qword [rbx + 0x18]
inc esi
add rdi, 3
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsp + 0x30]
mov byte [rdi + rcx - 3], al
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsp + 0x31]
mov byte [rcx + rdi - 2], al
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 0x10]
movzx eax, byte [rsp + 0x32]
mov byte [rcx + rdi - 1], al
mov rax, qword [rbx + 0x18]
cmp esi, dword [rax]
jl 0x1401227d0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x18]
call fcn.140123320
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov qword [rbx + 0x18], 0
mov dword [rbx + 0x60], 0x66
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rbx + 0x18], 0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1401228b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x70]
mov rdi, rdx
mov rbx, rcx
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x1401228de
lea rdx, [rsp + 0x30]
mov r8d, 2
call rax
cdqe
jmp 0x1401228f6
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 1]
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 2
je 0x140122910
mov dword [rbx + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx edx, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
shl edx, 8
mov eax, 1
or edx, ecx
mov dword [rdi], edx
add rsp, 0x20
pop rdi
ret

Function at 0x140122940
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ecx, 0x78
mov rbx, r8
mov rbp, rdx
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140122984
test rbx, rbx
je 0x140122974
mov dword [rbx], WSAGetLastError
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x40], rsi
lea r8d, [rdx + 0x78]
mov qword [rsp + 0x48], r15
call fcn.14006dab0
xor r15d, r15d
mov edx, 0x6160
lea ecx, [r15 + 1]
mov qword [rdi + 0x48], r15
mov qword [rdi + 0x18], r15
call qword [sym.imp.msvcrt.dll_calloc]
mov rsi, rax
test rax, rax
jne 0x1401229dd
test rbx, rbx
je 0x140122a85
mov rcx, rdi
mov dword [rbx], WSAGetLastError
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x140122ad4
xor edx, edx
mov r8d, 0x6160
mov rcx, rax
call fcn.14006dab0
mov qword [rdi + 0x70], rsi
mov qword [rsi], 8
mov qword [rsi + 0x38], r15
mov qword [rsi + 0x40], rbp
mov r9, qword [rdi + 0x70]
mov qword [rdi + 0x68], r14
mov rax, qword [r9 + 0x40]
test rax, rax
je 0x140122a25
lea rdx, [rsp + 0x58]
mov r8d, 6
mov rcx, rdi
call rax
cdqe
jmp 0x140122a3d
mov r9, qword [r9 + 0x38]
mov edx, 1
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 5]
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 6
je 0x140122a50
test rbx, rbx
je 0x140122a7c
mov dword [rbx], 0x66
jmp 0x140122a7c
lea rdx, [rsp + 0x58]
lea rcx, str.GIFVER
mov r8d, 3
mov byte [rsp + 0x5e], r15b
call qword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
je 0x140122a92
test rbx, rbx
je 0x140122a7c
mov dword [rbx], 0x67
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x140122ad4
mov rcx, rdi
call fcn.1401226a0
test eax, eax
jne 0x140122abf
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
je 0x140122abb
mov dword [rbx], 0x68
xor eax, eax
jmp 0x140122ad4
mov dword [rdi + 0x60], r15d
cmp byte [rsp + 0x5b], 0x39
sete al
mov byte [rsi + 0x6158], al
mov rax, rdi
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140122db0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x70]
mov rdi, rcx
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x140122ddb
lea rdx, [rsp + 0x30]
mov r8d, 1
call rax
cdqe
jmp 0x140122df2
mov r9, qword [rbx + 0x38]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
call qword [sym.imp.msvcrt.dll_fread]
cmp rax, 1
jb 0x140122e09
movzx ecx, byte [rsp + 0x30]
cmp ecx, 8
jle 0x140122e16
mov dword [rdi + 0x60], 0x66
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, 1
mov dword [rbx + 8], ecx
mov byte [rbx + 0x50], 0
shl eax, cl
mov dword [rbx + 0x20], 0x1002
mov edx, 0x100
mov dword [rbx + 0xc], eax
inc eax
mov dword [rbx + 0x10], eax
inc eax
inc ecx
mov dword [rbx + 0x14], eax
mov eax, 1
mov dword [rbx + 0x18], ecx
shl eax, cl
lea rcx, [rbx + 0x2150]
mov dword [rbx + 0x1c], eax
xor eax, eax
mov qword [rbx + 0x28], rax
mov dword [rbx + 0x30], eax
movabs rax, 0x100200001002
nop word [rax + rax]
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
lea rcx, [rcx + 0x40]
mov qword [rcx - 0x28], rax
mov qword [rcx - 0x20], rax
mov qword [rcx - 0x18], rax
mov qword [rcx - 0x10], rax
mov qword [rcx - 8], rax
dec rdx
jne 0x140122e70
lea eax, [rdx + 1]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14012d470
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
test rcx, rcx
je 0x14012d57d
mov rdx, rcx
lea r8, [rsp + 0x50]
mov ecx, 2
call fcn.140149960
test eax, eax
jne 0x14012d57d
lea r8, [rsp + 0x20]
lea ecx, [rax + 0x17]
mov rdx, rbx
call fcn.140149960
test eax, eax
jne 0x14012d57d
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r14
xor r14d, r14d
or rdi, 0xffffffffffffffff
mov esi, r14d
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14012d4d2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140149890
test rax, rax
je 0x14012d517
sub rax, rbx
mov edx, 0x2e
mov rcx, rbx
mov r8, rax
call fcn.140149890
mov rsi, rax
test rax, rax
je 0x14012d517
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rax, [rdi + rbx]
mov edi, 0x1505
mov rbp, rax
sub rbp, rbx
cmp rbx, rax
cmova rbp, r14
mov r14, qword [rsp + 0x30]
test rbp, rbp
je 0x14012d564
mov rsi, rbx
neg rsi
movzx ecx, byte [rbx]
call fcn.14013b4a0
lea rbx, [rbx + 1]
imul rdi, rdi, 0x21
movsx rcx, al
lea rax, [rsi + rbx]
xor rdi, rcx
cmp rax, rbp
jb 0x14012d544
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
movzx eax, dil
mov rdi, qword [rsp + 0x38]
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret