joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400027e0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov ebx, ecx
mov edi, edx
mov edx, ecx
mov ecx, 4
call sym.CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov r12, rax
je 0x14000285e
lea rsi, [rsp + 0x20]
mov rcx, rax
mov qword [rsp + 0x20], 0
mov rdx, rsi
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0x1c
call sym.Thread32First
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
mov r14, qword [sym.imp.KERNEL32.dll_OpenThread]
jne 0x1400028af
nop dword [rax]
mov rcx, r12
call rbp
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor edx, edx
mov r8d, dword [rsp + 0x28]
mov ecx, 2
call r14
test rax, rax
mov r13, rax
je 0x140002894
test edi, edi
mov rcx, rax
jne 0x1400028c0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call rbp
nop dword [rax]
mov rdx, rsi
mov rcx, r12
call sym.Thread32Next
test eax, eax
je 0x140002858
cmp dword [rsp + 0x2c], ebx
jne 0x1400028a0
jmp 0x140002870
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, r13
call rbp
jmp 0x1400028a0
Function at 0x140003ca0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140003d10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f714]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140003ea0
mov rax, qword [0x14000f718]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140003d5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140003de5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140003d40
mov rcx, rdi
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x140003ef2
mov rax, qword [0x14000f718]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000f718]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003ed5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140003dde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003e50
add dword [0x14000f714], 1
cmp ebx, 8
jae 0x140003e11
test bl, 4
jne 0x140003eb0
test ebx, ebx
je 0x140003e06
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140003ec4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140003e06
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140003e2a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14000f718]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140003dde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor esi, esi
jmp 0x140003d67
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140003e06
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140003e06
mov rax, qword [0x14000f718]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call sym.__report_error
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400044c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000f780]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f760]
test rbx, rbx
je 0x140004514
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000450b
test rsi, rsi
je 0x14000450b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400044f0
lea rcx, [0x14000f780]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004760
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140004770
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140004780
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400047c1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x1400047b8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400047c3
add rax, 0x28
cmp rax, r9
jne 0x1400047a4
xor eax, eax
ret

Function at 0x140004870
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000cb60]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400048df
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400048df
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400048dd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400048d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400048df
add rdx, 0x28
cmp rdx, r9
jne 0x1400048c0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x1400049e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x14000cb60]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x140004a4f
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140004a4f
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x140004a4d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140004a44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140004a54
add rax, 0x28
cmp rax, r9
jne 0x140004a30
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140004a70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14000cb60]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140004ae3
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140004ae3
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140004ae3
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140004ae3
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x140004ad7
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140004af0
add rdx, 0x28
cmp rdx, r10
jne 0x140004ac3
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x140004b08
jmp 0x140004ae0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140004b16
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140004ae0
test r8d, r8d
jg 0x140004b00
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140001120
Capabilities:
Execute command
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edx, 0x65
xor ecx, ecx
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140001164
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400024d8]
call fcn.140001010
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001198
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____LoadResource_Failed_With_Error_:__d__n
call fcn.140001010
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x1400011cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____LockResource_Failed_With_Error_:__d__n
call fcn.140001010
lea eax, [rdi - 1]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
jne 0x140001200
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____SizeofResource_Failed_With_Error_:__d__n
call fcn.140001010
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14000122f
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, rdi
lea rcx, str._i__pPayloadAddress_var_:_0x_p__n
call fcn.140001010
mov rdx, rbx
lea rcx, str._i__sPayloadSize_var_:__ld__n
call fcn.140001010
mov rdx, rsi
lea rcx, str._i__pTmpBuffer_var_:_0x_p__n
call fcn.140001010
mov r8, rbx
mov rdx, rsi
call fcn.140001070
lea rcx, str.___Press__Enter__To_Quit_..._n
call fcn.140001010
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140049d78
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
and qword [rbp + 0x28], 0
xor eax, eax
and qword [rbp + 0x18], 0
mov rbx, rcx
and qword [rbp + 0x30], 0
test edx, edx
setne al
mov dword [rbp + 0x20], eax
test rcx, rcx
je 0x140049eaa
call fcn.140049790
test eax, eax
je 0x140049e87
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14004981c
mov rbx, qword [rbp + 0x30]
test eax, eax
js 0x140049e6e
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140049e6e
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x18]
mov rcx, qword [rbp + 0x28]
lea rdx, str.Cache
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140049e6e
mov rcx, qword [rbp + 0x18]
lea r9d, [rax + 4]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test rbx, rbx
je 0x140049e87
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140049e9b
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
and qword [rbp + 0x18], 0
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140049eaa
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rsp, 0x58
pop rbx
pop rbp
ret

Function at 0x14004ab40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004ab8c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004ab84
cmp dword [rcx + 0x3c], edx
jl 0x14004ab84
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14004ab84
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 0x14004ab8c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x100001400
Capabilities:
Terminate process

Disassembly:
mov word [rbx], di
add rbx, 2
cmp word [rbx], di
je 0x100001683
lea rdx, str._ProcessID
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, edi
jne 0x100001683
lea rax, [rsp + 0x30]
mov edx, 0x29
lea rcx, [rsp + 0x30]
sub rbx, rax
mov r8d, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea rax, [rdx + 0x7fffffd5]
cmp rax, rdi
je 0x100001072
movzx eax, word [rbx + rcx]
cmp ax, di
je 0x100001072
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100001050
cmp rdx, rdi
je 0x100001690
cmp r8d, edi
mov word [rcx], di
jl 0x1000010c8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, edi
jl 0x1000010c8
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, edi
jl 0x1000010c8
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.ole32.dll_CoRegisterSurrogateEx
call qword [sym.imp.ole32.dll_CoUninitialize]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.100133000
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2b0
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x100003018]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r9d, r9d
mov rbx, r8
xor ecx, ecx
lea edx, [r9 + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
xor edi, edi
lea rax, [rsp + 0x90]
mov r11d, 0x105
lea rcx, [rsp + 0x90]
mov edx, edi
sub rbx, rax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea rax, [r11 + 0x7ffffef9]
cmp rax, rdi
je 0x100001482
movzx eax, word [rbx + rcx]
cmp ax, di
je 0x100001482
mov word [rcx], ax
add rcx, 2
sub r11, 1
jne 0x100001460
cmp r11, rdi
je 0x100001670
cmp edx, edi
mov word [rcx], di
jl 0x1000010c8
lea rbx, [rsp + 0x90]
cmp word [rsp + 0x90], di
je 0x100001683
cmp word [rbx], 0x3a
je section..text
add rbx, 2
cmp word [rbx], di
jne 0x1000014ac
jmp 0x10000167e
sub rcx, 2
mov edx, 0x8007007a
jmp 0x10000148b
jmp 0x100001007
lea rbx, [rsp + 0x90]
jmp 0x10000102d
sub rcx, 2
mov r8d, 0x8007007a
jmp 0x10000107b
Function at 0x140001010
Capabilities:
Check if file exists
Create directory
Create http request
Create process on windows
Download and write a file
Get file attributes
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write and execute a file
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r15d, r15d
mov r14, rdx
mov rbx, rcx
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea rcx, str.Mozilla_5.0
xor r8d, r8d
lea edx, [r15 + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x28], r15
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov rdx, rbx
mov rbp, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ecx, 0x401
mov rsi, rax
call fcn.140001358
mov r8, r14
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400010c8
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400011cf
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, r14
mov qword [rsp + 0x2b0], rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001130
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call fcn.140001350
jmp 0x1400011c7
xor edx, edx
mov r8d, 0x401
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x40]
mov r8d, 0x400
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000117b
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140001182
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x40], r15d
ja 0x140001130
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call fcn.140001350
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8, r14
mov qword [rsp + 0x20], r15
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001330
add rsp, 0x270
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400011f0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub rsp, 0x258
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea r9, str.shellbug.exe
lea r8, str.C:UsersdwqdqwDesktop_tyt
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call fcn.1400012c0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001279
test al, 0x10
jne 0x140001279
mov dword [rsp + 0x28], 1
lea r8, str.C:UsersdqwdqwDesktop_tyt_shellbug.exe
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x14000128c
lea rdx, str.C:UsersdqwdqwDesktop_tyt_shellbug.exe
lea rcx, str.https:__privazer.com_en_shellbag_analyzer_cleaner.exe
call fcn.140001010
lea rdx, str.C:UsersdwdqwDesktop_tytddqw.exe
lea rcx, [0x1400034fc]
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001330
add rsp, 0x258
ret

Function at 0x140001c44
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x1400b020d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400b021d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400b0205
lea eax, [rcx + 1]
jmp 0x1400b022b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400b023e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400b0224
sub eax, 3
jb 0x1400b025e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400b02ad
sar eax, 1
movsxd rbp, eax
jb 0x1400b0294
jmp 0x1400b026c
add ebx, ebx
jne 0x1400b026a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b0294
inc ecx
add ebx, ebx
jne 0x1400b027a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b0294
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400b028d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400b027c
add ecx, 2
jmp 0x1400b0299
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400b01c2
jmp 0x1400b020d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1b400
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400b02f9
cmp rsi, rcx
jae 0x1400b0301
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400b02e0
cmp al, 0x8f
ja 0x1400b02e0
cmp byte [rsi - 2], 0xf
je 0x1400b02e6
sub al, 0xe8
cmp al, 1
ja 0x1400b02ca
cmp rsi, rcx
jae 0x1400b0301
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400b02d0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400b0301
lodsb al, byte [rsi]
jmp 0x1400b02e0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xae000]
mov eax, dword [rdi]
or eax, eax
je 0x1400b036a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xcc648]
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 0x1400b030e
jns 0x1400b0343
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400b034d
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 0x1400b0364
mov qword [rbx], rax
add rbx, 8
jmp 0x1400b032e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x18f]
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 0x1400b03c2
sub rsp, 0xffffffffffffff80
jmp 0x14001bce0
Function at 0x140001000
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub rsp, 0xa8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x80], 2
jb 0x140001051
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x28]
shr rax, 0x14
cmp eax, 0x800
jae 0x140001053
xor al, al
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400bf0c0
add rsp, 0xa8
ret
Function at 0x1400bf988
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsp
and al, 0x10