joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000e790
Capabilities:
Move file

Disassembly:
push rdi
mov eax, 0x5070
call fcn.1800302b0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x5088], rbx
mov qword [rsp + 0x5090], rbp
mov qword [rsp + 0x5098], rsi
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x5060], rax
mov rdi, rcx
mov r8d, 0x800
lea rdx, [rsp + 0x4060]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x18000e9c2
cmp eax, 0x800
jae 0x18000e9c2
mov r8d, 0x800
lea rdx, [rsp + 0x3060]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x18000e9be
cmp eax, 0x800
jae 0x18000e9be
lea rcx, [rsp + 0x4060]
call fcn.180011450
mov rsi, rax
lea rcx, [rsp + 0x3060]
call fcn.180011450
mov rbx, rax
cmp word [rax], 0
je 0x18000e9ba
mov rdx, rax
mov rcx, rsi
call fcn.180018900
test eax, eax
je 0x18000e9ba
mov rcx, rdi
call fcn.180011450
mov rcx, rax
mov rdx, rbx
call fcn.180018900
test eax, eax
jne 0x18000e9ba
xor ebp, ebp
mov ax, bp
mov word [rsp + 0x1060], ax
mov ebx, ebp
nop dword [rax]
test ax, ax
jne 0x18000e908
mov r8d, 0x800
mov rdx, rdi
lea rcx, [rsp + 0x1060]
call fcn.1800175e0
lea rcx, [rsp + 0x1060]
call fcn.180011450
mov rcx, rax
mov r9d, ebx
lea r8, str.rtmp_d
mov edx, 0x800
call fcn.1800025e0
lea rcx, [rsp + 0x1060]
call fcn.18000fca0
test al, al
je 0x18000e8ec
mov eax, ebp
mov word [rsp + 0x1060], ax
jmp 0x18000e8f4
mov ax, word [rsp + 0x1060]
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x18000e890
test ax, ax
je 0x18000e9c4
mov r8d, 0x800
mov rdx, rdi
lea rcx, [rsp + 0x2060]
call fcn.1800175e0
mov r8d, 0x800
mov rdx, rsi
lea rcx, [rsp + 0x2060]
call fcn.180011660
lea rdx, [rsp + 0x1060]
lea rcx, [rsp + 0x2060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x18000e9c4
lea rcx, [rsp + 0x30]
call fcn.18000eb30
nop
xor bl, bl
mov rcx, rdi
call fcn.18000fca0
test al, al
jne 0x18000e97d
mov r8d, 0x12
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.18000ed70
movzx ebx, al
lea rdx, [rsp + 0x2060]
lea rcx, [rsp + 0x1060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x18000e9ac
lea rcx, [rsp + 0x30]
call fcn.18000eef0
lea rcx, [rsp + 0x30]
call fcn.18000ef60
nop
lea rcx, [rsp + 0x30]
call fcn.18000f250
mov al, 1
jmp 0x18000e9c4
xor al, al
jmp 0x18000e9c4
xor al, al
jmp 0x18000e9c4
xor al, al
mov rcx, qword [rsp + 0x5060]
xor rcx, rsp
call fcn.180025eb0
lea r11, [rsp + 0x5070]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18000ef60
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
je 0x18000ef77
xor al, al
add rsp, 0x20
pop rbx
ret
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x18000ef83
call fcn.18000eef0
cmp byte [rbx + 0x1b], 0
je 0x18000ef6f
lea rcx, [rbx + 0x26]
add rsp, 0x20
pop rbx
jmp fcn.18000f900
Function at 0x18000efa0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x30
mov rsi, r8
mov r12, rdx
mov rdi, rcx
test r8, r8
jne 0x18000efc2
mov al, 1
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp dword [rcx + 0x14], 1
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x68], r13
jne 0x18000efe6
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rdi + 8], rax
xor r13d, r13d
nop dword [rax]
xor bpl, bpl
mov dword [rsp + 0x60], r13d
cmp dword [rdi + 0x14], r13d
je 0x18000f055
mov rbx, r13
test rsi, rsi
je 0x18000f07b
nop word [rax + rax]
mov rcx, qword [rdi + 8]
mov r8d, 0x4000
mov rax, rsi
sub rax, rbx
lea rdx, [rbx + r12]
lea r9, [rsp + 0x60]
cmp rax, r8
mov qword [rsp + 0x20], r13
cmovb r8, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
test bpl, bpl
je 0x18000f07b
add rbx, 0x4000
cmp rbx, rsi
jb 0x18000f010
jmp 0x18000f076
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x60]
mov r8d, esi
mov rdx, r12
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
test bpl, bpl
jne 0x18000f0e9
cmp byte [rdi + 0x1c], r13b
je 0x18000f0e9
cmp dword [rdi + 0x14], r13d
jne 0x18000f0e9
lea rdx, [rdi + 0x26]
lea rcx, [0x18003ecb8]
xor r8d, r8d
call fcn.18000ab80
test al, al
je 0x18000f0d7
mov ecx, dword [rsp + 0x60]
mov rax, rcx
cmp rcx, rsi
jae 0x18000eff0
test ecx, ecx
je 0x18000eff0
mov rbx, qword [rdi]
mov rcx, rdi
call qword [rbx + 0x20]
mov ecx, dword [rsp + 0x60]
xor r8d, r8d
sub rax, rcx
mov rcx, rdi
mov rdx, rax
call qword [rbx + 0x18]
jmp 0x18000eff0
lea r8, [rdi + 0x26]
lea rcx, [0x18003ecb8]
xor edx, edx
call fcn.18000adf0
mov r13, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov al, bpl
mov rbp, qword [rsp + 0x58]
mov byte [rdi + 0x10], 1
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x18000f1f0
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sete al
add rsp, 0x28
ret

Function at 0x18000f250
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 8], 0xffffffffffffffff
lea rax, [0x180032bf0]
mov rbx, rcx
mov qword [rcx], rax
je 0x18000f29a
cmp byte [rcx + 0x18], 0
jne 0x18000f29a
cmp byte [rcx + 0x1a], 0
je 0x18000f295
cmp dword [rcx + 0x14], 0
jne 0x18000f29a
call fcn.18000eef0
cmp byte [rbx + 0x1b], 0
je 0x18000f29a
lea rcx, [rbx + 0x26]
add rsp, 0x20
pop rbx
jmp fcn.18000f900
call fcn.18000eef0
add rsp, 0x20
pop rbx
ret
Function at 0x18000f2a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x18000f2cd
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000f3a8
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18000f337
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x18000f30d
cmp eax, 3
jne 0x18000f337
cmp rdi, 0x4e20
jbe 0x18000f337
mov r8d, 0x4e20
mov rdx, rsi
mov rcx, rbx
call fcn.18000f2a0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 0x14], 1
jne 0x18000f35a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x18000f35a
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 0x14], 0
jne 0x18000f395
cmp rdi, 0x8000
jbe 0x18000f395
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x18000f395
mov r8d, 0x8000
mov rdx, rsi
mov rcx, rbx
call fcn.18000f2a0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
or eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18000f7f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1800302b0
sub rsp, rax
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18000f84b
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.180011ae0
test al, al
je 0x18000f849
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x18000f84b
mov eax, ebx
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.180025eb0
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x18000f870
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.1800302b0
sub rsp, rax
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x18000f8d9
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.180011ae0
test al, al
je 0x18000f8d9
lea rcx, [rsp + 0x20]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
jmp 0x18000f8db
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.180025eb0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000f900
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.1800302b0
sub rsp, rax
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x18000f960
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.180011ae0
test al, al
je 0x18000f960
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
jmp 0x18000f962
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.180025eb0
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

Function at 0x18000fcd0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.1800302b0
sub rsp, rax
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, r8d
movzx edi, dl
mov rbx, rcx
call fcn.1800110d0
movzx ecx, word [rax]
cmp cx, 0x2e
je 0x18000fd26
cmp cx, 0x20
je 0x18000fd26
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18000fd5b
mov rcx, rbx
call fcn.18000f7f0
cmp eax, 0xffffffff
jne 0x18000fd6e
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.180011ae0
test al, al
je 0x18000fd6e
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18000fd6e
test dil, dil
je 0x18000fd6a
mov edx, esi
mov rcx, rbx
call fcn.18000f870
xor eax, eax
jmp 0x18000fd88
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x18000fd83
cmp eax, 3
mov eax, 1
jne 0x18000fd88
mov eax, 2
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.180025eb0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000ff00
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1280
call fcn.1800302b0
sub rsp, rax
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x1270], rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
jne 0x18000ffb5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18000ffda
lea rdx, [rsp + 0x270]
mov r8d, 0x800
mov rcx, rsi
call fcn.180011ae0
test al, al
je 0x18000ff83
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18000ffda
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x18000ffa8
cmp eax, 3
je 0x18000ffa8
cmp eax, 0x12
je 0x18000ffa8
mov eax, 1
mov byte [rdi + 0x1044], al
jmp 0x180010076
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x180010076
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18000ffda
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
or rax, 0xffffffffffffffff
mov byte [rdi + 0x1044], cl
jmp 0x180010079
mov r8d, 0x800
mov rdx, rsi
mov rcx, rdi
call fcn.1800175e0
lea rdx, [rsp + 0x4c]
mov r8d, 0x800
mov rcx, rdi
call fcn.180011660
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rdi + 0x1010]
lea rdx, [rsp + 0x34]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1000], r11
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1038], rax
call fcn.180017f30
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.180017f30
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.180017f30
mov rax, rbx
mov dword [rdi + 0x1040], 0
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.180025eb0
add rsp, 0x1280
pop rdi
pop rsi
pop rbx
ret
Function at 0x180012bc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov eax, 0x8000
xor ebx, ebx
mov r13, rcx
cmp r8d, eax
mov dword [rcx + 4], ebx
mov dword [rcx], ebx
mov rcx, qword [rcx + 0xc]
cmovb eax, r8d
mov ebp, r8d
mov r8d, eax
mov rsi, r9
mov r12, rdx
call fcn.180026260
xor dil, dil
cmp ebp, 1
jbe 0x180012c1f
lea rcx, [r12 + 1]
lea edx, [rbp - 1]
xor dil, byte [rcx]
inc rcx
sub rdx, 1
jne 0x180012c13
mov edx, 8
mov rcx, r13
call fcn.1800101f0
mov dword [rsi + 0x28], ebx
cmp dil, byte [r12]
jne 0x180012c69
mov r8, rbp
mov rdx, r12
or ecx, 0xffffffff
call fcn.180007cb0
lea r8, [0x18003a1b0]
mov edx, ebx
not eax
mov rcx, r8
cmp dword [rcx + 4], eax
jne 0x180012c5e
cmp dword [rcx], ebp
je 0x180012d0b
inc edx
add rcx, 0xc
cmp edx, 6
jb 0x180012c51
mov edx, 1
mov rcx, rsi
call fcn.180012b10
movsxd rax, dword [rsi + 0x28]
mov rcx, rax
inc eax
mov dword [rsi + 0x28], eax
lea rdx, [rcx + rcx*2]
shl rdx, 4
add rdx, qword [rsi]
lea rax, [rdx + 0xc]
mov dword [rdx], 0x16
mov dword [rdx + 0x1c], 3
mov qword [rdx + 0x14], rax
lea rax, [rdx + 0x20]
mov dword [rdx + 8], 3
mov qword [rdx + 0x28], rax
cmp dword [rsi + 0x28], ebx
jle 0x180012cf2
mov rcx, rbx
nop dword [rax]
mov rdx, qword [rsi]
cmp qword [rcx + rdx + 0x14], 0
jne 0x180012cd5
lea rax, [rcx + rdx + 0xc]
mov qword [rcx + rdx + 0x14], rax
cmp qword [rcx + rdx + 0x28], 0
jne 0x180012ce7
lea rax, [rcx + rdx + 0x20]
mov qword [rcx + rdx + 0x28], rax
inc ebx
add rcx, 0x30
cmp ebx, dword [rsi + 0x28]
jl 0x180012cc0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov eax, edx
lea rcx, [rax + rax*2]
mov edi, dword [r8 + rcx*4 + 8]
test edi, edi
je 0x180012c69
mov edx, 1
mov rcx, rsi
call fcn.180012b10
movsxd rax, dword [rsi + 0x28]
mov rcx, rax
inc eax
mov dword [rsi + 0x28], eax
lea rdx, [rcx + rcx*2]
shl rdx, 4
add rdx, qword [rsi]
mov dword [rdx + 0xc], edi
lea rax, [rdx + 0xc]
mov dword [rdx], 0x28
mov dword [rdx + 0x1c], 3
mov qword [rdx + 0x14], rax
lea rax, [rdx + 0x20]
mov dword [rdx + 8], 3
mov qword [rdx + 0x28], rax
jmp 0x180012cf2
Function at 0x1800140c0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 0x18], rbx
movdqu xmm2, xmmword [rcx + 8]
mov rbx, rdx
lea r10, [rcx + 0x18]
mov rdx, rcx
test r8, r8
je 0x180014157
nop dword [rax]
movsxd rcx, dword [rdx + 4]
mov rax, rbx
add rbx, 0x10
movdqu xmm3, xmmword [rax]
mov rax, rcx
add rax, rax
dec ecx
movdqu xmm1, xmmword [r10 + rax*8]
pxor xmm1, xmm3
test ecx, ecx
jle 0x180014123
movsxd rax, ecx
shl rax, 4
add rax, r10
nop
movdqu xmm0, xmmword [rax]
dec ecx
sub rax, 0x10
aesdec xmm1, xmm0
test ecx, ecx
jg 0x180014110
cmp byte [rdx + 1], 0
movdqu xmm0, xmmword [r10]
aesdeclast xmm1, xmm0
je 0x180014137
pxor xmm1, xmm2
mov rax, r9
add r9, 0x10
sub r8, 1
movdqa xmm2, xmm3
movdqu xmmword [rax], xmm1
jne 0x1800140e0
movdqu xmmword [rdx + 8], xmm2
mov rbx, qword [rsp + 0x18]
ret
mov rbx, qword [rsp + 0x18]
movdqu xmmword [rcx + 8], xmm2
ret
Function at 0x180014420
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x20
mov rax, qword [0x18003a7d8]
xor rax, rsp
mov qword [rsp + 0x10], rax
mov r11d, 1
mov rdi, rcx
cmp dword [rcx + 4], r11d
jle 0x1800145d7
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
lea r9, [rcx + 0x28]
lea rsi, [0x180000000]
lea r10, [rcx + 0x2c]
nop word [rax + rax]
xor ebx, ebx
movzx eax, byte [r10 - 1]
lea rdx, [rbx + rax*4]
movzx eax, byte [r10 - 2]
movzx r8d, byte [rdx + rsi + 0x3ecd0]
lea rcx, [rbx + rax*4]
movzx eax, byte [r10 - 3]
xor r8b, byte [rcx + rsi + 0x3f0d0]
lea rcx, [rbx + rax*4]
movzx eax, byte [r10 - 4]
xor r8b, byte [rcx + rsi + 0x3f4d0]
lea rcx, [rbx + rax*4]
movzx eax, byte [r10 + 3]
xor r8b, byte [rcx + rsi + 0x3f8d0]
lea rdx, [rbx + rax*4]
movzx eax, byte [r10 + 2]
mov byte [rsp + rbx], r8b
movzx r8d, byte [rdx + rsi + 0x3ecd0]
lea rcx, [rbx + rax*4]
xor r8b, byte [rcx + rsi + 0x3f0d0]
movzx eax, byte [r10 + 1]
lea rcx, [rbx + rax*4]
movzx eax, byte [r10]
xor r8b, byte [rcx + rsi + 0x3f4d0]
lea rcx, [rbx + rax*4]
movzx eax, byte [r10 + 7]
xor r8b, byte [rcx + rsi + 0x3f8d0]
lea rdx, [rbx + rax*4]
movzx eax, byte [r10 + 6]
mov byte [rsp + rbx + 4], r8b
movzx r8d, byte [rdx + rsi + 0x3ecd0]
lea rcx, [rbx + rax*4]
xor r8b, byte [rcx + rsi + 0x3f0d0]
movzx eax, byte [r10 + 5]
lea rcx, [rbx + rax*4]
movzx eax, byte [r10 + 4]
xor r8b, byte [rcx + rsi + 0x3f4d0]
lea rcx, [rbx + rax*4]
movzx eax, byte [r10 + 0xb]
xor r8b, byte [rcx + rsi + 0x3f8d0]
lea rdx, [rbx + rax*4]
movzx eax, byte [r10 + 0xa]
mov byte [rsp + rbx + 8], r8b
movzx r8d, byte [rdx + rsi + 0x3ecd0]
lea rcx, [rbx + rax*4]
xor r8b, byte [rcx + rsi + 0x3f0d0]
movzx eax, byte [r10 + 9]
lea rcx, [rbx + rax*4]
movzx eax, byte [r10 + 8]
xor r8b, byte [rcx + rsi + 0x3f4d0]
lea rcx, [rbx + rax*4]
inc rbx
xor r8b, byte [rcx + rsi + 0x3f8d0]
cmp rbx, 4
mov byte [rsp + rbx + 0xb], r8b
jl 0x180014472
lea rcx, [rsp]
inc r11d
add r9, 0x10
mov rax, qword [rcx]
add r10, 0x10
mov qword [r9 - 0x10], rax
mov rax, qword [rcx + 8]
mov qword [r9 - 8], rax
cmp r11d, dword [rdi + 4]
jl 0x180014470
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.180025eb0
add rsp, 0x20
pop rdi
ret
Function at 0x180015360
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp word [rdx], 0
mov rbx, rcx
jne 0x180015388
xor edx, edx
mov r8d, 0x100
mov byte [rcx + 0x100], 0
add rsp, 0x20
pop rbx
jmp fcn.180025ee0
mov byte [rcx + 0x100], 1
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x30], rdi
mov rdi, rdx
mov r8d, 0x80
repne scasw ax, word [rdi]
not rcx
cmp rcx, r8
cmovb r8, rcx
mov rcx, rbx
add r8, r8
call fcn.180026260
movzx r9d, byte [rbx + 0x101]
mov r8b, 1
mov edx, 0x100
mov rcx, rbx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp fcn.180015140

Function at 0x180016aa0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
mov dword [rcx + 0x18], eax
mov dword [rcx + 0x14], eax
ret

Function at 0x180016d80
Capabilities:
Hash data using sha256

Disassembly:
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov qword [rcx + 0x20], 0
ret
Function at 0x180017340
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x140
mov ebx, dword [rcx + 0x20]
mov rsi, qword [rcx + 0x20]
lea rbp, [rcx + 0x30]
and ebx, 0x3f
mov qword [rcx + 0x28], rbp
shl rsi, 3
mov byte [rbx + rcx + 0x30], 0x80
inc ebx
mov r12, rdx
mov rdi, rcx
cmp ebx, 0x38
je 0x18001739e
and ebx, 0x3f
jne 0x180017392
mov rcx, rdi
call fcn.180016dc0
mov byte [rbx + rdi + 0x30], 0
inc ebx
cmp ebx, 0x38
jne 0x180017385
movsxd rcx, ebx
mov rax, rsi
shl rsi, 8
shr rax, 0x38
mov byte [rcx + rdi + 0x30], al
mov rax, rsi
shl rsi, 8
shr rax, 0x38
mov byte [rcx + rdi + 0x31], al
mov rax, rsi
shl rsi, 8
shr rax, 0x38
mov byte [rcx + rdi + 0x32], al
mov rax, rsi
shl rsi, 8
shr rax, 0x38
mov byte [rcx + rdi + 0x33], al
mov rax, rsi
shl rsi, 8
shr rax, 0x38
mov byte [rcx + rdi + 0x34], al
mov rax, rsi
shl rsi, 8
shr rax, 0x38
mov byte [rcx + rdi + 0x35], al
mov rax, rsi
shr rsi, 0x30
shr rax, 0x38
mov byte [rcx + rdi + 0x37], sil
mov byte [rcx + rdi + 0x36], al
mov rcx, rdi
call fcn.180016dc0
xor r8d, r8d
xor r10d, r10d
lea r9, [r12 + 1]
nop word [rax + rax]
mov eax, r8d
mov ecx, 3
add r9, 2
and eax, 3
sub ecx, eax
mov rax, r10
shr rax, 2
shl ecx, 3
mov edx, dword [rdi + rax*4]
lea eax, [r8 + 1]
add r8d, 2
shr edx, cl
and eax, 3
mov ecx, 3
sub ecx, eax
mov byte [r9 - 3], dl
lea rax, [r10 + 1]
shr rax, 2
shl ecx, 3
add r10, 2
mov edx, dword [rdi + rax*4]
shr edx, cl
mov byte [r9 - 2], dl
cmp r8d, 0x20
jb 0x180017430
lea rcx, [rsp + 0x20]
mov edx, 0x20
mov dword [rdi], 0x6a09e667
mov dword [rdi + 4], 0xbb67ae85
mov dword [rdi + 8], 0x3c6ef372
mov dword [rdi + 0xc], 0xa54ff53a
mov dword [rdi + 0x10], 0x510e527f
mov dword [rdi + 0x14], 0x9b05688c
mov dword [rdi + 0x18], 0x1f83d9ab
mov dword [rdi + 0x1c], 0x5be0cd19
mov qword [rdi + 0x20], 0
call fcn.1800152b0
lea rcx, [rsp + 0x40]
mov edx, 0x100
call fcn.1800152b0
mov edx, 0x40
mov rcx, rbp
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
jmp fcn.1800152b0

Function at 0x180017dd0
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rbx, rcx
mov esi, r12d
cmp dword [rcx], r12d
jbe 0x180017e90
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
lea rdi, [rcx + 4]
nop dword [rax]
lea rax, [rsp + 0x50]
lea r8, [0x180017d30]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
jne 0x180017e5c
lea rdx, str.CreateThread_failed
lea rcx, [0x18003ecb8]
call fcn.18000aeb0
lea rcx, [0x18003ecb8]
call fcn.1800183d0
lea edx, [rbp + 2]
lea rcx, [0x18003ecb8]
call fcn.18000ac80
mov qword [rdi], rbp
inc dword [rbx + 0x104]
mov edx, dword [0x180041f24]
test edx, edx
je 0x180017e78
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc esi
add rdi, 8
cmp esi, dword [rbx]
jb 0x180017e00
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rsi
pop rbx
ret
Function at 0x180026f50
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180026dc4

Function at 0x18002973f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18003a7d8]
jne 0x180025eca
rol rcx, 0x10
test cx, 0xffff
jne 0x180025ec6
repz ret
ror rcx, 0x10
jmp 0x180029698
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180042310]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180042408]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18002971d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180042310]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18002973f
mov rax, qword [rsp + 0x88]
mov qword [0x180042408], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800423a8], rax
mov rax, qword [0x180042408]
mov qword [0x180042280], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180042390], rax
mov dword [0x180042270], 0xc0000409
mov dword [0x180042274], 1
mov rax, qword [0x18003a7d8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18003a7e0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180042308], eax
mov ecx, 1
call fcn.18002d958
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180033320]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180042308], 0
jne 0x1800297c6
mov ecx, 1
call fcn.18002d958
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret