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

Disassembly:
jmp 0x140031530
mov rax, rsp
mov byte [rax + 0x18], r8b
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, r9
movzx eax, r8b
mov r13, rdx
mov r14, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rcx
mov rbx, qword [rcx + 8]
mov r12, rcx
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x140031664
mov r15, qword [r9 + 0x10]
mov r12, rbx
test al, al
je 0x1400315e6
lea rcx, [rbx + 0x20]
cmp qword [rsi + 0x18], 0x10
jb 0x14003159c
mov rdx, qword [rsi]
jmp 0x14003159f
mov rdx, rsi
lea r14, [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x1400315ad
mov rcx, qword [rcx]
mov r14, qword [r14]
mov r8, r15
cmp r14, r15
cmovb r8, r14
test r8, r8
je 0x1400315ca
call fcn.14000ba00
mov edi, eax
test eax, eax
jne 0x1400315dd
cmp r14, r15
jae 0x1400315d4
or edi, 0xffffffff
jmp 0x1400315dd
xor edi, edi
cmp r14, r15
seta dil
shr edi, 0x1f
xor dil, 1
jmp 0x14003163a
lea rdx, [rbx + 0x20]
lea rdi, [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400315f8
mov rdx, qword [rdx]
cmp qword [rsi + 0x18], 0x10
jb 0x140031604
mov rcx, qword [rsi]
jmp 0x140031607
mov rcx, rsi
mov rdi, qword [rdi]
mov r8, rdi
cmp r15, rdi
cmovb r8, r15
test r8, r8
je 0x140031622
call fcn.14000ba00
test eax, eax
jne 0x140031634
cmp r15, rdi
jae 0x14003162c
or eax, 0xffffffff
jmp 0x140031634
xor eax, eax
cmp r15, rdi
seta al
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x140031644
mov rbx, qword [rbx]
jmp 0x140031648
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
movzx eax, byte [rsp + 0x80]
je 0x140031585
mov rcx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x70]
mov rbx, r12
test dil, dil
je 0x14003170a
cmp r12, qword [rcx]
jne 0x1400316ad
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14000cf80
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14003175c
cmp byte [r12 + 0x19], 0
je 0x1400316bc
mov rbx, qword [r12 + 0x10]
jmp 0x14003170a
mov rax, qword [r12]
cmp byte [rax + 0x19], 0
jne 0x1400316e2
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14003170a
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400316d3
jmp 0x14003170a
mov rax, qword [r12 + 8]
cmp byte [rax + 0x19], 0
jne 0x140031702
nop dword [rax]
cmp rbx, qword [rax]
jne 0x140031702
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400316f0
cmp byte [rbx + 0x19], 0
cmove rbx, rax
lea rcx, [rbx + 0x20]
mov rdx, rsi
call fcn.140011e40
test al, al
je 0x140031750
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
movzx r8d, dil
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14000cf80
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14003175c
mov qword [r13], rbx
mov byte [r13 + 8], 0
mov rax, r13
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000db70
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140124754
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14017d930]
mov ecx, 5
lea r8, [0x14017d928]
lea rdx, str.FlsGetValue
call fcn.140123d4c
mov ecx, ebx
test rax, rax
je 0x14012478e
add rsp, 0x20
pop rbx
jmp qword [0x1401cc010]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14000e7d0
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401247ac
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14017d940]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x14017d938]
call fcn.140123d4c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1401247ec
call qword [0x1401cc010]
jmp 0x1401247f2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e8e0
Capabilities:
Read file on windows

Disassembly:
jmp 0x140137e34
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15d, r8d
mov r13, rdx
movsxd rsi, ecx
cmp esi, 0xfffffffe
jne 0x140137e70
call fcn.140011180
and dword [rax], 0
call fcn.14000a490
mov dword [rax], 9
jmp 0x140137f35
test ecx, ecx
js 0x140137f1d
cmp esi, dword [0x1401b948c]
jae 0x140137f1d
mov r14, rsi
mov r12, rsi
sar r12, 6
lea rax, [0x1401b8fc0]
and r14d, 0x3f
shl r14, 6
mov rax, qword [rax + r12*8]
movzx ecx, byte [rax + r14 + 0x38]
and ecx, 1
je 0x140137f1d
xor eax, eax
cmp r8d, 0x7fffffff
setbe al
test eax, eax
jne 0x140137ed1
call fcn.140011180
and dword [rax], 0
call fcn.14000a490
mov dword [rax], 0x16
jmp 0x140137f30
mov ecx, esi
call fcn.14000d140
or ebx, 0xffffffff
lea rax, [0x1401b8fc0]
mov rax, qword [rax + r12*8]
test byte [rax + r14 + 0x38], 1
jne 0x140137f03
call fcn.14000a490
mov dword [rax], 9
call fcn.140011180
and dword [rax], 0
jmp 0x140137f12
mov r8d, r15d
mov rdx, r13
mov ecx, esi
call fcn.1400066d0
mov ebx, eax
mov ecx, esi
call fcn.140003080
mov eax, ebx
jmp 0x140137f38
call fcn.140011180
and dword [rax], 0
call fcn.14000a490
mov dword [rax], 9
call fcn.14000fad0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x14000ee50
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401246a0
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x14017d910]
mov ecx, 3
lea r8, [0x14017d908]
lea rdx, str.FlsAlloc
call fcn.140123d4c
test rax, rax
je 0x1401246dc
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1401cc010]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400103a0
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400e5a0c
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400e5760
Function at 0x1400112b0
Capabilities:
Print debug messages

Disassembly:
jmp 0x140132a9c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
call fcn.14000b0e0
cmp eax, 2
sete dil
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140132ae9
test rbx, rbx
je 0x140132add
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dil, dil
je 0x140132b20
mov eax, 4
jmp 0x140132b2f
test dil, dil
je 0x140132b20
call fcn.140002c00
test al, al
je 0x140132b20
call fcn.140010c60
test al, al
jne 0x140132b16
bts esi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, esi
call fcn.14000d370
jmp 0x140132b2f
call fcn.140006690
mov rcx, rax
jmp 0x140132b06
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140013f10
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140040e30
movzx eax, byte [rdx + 1]
mov r8, rdx
movzx r9d, byte [rdx]
movabs r11, 0x100000001b3
movabs r10, 0xcbf29ce484222325
xor r9, r10
movzx ecx, byte [r8 + 8]
imul r9, r11
xor rcx, r10
xor r9, rax
movzx eax, byte [rdx + 2]
imul rcx, r11
imul r9, r11
xor r9, rax
movzx eax, byte [rdx + 3]
movzx edx, byte [rdx + 4]
xor rdx, r10
imul rdx, r11
imul r9, r11
xor r9, rax
movzx eax, byte [r8 + 5]
xor rdx, rax
movzx eax, byte [r8 + 6]
imul rdx, r11
imul r9, r11
xor rdx, rax
movzx eax, byte [r8 + 7]
imul rdx, r11
shr r9, 1
xor rdx, rax
movzx eax, byte [r8 + 9]
xor rcx, rax
movzx eax, byte [r8 + 0xa]
imul rcx, r11
imul rdx, r11
xor rcx, rax
movzx eax, byte [r8 + 0xb]
imul rcx, r11
xor rcx, rax
imul rcx, r11
lea rax, [rcx + rcx]
movabs rcx, 0x7fffffffffffffff
and rdx, rcx
xor rax, rdx
xor rax, r9
ret
Function at 0x140031530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140031530
mov rax, rsp
mov byte [rax + 0x18], r8b
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, r9
movzx eax, r8b
mov r13, rdx
mov r14, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rcx
mov rbx, qword [rcx + 8]
mov r12, rcx
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x140031664
mov r15, qword [r9 + 0x10]
mov r12, rbx
test al, al
je 0x1400315e6
lea rcx, [rbx + 0x20]
cmp qword [rsi + 0x18], 0x10
jb 0x14003159c
mov rdx, qword [rsi]
jmp 0x14003159f
mov rdx, rsi
lea r14, [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x1400315ad
mov rcx, qword [rcx]
mov r14, qword [r14]
mov r8, r15
cmp r14, r15
cmovb r8, r14
test r8, r8
je 0x1400315ca
call fcn.14000ba00
mov edi, eax
test eax, eax
jne 0x1400315dd
cmp r14, r15
jae 0x1400315d4
or edi, 0xffffffff
jmp 0x1400315dd
xor edi, edi
cmp r14, r15
seta dil
shr edi, 0x1f
xor dil, 1
jmp 0x14003163a
lea rdx, [rbx + 0x20]
lea rdi, [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400315f8
mov rdx, qword [rdx]
cmp qword [rsi + 0x18], 0x10
jb 0x140031604
mov rcx, qword [rsi]
jmp 0x140031607
mov rcx, rsi
mov rdi, qword [rdi]
mov r8, rdi
cmp r15, rdi
cmovb r8, r15
test r8, r8
je 0x140031622
call fcn.14000ba00
test eax, eax
jne 0x140031634
cmp r15, rdi
jae 0x14003162c
or eax, 0xffffffff
jmp 0x140031634
xor eax, eax
cmp r15, rdi
seta al
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x140031644
mov rbx, qword [rbx]
jmp 0x140031648
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
movzx eax, byte [rsp + 0x80]
je 0x140031585
mov rcx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x70]
mov rbx, r12
test dil, dil
je 0x14003170a
cmp r12, qword [rcx]
jne 0x1400316ad
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14000cf80
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14003175c
cmp byte [r12 + 0x19], 0
je 0x1400316bc
mov rbx, qword [r12 + 0x10]
jmp 0x14003170a
mov rax, qword [r12]
cmp byte [rax + 0x19], 0
jne 0x1400316e2
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14003170a
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400316d3
jmp 0x14003170a
mov rax, qword [r12 + 8]
cmp byte [rax + 0x19], 0
jne 0x140031702
nop dword [rax]
cmp rbx, qword [rax]
jne 0x140031702
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400316f0
cmp byte [rbx + 0x19], 0
cmove rbx, rax
lea rcx, [rbx + 0x20]
mov rdx, rsi
call fcn.140011e40
test al, al
je 0x140031750
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
movzx r8d, dil
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14000cf80
mov rax, qword [rax]
mov qword [r13], rax
mov byte [r13 + 8], 1
mov rax, r13
jmp 0x14003175c
mov qword [r13], rbx
mov byte [r13 + 8], 0
mov rax, r13
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400430e0
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401b40a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14004313a
movzx ecx, word [rsp + 0x30]
mov eax, 0x4e20
add cx, 0x1e
mov word [rsp + 0x22], ax
mov word [rsp + 0x20], cx
mov rcx, rbx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
xor eax, eax
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov rcx, rbx
movzx eax, word [rsp + 0x30]
add ax, 0x1d
mov word [rsp + 0x2c], ax
mov eax, 0x32
mov word [rsp + 0x2e], ax
lea edx, [rax - 0x31]
call qword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov rcx, qword [str.vulkaninfo]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140010c40
add rsp, 0x50
pop rbx
ret
Function at 0x140132a9c
Capabilities:
Print debug messages

Disassembly:
jmp 0x140132a9c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
call fcn.14000b0e0
cmp eax, 2
sete dil
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140132ae9
test rbx, rbx
je 0x140132add
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dil, dil
je 0x140132b20
mov eax, 4
jmp 0x140132b2f
test dil, dil
je 0x140132b20
call fcn.140002c00
test al, al
je 0x140132b20
call fcn.140010c60
test al, al
jne 0x140132b16
bts esi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, esi
call fcn.14000d370
jmp 0x140132b2f
call fcn.140006690
mov rcx, rax
jmp 0x140132b06
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140137684
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
movsxd r13, ecx
lea r10, [0x1401b8fc0]
mov rdi, r13
mov r15, r13
sar r15, 6
and edi, 0x3f
shl rdi, 6
mov r14, rdx
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
mov rcx, qword [rax + rdi + 0x28]
mov qword [rsp + 0x98], rcx
test r8, r8
je 0x1401376dc
cmp word [rdx], r9w
jne 0x1401376dc
or byte [rax + rdi + 0x38], 4
jmp 0x1401376e1
and byte [rax + rdi + 0x38], 0xfb
lea r12, [rdx + r8*2]
mov rsi, rdx
mov rbx, rdx
cmp rdx, r12
jae 0x140137897
lea rbp, [rdx + 2]
mov edx, 0xd
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x140137879
cmp ax, dx
je 0x140137723
mov word [rbx], ax
add rbx, 2
add rsi, 2
add rbp, 2
jmp 0x1401377c4
cmp rbp, r12
jae 0x140137749
cmp word [rbp], r9w
jne 0x140137744
add rsi, 4
mov word [rbx], r9w
add rbp, 4
add rbx, 2
jmp 0x1401377c4
mov word [rbx], dx
jmp 0x140137712
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, 2
lea rdx, [rsp + 0x80]
add rsi, 2
add rbp, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14013785d
cmp dword [rsp + 0x90], 0
je 0x14013785d
lea r10, [0x1401b8fc0]
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
test byte [rax + rdi + 0x38], 0x48
je 0x14013780e
movzx eax, word [rsp + 0x80]
cmp ax, r9w
jne 0x1401377d2
mov word [rbx], r9w
add rbx, 2
mov edx, 0xd
mov rcx, qword [rsp + 0x98]
cmp rsi, r12
jb 0x1401376fd
jmp 0x140137897
mov ecx, 0xd
mov word [rsp + 0x88], ax
mov word [rbx], cx
add rbx, 2
xor edx, edx
mov rcx, qword [r10 + r15*8]
mov al, byte [rsp + rdx + 0x88]
add rcx, rdi
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, 2
jl 0x1401377e8
mov rax, qword [r10 + r15*8]
mov byte [rax + rdi + 0x3c], r9b
jmp 0x1401377b7
cmp word [rsp + 0x80], r9w
jne 0x14013781e
cmp rbx, r14
je 0x1401377af
mov rdx, 0xfffffffffffffffe
mov ecx, r13d
lea r8d, [rdx + 3]
call fcn.140013c60
mov r9d, 0xa
lea r10, [0x1401b8fc0]
cmp word [rsp + 0x80], r9w
je 0x1401377b7
lea edx, [r9 + 3]
mov word [rbx], dx
add rbx, 2
jmp 0x1401377bc
mov edx, 0xd
lea r10, [0x1401b8fc0]
mov word [rbx], dx
add rbx, 2
lea r9d, [rdx - 3]
jmp 0x1401377bc
mov rcx, qword [r10 + r15*8]
mov al, byte [rcx + rdi + 0x38]
test al, 0x40
jne 0x14013788d
or al, 2
mov byte [rcx + rdi + 0x38], al
jmp 0x140137897
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, 2
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180006a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rax, qword [0x180010010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x180006a75
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x180006b26
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x18000bc60]
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.180006b50
test al, al
je 0x180006ace
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180006b13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006b0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006b0e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180008234
movdqa xmm0, xmmword [0x18000bc60]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180008210
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140002b70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x140116ec4], 0
lea rdi, [0x140116ec0]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140002c48
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140002ba0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x140002c7e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140002c60
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x140002cbf
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140002ca3
cmp byte [r8], r9b
jne 0x140002ca3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140002c90
not eax
pop rdi
ret
Function at 0x140002ec0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x140002ed9
mov qword [r8], 0
lea rdx, [0x1400d0530]
call fcn.140002cd0
mov rbx, rax
test rax, rax
jne 0x140002ef8
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
xor edx, edx
mov r8d, 2
mov qword [rsp + 0x38], rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002fba
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002fba
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002fba
mov rax, qword [0x1401168b0]
mov rbp, rsi
test rax, rax
je 0x140002f57
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002fba
mov r9, rbx
mov r8, rbp
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, rbp
je 0x140002fa7
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401168b0]
test rax, rax
je 0x140002f9c
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002fc3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002fb5
mov qword [rdi], rbp
mov rax, rsi
jmp 0x140002fc5
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 rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140013e80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x1401168b0]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x140013f9a
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x140013eda
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140015020
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x140013eee
mov edx, 8
mov rcx, rbx
call fcn.140015020
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x140013f3a
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + reloc.WLDAP32.dll_Ordinal_32]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x140013f10
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x140013f49
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x1400d0534]
test rax, rax
movsxd rsi, esi
lea rdi, [0x1401168a8]
mov rcx, r15
cmovne rdi, rax
call fcn.140002cd0
mov rbx, rax
test rax, rax
je 0x140013f95
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret