joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008e160
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x18012a010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x18012d828]
mov r15, rdx
inc rcx
mov byte [0x180134f00], 0
call fcn.1800d0104
cmp qword [0x18012d830], 0x10
lea r8, [0x18012d818]
mov rdx, rax
cmovae r8, qword [0x18012d818]
sub rdx, r8
nop
movzx ecx, byte [r8]
mov byte [rdx + r8], cl
lea r8, [r8 + 1]
test cl, cl
jne 0x18008e1b0
xor ebx, ebx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x80], rsi
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x20], 4
mov qword [rsp + 0x88], rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18008e2b1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
je 0x18008e2b1
mov ecx, edi
call fcn.1800d8364
mov rbp, rax
test rax, rax
je 0x18008e23a
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.1800d31b0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008e2b1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1800d8364
mov r14, rax
test rax, rax
je 0x18008e27d
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1800d31b0
test edi, edi
je 0x18008e2b1
lea rcx, [rbp + 2]
cmp byte [rcx - 2], 0x6b
jne 0x18008e2a8
cmp byte [rcx - 1], 0x65
jne 0x18008e2a8
cmp byte [rcx], 0x79
jne 0x18008e2a8
cmp byte [rcx + 1], 0x22
jne 0x18008e2a8
cmp byte [rcx + 2], 0x3a
jne 0x18008e2a8
cmp byte [rcx + 3], 0x22
je 0x18008e2df
inc ebx
inc rcx
cmp ebx, edi
jb 0x18008e285
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800cfa80
add rsp, 0x50
pop r15
pop r14
pop rbx
ret
movsxd rdx, ebx
add rdx, 6
movzx ecx, byte [rdx + rbp]
cmp cl, 0x22
je 0x18008e310
sub rdx, r14
mov rax, r14
lea r8, [rdx + rbp]
nop dword [rax]
mov byte [rax], cl
lea rax, [rax + 1]
movzx ecx, byte [r8 + rax]
cmp cl, 0x22
jne 0x18008e300
mov rcx, rbp
call fcn.1800d8350
mov rdx, r14
lea rcx, [0x180134f00]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [0x180134f00]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, r14
mov dword [r15], eax
call fcn.1800d8350
mov eax, 1
jmp 0x18008e2b3
Function at 0x18008e350
Capabilities:
Decode data using base64 via dword translation table
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x18012a010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ecx, edx
mov r15, r8
mov esi, edx
call fcn.1800d8364
mov r8d, esi
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1800d31b0
xor ebx, ebx
test sil, 3
jne 0x18008e421
xor r8d, r8d
test esi, esi
je 0x18008e421
lea r9, [0x180134f00]
lea r10, [0x1801177d0]
movsx rcx, byte [r9]
cmp cl, 0x3d
je 0x18008e421
lea eax, [rcx - 0x2b]
cmp al, 0x4f
ja 0x18008e41f
movzx edx, byte [rcx + r10]
cmp dl, 0xff
je 0x18008e41f
mov eax, r8d
and eax, 3
je 0x18008e40c
sub eax, 1
je 0x18008e3fa
sub eax, 1
je 0x18008e3e8
cmp eax, 1
jne 0x18008e412
or byte [rbx + rdi], dl
inc ebx
jmp 0x18008e412
movzx eax, dl
shr al, 2
and al, 0xf
or byte [rbx + rdi], al
inc ebx
shl dl, 6
jmp 0x18008e40f
movzx eax, dl
shr al, 4
and al, 3
or byte [rbx + rdi], al
inc ebx
shl dl, 4
jmp 0x18008e40f
shl dl, 2
mov byte [rbx + rdi], dl
inc r8d
inc r9
cmp r8d, esi
jb 0x18008e3b0
jmp 0x18008e421
xor ebx, ebx
lea r14d, [rbx - 5]
mov ecx, r14d
mov ebp, r14d
call fcn.1800d8364
mov r8d, r14d
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.1800d31b0
cmp ebx, 5
jbe 0x18008e454
lea rdx, [rdi + 5]
mov r8d, ebp
mov rcx, rsi
call fcn.1800d33d0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x40], r14d
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x18008e4dd
mov r9d, dword [rsp + 0x50]
test r9d, r9d
je 0x18008e4c1
mov r8, qword [rsp + 0x58]
mov rcx, r15
sub r8, r15
mov edx, r9d
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18008e4b0
mov rcx, rdi
mov byte [r9 + r15], 0
call fcn.1800d8350
mov rcx, rsi
call fcn.1800d8350
mov eax, 1
jmp 0x18008e4df
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800cfa80
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180092200
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x70
mov rax, qword [0x18012a010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r8, qword [rcx + 0x10]
xor esi, esi
mov rbx, rcx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], sil
lea rdx, [r8 + 0xc]
cmp rdx, 0xf
jbe 0x180092252
lea rcx, [rsp + 0x40]
call fcn.1800c9320
mov r8, qword [rbx + 0x10]
mov qword [rsp + 0x50], rsi
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x18009225f
mov rdx, qword [rbx]
lea rcx, [rsp + 0x40]
call fcn.1800c2650
mov r8d, 0xc
lea rdx, str.logins.json
lea rcx, [rsp + 0x40]
call fcn.1800c2650
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800c2790
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1800922ca
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800922c5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180092421
call fcn.1800cfd40
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x1800922d7
mov rcx, qword [rbx]
lea rdx, [0x180118c30]
call fcn.1800dbc58
test rax, rax
je 0x1800923ce
mov rcx, rax
mov qword [rsp + 0x88], rdi
call fcn.1800dbce8
mov ecx, 0x186a0
call fcn.1800d8364
cmp qword [rbx + 0x18], 0x10
mov rdi, rax
mov rcx, rbx
jb 0x180092316
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x18009235f
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov r8d, 0x186a0
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180092399
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x180092394
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180092415
mov rcx, r8
call fcn.1800cfd40
mov rax, rdi
mov qword [rbx + 0x10], rsi
mov rdi, qword [rsp + 0x88]
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800cfa80
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180092404
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1800923ff
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18009241b
mov rcx, r8
call fcn.1800cfd40
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
jmp 0x1800923b3
call fcn.1800defa0
int3
call fcn.1800defa0
int3
call fcn.1800defa0
int3
Function at 0x1800ada10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x18012a010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, r8
mov rsi, rcx
mov r8d, 0x400
lea rcx, [rsp + 0x40]
xor edx, edx
mov rbx, r9
call fcn.1800d31b0
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
mov dword [rsp + 0x38], 0x400
jb 0x1800ada5d
mov rdx, qword [rdi]
lea rax, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800adab3
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x1800ada8e
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
mov qword [rsi + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800adae0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1800c2ee0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1800adb31
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1800adb2c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800adbab
mov rcx, r8
call fcn.1800cfd40
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1800adb7a
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1800adb75
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800adbab
mov rcx, r8
call fcn.1800cfd40
mov qword [rbx + 0x10], 0
mov rax, rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800cfa80
add rsp, 0x450
pop rdi
pop rsi
pop rbx
ret
call fcn.1800defa0
int3
Function at 0x1800b11f0
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
push rsi
sub rsp, 0x88
mov rax, qword [0x18012a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r8, qword [0x180130770]
mov rsi, rcx
mov rcx, qword [0x180130778]
xor ebx, ebx
cmp r8, rcx
jne 0x1800b1231
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
jmp 0x1800b13e5
mov qword [rsp + 0xa8], rbp
xorps xmm0, xmm0
mov qword [rsp + 0xb0], rdi
mov r10, rbx
mov qword [rsp + 0x80], r14
mov rdi, rbx
mov r14, rcx
mov qword [rsp + 0x70], rbx
sub r14, r8
movdqu xmmword [rsp + 0x60], xmm0
sub r14, 1
je 0x1800b12b7
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1800b1405
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.1800c7240
mov rbp, qword [rsp + 0x60]
mov r8, r14
mov rcx, rbp
xor edx, edx
call fcn.1800d31b0
mov rcx, qword [0x180130778]
lea r9, [r14 + rbp]
mov r8, qword [0x180130770]
mov r10, rbp
mov rdi, qword [rsp + 0x70]
jmp 0x1800b12c1
mov r9, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov edx, 1
sub rcx, r8
sub rcx, rdx
je 0x1800b12ed
nop
movzx eax, byte [r8 + rdx]
mov byte [r10 + rdx - 1], al
lea rdx, [rdx + 1]
sub rcx, 1
je 0x1800b12ed
mov r8, qword [0x180130770]
jmp 0x1800b12d0
sub r9d, ebp
mov qword [rsp + 0x58], rbp
inc r9d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], r9d
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1800b138e
mov rcx, rbp
mov qword [rsp + 0x68], rcx
cmp dword [rsp + 0x40], ebx
jbe 0x1800b1381
nop word [rax + rax]
mov r8d, ebx
add r8, qword [rsp + 0x48]
cmp rcx, rdi
je 0x1800b135d
movzx eax, byte [r8]
mov byte [rcx], al
inc rcx
mov qword [rsp + 0x68], rcx
jmp 0x1800b1374
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.1800c3990
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
inc ebx
cmp ebx, dword [rsp + 0x40]
jb 0x1800b1340
mov rbp, qword [rsp + 0x60]
mov qword [rsi], rbp
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdi
jmp 0x1800b13cd
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
test rbp, rbp
je 0x1800b13cd
sub rdi, rbp
mov rax, rbp
cmp rdi, 0x1000
jb 0x1800b13c2
mov rbp, qword [rbp - 8]
add rdi, 0x27
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b13ff
mov rdx, rdi
mov rcx, rbp
call fcn.1800cfd40
mov rdi, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x80]
mov rax, rsi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800cfa80
add rsp, 0x88
pop rsi
pop rbx
ret
call fcn.1800defa0
int3
call fcn.1800c59b0
int3
Function at 0x1800b1410
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x258
mov rax, qword [0x18012a010]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r13d, r13d
mov rbx, r8
mov rsi, rdx
mov r12, rcx
cmp r8, r9
je 0x1800b14f6
mov r15, qword [r9]
mov r14, qword [r9 + 8]
mov rdi, qword [r8]
sub r14, r15
mov rdx, qword [r8 + 0x10]
sub rdx, rdi
cmp r14, rdx
jbe 0x1800b14e0
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1800b15dd
mov rcx, rdx
shr rcx, 1
sub rax, rcx
cmp rdx, rax
jbe 0x1800b148a
mov rbp, r14
jmp 0x1800b1495
lea rbp, [rcx + rdx]
cmp rbp, r14
cmovb rbp, r14
test rdi, rdi
je 0x1800b14d2
cmp rdx, 0x1000
jb 0x1800b14bf
mov rcx, qword [rdi - 8]
add rdx, 0x27
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1800b15e3
mov rdi, rcx
mov rcx, rdi
call fcn.1800cfd40
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rdx, rbp
mov rcx, rbx
call fcn.1800c7240
mov rdi, qword [rbx]
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.1800d33d0
lea rax, [r14 + rdi]
mov qword [rbx + 8], rax
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov dword [rsp + 0x34], 0x200
jb 0x1800b150b
mov rdx, qword [rsi]
lea rax, [rsp + 0x34]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800b1574
mov rdi, r13
cmp dword [rsp + 0x34], edi
jbe 0x1800b1574
nop dword [rax + rax]
mov rdx, qword [rbx + 8]
movzx eax, byte [rsp + rdi + 0x40]
mov byte [rsp + 0x30], al
cmp rdx, qword [rbx + 0x10]
je 0x1800b155b
mov byte [rdx], al
inc qword [rbx + 8]
jmp 0x1800b1568
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.1800c3990
mov eax, dword [rsp + 0x34]
inc rdi
cmp rdi, rax
jb 0x1800b1540
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1800b15aa
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1800b15a5
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800b15e3
mov rcx, r8
call fcn.1800cfd40
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r13b
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800cfa80
add rsp, 0x258
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1800c59b0
int3
call fcn.1800defa0
int3
Function at 0x1800b8000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x18012a010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
lea rdx, [0x18012d1d8]
lea rcx, [rbp + 7]
call fcn.1800c2820
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.18008b020
lea rcx, [rbp - 0x39]
mov rbx, rax
call fcn.18008dc10
mov r8, qword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rax, rdx
sub rax, r9
cmp r8, rax
jbe 0x1800b8091
mov rax, qword [rbx + 0x18]
sub rax, r8
cmp rax, r9
jb 0x1800b8091
cmp rdx, 0x10
jb 0x1800b8084
mov rcx, qword [rcx]
mov r8, rcx
mov rcx, rbx
call fcn.1800c75d0
jmp 0x1800b80a3
cmp qword [rbx + 0x18], 0x10
jb 0x1800b809b
mov rbx, qword [rbx]
mov rdx, rbx
call fcn.1800c2650
movups xmm0, xmmword [rax]
xor esi, esi
movups xmmword [rbp + 0x27], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x37], xmm1
mov byte [rax], sil
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], rsi
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x1800b80fe
mov rcx, qword [rbp - 0x39]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b80f9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b8242
call fcn.1800cfd40
mov rdx, qword [rbp - 1]
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x21], 0xf
mov byte [rbp - 0x39], 0
cmp rdx, 0x10
jb 0x1800b8149
mov rcx, qword [rbp - 0x19]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b8144
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b8242
call fcn.1800cfd40
cmp qword [rbp + 0x3f], 0x10
lea rcx, [rbp + 0x27]
cmovae rcx, qword [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1800b818d
test al, 0x10
je 0x1800b818d
mov rdx, rdi
lea rcx, [rbp + 7]
call fcn.1800c2820
lea rdx, [rbp + 0x27]
mov rbx, rax
lea rcx, [rbp - 0x19]
call fcn.1800c2820
mov rcx, rax
mov rdx, rbx
call fcn.1800b6b70
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x1800b81c8
mov rcx, qword [rbp + 0x27]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b81c3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b8248
call fcn.1800cfd40
mov rdx, qword [rdi + 0x18]
mov qword [rbp + 0x37], rsi
mov qword [rbp + 0x3f], 0xf
mov byte [rbp + 0x27], 0
cmp rdx, 0x10
jb 0x1800b820e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1800b8209
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800b8248
mov rcx, r8
call fcn.1800cfd40
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800cfa80
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1800defa0
int3
call fcn.1800defa0
int3
Function at 0x1800c4420
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1800c4454
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1800c4440
ret
Function at 0x1800e817c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800e819c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800de164
or eax, 0xffffffff
jmp 0x1800e819e
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800e9748
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1800e9725
call fcn.1800de1d4
mov dword [rax], 0x16
call fcn.1800def80
or eax, 0xffffffff
jmp 0x1800e9742
sub dword [rcx + 0x10], 1
jns 0x1800e9734
add rsp, 0x28
jmp 0x1800f4188
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1800e9704
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x1800f41ba
call fcn.1800de1d4
mov dword [rax], 0x16
call fcn.1800def80
jmp 0x1800f42d7
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800f42d7
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800f42d7
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800f41e9
lock or dword [rcx + 0x14], 0x10
jmp 0x1800f42d7
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800f41fd
call fcn.1800f6fdc
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.1800e7e0c
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.1800f6078
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800f42c5
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x1800f4290
mov rcx, rdi
call fcn.1800e7e0c
cmp eax, esi
je 0x1800f427b
mov rcx, rdi
call fcn.1800e7e0c
cmp eax, 0xfffffffe
je 0x1800f427b
mov rcx, rdi
call fcn.1800e7e0c
movsxd rbx, eax
lea r14, [0x18012f520]
mov rcx, rdi
sar rbx, 6
call fcn.1800e7e0c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800f4282
lea rdx, [0x18012a460]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800f4290
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x1800f42b4
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x1800f42b4
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x1800f42b4
mov dword [rdi + 0x20], 0x1000
add dword [rdi + 0x10], esi
mov rax, qword [rdi]
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x1800f42da
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400035b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400c71c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003683
cmp byte [rcx + 0x71], 0
je 0x140003683
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000367f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003644
sub eax, 1
je 0x140003648
cmp eax, 2
jne 0x14000367f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140009a30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003676
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000367f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000362c
xor al, al
jmp 0x14000362c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140009a30
add rsp, 0x60
pop rbx
ret
Function at 0x1400036a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x140003701
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400036c0
mov ecx, dword [r9]
jmp 0x1400037e8
cmp ecx, 0x4e0
jb 0x1400037e8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140003720
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140003770
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret