joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003c50
Capabilities:
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
mov ebx, r15d
mov rax, rdx
test rdx, rdx
je 0x180003e8e
movzx r9d, byte [rdx]
mov r10d, r15d
test r9b, r9b
je 0x180003e8e
lea rax, [rax + 1]
inc r10d
cmp byte [rax], bl
jne 0x180003c93
test r10d, r10d
je 0x180003e8e
mov rcx, rdi
mov r8d, 0x811c9dc5
lea eax, [r9 - 0x41]
cmp al, 0x19
ja 0x180003cbc
add r9b, 0x20
inc rcx
movzx eax, r9b
xor eax, r8d
imul r8d, eax, 0x1000193
movzx r9d, byte [rcx]
test r9b, r9b
jne 0x180003cb0
mov eax, 0xba2e8ba3
mul r8d
shr edx, 3
imul eax, edx, 0xb
sub r8d, eax
lea r14, [r8 + r8*2]
add r14, r14
mov rax, qword [rsi + r14*8 + 0x48]
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x180003d7c
mov r9, qword [rbx + 0x38]
test r9, r9
je 0x180003d70
cmp rdi, r9
je 0x180003e8e
mov r11, rdi
sub r11, r9
nop dword [rax + rax]
movzx eax, byte [r11 + r9]
movzx r10d, byte [r9]
lea r9, [r9 + 1]
cmp al, r10b
je 0x180003d67
lea r8d, [rax - 0x61]
cmp r8b, 0x19
lea ecx, [rax - 0x20]
movzx edx, cl
movzx ecx, al
cmova edx, ecx
lea ecx, [r10 - 0x20]
movzx eax, dl
movzx r8d, cl
lea edx, [r10 - 0x61]
movzx ecx, r10b
cmp dl, 0x19
cmova r8d, ecx
cmp al, r8b
jb 0x180003d70
ja 0x180003d70
test al, al
jne 0x180003d20
jmp 0x180003e8e
mov rax, qword [rbx]
mov rbx, qword [rax + 0x10]
test rbx, rbx
jne 0x180003d00
test ebp, ebp
je 0x180003e8e
mov rcx, qword [rsi]
xor edx, edx
mov r8d, 0x25c0
lea r9d, [rdx + 1]
call fcn.1800032a0
mov rbx, rax
test rax, rax
je 0x180003e8e
mov edx, r15d
mov rax, rdi
cmp byte [rdi], dl
je 0x180003dbb
nop
lea rax, [rax + 1]
inc edx
cmp byte [rax], r15b
jne 0x180003db0
mov rcx, qword [rsi]
lea eax, [rdx + 1]
mov r8d, eax
mov rdx, rdi
mov r9d, eax
call fcn.1800033f0
mov qword [rbx + 0x38], rax
test rax, rax
je 0x180003e7a
mov qword [rbx], r15
lea rcx, [rbx + 0x40]
mov qword [rbx + 8], r15
lea r8, [rbx + 0x18]
mov qword [rbx + 0x10], rbx
lea rax, [rcx + 0x18]
mov qword [r8], r15
mov edx, 0xc7
mov qword [r8 + 8], r15
mov qword [r8 + 0x10], rbx
mov qword [rbx + 0x30], rsi
mov qword [rcx], rax
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x20], rcx
mov qword [rcx + 0x28], r15
lea rcx, [rbx + 0x70]
mov qword [rax], r15
lea rax, [rcx + 0x18]
mov qword [rcx + 8], r15
mov qword [rcx], rax
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x20], rcx
mov qword [rcx + 0x28], r15
add rcx, 0x30
mov qword [rax], r15
add edx, 0xffffffff
jne 0x180003e21
mov rcx, qword [rsi + r14*8 + 0x68]
mov rax, qword [rcx]
mov qword [rax + 8], rbx
mov rax, qword [rcx]
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov qword [rcx], rbx
mov rcx, qword [rsi + 0x38]
mov rax, qword [rcx]
mov qword [rax + 8], r8
mov rax, qword [rcx]
mov qword [r8], rax
mov qword [r8 + 8], rcx
mov qword [rcx], r8
inc dword [rsi + 8]
jmp 0x180003e8e
mov rcx, qword [rsi]
mov r8d, 1
mov rdx, rbx
call fcn.180003520
mov rbx, r15
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x180003eb0
Capabilities:
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov r15d, r8d
mov rdi, rdx
mov rbp, rcx
mov ebx, r12d
mov rax, rdx
test rdx, rdx
je 0x1800040b7
movzx r9d, byte [rdx]
mov r10d, r12d
test r9b, r9b
je 0x1800040b7
nop dword [rax]
lea rax, [rax + 1]
inc r10d
cmp byte [rax], bl
jne 0x180003f00
test r10d, r10d
je 0x1800040b7
mov rsi, qword [rcx + 0x30]
mov r8d, 0x811c9dc5
mov rcx, rdi
lea eax, [r9 - 0x41]
cmp al, 0x19
ja 0x180003f2d
add r9b, 0x20
inc rcx
movzx eax, r9b
xor eax, r8d
imul r8d, eax, 0x1000193
movzx r9d, byte [rcx]
test r9b, r9b
jne 0x180003f21
mov eax, 0x5254e78f
mul r8d
shr edx, 6
imul eax, edx, 0xc7
sub r8d, eax
lea r14, [r8 + r8*2]
add r14, r14
mov rax, qword [rbp + r14*8 + 0x70]
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x180003fec
mov r9, qword [rbx + 0x38]
test r9, r9
je 0x180003fe0
cmp rdi, r9
je 0x1800040b7
mov r11, rdi
sub r11, r9
nop dword [rax + rax]
movzx eax, byte [r11 + r9]
movzx r10d, byte [r9]
lea r9, [r9 + 1]
cmp al, r10b
je 0x180003fd7
lea r8d, [rax - 0x61]
cmp r8b, 0x19
lea ecx, [rax - 0x20]
movzx edx, cl
movzx ecx, al
cmova edx, ecx
lea ecx, [r10 - 0x20]
movzx eax, dl
movzx r8d, cl
lea edx, [r10 - 0x61]
movzx ecx, r10b
cmp dl, 0x19
cmova r8d, ecx
cmp al, r8b
jb 0x180003fe0
ja 0x180003fe0
test al, al
jne 0x180003f90
jmp 0x1800040b7
mov rax, qword [rbx]
mov rbx, qword [rax + 0x10]
test rbx, rbx
jne 0x180003f70
test r15d, r15d
je 0x1800040b7
mov rcx, qword [rsi]
xor edx, edx
lea r9d, [rdx + 1]
lea r8d, [rdx + 0x48]
call fcn.1800032a0
mov rbx, rax
test rax, rax
je 0x1800040b7
mov edx, r12d
mov rax, rdi
cmp byte [rdi], dl
je 0x18000402b
nop dword [rax]
lea rax, [rax + 1]
inc edx
cmp byte [rax], r12b
jne 0x180004020
mov rcx, qword [rsi]
lea eax, [rdx + 1]
mov r8d, eax
mov rdx, rdi
mov r9d, eax
call fcn.1800033f0
mov qword [rbx + 0x38], rax
test rax, rax
je 0x1800040a3
mov qword [rbx], r12
lea rdx, [rbx + 0x18]
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], rbx
mov qword [rdx], r12
mov qword [rdx + 8], r12
mov qword [rdx + 0x10], rbx
mov qword [rbx + 0x30], rbp
mov qword [rbx + 0x40], r12
mov rcx, qword [rbp + r14*8 + 0x90]
mov rax, qword [rcx]
mov qword [rax + 8], rbx
mov rax, qword [rcx]
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov qword [rcx], rbx
mov rcx, qword [rbp + 0x60]
mov rax, qword [rcx]
mov qword [rax + 8], rdx
mov rax, qword [rcx]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov qword [rcx], rdx
inc dword [rsi + 8]
jmp 0x1800040b7
mov rcx, qword [rsi]
mov r8d, 1
mov rdx, rbx
call fcn.180003520
mov rbx, r12
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180004670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, dword [r8]
xor edi, edi
mov r12, qword [rsp + 0x90]
mov r14, r9
mov rbp, rdx
mov rsi, rcx
lea eax, [r15 + 1]
mov dword [r8], eax
test r9, r9
je 0x1800046d0
mov r8, qword [rdx + 0x38]
mov r9d, r15d
mov qword [rsp + 0x38], r12
lea edx, [rdi + 1]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call r14
test eax, eax
je 0x18000480c
cmp rsi, 0xffffffffffffffff
je 0x18000480c
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r8d, 1
lea rdx, [0x180025814]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000480c
cmp dword [rsp + 0x78], 1
jne 0x18000480c
mov rdx, qword [rbp + 0x38]
mov ebx, edi
mov rax, rdx
test rdx, rdx
je 0x18000472b
cmp byte [rdx], bl
je 0x18000472b
nop
lea rax, [rax + 1]
inc ebx
cmp byte [rax], dil
jne 0x180004720
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000480c
cmp ebx, dword [rsp + 0x78]
jne 0x18000480c
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r8d, 3
lea rdx, [0x180025818]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000480c
cmp dword [rsp + 0x78], 3
jne 0x18000480c
mov rax, qword [rbp + 0x40]
mov dword [rsp + 0x78], edi
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x1800047d6
nop word [rax + rax]
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], r14
mov r9, rbx
mov r8d, r15d
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rsi
call fcn.180004830
test eax, eax
je 0x1800047e1
mov rax, qword [rbx + 0x18]
mov rbx, qword [rax + 0x10]
test rbx, rbx
jne 0x1800047a0
test r14, r14
jne 0x1800047e5
lea edi, [r14 + 1]
jmp 0x18000480c
xor eax, eax
jmp 0x18000480e
mov r8, qword [rbp + 0x38]
mov r9d, r15d
mov qword [rsp + 0x38], r12
mov edx, 4
mov qword [rsp + 0x30], rdi
mov rcx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call r14
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180004830
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r13
sub rsp, 0x48
mov rbx, r9
xor edi, edi
mov r9, qword [r9 + 0x40]
mov r13, rdx
mov rsi, rcx
mov rax, r9
test r9, r9
je 0x180004871
mov r10d, edi
cmp byte [r9], dil
je 0x180004871
nop dword [rax]
lea rax, [rax + 1]
inc r10d
cmp byte [rax], dil
jne 0x180004860
test r10d, r10d
jne 0x18000488e
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax + 0x30]
test byte [rcx + 0xc], 0x20
je 0x18000488e
mov eax, 1
add rsp, 0x48
pop r13
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rsp + 0x90]
test r9, r9
mov qword [rsp + 0x70], rbp
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0x78], r12
mov r12, qword [rsp + 0xa0]
mov qword [rsp + 0x80], r14
lea r14, [0x18002581c]
mov qword [rsp + 0x40], r15
cmovne r14, r9
mov r15d, dword [rcx]
lea eax, [r15 + 1]
mov dword [rcx], eax
test rbp, rbp
je 0x18000490a
mov rax, qword [rbx + 0x38]
mov r9d, r8d
mov r8, qword [rdx + 0x38]
mov rcx, rsi
mov qword [rsp + 0x38], r12
mov edx, 2
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
je 0x180004a04
mov rdx, qword [rbx + 0x38]
mov ebx, edi
mov rax, rdx
test rdx, rdx
je 0x18000492b
cmp byte [rdx], bl
je 0x18000492b
nop dword [rax]
lea rax, [rax + 1]
inc ebx
cmp byte [rax], dil
jne 0x180004920
cmp rsi, 0xffffffffffffffff
je 0x180004a04
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rdi
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180004a04
cmp ebx, dword [rsp + 0x88]
jne 0x180004a04
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rdi
mov r8d, 3
lea rdx, [0x180025820]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180004a04
cmp dword [rsp + 0x88], 3
jne 0x180004a04
mov rdx, r14
mov rcx, rsi
call fcn.180004a30
test eax, eax
je 0x180004a04
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [0x180025824]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180004a04
cmp dword [rsp + 0x88], 2
jne 0x180004a04
test rbp, rbp
jne 0x1800049de
lea edi, [rbp + 1]
jmp 0x180004a04
mov r8, qword [r13 + 0x38]
mov r9d, r15d
mov qword [rsp + 0x38], r12
mov edx, 4
mov qword [rsp + 0x30], rdi
mov rcx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call rbp
mov edi, eax
mov r15, qword [rsp + 0x40]
mov eax, edi
mov r14, qword [rsp + 0x80]
mov r12, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x48
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x180004a30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rdx
mov ebp, 1
mov r14, rcx
mov ebx, r15d
mov r8d, ebp
mov r10d, r15d
mov edx, r15d
movzx eax, byte [rdi]
mov r9, rdi
test al, al
je 0x180004bf9
lea r11, [0x1800256c0]
nop dword [rax + rax]
movzx eax, al
movzx ecx, byte [rax + r11]
cmp cl, 8
jne 0x180004a86
test r8d, r8d
jne 0x180004aab
mov edx, ebp
jmp 0x180004a98
cmp cl, 5
je 0x180004aab
cmp cl, bpl
jne 0x180004a95
test r8d, r8d
jne 0x180004aab
mov edx, r15d
movzx eax, byte [r9 + 1]
inc r9
inc ebx
mov r8d, r15d
test al, al
jne 0x180004a70
jmp 0x180004aae
mov r10d, ebp
test edx, edx
jne 0x180004abb
test r10d, r10d
je 0x180004bf9
cmp r14, 0xffffffffffffffff
je 0x180004beb
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r15
mov r8d, ebp
lea rdx, [0x180025828]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180004beb
cmp dword [rsp + 0x68], ebp
jne 0x180004beb
movzx eax, byte [rdi]
mov rbx, rdi
mov qword [rsp + 0x60], rsi
test al, al
je 0x180004bae
cmp al, 0x22
jne 0x180004b66
cmp rdi, rbx
je 0x180004b37
mov esi, ebx
mov qword [rsp + 0x20], r15
sub esi, edi
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180004b9b
cmp esi, dword [rsp + 0x68]
jne 0x180004b9b
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r15
mov r8d, 2
lea rdx, [0x18002582c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180004b9b
cmp dword [rsp + 0x70], 2
jne 0x180004b9b
lea rdi, [rbx + 1]
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x180004b07
cmp rbx, rdi
jbe 0x180004bae
sub ebx, edi
mov qword [rsp + 0x20], r15
mov r8d, ebx
lea r9, [rsp + 0x68]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180004b9b
cmp ebx, dword [rsp + 0x68]
je 0x180004bae
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r15
mov r8d, ebp
lea rdx, [0x180025828]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180004bd5
cmp dword [rsp + 0x68], ebp
je 0x180004bd8
mov ebp, r15d
mov eax, ebp
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
cmp r14, 0xffffffffffffffff
je 0x180004c22
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r15
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180004c22
cmp ebx, dword [rsp + 0x68]
je 0x180004c25
mov ebp, r15d
mov eax, ebp
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x180005150
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1800052cf
test byte [rcx + 0xc], 8
jne 0x1800052cf
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], r15
xor r15d, r15d
mov ebp, r15d
test rcx, rcx
je 0x1800052ba
mov qword [rsp + 0x30], r15
lea r8d, [r15 + 1]
mov dword [rsp + 0x28], r15d
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x88], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x1800052ba
mov qword [rsp + 0x78], rbx
test rsi, rsi
je 0x180005203
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], r15d
xor edx, edx
mov qword [rsp + 0x20], r15
call rsi
test eax, eax
je 0x18000527a
mov rcx, qword [rsp + 0x88]
mov rax, qword [rdi + 0x18]
mov dword [rsp + 0x70], r15d
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x18000524e
nop word [rax + rax]
mov r9, rsi
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x70]
mov rdx, rbx
call fcn.180004670
test eax, eax
je 0x18000527a
mov rax, qword [rbx + 0x18]
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rax + 0x10]
test rbx, rbx
jne 0x180005220
test rsi, rsi
jne 0x180005258
lea ebp, [rsi + 1]
jmp 0x180005282
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
lea edx, [r9 + 5]
call rsi
mov ebp, eax
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x180005293
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x1800052b6
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r15, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
mov dword [rdi + 8], r15d
mov r15, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
xor eax, eax
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x180005ff0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov r10, rcx
lea rbx, [rsp]
xor r11d, r11d
nop dword [rax]
lea r8d, [r11*4]
inc r11d
movzx r9d, byte [r8 + rcx + 0x24]
lea eax, [r8 + 1]
movzx eax, byte [rax + rcx + 0x24]
lea rbx, [rbx + 4]
shl r9d, 8
or r9d, eax
lea eax, [r8 + 2]
shl r9d, 8
movzx eax, byte [rax + rcx + 0x24]
or r9d, eax
lea eax, [r8 + 3]
shl r9d, 8
movzx eax, byte [rax + rcx + 0x24]
or r9d, eax
mov dword [rbx - 4], r9d
cmp r11d, 0x10
jb 0x180006020
lea rdx, [rsp + 0x40]
mov r8d, 0x40
lea rax, [rsp + 8]
nop
mov ecx, dword [rax + 0x2c]
lea rdx, [rdx + 4]
xor ecx, dword [rax + 0x18]
xor ecx, dword [rax - 8]
xor ecx, dword [rax]
lea rax, [rax + 4]
rol ecx, 1
mov dword [rdx - 4], ecx
sub r8, 1
jne 0x180006080
mov r12d, dword [r10]
lea rbp, [rsp]
mov r13d, dword [r10 + 4]
mov r14d, 0x14
mov r9d, dword [r10 + 8]
mov r15d, r14d
mov ebx, dword [r10 + 0xc]
mov edi, r12d
mov esi, dword [r10 + 0x10]
mov r11d, r13d
nop dword [rax]
nop dword [rax + rax]
mov eax, r9d
lea r8d, [rsi + 0x5a827999]
and eax, r11d
lea rbp, [rbp + 4]
mov ecx, r11d
mov edx, edi
rol edx, 5
not ecx
and ecx, ebx
mov esi, ebx
or ecx, eax
mov ebx, r9d
add edx, ecx
mov r9d, r11d
add edx, dword [rbp - 4]
mov r11d, edi
add r8d, edx
ror r9d, 2
mov edi, r8d
sub r15, 1
jne 0x1800060d0
lea rdx, [rsp + 0x50]
mov rbp, r14
nop word [rax + rax]
rol r8d, 5
lea rdx, [rdx + 4]
mov ecx, ebx
xor ecx, r9d
xor ecx, r11d
lea eax, [rsi + r8]
mov r8d, dword [rdx - 4]
add r8d, 0x6ed9eba1
add ecx, eax
add r8d, ecx
mov esi, ebx
mov ebx, r9d
mov r9d, r11d
ror r9d, 2
mov r11d, edi
mov edi, r8d
sub rbp, 1
jne 0x180006120
lea rdx, [rsp + 0xa0]
mov rbp, r14
nop word [rax + rax]
mov ecx, r9d
rol r8d, 5
or ecx, r11d
lea rdx, [rdx + 4]
and ecx, ebx
mov eax, r9d
add esi, 0x8f1bbcdc
and eax, r11d
add r8d, esi
or ecx, eax
add ecx, dword [rdx - 4]
mov esi, ebx
mov ebx, r9d
add r8d, ecx
mov r9d, r11d
mov r11d, edi
ror r9d, 2
mov edi, r8d
sub rbp, 1
jne 0x180006170
lea rcx, [rsp + 0xf0]
nop word [rax + rax]
rol r8d, 5
lea rcx, [rcx + 4]
add esi, 0xca62c1d6
mov eax, ebx
xor eax, r9d
add r8d, esi
xor eax, r11d
mov esi, ebx
add eax, dword [rcx - 4]
mov ebx, r9d
mov r9d, r11d
add r8d, eax
ror r9d, 2
mov r11d, edi
mov edi, r8d
sub r14, 1
jne 0x1800061c0
add dword [r10 + 0xc], ebx
lea eax, [r12 + r8]
add dword [r10 + 8], r9d
add dword [r10 + 0x10], esi
mov dword [r10], eax
lea eax, [r11 + r13]
lea r11, [rsp + 0x140]
mov dword [r10 + 4], eax
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov dword [r10 + 0x20], r14d
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180007f30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov bl, 0x10
lea r11, [rcx + 0x10]
nop dword [rax + rax]
movzx r10d, byte [r11 - 1]
lea r11, [r11 - 1]
add bl, 0xff
test r10b, r10b
je 0x180007fb4
mov r9b, 1
xor al, al
cmp r9b, r10b
je 0x180007f7d
movzx ecx, r9b
add cl, cl
movzx r8d, cl
movzx ecx, r8b
xor cl, 0x1b
test r9b, r9b
movzx edx, cl
cmovns edx, r8d
xor r9b, dl
add al, 1
jne 0x180007f56
not al
mov r9b, 1
test al, al
je 0x180007fb7
nop word [rax + rax]
movzx ecx, r9b
add cl, cl
movzx r8d, cl
movzx ecx, r8b
xor cl, 0x1b
test r9b, r9b
movzx edx, cl
cmovns edx, r8d
xor r9b, dl
add al, 0xff
jne 0x180007f90
jmp 0x180007fb7
xor r9b, r9b
movzx ecx, r9b
rol cl, 1
xor r9b, cl
rol cl, 1
xor r9b, cl
rol cl, 1
movzx eax, cl
rol al, 1
xor al, cl
xor al, r9b
xor al, 0x63
mov byte [r11], al
test bl, bl
jne 0x180007f40
mov rbx, qword [rsp + 8]
ret

Function at 0x180007ff0
Capabilities:
Encode data using xor

Disassembly:
movzx r10d, cl
test cl, cl
je 0x180008059
mov r8b, 1
xor r9b, r9b
nop
cmp r8b, r10b
je 0x180008025
movzx eax, r8b
add al, al
movzx edx, al
movzx eax, dl
xor al, 0x1b
test r8b, r8b
movzx ecx, al
cmovns ecx, edx
xor r8b, cl
add r9b, 1
jne 0x180008000
not r9b
mov r10b, 1
test r9b, r9b
je 0x180008054
movzx eax, r10b
add al, al
movzx r8d, al
movzx ecx, r8b
xor cl, 0x1b
test r10b, r10b
movzx edx, cl
cmovns edx, r8d
xor r10b, dl
add r9b, 0xff
jne 0x180008030
movzx eax, r10b
ret
xor al, al
ret

Function at 0x180014344
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x18001f048]
lea rdx, str.FlsAlloc
call fcn.18001416c
mov rbx, rax
test rax, rax
je 0x180014384
mov rcx, rax
call fcn.180011738
mov rcx, rdi
call rbx
jmp 0x18001438a
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800143ec
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, str.FlsGetValue
mov ecx, 2
lea r8, [0x18001f070]
lea rdx, str.FlsGetValue
call fcn.18001416c
mov rdi, rax
test rax, rax
je 0x18001442d
mov rcx, rax
call fcn.180011738
mov ecx, ebx
call rdi
jmp 0x180014435
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180014440
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.FlsSetValue
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x18001f088]
call fcn.18001416c
mov rsi, rax
test rax, rax
je 0x18001448c
mov rcx, rax
call fcn.180011738
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x180014497
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400033b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000340d
lea rbx, [0x14003e810]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400033f4
cmp r10, 2
jb 0x1400033f4
cmp byte [r9], r8b
jne 0x1400033f4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400033d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000344f
lea rbx, [0x14003e810]
cmp r8b, 0x23
jne 0x140003433
cmp byte [r9], r8b
jne 0x140003433
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140003420
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003550
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x14000356e
mov qword [r8], r14
lea rdx, [0x14003e340]
call fcn.140003460
mov rbx, rax
test rax, rax
jne 0x140003593
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400036bd
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400036bd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400036bd
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400036bd
cmp rdi, 0xffffffffffffffff
je 0x1400036bd
mov rcx, rdi
call fcn.140007420
mov rbp, rax
test rax, rax
je 0x1400036bd
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400036aa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x140049668]
test r8, r8
je 0x14000369f
movsx rdx, word [r8 + 0x6078]
lea rcx, [r8 + 0x607c]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140003694
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rcx, [r8 + 0x607c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x6074]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400036c6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1400036b8
mov qword [rsi], rdi
mov rax, rbp
jmp 0x1400036c8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret