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

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x170], 0
jne 0x14006c2eb
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x58], 0xffffffff
je 0x14006c2b0
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x58], 0
jne 0x14006c291
mov dword [rsp + 0x34], 0xffffffff
jmp 0x14006c29d
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x58]
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x34]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x58]
add rax, 0x34
mov qword [rsp + 0x20], 0
mov r9, rax
mov rax, qword [rsp + 0x58]
mov r8d, dword [rax + 0x30]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [rsp + 0x30], al
jmp 0x14006c2f0
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14006d370
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x88
movzx eax, word [rsp + 0x98]
lea r8, [0x1400f3cf0]
mov edx, eax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14006d3bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14006d4d1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14006d3e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14006d4d1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14006d40b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14006d4d1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x14006d434
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14006d4d1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x14006d47b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14006d4d1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14006d4c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x70]
jmp 0x14006d4d1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x88
ret
Function at 0x1400701a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
mov eax, dword [rdi + 0x44]
sub esi, dword [rdi + 0x9c]
lea ecx, [rbx + rax - 0x106]
sub esi, edx
cmp edx, ecx
jb 0x14007024f
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.140095540
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop dword [rax]
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, ebx
jb 0x140070220
sub eax, ebx
jmp 0x140070222
xor eax, eax
dec r8d
mov word [rdx], ax
jne 0x140070210
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, ebx
jb 0x140070244
sub eax, ebx
jmp 0x140070246
xor eax, eax
dec edx
mov word [rcx], ax
jne 0x140070234
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x1400702c9
mov edx, dword [rdi + 0x9c]
mov eax, dword [rdi + 0x94]
mov r8d, esi
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.14006fe70
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x1400702b3
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x1400702c9
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x1400701c0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140075110
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400f4d50]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r10, rdx
movabs r11, 0xf0f0f0f0f0f0f0f1
mov dword [rbp - 0x60], 0xd06ad32
mov rax, r11
mov dword [rbp - 0x5c], 0xb53eb822
mov dword [rbp - 0x58], 0x9bb9ea13
mov dword [rbp - 0x54], 0xe18e36fe
mov dword [rbp - 0x50], 0x35463092
mov dword [rbp - 0x4c], 0x57f4d9e
mul rcx
shr rdx, 6
mov dword [rbp - 0x48], 0x88f48eaa
mov dword [rbp - 0x44], 0x1eee5b13
mov dword [rbp - 0x40], 0xb349b9f3
mov dword [rbp - 0x3c], 0xea4e9658
mov dword [rbp - 0x38], 0xe2757a98
imul rdx, rdx, 0x44
sub rcx, rdx
mov dword [rbp - 0x34], 0xd222830e
mov dword [rbp - 0x30], 0xae664478
mov dword [rbp - 0x2c], 0xd04761b0
mov dword [rbp - 0x28], 0xb660bbbc
mov dword [rbp - 0x24], 0x84a9ea79
mov dword [rbp - 0x20], 0xbf375019
test r8, r8
je 0x1400750fa
sub r10, r9
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 0x60]
inc rcx
inc r9
xor al, byte [r10 + r9 - 1]
mov byte [r9 - 1], al
mov rax, r11
mul rcx
shr rdx, 6
imul rdx, rdx, 0x44
sub rcx, rdx
dec r8
jne 0x1400750d0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400959a0
add rsp, 0x60
pop rbp
ret
mov r9, rdx
jmp 0x140075010

Function at 0x14009fa1b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400f4d50]
jne 0x1400959ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1400959b6
repz ret
ror rcx, 0x10
jmp 0x14009f974
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400fa1a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400fa298]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14009f9f9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400fa1a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14009fa1b
mov rax, qword [rsp + 0x88]
mov qword [0x1400fa298], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400fa238], rax
mov rax, qword [0x1400fa298]
mov qword [0x1400fa110], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400fa220], rax
mov dword [0x1400fa100], 0xc0000409
mov dword [0x1400fa104], 1
mov rax, qword [0x1400f4d50]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400f4d58]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400fa198], eax
mov ecx, 1
call fcn.1400ab17c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400cc0e8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400fa198], 0
jne 0x14009faa2
mov ecx, 1
call fcn.1400ab17c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1400a3070
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400a2ee0
Function at 0x1400aad74
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400f4d50]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400a0964
xor ebx, ebx
cmp qword [0x1400facc0], rbx
mov rdi, rax
jne 0x1400aae87
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400aaf5e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400aaf5e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400facc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400facc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400facd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400face0], rax
test rax, rax
je 0x1400aae7e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400facd8], rax
jmp 0x1400aae8e
mov rax, qword [0x1400facd8]
jmp 0x1400aae95
mov rax, qword [0x1400facd8]
mov r11, qword [0x1400face0]
cmp rax, rdi
je 0x1400aaefc
cmp r11, rdi
je 0x1400aaefc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400face0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400aaefc
test rax, rax
je 0x1400aaefc
call rsi
test rax, rax
je 0x1400aaef6
lea rcx, [rsp + 0x30]
mov r9d, ntohs
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400aaef6
test byte [rsp + 0x40], 1
jne 0x1400aaefc
bts ebp, 0x15
jmp 0x1400aaf3c
mov rcx, qword [0x1400facc8]
cmp rcx, rdi
je 0x1400aaf3c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400aaf3c
call rax
mov rbx, rax
test rax, rax
je 0x1400aaf3c
mov rcx, qword [0x1400facd0]
cmp rcx, rdi
je 0x1400aaf3c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400aaf3c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400facc0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400aaf5e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400aaf60
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400959a0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x662200
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x66220d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x66221d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x662205
lea eax, [rcx + 1]
jmp 0x66222b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x66223e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x662224
sub eax, 3
jb 0x66225e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x6622ad
sar eax, 1
movsxd rbp, eax
jb 0x662294
jmp 0x66226c
add ebx, ebx
jne 0x66226a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x662294
inc ecx
add ebx, ebx
jne 0x66227a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x662294
call r11
adc ecx, ecx
add ebx, ebx
jne 0x66228d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x66227c
add ecx, 2
jmp 0x662299
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.006621c2
jmp 0x66220d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xeca00
mov dl, 0x24
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x6622f9
cmp rsi, rcx
jae 0x662301
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x6622e0
cmp al, 0x8f
ja 0x6622e0
cmp byte [rsi - 2], 0xf
je 0x6622e6
sub al, 0xe8
cmp al, 1
ja 0x6622ca
cmp rsi, rcx
jae 0x662301
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x6622d0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x662301
lodsb al, byte [rsi]
jmp 0x6622e0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x25e000]
mov eax, dword [rdi]
or eax, eax
je 0x66235e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x262000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x66230e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x662358
mov qword [rbx], rax
add rbx, 8
jmp 0x66232e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x662398
cmp al, 0xef
ja 0x66238a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x66236a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x662379
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x6623ec
sub rsp, 0xffffffffffffff80
jmp 0x464880
Function at 0x140001480
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x20
mov ecx, 2
lea rbx, [rax + 0x10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, qword [rsp + 0x30]
mov r8, rbx
mov rcx, rax
call fcn.140001008
mov ecx, 0xff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400015f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10040
call fcn.1400033b0
sub rsp, rax
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x10030], rax
xor edx, edx
mov esi, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
mov edi, eax
dec eax
and eax, 0x8000ffff
jge 0x140001640
dec eax
or eax, 0xffff0000
inc eax
sub edi, eax
sub edi, 1
js 0x1400016c6
xor r8d, r8d
mov edx, edi
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
cmp eax, 0xffffffff
je 0x1400016fb
mov r8d, 0x10008
lea rdx, [rsp + 0x20]
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cmp eax, 0xffffffff
je 0x1400016ee
cdqe
cmp rax, 8
jb 0x1400016b2
lea rbx, [rsp + rax + 0x18]
jmp 0x1400016a1
mov r8d, 8
lea rdx, str._nPAR.pm_n
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
test eax, eax
je 0x1400016ad
dec rbx
lea rax, [rsp + 0x20]
cmp rbx, rax
jae 0x140001684
jmp 0x1400016b2
test rbx, rbx
jne 0x1400016ba
sub edi, 0x10000
jmp 0x140001645
lea rax, [rsp + 0x20]
sub ebx, eax
lea eax, [rdi + rbx]
jmp 0x1400016c9
or eax, 0xffffffff
mov rcx, qword [rsp + 0x10030]
xor rcx, rsp
call fcn.1400026a0
lea r11, [rsp + 0x10040]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rcx, [0x1400044f8]
call fcn.140001480
int3
lea rcx, [0x1400044e8]
call fcn.140001480
int3
Function at 0x140001cb4
Capabilities:
Delete directory

Disassembly:
test rcx, rcx
je 0x140001e54
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
test rax, rax
je 0x140001e2d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
add eax, 0x102
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rdi
lea rdx, [0x1400045fc]
mov rcx, rax
mov rbx, rax
call fcn.140001090
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findfirst64i32]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140001e2d
lea rdx, [0x1400043c0]
lea rcx, [rsp + 0x44]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rcx, rbx
test rax, rax
jne 0x140001d6d
lea r9, [rsp + 0x44]
mov r8, rdi
lea rdx, [0x140004604]
call fcn.140001090
jmp 0x140001d7e
lea r8, [rsp + 0x44]
lea rdx, [0x14000460c]
call fcn.140001090
lea rdx, [0x140004610]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rsi, rax
test rax, rax
je 0x140001dbe
lea rdx, [0x140004610]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
test eax, eax
je 0x140001e05
lea rdx, [0x140004614]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
test eax, eax
je 0x140001e05
test byte [rsp + 0x20], 0x10
je 0x140001dcf
mov rcx, rbx
call fcn.140001cb4
jmp 0x140001e05
lea rcx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbp, rax
xor esi, esi
jmp 0x140001df8
mov ecx, esi
inc esi
cmp ecx, 0xa
jge 0x140001e05
test rbp, rbp
je 0x140001df8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
test eax, eax
jne 0x140001de1
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findnext64i32]
test eax, eax
je 0x140001d3d
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findclose]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__rmdir]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400026a0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140001eec
Capabilities:
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, rcx
mov r14, r9
mov rcx, r8
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea rcx, [rax + 2]
add rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rdi
lea rdx, [0x14000462c]
mov rcx, rax
mov qword [r14], rax
mov r8, rsi
call fcn.140001090
mov rcx, qword [r14]
lea rdx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x140001f73
movsxd rax, dword [rsp + 0x34]
cmp rax, qword [rbp + 8]
jne 0x140001f73
mov eax, 2
jmp 0x140002022
mov rcx, qword [r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea rcx, [rax + 0x16]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
mov r8, qword [r14]
lea rdx, str._s._lu
mov r9d, eax
mov rcx, rdi
call fcn.140001090
mov edx, 0x8101
mov r8d, 0x1ed
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
mov esi, eax
cmp eax, 0xffffffff
je 0x140002020
mov rbx, qword [rbp + 0x10]
jmp 0x140001fde
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
movsxd rcx, eax
cmp rcx, qword [rbx]
jne 0x140002020
add rbx, 0x10
cmp qword [rbx], 0
mov ecx, esi
jne 0x140001fc5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
cmp eax, 0xffffffff
je 0x140002020
mov edx, 0x1e8
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__chmod]
mov rdx, qword [r14]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
cmp eax, 0xffffffff
jne 0x140002019
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
mov eax, 1
jmp 0x140002022
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400026a0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000203c
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r8d, r8d
xor edx, edx
mov ebx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
cmp eax, 0xffffffff
je 0x140002192
mov r8d, 0x40
lea rdx, [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cmp eax, 0x40
jne 0x14000219f
mov eax, 0x5a4d
cmp word [rsp + 0x20], ax
je 0x1400020b4
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.MZ_magic_bytes
lea rdx, str.assertion_failed:__s_n
call fcn.14000104c
mov edi, dword [rsp + 0x5c]
xor r8d, r8d
mov edx, edi
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
cmp eax, 0xffffffff
je 0x140002192
mov r8d, 0x1a
lea rdx, [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cmp eax, 0x1a
jne 0x14000219f
cmp dword [rsp + 0x20], 0x4550
je 0x140002113
lea ecx, [rax - 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.PE_header
lea rdx, str.assertion_failed:__s_n
call fcn.14000104c
mov eax, 0xe0
cmp word [rsp + 0x34], ax
jne 0x14000212b
mov eax, 0x10b
cmp word [rsp + 0x38], ax
je 0x140002164
mov eax, 0xf0
cmp word [rsp + 0x34], ax
jne 0x140002143
mov eax, 0x20b
cmp word [rsp + 0x38], ax
je 0x140002164
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.IMAGE_NT_OPTIONAL_HDR_MAGIC
lea rdx, str.assertion_failed:__s_n
call fcn.14000104c
lea edx, [rdi + 0x5c]
xor r8d, r8d
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
cmp eax, 0xffffffff
je 0x140002192
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400026a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
lea rcx, [0x1400044e8]
call fcn.140001480
int3
lea rcx, [0x1400045a8]
call fcn.140001480
int3
Function at 0x140002f74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002fbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002fbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002fbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002fbe
cmp dword [rcx + 0x84], 0xe
jbe 0x140002fbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002fc0
xor al, al
add rsp, 0x28
ret