joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000104c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1401d39d0], rdi
je 0x1400010a5
cmp rax, rdi
jne 0x140001098
mov esi, 1
jmp 0x1400010a5
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000107f
mov eax, dword [0x1401d39c8]
cmp eax, 1
jne 0x1400010ba
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14000111f
mov eax, dword [0x1401d39c8]
test eax, eax
jne 0x140001115
mov dword [0x1401d39c8], 1
lea r12, [0x140005398]
lea rdi, [0x140005380]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x140001107
test eax, eax
jne 0x140001107
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400010fc
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x1400010e5
test eax, eax
je 0x14000111f
mov eax, 0xff
jmp 0x140001269
mov dword [0x1401d1c94], 1
mov eax, dword [0x1401d39c8]
cmp eax, 1
jne 0x140001147
lea rdx, [0x140005378]
lea rcx, [0x140005368]
call sub.msvcrt.dll__initterm
mov dword [0x1401d39c8], 2
test esi, esi
jne 0x140001154
xor eax, eax
xchg qword [0x1401d39d0], rax
cmp qword [0x1401d39d8], 0
je 0x14000117d
lea rcx, [0x1401d39d8]
call fcn.140001438
test eax, eax
je 0x14000117d
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1401d39d8]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x140001208
cmp byte [rdi], 0
je 0x14000119e
test esi, esi
jne 0x140001208
cmp byte [rdi], 0
je 0x1400011b2
cmp byte [rdi], 0x20
ja 0x1400011b2
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x14000119e
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400024fc
mov dword [0x1401d1c90], eax
cmp dword [0x1401d1c74], 0
jne 0x1400011f1
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1401d1c94], 0
jne 0x140001206
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1401d1c90]
jmp 0x140001269
cmp byte [rdi], 0x22
jne 0x14000121a
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14000122f
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x140001190
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.140001520
add rsp, 0x28
jmp 0x14000104c
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1400014cd
cmp rcx, 0xffffffffffffffff
je 0x1400014cd
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400014c5
cmp dword [rcx + 0x3c], edx
jl 0x1400014c5
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400014c5
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400014cd
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140002678
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x130
and qword [r8], 0
mov rdi, r8
mov ebx, edx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.msvcrt.dll_memset]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1400026c4
mov eax, 1
jmp 0x140002720
lea rdx, str._ntoskrnl.exe
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r8, rax
test rax, rax
jne 0x1400026f5
lea eax, [r8 + 2]
jmp 0x140002720
xor eax, eax
lea edx, [rbx - 4]
test edx, edx
je 0x140002712
mov rcx, r8
cmp dword [rcx], 0x1d8806eb
je 0x140002735
inc eax
inc rcx
cmp eax, edx
jb 0x140002701
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 3
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
movsxd rdx, dword [rax + r8 + 4]
mov ecx, eax
add rcx, 8
add rcx, rdx
add rcx, r8
test edx, edx
je 0x140002712
test rcx, rcx
je 0x140002712
sub rcx, r8
add rcx, rsi
mov qword [rdi], rcx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140002720
Function at 0x140002d00
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x140
mov rbx, rcx
lea rdx, str.SYSTEMCurrentControlSet_services_
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rax, [rsp + 0x160]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebx, ebx
test eax, eax
je 0x140002d5f
lea eax, [rbx + 1]
jmp 0x140002db3
mov rcx, qword [rsp + 0x160]
lea rax, [rsp + 0x158]
mov r9d, 4
mov dword [rsp + 0x158], 1
mov dword [rsp + 0x28], r9d
lea rdx, str.DeleteFlag
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140002da3
mov ebx, 2
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x140
pop rbx
ret

Function at 0x140002dbc
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
xor esi, esi
mov word [rbp + 0x73], 0x500
mov rdi, rcx
mov dword [rbp + 0x6f], esi
xor edx, edx
mov qword [rbp + 0x77], rsi
lea rcx, [rbp + 7]
lea r8d, [rsi + 0x30]
call qword [sym.imp.msvcrt.dll_memset]
lea rax, [rbp + 0x77]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea r8d, [rsi + 0x20]
mov dword [rsp + 0x48], esi
lea rcx, [rbp + 0x6f]
mov dword [rsp + 0x40], esi
mov dl, 2
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140002e34
lea ebx, [rsi + 1]
jmp 0x140002ed8
mov rax, qword [rbp + 0x77]
mov ebx, 3
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rbp + 0x2f], rax
mov rcx, rdi
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r15d, [rbx + 1]
mov r8d, r15d
mov dword [rbp + 7], 0x10000000
lea edx, [rbx - 2]
mov dword [rbp + 0xb], 2
mov dword [rbp + 0xf], ebx
mov dword [rbp + 0x23], esi
mov dword [rbp + 0x27], 2
mov qword [rbp + 0x7f], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
je 0x140002e98
lea ebx, [r15 - 2]
jmp 0x140002ed8
mov r9, qword [rbp + 0x7f]
lea r8, [rbp + 7]
mov rcx, rdi
call fcn.140002c34
test eax, eax
jne 0x140002eb0
mov ebx, esi
jmp 0x140002ed8
mov rdx, qword [rbp + 0x77]
mov rcx, rdi
call fcn.140002b24
test eax, eax
jne 0x140002ed8
mov r9, qword [rbp + 0x7f]
lea r8, [rbp + 7]
mov rcx, rdi
call fcn.140002c34
test eax, eax
mov ebx, esi
cmovne ebx, r15d
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140002ee7
call qword [sym.imp.ADVAPI32.dll_FreeSid]
test ebx, ebx
je 0x140002ef2
mov eax, 1
jmp 0x140002f04
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
not eax
and eax, 2
add rsp, 0x90
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140002f14
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor esi, esi
cmp byte [rbx], 0
je 0x140002fc9
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x140002fc9
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002fe8
mov r8d, dword [rbx + 0x110]
lea r9, [rsp + 0x58]
mov rdx, qword [rbx + 0x108]
mov rcx, rax
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x110]
mov rcx, rdi
cmp dword [rsp + 0x58], eax
jne 0x140002fdb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 0x118
inc esi
cmp esi, 4
jb 0x140002f2c
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x140002fcb
mov eax, 1
jmp 0x140002fcb
Function at 0x140001040
Capabilities:
Enumerate device drivers on windows
Load ntoskrnl
Resolve ntoskrnl gadgets

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2040
call fcn.1400086b0
sub rsp, rax
mov rax, qword [0x1400163c0]
xor rax, rsp
mov qword [rsp + 0x2030], rax
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov edx, 0x2000
call qword [sym.imp.PSAPI.DLL_EnumDeviceDrivers]
mov ecx, dword [rsp + 0x20]
test eax, eax
je 0x140001096
cmp ecx, 0x2000
jae 0x140001096
mov rbx, qword [rsp + 0x30]
test rbx, rbx
jne 0x1400010ae
jmp 0x1400010a9
mov rdx, rcx
lea rcx, str.____EnumDeviceDrivers_failed__array_size_needed_is__d_n
shr rdx, 3
call fcn.140001e90
mov rbx, qword [rsp + 0x20]
xor edx, edx
lea rcx, str.ntoskrnl.exe
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x1400010d9
lea rcx, str.____Could_not_load_ntoskrnl.exe
call fcn.140001f3c
xor eax, eax
jmp 0x1400010ef
lea rdx, str.HalDispatchTable
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rbx, rdi
add rax, rbx
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.1400019d0
mov rbx, qword [rsp + 0x2050]
add rsp, 0x2040
pop rdi
ret
Function at 0x1400018f0
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x1307
syscall
ret

Function at 0x140002be8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140002a50
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x142d4c4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x142d4ce
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x142d4f7
pop rbp
sub rbp, 0x33
sub rbp, 0x102d4c4
sub rsp, 0x20
jmp 0x142d516
mov rax, 0x102d4c4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x3a4a7be5
xor byte [rax], dl
inc rax
dec rcx
jne 0x142d535
jmp 0x142d54c
lodsd eax, dword [rsi]
insb byte [rdi], dx
or al, 0x6e
insb byte [rdi], dx
fxam
in eax, 0xe5
lodsd eax, dword [rsi]
and al, 0xed
in al, 0xe5
in eax, 0xad
in al, 0xc
lodsd eax, dword [rsi]
and ah, byte [0xffffffffe728bb4c]
lodsd eax, dword [rsi]
and ah, byte [rdi]
int 0xe5
in eax, 0xe5
lodsd eax, dword [rsi]
adc al, byte [rdi]
lodsd eax, dword [rsi]
in al, 0x24
outsb dx, byte [rsi]
jmp 0xffffffffaf28bb5f
Function at 0x180001000
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Resume thread
Terminate process

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, 0x12c
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edx, 0xfffffed4
sub edx, ebx
add edx, eax
movsxd rax, edx
shr rax, 0x20
xor edx, eax
sub edx, eax
cmp edx, 0x64
jg 0x18000117f
lea r8, str.Mutex873652974652109841243
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180001085
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov qword [rsp + 0x160], rdi
mov ebx, 0x25a
mov edx, 0x64
lea ecx, [rdx - 0x62]
call qword [sym.imp.KERNEL32.dll_Beep]
sub rbx, 1
jne 0x180001092
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x18001b998]
lea rcx, [rsp + 0x30]
call fcn.180006d78
mov rdi, rax
test rax, rax
je 0x180001177
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call fcn.18000718c
mov rcx, rdi
call fcn.180006be0
mov rcx, rdi
mov ebx, eax
call fcn.180006ea4
xor eax, eax
cmp ebx, 0xeee0
sete al
test eax, eax
je 0x180001177
call fcn.1800012b0
call fcn.180001860
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.180002060
mov rcx, qword [rsp + 0x20]
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800022e0
add rsp, 0x150
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.180003830
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], 0
jne 0x180001230
xor ebx, ebx
test rdi, rdi
je 0x18000127a
cmp byte [rsi + rbx], 0x5c
jne 0x180001272
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.18000757c
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x180001272
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc rbx
cmp rbx, rdi
jb 0x180001240
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800022e0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180002060
Capabilities:
Create process on windows
Self delete

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x4b0]
sub rsp, 0x5b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [rbp + 0x60]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor esi, esi
mov r8d, esi
nop word [rax + rax]
movzx eax, byte [rbp + r8 + 0x60]
mov byte [rbp + r8 + 0x170], al
lea r8, [r8 + 1]
test al, al
jne 0x1800020b0
mov rcx, rsi
nop dword [rax]
movzx eax, byte [rbp + rcx + 0x60]
mov byte [rbp + rcx + 0x280], al
lea rcx, [rcx + 1]
test al, al
jne 0x1800020d0
mov rax, rsi
nop word [rax + rax]
movzx ecx, byte [rbp + rax + 0x60]
mov byte [rbp + rax + 0x390], cl
lea rax, [rax + 1]
test cl, cl
jne 0x1800020f0
mov edx, 0x5c
lea rcx, [rbp + 0x170]
call fcn.1800032b8
mov edx, 0x5c
lea rcx, [rbp + 0x280]
mov byte [rax], sil
call fcn.1800032b8
mov edx, 0x5c
lea rcx, [rbp + 0x390]
mov byte [rax], sil
call fcn.1800032b8
lea rdx, [0x18001b940]
lea rcx, [rbp + 0x170]
mov byte [rax], sil
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.msvcr120.dll
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.msvcp120.dll
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.cmd__k_del__
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rbp + 0x60]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.__del__
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rbp + 0x170]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.__del__
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rbp + 0x280]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.__del__
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rbp + 0x390]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.__exit
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rbp - 0x58], xmm0
lea rax, [rsp + 0x50]
mov dword [rbp - 0x54], 1
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x70]
mov word [rbp - 0x50], si
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x30], rsi
xor ecx, ecx
mov dword [rsp + 0x28], 0x14
mov dword [rsp + 0x20], esi
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180002299
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800022a9
mov rax, qword [rsp + 0x50]
mov qword [rbx], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi], rax
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.1800022e0
mov rbx, qword [rsp + 0x5e0]
add rsp, 0x5b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006994
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.1800128e0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180008b84
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800069e3
mov rax, rbp
jmp 0x180006aeb
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xab34d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180008f14
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xab34d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180006ae7
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 0x180006ae7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180008f14
test rax, rax
js 0x180006ae7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180006ae7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180006ad9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180006ad9
cmp byte [rcx], 0xd
jne 0x180006abf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180006ace
cmp byte [rcx + 1], 0xa
jne 0x180006ace
inc rcx
jmp 0x180006ace
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1e2d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180006aa1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180006aeb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800022e0
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 0x180007440
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.1800073a4
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x18000748b
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x1800074bf
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800074bf
call fcn.18000b1e0
xor ebx, ebx
test eax, eax
jne 0x1800074ad
cmp byte [rbp - 0x48], bl
je 0x1800074a6
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x1800074bf
cmp byte [rbp - 0x48], bl
je 0x1800074bd
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.180007228
mov esi, eax
test eax, eax
je 0x1800074fb
call fcn.18000a3c8
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x180007554
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.180007228
mov edi, eax
test eax, eax
je 0x180007537
call fcn.18000a3c8
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x180007546
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.18000b540
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x180007554
mov rcx, qword [rbp - 0x50]
call fcn.18000a8a8
cmp byte [rbp - 8], bl
je 0x180007562
mov rcx, qword [rbp - 0x20]
call fcn.18000a8a8
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 0x180009788
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x180ab34d0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1800097e6
cmp word [rdx], r12w
jne 0x1800097e6
or byte [rax + r8*8 + 0x38], cl
jmp 0x1800097ec
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180009947
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180009922
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180009825
mov rcx, r9
jmp 0x180009848
cmp r9, rdx
jae 0x18000985f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180009809
jmp 0x180009947
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000991c
cmp dword [rsp + 0x80], edi
je 0x18000991c
mov rdx, r14
lea r11, [0x180ab34d0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1800098f5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1800098c8
mov word [rbx], r12w
jmp 0x180009943
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1800098d1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180009943
cmp word [rsp + 0x70], r12w
jne 0x180009902
cmp rbx, rsi
je 0x1800098c2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180008f1c
cmp word [rsp + 0x70], r12w
je 0x180009947
mov word [rbx], r13w
jmp 0x180009943
lea r11, [0x180ab34d0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18000993f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180009947
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret