joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140c34fd8
Capabilities:
Authenticate hmac
Encode data using base64
Encrypt data using aes mixcolumns step
Encrypt data using speck
Parse pe header

Disassembly:
inc r10d
shl rdx, 0xd3
neg r10d
mov qword [rsp + rbx*2 - 0x1d7a2], r9
btc edx, 0x27
cbw
movzx ebp, dx
xor dword [rsp + rbx - 0xebd1], r10d
sar bl, 0x61
sbb r8d, 0x82a4ec22
pop r9
jg 0x140c317e0
mov qword [rsp + r10 - 0x4327], r9
movzx r9d, bp
movsx eax, bpl
xor dword [rsp + rbp*2 - 0x864e], r8d
mov ecx, r9d
bt r9, rcx
call fcn.140c2f3c1
inc rbx
bts edx, ebx
not r10b
setae r8b
jae 0x140c0f7a3
mov r10d, dword [rbx + rdi - 0x17c4]
xor dl, bh
xor r10d, r9d
inc dl
lea rax, [rbx + r8 - 0x53ddcb71]
mov qword [rsp + rbx - 0x17c4], 0xffffffffb60acaa2
ror r10d, 1
add bx, dx
sar byte [rsp + rbx - 0xebcb], 0x21
sal dl, 0xe6
inc r10d
movzx ecx, ax
cdqe
dec r8w
xor r10d, 0xd8a7443f
sub cl, byte [rsp + rdx - 0xd43e]
cqo
not r10d
jns 0x140c038a8
sub rdi, 1
mov ebx, 0x4bb42a98
movsx r10d, bx
neg bl
movzx ebp, byte [rdi + r10*2 - 0x5530]
movzx r8d, r10w
movsx ecx, r8w
mov eax, r8d
xor bpl, r9b
xchg r10w, r8w
neg bpl
add al, cl
sbb bx, 0x4f2e
xchg r10b, al
adc bpl, 0xa9
bt ax, r8w
not bpl
mul rcx
btc r8, r10
xor bpl, 0x91
xor r9b, bpl
shr ax, 0xae
add rbp, rsp
inc r8w
sar r8d, cl
adc r8d, 0xcc1b4591
add al, byte [rbp + rbx - 0x4bb4db39]
lea rsi, [rsi + rbx - 0x4bb4db3b]
not dl
btc cx, 0x94
mov word [rbx + rsi - 0x4bb4db39], ax
lea rbp, [rbx + r8*2 - 0x744f0ce3]
btr r10w, 0x9d
lea rdi, [r10 + rdi - 0xa34]
lea rbp, [r10 + rdx*2 + 0x1e17c412]
mov ebp, dword [rdi + rbx - 0x4bb4db39]
xchg bx, cx
bt r8, rcx
xor ebp, r9d
shr r10, 0x2b
push rdx
adc r10w, 0x972b
lea ebp, [rbp + rbx*2 - 0x16bff0fb]
lea rax, [r8*4 - 0x4dd7c87f]
bswap ebp
cbw
inc ebp
xchg qword [rsp + rbx - 0x4bb42a88], r8
cdqe
not word [rsp + rbx - 0x4bb42a83]
bswap ebp
inc cl
btc r10w, ax
lea ebp, [rbp + rbx*2 - 0x601a72]
adc ebx, 0x568db8ae
xadd byte [rsp + r8*4 - 0x3fb], al
bts edx, r8d
rol ebp, 3
neg dword [rsp + r10*4 - 0x25c2c]
pop rcx
xor ebp, 0xb4b8cd9e
shl edx, cl
inc r8
and r8b, cl
Function at 0x140c374cc
Capabilities:
Authenticate hmac
Encrypt data using aes mixcolumns step
Encrypt data using speck
Parse pe header

Disassembly:
sub bpl, 0xa
mov qword [rsp + r10 - 0x2a07521d], 0x1db23ea1
mov qword [rsp + r10*2 - 0x540ea44a], r8
neg rcx
not bpl
not r10b
push rcx
not r8w
rol bpl, 1
movzx ebx, cl
push rbx
bt rcx, 0x2c
neg bpl
call fcn.140c03cf5
xor eax, r9d
sar word [rsp + rcx - 0x80b2], 0xe1
sbb eax, 0xdb8b3c94
push rbx
shl bl, 0x64
sal byte [rsp + rcx - 0x80ab], 0xa1
neg eax
rol eax, 2
lea eax, [rax + rbx*2 + 0x56fc4a8b]
or dl, r8b
js 0x140c4158a
neg eax
shr rdx, cl
jae 0x140c39026
lea rcx, [rdx + rbx - 0x65cf8cd4]
bswap eax
or qword [rsp + rcx + 0x314738cc], rbx
lea rbx, [rcx + rcx*2 - 0x10fd575c]
call fcn.140c14905

Function at 0x140c38cef
Capabilities:
Authenticate hmac
Encrypt data using aes mixcolumns step
Encrypt data using speck

Disassembly:
lea rdi, [rdi + rdx - 0x36fc9]
mov bp, word [rdi + rdx*2 - 0x6df8e]
mov qword [rsp + rdx - 0x36fc7], 0x3218e536
dec dx
xor bp, r9w
neg word [rsp + rdx*2 - 0x6df86]
neg bp
xor bp, 0xe304
xadd rdx, r8
shr rcx, cl
bt r10d, edx
adc bp, 0x7634
and word [rsp + r8*8 - 0x1b7e1d], r8w
or edx, ebx

Function at 0x140c41181
Capabilities:
Authenticate hmac
Encrypt data using aes mixcolumns step
Encrypt data using speck

Disassembly:
sal rbp, cl
adc ebx, dword [rdx + rdi]
dec dl
rol dl, 0xe6
xor ebx, r9d
not ax
sub ebx, 0xf9162d12
sub dx, cx
xor ebx, 0x2c80b6ba
or bp, 0x9f8a
ror r8d, cl
rol rdx, cl
neg ebx
sar dx, 0x81
lea ebx, [rax + rbx - 0x2fb80884]
sal bpl, 0x63
neg ebx
push r9
lea rdx, [rax + r10 + 0x421dc82d]
push rdx
xadd cl, r8b
xor dword [rsp + r10*2 - 0x55361258], ebx
cwde
mov r9, qword [rsp + rdx - 0x6cb9d154]
movsxd rbx, ebx
mov qword [rsp + r10 - 0x2a9b0928], rcx
add r11, rbx
mov qword [rsp + r8*2 - 0x2a], r11
ret 8
mov qword [rsp + rbp*8 - 0x33038], rdx
push rsi
movsx esi, r11w
or bp, si
push r12
lea rdx, [rsi + 0x3db2b594]
movabs rbp, 0
btc r11d, esi
shl rsi, 0x11
lea edx, [rdx - 0x3d931b9b]
dec r11d
sub r11b, 0xae
sal rdx, 0xb
push r10
push rcx
bts rsi, 0x91
push rax
and r11w, 0x581b
lea rsi, [rsp - 0x30]
sub r11d, 0x3c0b5597
push r14
push r13
movsx eax, r11w
mov ecx, 0xd689650c
lea rcx, [rsi + r11 - 0x6522ecb1]
lea r10, [r11 - 0x7dc10200]
and cl, 0xf0
push rbp
or r10b, al
push rdi
xor al, 0x83
push r9
push r8
mov edi, dword [rsp + r10*4 + 0x62785e7c]
imul r11, rax
movzx r9d, r11b
bswap edi
imul r11d, r9d
and r9b, 9
movsx r8d, r10w
not edi
add r8w, ax
jnp 0x140c1c8d7
mov ecx, 0xe715783a
mov rcx, qword [rsi + riz]
mov edx, 0xb7162a00
mov ebp, edx
add rsi, 8
movsx r10d, dl
movzx eax, r10b
movzx r8d, r10w
push rcx
lea rcx, [rax + rax*8 + 0x2f352415]
mul ebp
add r10d, 0x2a9b0930
popfq
movsx ebx, bpl
lea rdi, [rdi + rdx - 4]
cwde
jmp 0x140c049a8

Function at 0x140c42d03
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor al, cl
mov word [rsp + rcx*4 - 0x3c3fc], bx
ror cl, 0x41
or bpl, al
lea r8, [r8 + rbx*4 - 0x8d945e1]
sub cl, ch
mov word [rsi + rcx*2 - 0x1e01e], bp
dec byte [rsp + rcx*4 - 0x3c03c]
mov qword [rsp + rcx*4 - 0x3c03c], r11
ret 0x10
mov qword [rsp + rcx - 0xf0ff], rdx
xor bpl, cl
shr bx, 0xab
jns 0x140bfc862
Function at 0x140c42d18
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r9d, r10d
pop r9
movsxd rdx, edx
lea rax, [rbp + 0x15904836]
and rbp, 0xffffffffeb835fa4
adc r11, rdx
movsx edx, al
add r10b, 0x82
lea rdi, [rdi + rbp*8 - 0x5421]
xor rdx, 0xffffffffa730e183
ror r8b, 0xe3
movzx eax, byte [r8 + rdi - 0x91]
xor al, r9b
xor r10, rcx
neg rdx
not al
neg rbp
btc ebp, 0xbf
xor al, 0x3a
not ecx
call fcn.140c13b0e
and eax, 0x90276917
mov r9, qword [rsp + rax + 7]
movsxd r10, r10d
adc r11, r10
sal eax, cl
mov qword [rsp + rax - 0x200], 0x4dafa33c
call fcn.140c215bb
push r9
rol r10b, 5
xor dword [rsp + r8*4 - 0x230], edx
xor bp, 0xaa2
jg 0x140c1489b
mov eax, 0x5003ad32
inc ax
lea rdi, [rax + rdi - 0x5003ad37]
lea rbx, [rax*2 - 0x6dd9e56a]
mov ebp, dword [rdi + rbx*2 - 0x645ae9f8]
movzx r10d, bl
xor ebp, r9d
movsx ecx, r10w
bt r10d, eax
lea ebp, [r10 + rbp - 0x56042301]
sbb ecx, 0xdc9b95a4
push rbx
not ebp
lea ebp, [rbp + rax*2 - 0x745050c3]
shl dword [rsp + rax - 0x5003ad31], cl
shl word [rsp + rbx*2 - 0x645ae9f7], 0xc4
not ebp
xor bl, r10b
call fcn.140c3a87f
Function at 0x140a43058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a431df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a43089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a4306f
add dl, dl
jne 0x140a43096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a430f6
xor eax, eax
add dl, dl
jne 0x140a430a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a431ad
add dl, dl
jne 0x140a430b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a430c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a430d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a430dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a430ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a4307e
mov eax, 1
add dl, dl
jne 0x140a43106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a43113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a430fb
sub eax, ebx
mov ebx, 1
jne 0x140a4314c
mov ecx, 1
add dl, dl
jne 0x140a4312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a4313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a43123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a4307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a43168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a43175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a4315d
cmp eax, 0x7d00
jae 0x140a4319b
cmp eax, 0x500
jb 0x140a43196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a4307e
cmp eax, 0x7f
ja 0x140a4319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a4307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a431d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a4307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001060
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, 8
call fcn.140001170
lea rcx, [0x140001020]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140001110]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400010d2
mov edx, 1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
nop
jmp 0x1400010d0
mov dword [rsp + 0x40], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140001bfc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c46
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c46
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c46
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c46
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c46
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c48
xor al, al
add rsp, 0x28
ret
Function at 0x180001e50
Capabilities:
Create thread
Encode data using xor

Disassembly:
sub rsp, 0x78
cmp edx, 1
jne 0x18000206e
mov r9, rcx
mov qword [rsp + 0x70], rbx
xor ebx, ebx
lea r8, [0x180001970]
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [str.XQW9]
lea r8, [rsp + 0x98]
movups xmm1, xmmword [0x18007cdf0]
mov dword [rsp + 0x98], eax
movzx eax, byte [0x18007ce10]
movups xmm0, xmmword [str._rux]
xor byte [rsp + 0x99], 0x36
xor al, 0x39
xor byte [rsp + 0x9a], 0x37
xor byte [rsp + 0x9b], 0x38
movups xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x9c], al
psrldq xmm1, 0xf
movd eax, xmm1
mov byte [rsp + 0x98], 0x49
movups xmmword [rsp + 0x40], xmm0
test al, al
je 0x180002056
cmp dword [0x180081110], 2
jl 0x180002026
movdqa xmm0, xmmword [0x18007d270]
lea rcx, [rsp + 0x44]
movdqa xmm4, xmmword [0x18007d1f0]
movdqa xmm3, xmmword [0x18007d280]
movdqa xmm5, xmmword [str.2222]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x18007d250]
nop dword [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x20
jl 0x180001f40
movaps xmm6, xmmword [rsp + 0x60]
jmp 0x180002056
lea r9, [rsp + 0x40]
nop dword [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 1]
mul ebx
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
inc ebx
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp ebx, 0x20
jl 0x180002030
mov r9d, 0x40
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rbx, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x78
ret
Function at 0x1800034f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800810c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, qword [rsp + 0xa0]
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
cmp rbp, 6
jae 0x18000353f
mov byte [rsp + 0x20], 6
mov qword [rsp + 0x28], r8
movups xmm0, xmmword [rsp + 0x20]
mov byte [rcx + 0x10], 0
movups xmmword [rcx], xmm0
jmp 0x1800035d9
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], 0
mov r8d, 0x40
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800035c3
cmp rbp, 6
jbe 0x180003578
mov r8, rbp
mov edx, 0x90
mov rcx, rdi
call fcn.18001f2a0
mov qword [rsi], r14
sub esi, edi
sub esi, 6
mov word [rsp + 0x30], 0x25ff
mov dword [rsp + 0x32], esi
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
movzx eax, word [rsp + 0x34]
mov word [rdi + 4], ax
mov byte [rbx + 0x10], 1
test rdi, rdi
je 0x1800035d9
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov dword [rsp + 0x30], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1800035d9
mov byte [rsp + 0x20], 5
mov qword [rsp + 0x28], rdi
movups xmm0, xmmword [rsp + 0x20]
mov byte [rbx + 0x10], 0
movups xmmword [rbx], xmm0
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000a0a0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180003600
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800810c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp r9, 5
jae 0x180003648
mov byte [rsp + 0x20], 6
mov qword [rsp + 0x28], r8
movups xmm0, xmmword [rsp + 0x20]
mov byte [rcx + 0x10], 0
movups xmmword [rcx], xmm0
jmp 0x1800036dc
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], 0
mov r8d, 0x40
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800036c6
cmp rbp, 5
jbe 0x180003681
mov r8, rbp
mov edx, 0x90
mov rcx, rdi
call fcn.18001f2a0
sub esi, edi
mov byte [rsp + 0x30], 0xe9
sub esi, 5
mov dword [rsp + 0x31], esi
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
movzx eax, byte [rsp + 0x34]
mov byte [rdi + 4], al
mov byte [rbx + 0x10], 1
test rdi, rdi
je 0x1800036dc
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov dword [rsp + 0x30], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1800036dc
mov byte [rsp + 0x20], 5
mov qword [rsp + 0x28], rdi
movups xmm0, xmmword [rsp + 0x20]
mov byte [rbx + 0x10], 0
movups xmmword [rbx], xmm0
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000a0a0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x180004fb0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x530
mov rax, qword [0x1800810c0]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov r14, rdx
mov r15, rcx
mov bpl, 1
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov rbx, r12
nop word [rax + rax]
mov qword [rsp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r9d, r9d
mov r8d, 0x81a
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test rbx, rbx
je 0x18000503f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x180005103
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x180005000
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x180005000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x180005000
test eax, eax
je 0x18000508a
test bpl, bpl
jne 0x18000508a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x180005000
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x4d0
call fcn.18001f2a0
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x80], 0x10000b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180005000
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x1800050ee
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x38]
mov dword [rsp + 0x48], edi
lea r8, [rsp + 0x40]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x10]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
inc esi
jmp 0x180005000
xor bpl, bpl
test esi, esi
jne 0x180004ff0
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x18000511d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, r12
mov qword [rsp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r9d, r9d
mov r8d, 0x81a
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test rbx, rbx
je 0x18000515f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x18000518c
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x180005120
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x180005120
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x180005120
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.18000a0a0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180005b70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x1800810c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 8]
lea r9, [rsp + 0x20]
mov rbp, rcx
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov rbx, qword [rax + 0x38]
sub rbx, qword [rax + 0x30]
mov rdi, qword [rax]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180005c09
mov r8, qword [rbp + 8]
mov qword [rsp + 0x68], rsi
mov esi, dword [rsp + 0x20]
mov rcx, qword [r8]
mov rdx, qword [r8 + 0x30]
mov r8, qword [r8 + 0x38]
sub r8, rdx
call fcn.18001ec00
test rdi, rdi
je 0x180005c04
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18000a0a0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x180012c88
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180012cf7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180012cf7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180012cf7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180012cf7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180012cf7
cmp dword [rcx + 0x84], 0xe
jbe 0x180012cf7
cmp dword [rcx + 0xf8], 0
je 0x180012cf7
mov ecx, ebx
call fcn.180012da8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180012b84
nop
cmp dword [rbp + 0x20], 0
je 0x180012d45
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180012d50
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180012c88
Function at 0x18001827c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800182ac
xor eax, eax
jmp 0x18001836f
mov rbp, rbx
cmp word [rax], si
je 0x1800182d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800182b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800182b4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18001819c
movsxd r14, eax
test eax, eax
jne 0x18001830f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800182a5
mov rcx, r14
call fcn.180013d8c
mov rdi, rax
test rax, rax
jne 0x180018328
xor ecx, ecx
call fcn.180013d50
jmp 0x180018304
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18001819c
test eax, eax
jne 0x180018359
mov rcx, rdi
call fcn.180013d50
jmp 0x180018363
xor ecx, ecx
call fcn.180013d50
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18001e860
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18001e888
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18001e888
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400018c0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov r8d, 0xb
lea rdx, str.C:Windows_
lea rcx, [rsp + 0x30]
call fcn.140001540
nop
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140001914
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140001961
lea rax, [rcx + rdi]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x30]
add rbx, rcx
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140001976
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400037b0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400019b5
lea rdx, str.could_not_delete_files.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003300
lea rdx, [0x1400034d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400019f5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003f84
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140003ce0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret