joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008bf0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov dword [rsp + 0x78], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.180002b30
mov rcx, rax
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
jne 0x180008c78
mov rcx, qword [rsp + 0x20]
call fcn.180002b30
mov rcx, rax
call fcn.1800246c0
test eax, eax
je 0x180008c78
mov rcx, qword [rsp + 0xc8]
call fcn.180003c30
mov eax, dword [rsp + 0x78]
or eax, 1
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0xc8]
jmp 0x180008d15
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x28]
call fcn.180002ab0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
lea r8, [0x1801287dc]
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1800086e0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xc8]
call fcn.180008650
mov eax, dword [rsp + 0x78]
or eax, 1
mov dword [rsp + 0x78], eax
lea rcx, [rsp + 0x50]
call fcn.180002b10
nop
lea rcx, [rsp + 0x28]
call fcn.180002b10
mov rax, qword [rsp + 0xc8]
add rsp, 0xb8
ret

Function at 0x180013de0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x28]
cmp eax, 2
je 0x180013dfd
mov al, 1
jmp 0x180013e95
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 0
je 0x180013e18
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x50]
call fcn.180013f10
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x28], 0
mov rax, qword [rsp + 0x50]
add rax, 0x24
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x180013fd0]
xor edx, edx
xor ecx, ecx
call fcn.1800cfb44
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x18], r11
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 0
jne 0x180013e73
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x28], 2
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 0
je 0x180013e89
mov dword [rsp + 0x30], 1
jmp 0x180013e91
mov dword [rsp + 0x30], 0
mov al, byte [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x1800178b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov eax, dword [rcx + 0x114]
mov rdi, rdx
mov rbx, rcx
test eax, eax
jne 0x18001797e
call fcn.1800197f0
cmp eax, 1
je 0x1800178e8
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea rcx, [0x18012eb74]
call fcn.1800010d0
mov r8, qword [rbx + 0x18]
lea r9, [0x18012eb74]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.180009f10
test eax, eax
je 0x180017979
mov rcx, rbx
call fcn.180002b30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180017979
test al, 0x10
je 0x180017979
mov rcx, rbx
call fcn.180016c10
test eax, eax
jne 0x18001797e
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.180007cc0
mov rcx, rax
call fcn.18004e2a0
mov rdx, rdi
mov rcx, rax
call fcn.18004bbf0
mov rcx, rdi
mov ebx, eax
call fcn.18001c950
mov ecx, 0x1602
test al, al
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov eax, 0x109
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x180017990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x150
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov rsi, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x114]
test eax, eax
jne 0x180017c35
lea rcx, [0x18012eb74]
call fcn.1800010d0
mov qword [rsp + 0x20], rax
lea r9, [0x18012eb74]
mov r8, qword [rdi + 0x18]
xor edx, edx
mov rcx, rdi
call fcn.180009f10
test eax, eax
je 0x180017c30
mov rcx, rdi
call fcn.180002b30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180017c30
test al, 0x10
je 0x180017c30
mov rcx, rdi
call fcn.180016c10
test eax, eax
jne 0x180017c35
mov rbx, qword [rdi + 0xb8]
mov rcx, rdi
call fcn.180002b30
mov r9, rax
movzx r8d, byte [rdi + 0x110]
mov rdx, rbx
lea rcx, [rsp + 0x120]
call fcn.180031260
nop
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180007cc0
mov rcx, rax
call fcn.18004e2a0
mov rbx, rax
lea rcx, [rsp + 0x60]
call fcn.180028470
nop
mov ecx, dword [rbx + 0x168]
mov dword [rsp + 0x68], ecx
lea rdx, [rbx + 0x170]
lea rcx, [rsp + 0x70]
call fcn.180003c80
lea rdx, [rbx + 0x198]
lea rcx, [rsp + 0x98]
call fcn.180003c80
lea rdx, [rbx + 0x1c0]
lea rcx, [rsp + 0xc0]
call fcn.180003c80
mov r11d, dword [rbx + 0x1e8]
mov dword [rsp + 0xe8], r11d
mov eax, dword [rbx + 0x1ec]
mov dword [rsp + 0xec], eax
lea rdx, [rbx + 0x1f0]
lea rcx, [rsp + 0xf0]
call fcn.180003c80
mov ebx, dword [rbx + 8]
test ebx, ebx
je 0x180017b4c
lea rcx, vtable.LicenseInfo.0
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0xf0]
call fcn.180002b10
lea rcx, [rsp + 0xc0]
call fcn.180002b10
lea rcx, [rsp + 0x98]
call fcn.180002b10
lea rcx, [rsp + 0x70]
call fcn.180002b10
nop
lea rcx, [rsp + 0x120]
call fcn.180002b10
mov eax, ebx
jmp 0x180017c35
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1800287e0
nop
lea rcx, [rsi + 0x10]
mov rdx, rax
call fcn.180003c80
nop
lea rcx, [rsp + 0x30]
call fcn.180002b10
mov r11d, dword [rsp + 0xe8]
mov dword [rsi + 8], r11d
mov eax, dword [rsp + 0xec]
mov dword [rsi + 0xc], eax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.180028ff0
nop
lea rcx, [rsi + 0x38]
mov rdx, rax
call fcn.180003c80
nop
lea rcx, [rsp + 0x30]
call fcn.180002b10
mov r11d, dword [rsp + 0x68]
mov dword [rsi + 0x60], r11d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1800287b0
nop
lea rcx, [rsi + 0x68]
mov rdx, rax
call fcn.180003c80
nop
lea rcx, [rsp + 0x30]
call fcn.180002b10
nop
lea rcx, vtable.LicenseInfo.0
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0xf0]
call fcn.180002b10
lea rcx, [rsp + 0xc0]
call fcn.180002b10
lea rcx, [rsp + 0x98]
call fcn.180002b10
lea rcx, [rsp + 0x70]
call fcn.180002b10
nop
lea rcx, [rsp + 0x120]
call fcn.180002b10
xor eax, eax
jmp 0x180017c35
mov eax, 0x109
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.1800c9b90
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180023130
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
mov rbp, qword [rsp + 0x40]
mov rdi, r9
movabs r9, 0xaaaaaaaaaaaaaaab
mov rax, r9
mov rsi, r8
mov r8, rdx
mov r13, rcx
mov ebx, 0
mul rbp
shr rdx, 1
mov rax, rbx
lea rcx, [rdx + rdx*2]
cmp rbp, rcx
setne al
add rax, rdx
movabs rdx, 0x3fffffffffffffff
cmp rax, rdx
jbe 0x180023192
mov qword [rsi], 0xffffffffffffffff
jmp 0x1800232e0
lea rax, [rax*4 + 1]
cmp r8, rax
jb 0x1800232dd
test r13, r13
je 0x1800232dd
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r14
mov r11, r13
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r12, rbx
test rcx, rcx
je 0x18002324d
dec rcx
mov rax, r9
mul rcx
shr rdx, 1
inc rdx
lea r12, [rdx + rdx*2]
nop
movzx r8d, byte [rdi]
movzx r9d, byte [rdi + 1]
movzx r10d, byte [rdi + 2]
mov eax, r8d
add r8d, r8d
add r11, 4
sar rax, 2
add rdi, 3
and eax, 0x3f
movzx eax, byte [rax + r14]
mov byte [r11 - 4], al
mov eax, r9d
sar eax, 4
lea ecx, [rax + r8*8]
and ecx, 0x3f
movzx eax, byte [rcx + r14]
mov byte [r11 - 3], al
mov eax, r10d
sar eax, 6
lea ecx, [rax + r9*4]
and ecx, 0x3f
movzx eax, byte [rcx + r14]
mov byte [r11 - 2], al
mov eax, r10d
and eax, 0x3f
sub rdx, 1
movzx eax, byte [rax + r14]
mov byte [r11 - 1], al
jne 0x1800231e0
cmp r12, rbp
jae 0x1800232b5
movzx edx, byte [rdi]
inc r12
cmp r12, rbp
jae 0x180023261
movzx ebx, byte [rdi + 1]
mov eax, edx
add edx, edx
sar rax, 2
and eax, 0x3f
movzx eax, byte [rax + r14]
mov byte [r11], al
mov eax, ebx
sar eax, 4
lea ecx, [rax + rdx*8]
and ecx, 0x3f
movzx eax, byte [rcx + r14]
mov byte [r11 + 1], al
cmp r12, rbp
jae 0x1800232a5
and ebx, 0xf
shl ebx, 2
add r11, 3
movsxd rax, ebx
movzx eax, byte [rax + r14]
mov byte [r11 - 1], al
jmp 0x1800232ae
mov byte [r11 + 2], 0x3d
add r11, 3
mov byte [r11], 0x3d
inc r11
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x20]
mov rax, r11
sub rax, r13
mov qword [rsi], rax
mov byte [r11], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
pop r13
pop rdi
pop rsi
ret
mov qword [rsi], rax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov eax, 0xffffffd6
pop r13
pop rdi
pop rsi
ret
Function at 0x180023300
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
mov r11, qword [rsp + 0x30]
mov rsi, r8
xor ebx, ebx
xor r8d, r8d
xor r10d, r10d
mov rdi, rdx
mov rbp, rcx
test r11, r11
je 0x1800234b1
lea r12, [0x1801284b0]
nop dword [rax]
xor edx, edx
cmp r10, r11
jae 0x18002335b
cmp byte [r10 + r9], 0x20
jne 0x180023358
inc r10
inc edx
cmp r10, r11
jb 0x180023347
cmp r10, r11
je 0x1800233d0
mov rax, r11
sub rax, r10
cmp rax, 2
jb 0x180023378
cmp byte [r10 + r9], 0xd
jne 0x180023378
cmp byte [r10 + r9 + 1], 0xa
je 0x1800233c4
movzx eax, byte [r10 + r9]
cmp al, 0xa
je 0x1800233c4
test edx, edx
jne 0x1800234a0
cmp al, 0x3d
jne 0x18002339a
inc r8d
cmp r8d, 2
ja 0x1800234a0
cmp al, 0x7f
ja 0x1800234a0
movzx eax, al
movzx ecx, byte [rax + r12]
cmp cl, 0x7f
je 0x1800234a0
cmp cl, 0x40
jae 0x1800233c1
test r8d, r8d
jne 0x1800234a0
inc rbx
inc r10
cmp r10, r11
jb 0x180023340
test rbx, rbx
je 0x1800234b1
mov rax, rbx
shr rbx, 3
and eax, 7
lea rax, [rax + rax*2]
lea rcx, [rax + rax + 7]
lea rax, [rbx + rbx*2]
shr rcx, 3
lea rdx, [rcx + rax*2]
mov eax, r8d
sub rdx, rax
test rbp, rbp
je 0x1800234a7
cmp rdi, rdx
jb 0x1800234a7
xor r11d, r11d
xor ebx, ebx
mov r8d, 3
mov rdx, rbp
test r10, r10
je 0x180023498
movzx eax, byte [r9]
cmp al, 0xd
je 0x18002348f
cmp al, 0xa
je 0x18002348f
cmp al, 0x20
je 0x18002348f
movzx eax, al
movzx ecx, byte [rax + r12]
xor eax, eax
cmp cl, 0x40
sete al
and ecx, 0x3f
inc rbx
sub r8d, eax
mov eax, r11d
mov r11d, ecx
shl eax, 6
or r11d, eax
cmp rbx, 4
jne 0x18002348f
xor ebx, ebx
test r8d, r8d
je 0x180023471
mov eax, r11d
shr eax, 0x10
inc rdx
mov byte [rdx - 1], al
cmp r8d, 1
jbe 0x180023483
mov eax, r11d
shr eax, 8
inc rdx
mov byte [rdx - 1], al
cmp r8d, 2
jbe 0x18002348f
mov byte [rdx], r11b
inc rdx
inc r9
sub r10, 1
jne 0x180023423
sub rdx, rbp
mov qword [rsi], rdx
jmp 0x1800234b8
mov eax, 0xffffffd4
jmp 0x1800234ba
mov qword [rsi], rdx
mov eax, 0xffffffd6
jmp 0x1800234ba
mov qword [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r12
ret

Function at 0x1800239c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rdx, [0x180124bcc]
mov rcx, qword [rsp + 0x50]
call fcn.1800cb4b8
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180023a53
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180023960
mov r8d, dword [rsp + 0x60]
mov r9, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.1800cb6c4
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
cmp qword [rsp + 0x28], rax
je 0x180023a33
mov dword [rsp + 0x3c], 1
jmp 0x180023a3b
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x30]
call fcn.180023980
mov eax, dword [rsp + 0x38]
jmp 0x180023a58
mov eax, 1
add rsp, 0x48
ret
Function at 0x180023b30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
lea rdx, [0x1801250bc]
mov rcx, qword [rsp + 0x60]
call fcn.1800cb4b8
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180023c1d
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.180023960
nop
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1800cd39c
mov rcx, qword [rsp + 0x20]
call fcn.1800cd6dc
mov dword [rsp + 0x30], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1800cd39c
cmp dword [rsp + 0x30], 0
jle 0x180023bfb
movsxd rdx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.180007ea0
movsxd rbx, dword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call fcn.180007e50
mov r9, qword [rsp + 0x20]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1800cc180
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x68]
call fcn.180007ea0
jmp 0x180023c05
mov rcx, qword [rsp + 0x68]
call fcn.180007d40
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x28]
call fcn.180023980
mov eax, dword [rsp + 0x40]
jmp 0x180023c22
mov eax, 1
add rsp, 0x50
pop rbx
ret

Function at 0x1800246c0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1800246e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1800246e5
or eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800246f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov edi, edx
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x1ff
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x40], 0
call fcn.1800cc600
test edi, edi
je 0x18002474d
cmp edi, 1
je 0x180024746
mov rcx, rbx
call fcn.180003c30
jmp 0x18002477f
mov edx, reloc.WLDAP32.dll_Ordinal_35
jmp 0x180024752
mov edx, Ordinal_27
lea rax, [rsp + 0x40]
bts edx, 0xf
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov rcx, rbx
test eax, eax
jne 0x18002473f
lea rdx, [rsp + 0x40]
call fcn.180002ab0
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800c9b90
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x1800247b0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x104
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x30], 0
call fcn.1800cc600
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180002ab0
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x150
pop rbx
ret
Function at 0x180024830
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x180024854
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
sub ecx, eax
neg ecx
sbb eax, eax
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x180024860
Capabilities:
Copy file
Delete file

Disassembly:
push rdi
sub rsp, 0x90
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rcx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
xor r8d, r8d
lea rdx, [rdi + 2]
lea rcx, [rsp + 0x60]
call fcn.180007c50
nop
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.180007d10
xor r8d, r8d
lea rdx, [rdi + 2]
lea rcx, [rsp + 0x60]
call fcn.180007ed0
xor edi, edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
lea rcx, [rsp + 0x60]
call fcn.180002b30
mov qword [rsp + 0x30], rax
lea rcx, [0x18012eb74]
mov qword [rsp + 0x38], rcx
mov eax, 0x414
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edi, eax
lea rcx, [rsp + 0x60]
call fcn.180002b10
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1800c9b90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18002497d
test al, 0x10
je 0x18002497d
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x18002fb40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x150], rax
movsxd rbx, dword [rsp + 0x1c0]
mov rdi, qword [rsp + 0x1c8]
mov r12, qword [rsp + 0x1d0]
mov eax, ebx
mov esi, reloc.WS2_32.dll_recv
mov r15, r9
cdq
mov rbp, r8
mov r14, rcx
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
sub sil, al
movzx r13d, sil
lea eax, [r13 + rbx]
mov dword [r12], eax
test rdi, rdi
jne 0x18002fbbb
mov eax, 1
jmp 0x18002fd3f
movsxd rcx, eax
call fcn.1800cc52c
mov qword [rsp + 0x140], rax
test rax, rax
je 0x18002fbb1
mov r8, rbx
mov rdx, r15
mov rcx, rax
call fcn.1800cbb10
mov r15, qword [rsp + 0x140]
movzx r8d, sil
lea rcx, [rbx + r15]
mov edx, r13d
call fcn.1800cc600
mov esi, 0x120
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
call fcn.1800cc600
lea r8d, [rsi - 0x20]
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.180050160
mov r13d, eax
test eax, eax
jne 0x18002fd1f
mov rax, qword [rbp]
lea rcx, [rsp + 0x140]
mov qword [rcx], rax
mov rax, qword [rbp + 8]
movsxd rbp, dword [r12]
mov qword [rcx + 8], rax
test bpl, 0xf
je 0x18002fc52
mov r13d, 0xffffffde
jmp 0x18002fd1f
xor r13d, r13d
test rbp, rbp
je 0x18002fd1f
lea rax, [rsp + 0x140]
mov rbx, rdi
mov r12, r15
sub rbx, rax
sub r12, rdi
dec rbp
shr rbp, 4
inc rbp
nop dword [rax]
lea r9, [r12 + rdi]
mov rdx, r13
lea r8, [rdi + 1]
mov r10, r9
lea r11, [rbx + r12]
sub r10, rdi
nop word [rax + rax]
lea rcx, [rsp + rdx + 0x140]
add rdx, 4
add r8, 4
movzx eax, byte [r11 + rcx]
xor al, byte [rcx]
mov byte [rbx + rcx], al
movzx eax, byte [r10 + r8 - 4]
xor al, byte [rcx + 1]
mov byte [r8 - 4], al
movzx eax, byte [r9 + rdx - 2]
xor al, byte [rcx + 2]
mov byte [r8 - 3], al
movzx eax, byte [r9 + rdx - 1]
xor al, byte [rcx + 3]
cmp rdx, 0x10
mov byte [r8 - 2], al
jl 0x18002fca0
lea rcx, [rsp + 0x20]
mov r8, rdi
mov rdx, rdi
call fcn.180050a20
mov rax, qword [rdi]
lea r11, [rsp + 0x140]
mov qword [r11], rax
mov rax, qword [rdi + 8]
add rdi, 0x10
add rbx, 0x10
sub rbp, 1
mov qword [r11 + 8], rax
jne 0x18002fc80
mov rcx, r15
call fcn.1800cb340
lea rax, [rsp + 0x20]
nop dword [rax]
mov byte [rax], 0
inc rax
sub rsi, 1
jne 0x18002fd30
mov eax, r13d
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800c9b90
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002fd70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r12
push r13
push r15
sub rsp, 0x188
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x1d8]
mov r13, qword [rsp + 0x1d0]
mov r10, rdx
mov qword [rsp + 0x20], rax
movsxd r12, r9d
mov r15, r8
mov eax, r12d
mov rbx, rcx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
cmp eax, edx
je 0x18002fdcc
mov eax, 1
jmp 0x18002fe4f
mov rax, qword [r10]
lea rcx, [rsp + 0x150]
mov qword [rsp + 0x1c0], rsi
mov qword [rcx], rax
mov rax, qword [r10 + 8]
mov esi, 0x120
mov qword [rcx + 8], rax
lea rcx, [rsp + 0x30]
mov r8, rsi
xor edx, edx
mov qword [rsp + 0x180], r14
call fcn.1800cc600
lea r8d, [rsi - 0x20]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.1800507b0
mov r11d, eax
test eax, eax
jne 0x18002fe2b
mov rbx, r13
test r12b, 0xf
je 0x18002fe6e
lea r11d, [rax - 0x22]
lea rax, [rsp + 0x30]
mov byte [rax], 0
inc rax
sub rsi, 1
jne 0x18002fe30
mov eax, r11d
mov rsi, qword [rsp + 0x1c0]
mov r14, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x188
pop r15
pop r13
pop r12
pop rbx
ret
mov qword [rsp + 0x1b8], rbp
mov qword [rsp + 0x1c8], rdi
lea rbp, [r12 - 1]
lea rdi, [rsp + 0x151]
shr rbp, 4
sub r15, r13
sub rdi, r13
inc rbp
nop dword [rax + rax]
mov rax, qword [r15 + rbx]
lea rdx, [r15 + rbx]
lea rcx, [rsp + 0x160]
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov r8, rbx
mov qword [rcx + 8], rax
lea rcx, [rsp + 0x30]
call fcn.180051030
mov ecx, 4
nop dword [rax]
movzx eax, byte [rdi + rbx - 1]
add rbx, 4
xor byte [rbx - 4], al
movzx eax, byte [rdi + rbx - 4]
xor byte [rbx - 3], al
movzx eax, byte [rdi + rbx - 3]
xor byte [rbx - 2], al
movzx eax, byte [rdi + rbx - 2]
xor byte [rbx - 1], al
sub rcx, 1
jne 0x18002fed0
movaps xmm0, xmmword [rsp + 0x160]
sub rdi, 0x10
sub rbp, 1
movdqa xmmword [rsp + 0x150], xmm0
jne 0x18002fea0
movzx edx, byte [r12 + r13 - 1]
mov rdi, qword [rsp + 0x1c8]
mov rbp, qword [rsp + 0x1b8]
lea rax, [r12 + r13 - 1]
xor r11d, r11d
test dl, dl
je 0x18002ff66
cmp dl, 0x10
ja 0x18002ff66
movzx r8d, dl
mov ecx, r11d
test r8d, r8d
jle 0x18002ff56
cmp byte [rax], dl
jne 0x18002ff66
inc ecx
dec rax
cmp ecx, r8d
jl 0x18002ff48
mov rax, qword [rsp + 0x20]
sub r12d, r8d
mov dword [rax], r12d
jmp 0x18002fe2b
mov eax, 1
jmp 0x18002fe3f
Function at 0x180030360
Capabilities:
Hash data using sha256

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor ebx, ebx
mov dword [rsp + 0x38], 0x6a09e667
mov dword [rsp + 0x3c], 0xbb67ae85
mov dword [rsp + 0x40], 0x3c6ef372
mov dword [rsp + 0x44], 0xa54ff53a
mov dword [rsp + 0x48], 0x510e527f
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x4c], 0x9b05688c
mov dword [rsp + 0x50], 0x1f83d9ab
mov dword [rsp + 0x54], 0x5be0cd19
mov rsi, rcx
mov dword [r11 - 0x50], ebx
mov dword [rsp + 0x20], ebx
mov qword [r11 - 0x48], rdx
mov qword [r11 - 0x40], r8
mov qword [r11 - 0x38], r9
mov rdx, qword [rsp + rbx*8 + 0xa0]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x30]
call fcn.18004f4f0
inc rbx
cmp rbx, 3
jl 0x1800303e0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x30]
call fcn.18004f5d0
lea rdx, [rsp + 0xa0]
mov r8d, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rsi
call fcn.18002f980
mov rax, rsi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret

Function at 0x180031f00
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x38]
call fcn.180003c30
nop
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.180023b30
test eax, eax
je 0x180031f5c
lea rcx, [rsp + 0x38]
call fcn.180002b10
mov eax, 0x109
jmp 0x180031ff3
lea rcx, [rsp + 0x38]
call fcn.180002b50
cmp rax, 0x10
je 0x180031f7d
lea rcx, [rsp + 0x38]
call fcn.180002b10
mov eax, 0x10b
jmp 0x180031ff3
lea rcx, [rsp + 0x38]
call fcn.180002b30
lea rdx, [rsp + 0x20]
mov rcx, qword [rax]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
xor eax, eax
nop dword [rax]
xor byte [rsp + rax + 0x20], 0xb7
inc rax
cmp rax, 0x10
jl 0x180031fa0
xor ecx, ecx
call fcn.1800ca7e8
cmp rax, qword [rsp + 0x20]
jl 0x180031fe4
cmp rax, qword [rsp + 0x28]
jl 0x180031fe4
lea rcx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
lea rcx, [rsp + 0x38]
call fcn.180002b10
xor eax, eax
jmp 0x180031ff3
lea rcx, [rsp + 0x38]
call fcn.180002b10
mov eax, 0x10b
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800c9b90
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret