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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xc0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rsp + 0x100], rbx
mov rax, qword [0x14003a970]
xor rax, rsp
mov qword [rbp - 1], rax
mov rbx, r8
mov rdi, rdx
mov dword [rbp - 0x39], r9d
mov r14, qword [rbp + 0x6f]
mov r12, qword [rbp + 0x7f]
mov r13, qword [rbp + 0x87]
xor eax, eax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
lea r8, str.treadstone_service_LightMode
lea rcx, [rbp - 0x31]
call fcn.1400096f0
nop
lea rcx, [rbp - 0x31]
call fcn.1400098c0
xor r15d, r15d
test rdi, rdi
jne 0x14000ae00
mov eax, r15d
jmp 0x14000ae0d
mov edx, 0xff
mov rcx, rdi
call fcn.14000fdac
lea rsi, [rax*2 + 2]
test rbx, rbx
jne 0x14000ae1f
mov rax, r15
jmp 0x14000ae2c
mov edx, 0xff
mov rcx, rbx
call fcn.14000fdac
lea rcx, [rax*2 + 2]
mov qword [rsp + 0x60], r14
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x58], eax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 4
lea rax, [rbp - 0x39]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov edx, 6
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x31]
call fcn.140009990
mov ebx, eax
test eax, eax
jne 0x14000af73
mov esi, 0x200
mov ecx, esi
call fcn.14000be54
mov r14, rax
mov r8d, esi
sub r8d, r15d
movsxd rdx, r15d
add rdx, r14
xor r15d, r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x3d]
mov rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000aed2
cmp dword [rbp - 0x3d], r15d
je 0x14000aed2
mov ebx, r15d
jmp 0x14000aeda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rbp - 0x41], ebx
test ebx, ebx
je 0x14000af1f
cmp ebx, 0xea
jne 0x14000af73
mov rdi, r14
mov r15d, esi
lea eax, [rsi + rsi]
mov esi, eax
mov ebx, eax
mov ecx, eax
call fcn.14000be54
mov r14, rax
shr rbx, 1
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.14000c110
mov rcx, rdi
call fcn.14000fb28
jmp 0x14000aea1
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14000af32
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 9], r15
mov ebx, dword [r14 + 1]
mov r8d, ebx
lea rdx, [r14 + 5]
lea rcx, [rbp - 0x41]
call fcn.14000c110
add ebx, 5
movsxd rax, ebx
mov edi, dword [rax + r14]
add ebx, 4
mov r8d, edi
movsxd rdx, ebx
add rdx, r14
mov rcx, r12
call fcn.14000c110
mov dword [r13], edi
mov rcx, r14
call fcn.14000fb28
mov ebx, dword [rbp - 0x41]
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14000af86
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 9], r15
cmp qword [rbp - 0x19], 8
jb 0x14000af96
mov rcx, qword [rbp - 0x31]
call fcn.14000c0f0
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14000bee0
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002ed00
Capabilities:
Check mutex on windows

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x14008e010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [0x140091a88]
mov r15d, r9d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test rax, rax
jne 0x14002ed4d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov qword [0x140091a88], rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [0x140091a88]
xor ebx, ebx
cmp dword [0x140091a6c], 1
sete bl
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
test ebx, ebx
jne 0x14002ed82
mov eax, 0xf0001000
jmp 0x14002ef21
test rdi, rdi
je 0x14002ef1c
test r14, r14
je 0x14002ef1c
test rbp, rbp
jne 0x14002eda2
test r15d, r15d
jne 0x14002ef1c
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14002d990
test eax, eax
je 0x14002ef1c
mov rax, qword [0x140091858]
mov ecx, 0x38
test rax, rax
je 0x14002eddd
mov r8d, 0x4fd
lea rdx, str.D:_buildagent_cd_8811workspace11934_thirdparty_bhplugin1Beihai_toolsjhi_libBeihaiPlugin.cpp
call qword [0x140069610]
jmp 0x14002ede2
call fcn.14004c5b0
mov rbx, rax
test rax, rax
jne 0x14002edf4
mov eax, 0xf0001004
jmp 0x14002ef21
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov qword [rbx + 0x28], rax
mov rcx, rbx
test rax, rax
jne 0x14002ee45
mov rax, qword [0x140091850]
test rax, rax
je 0x14002ee36
mov r8d, 0x504
lea rdx, str.D:_buildagent_cd_8811workspace11934_thirdparty_bhplugin1Beihai_toolsjhi_libBeihaiPlugin.cpp
call qword [0x140069610]
mov eax, 0xf000100a
jmp 0x14002ef21
call fcn.140044cd0
mov eax, 0xf000100a
jmp 0x14002ef21
mov qword [rsp + 0xb8], rsi
mov dword [rbx + 8], 1
mov qword [rbx + 0x30], 1
call fcn.14002d830
mov r8, rax
mov dword [rsp + 0x40], 6
mov rdx, rbx
lea rcx, str.Beihai_CreateSession__x__llx_n
mov rsi, rax
call fcn.14002d530
mov qword [rsp + 0x20], r8
lea rcx, [rsp + 0x30]
mov r8, rbp
mov r9d, r15d
mov edx, 0x28
call fcn.14002dba0
mov r8d, dword [rbx + 0xc]
mov edi, eax
test eax, eax
jne 0x14002eea5
mov edi, r8d
mov rdx, rbx
lea rcx, str.Beihai_CreateSession__x_ret__x_n
call fcn.14002d530
mov rax, qword [0x140091850]
mov rcx, qword [rbx + 0x20]
test rax, rax
je 0x14002eed9
mov r8d, 0x517
lea rdx, str.D:_buildagent_cd_8811workspace11934_thirdparty_bhplugin1Beihai_toolsjhi_libBeihaiPlugin.cpp
call qword [0x140069610]
jmp 0x14002eede
call fcn.140044cd0
mov qword [rbx + 0x20], 0
mov rdx, rsi
mov rcx, rbx
test edi, edi
jne 0x14002ef04
call fcn.14002d730
mov rsi, qword [rsp + 0xb8]
mov eax, edi
mov qword [r14], 0
jmp 0x14002ef21
mov eax, 0xf0001005
Function at 0x140007a80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14023a098]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov qword [rsp + 0x38], rdx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rdx], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], 0xf
mov byte [rdx], al
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], al
mov byte [rsp + 0x20], al
mov r9d, 0x208
xor r8d, r8d
mov edx, r9d
lea rcx, [rsp + 0x40]
call fcn.140002dc0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140007bb2
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
mov r8, rdi
mov edx, eax
call fcn.14000ac80
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x17
jb 0x140007b92
lea rax, [rcx + 0x17]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140007b73
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8d, 0x17
lea rdx, str.Mega_LimitedMEGAsync_
mov rcx, rbx
call fcn.140150450
mov byte [rbx + 0x17], 0
jmp 0x140007bb2
mov qword [rsp + 0x20], 0x17
lea r9, str.Mega_LimitedMEGAsync_
xor r8d, r8d
lea edx, [r8 + 0x17]
mov rcx, rdi
call fcn.140001630
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140007beb
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007be6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007c09
call fcn.14014d578
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14014d690
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
call fcn.14015ef18
int3
Function at 0x140008200
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14023a098]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], al
lea rdx, [rsp + 0x30]
call fcn.14000ad30
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14000826e
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0
jmp 0x14000828f
mov qword [rsp + 0x20], 1
lea r9, [0x1401d8b81]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x30]
call fcn.140001630
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call fcn.14018cb50
mov ebx, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400082e0
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400082db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400082f5
call fcn.14014d578
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14014d690
add rsp, 0x60
pop rbx
ret
call fcn.14015ef18
int3
Function at 0x140008400
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14023a098]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
xor edi, edi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], dil
lea rdx, [rbp - 0x30]
call fcn.14000ad30
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140008474
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x30]
mov word [rax + rcx], di
jmp 0x140008494
mov qword [rsp + 0x20], 1
lea r9, [0x1401d8b81]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x30]
call fcn.140001630
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.14000ad30
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400084e5
lea rax, [rcx + 1]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x50]
cmp rdx, 0x10
cmovae rax, qword [rbp - 0x50]
mov word [rax + rcx], 0
jmp 0x140008505
mov qword [rsp + 0x20], 1
lea r9, [0x1401d8b81]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x50]
call fcn.140001630
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call fcn.14018cc64
mov ebx, eax
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14000855f
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000855a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400085cf
call fcn.14014d578
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1400085a6
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400085a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400085c9
call fcn.14014d578
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14014d690
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14015ef18
nop
call fcn.14015ef18
nop
int3
Function at 0x140066510
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x10325476
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xc3d2e1f0
ret

Function at 0x140066780
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, 0x20
lea rdx, [0x1401db3d8]
mov rcx, qword [rsp + 0x30]
call fcn.140150450
add rsp, 0x28
ret

Function at 0x140066bb0
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14023a098]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs rax, 0x6a09e667f3bcc908
mov qword [rsp + 0x20], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rsp + 0x28], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rsp + 0x30], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rsp + 0x38], rax
movabs rax, 0x510e527fade682d1
mov qword [rsp + 0x40], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rsp + 0x48], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x50], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rsp + 0x58], rax
mov r8d, 0x40
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140150450
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14014d690
add rsp, 0x78
ret
Function at 0x140113ec0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14023a098]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx edx, byte [rsp + 0x20]
lea rcx, [rsp + 0x21]
call fcn.1401142d0
mov rcx, rax
call fcn.140114450
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.140114410
xor r9d, r9d
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, rax
call sub.bcrypt.dll_BCryptGenRandom
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jge 0x140113f83
mov ecx, dword [rsp + 0x24]
call fcn.140114420
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x1401e8950]
lea rcx, [rsp + 0x30]
call fcn.1400110a0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140113bb0
lea rdx, [0x1402382b0]
lea rcx, [rsp + 0x50]
call fcn.14014f364
nop
lea rcx, [rsp + 0x30]
call fcn.140001f10
nop
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14014d690
add rsp, 0xa8
ret
Function at 0x140115490
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov eax, dword [rsp + 0x88]
shl eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax*4]
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call fcn.1401160f0
mov dword [rsp + 0x20], 4
mov eax, dword [rsp + 0x88]
lea eax, [rax*4 - 4]
mov dword [rsp + 0x24], eax
jmp 0x1401154f7
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
sub eax, 4
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x140115578
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rcx + rax*4], xmm0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x50]
movdqu xmmword [rcx + rax*4], xmm0
jmp 0x1401154e1
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqu xmm0, xmmword [rcx + rax*4]
aesimc xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
movdqa xmm0, xmmword [rsp + 0x60]
movdqu xmmword [rcx + rax*4], xmm0
add rsp, 0x78
ret

Function at 0x140162cdc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140162cfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14015fe74
or eax, 0xffffffff
jmp 0x140162cfe
xor eax, eax
add rsp, 0x28
ret

Function at 0x14018cb7c
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14018cb9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14015fe74
or eax, 0xffffffff
jmp 0x14018cb9e
xor eax, eax
add rsp, 0x28
ret

Function at 0x14019e4a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14019e22c
Function at 0x100401080
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call sym.__main
lea rcx, str.Ritoni_n
call sym.printf
mov rax, qword [0x100402010]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
mov rdx, qword [0x100402010]
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, section..rdata
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 8]
call rax
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x1400b8830
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400b883d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400b884d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400b8835
lea eax, [rcx + 1]
jmp 0x1400b885b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400b886e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400b8854
sub eax, 3
jb 0x1400b888e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400b88dd
sar eax, 1
movsxd rbp, eax
jb 0x1400b88c4
jmp 0x1400b889c
add ebx, ebx
jne 0x1400b889a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b88c4
inc ecx
add ebx, ebx
jne 0x1400b88aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b88c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400b88bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400b88ac
add ecx, 2
jmp 0x1400b88c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400b87f2
jmp 0x1400b883d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x84200
mov dl, 0x19
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400b8929
cmp rsi, rcx
jae 0x1400b8931
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400b8910
cmp al, 0x8f
ja 0x1400b8910
cmp byte [rsi - 2], 0xf
je 0x1400b8916
sub al, 0xe8
cmp al, 1
ja 0x1400b88fa
cmp rsi, rcx
jae 0x1400b8931
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400b8900
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400b8931
lodsb al, byte [rsi]
jmp 0x1400b8910
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb5000]
mov eax, dword [rdi]
or eax, eax
je 0x1400b899a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb87f0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400b893e
jns 0x1400b8973
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400b897d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400b8994
mov qword [rbx], rax
add rbx, 8
jmp 0x1400b895e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400b89d4
cmp al, 0xef
ja 0x1400b89c6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400b89a6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400b89b5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400b8a28
sub rsp, 0xffffffffffffff80
jmp 0x14005f7dc
Function at 0x1407c2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407c21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407c2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c206f
add dl, dl
jne 0x1407c2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c20f6
xor eax, eax
add dl, dl
jne 0x1407c20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c21ad
add dl, dl
jne 0x1407c20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407c20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407c207e
mov eax, 1
add dl, dl
jne 0x1407c2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c20fb
sub eax, ebx
mov ebx, 1
jne 0x1407c214c
mov ecx, 1
add dl, dl
jne 0x1407c212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407c213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407c2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407c2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c215d
cmp eax, 0x7d00
jae 0x1407c219b
cmp eax, 0x500
jb 0x1407c2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c207e
cmp eax, 0x7f
ja 0x1407c219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407c21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407c207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20