joyce8/EMBER2024-capa huggingface dataset:
Function at 0x713850
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x00876298], eax
cmp eax, 0xffffffff
je 0x86f6e0
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x713eb0
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x713ed5
call fcn.00713710
cmp eax, 1
je 0x713ee2
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov rdi, r12
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
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 0x713f68
mov eax, 0x28
jmp 0x713f3a
add rax, 1
cmp rax, 0x6b
je 0x713f5a
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x713f30
cmp eax, 0x6a
je 0x713f5a
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x713f48

Function at 0x713f70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x00cae5e0], 1
je 0x713f87
call fcn.00713e20
mov ecx, dword [0x00876298]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x713fb0
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call fcn.00713d50
cmp qword [0x00cb4050], 0
mov rbx, rax
je 0x713f9b
test rax, rax
je 0x713f9b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.00713eb0
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x86f6e6
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x00876298]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x86f6e6
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sub.msvcrt.dll_abort
nop
Function at 0x717b00
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x68
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x50], xmm11
mov rax, qword [0x0091c570]
movdqa xmm11, xmmword [rcx]
movdqa xmm7, xmmword [rax + 0xc0]
movdqa xmm9, xmmword [rax + 0xa0]
movdqa xmm6, xmmword [rax + 0xd0]
movdqa xmm8, xmmword [rax + 0xb0]
movdqa xmm5, xmmword [rax + 0xe0]
movdqa xmm4, xmmword [rax + 0xf0]
movdqa xmm3, xmmword [rax + 0x100]
add rdx, r8
movdqa xmm10, xmmword [rcx + 0x10]
movdqa xmm1, xmmword [rcx + 0x20]
movdqa xmm2, xmmword [rax + 0x110]
movdqa xmm0, xmmword [rcx + 0x30]
cmp r8, rdx
jae 0x717c05
nop dword [rax + rax]
aesdec xmm11, xmm9
aesenc xmm10, xmm9
aesdec xmm1, xmm5
add r8, 0x40
aesenc xmm0, xmm5
aesdec xmm11, xmm8
aesenc xmm10, xmm8
aesdec xmm1, xmm4
aesenc xmm0, xmm4
aesdec xmm11, xmm7
aesenc xmm10, xmm7
aesdec xmm1, xmm3
aesenc xmm0, xmm3
aesdec xmm11, xmm6
aesenc xmm10, xmm6
aesdec xmm1, xmm2
aesenc xmm0, xmm2
movaps xmmword [r8 - 0x40], xmm11
movaps xmmword [r8 - 0x30], xmm10
movaps xmmword [r8 - 0x20], xmm1
movaps xmmword [r8 - 0x10], xmm0
cmp rdx, r8
ja 0x717b90
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
add rsp, 0x68
ret
mov rax, qword [0x0091c570]
mov eax, dword [rax + 0x1c]
mov r8, rcx
mov rcx, rdx
lea edx, [rax*8 + 0x80]
add r8, 0x40
jmp 0x717b00

Function at 0x718db0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
movdqa xmm0, xmmword [str._f__nc]
movdqa xmm1, xmmword [0x0088fb10]
movdqa xmm2, xmmword [0x0088fb20]
movdqa xmm3, xmmword [0x0088fb30]
add rdx, rcx
cmp rcx, rdx
jae 0x718e00
nop dword [rax + rax]
aesenc xmm3, xmmword [rcx]
aesdec xmm2, xmmword [rcx + 0x10]
aesenc xmm1, xmmword [rcx + 0x20]
add rcx, 0x40
aesdec xmm0, xmmword [rcx - 0x10]
cmp rdx, rcx
ja 0x718de0
movdqa xmm4, xmmword [0x0088fb80]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movdqa xmm4, xmmword [0x0088fb90]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movaps xmmword [r8], xmm3
movaps xmmword [r8 + 0x10], xmm2
movaps xmmword [r8 + 0x20], xmm1
movaps xmmword [r8 + 0x30], xmm0
ret
Function at 0x719b30
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
push rbx
sub rsp, 0x60
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x50], xmm11
movdqa xmm4, xmmword [str._f__nc]
movdqa xmm5, xmmword [0x0088fb10]
movdqa xmm6, xmmword [0x0088fb20]
movdqa xmm7, xmmword [0x0088fb30]
movdqa xmm3, xmmword [r9]
movdqa xmm2, xmmword [r9 + 0x10]
movdqa xmm1, xmmword [r9 + 0x20]
movdqa xmm0, xmmword [r9 + 0x30]
movdqa xmm11, xmmword [0x0088fb40]
movdqa xmm10, xmmword [0x0088fb50]
movdqa xmm9, xmmword [0x0088fb60]
movdqa xmm8, xmmword [0x0088fb70]
mov r10, rdx
mov r11, rcx
lea rdx, [rcx + 0x1c00]
lea r10, [rcx + r10 - 0x1c00]
lea rbx, [r10 + 0x3800]
cmp r11, r10
jae 0x719c8d
mov rax, r11
nop dword [rax]
aesdec xmm3, xmm11
aesenc xmm2, xmm10
aesenc xmm7, xmmword [rax]
sub rax, 0xffffffffffffff80
aesdec xmm1, xmm9
aesenc xmm0, xmm8
movaps xmmword [rax - 0x80], xmm3
aesdec xmm6, xmmword [rax - 0x70]
aesenc xmm5, xmmword [rax - 0x60]
aesdec xmm4, xmmword [rax - 0x50]
movaps xmmword [rax - 0x70], xmm2
prefetcht0 byte [rdx]
movaps xmmword [rax - 0x60], xmm1
aesdec xmm3, xmm11
prefetcht0 byte [rdx + 0x40]
aesenc xmm2, xmm10
movaps xmmword [rax - 0x50], xmm0
aesdec xmm1, xmm9
sub rdx, 0xffffffffffffff80
aesenc xmm0, xmm8
aesenc xmm7, xmmword [rax - 0x40]
aesdec xmm6, xmmword [rax - 0x30]
aesenc xmm5, xmmword [rax - 0x20]
movaps xmmword [rax - 0x40], xmm3
aesdec xmm4, xmmword [rax - 0x10]
movaps xmmword [rax - 0x30], xmm2
movaps xmmword [rax - 0x20], xmm1
movaps xmmword [rax - 0x10], xmm0
cmp rax, r10
jb 0x719be0
mov rax, r10
sub rax, r11
sub rax, 1
and rax, 0xffffffffffffff80
lea r11, [r11 + rax + 0x80]
add r10, 0x1c00
cmp r10, rbx
jne 0x719d28
movaps xmmword [r9], xmm3
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmmword [r9 + 0x30], xmm0
movdqa xmm0, xmmword [0x0088fb80]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmmword [r9 + 0x10], xmm2
movaps xmm11, xmmword [rsp + 0x50]
aesenc xmm7, xmm0
aesdec xmm6, xmm0
aesenc xmm5, xmm0
movaps xmmword [r9 + 0x20], xmm1
aesdec xmm4, xmm0
movdqa xmm0, xmmword [0x0088fb90]
aesenc xmm7, xmm0
aesdec xmm6, xmm0
aesenc xmm5, xmm0
movaps xmmword [r8], xmm7
movaps xmm7, xmmword [rsp + 0x10]
aesdec xmm4, xmm0
movaps xmmword [r8 + 0x10], xmm6
movaps xmm6, xmmword [rsp]
movaps xmmword [r8 + 0x20], xmm5
movaps xmmword [r8 + 0x30], xmm4
add rsp, 0x60
pop rbx
ret
mov rdx, rcx
jmp 0x719bcd
Function at 0x794860
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x68
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x50], xmm11
mov rax, qword [0x0091c570]
movdqa xmm11, xmmword [rcx]
movdqa xmm7, xmmword [rax + 0xc0]
movdqa xmm9, xmmword [rax + 0xa0]
movdqa xmm6, xmmword [rax + 0xd0]
movdqa xmm8, xmmword [rax + 0xb0]
movdqa xmm5, xmmword [rax + 0xe0]
movdqa xmm4, xmmword [rax + 0xf0]
movdqa xmm3, xmmword [rax + 0x100]
add rdx, r8
movdqa xmm10, xmmword [rcx + 0x10]
movdqa xmm1, xmmword [rcx + 0x20]
movdqa xmm2, xmmword [rax + 0x110]
movdqa xmm0, xmmword [rcx + 0x30]
cmp r8, rdx
jae 0x717c05
nop dword [rax + rax]
aesdec xmm11, xmm9
aesenc xmm10, xmm9
aesdec xmm1, xmm5
add r8, 0x40
aesenc xmm0, xmm5
aesdec xmm11, xmm8
aesenc xmm10, xmm8
aesdec xmm1, xmm4
aesenc xmm0, xmm4
aesdec xmm11, xmm7
aesenc xmm10, xmm7
aesdec xmm1, xmm3
aesenc xmm0, xmm3
aesdec xmm11, xmm6
aesenc xmm10, xmm6
aesdec xmm1, xmm2
aesenc xmm0, xmm2
movaps xmmword [r8 - 0x40], xmm11
movaps xmmword [r8 - 0x30], xmm10
movaps xmmword [r8 - 0x20], xmm1
movaps xmmword [r8 - 0x10], xmm0
cmp rdx, r8
ja 0x717b90
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
add rsp, 0x68
ret
mov rax, qword [0x0091c570]
mov eax, dword [rax + 0x1c]
mov r8, rcx
mov rcx, rdx
lea edx, [rax*8 + 0x80]
add r8, 0x40
jmp 0x717b00
Function at 0x827b80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
mov rax, qword [rcx + 0x9c0]
cmp rax, 0x26f
ja 0x827be0
lea rdx, [rax + 1]
mov eax, dword [rcx + rax*4]
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
mov qword [rcx + 0x9c0], rdx
mov edx, eax
shr edx, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor edx, eax
mov eax, edx
shl eax, 0xf
and eax, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
add rsp, 0x28
ret
movdqa xmm1, xmmword [0x00888810]
movdqa xmm2, xmmword [0x00888820]
lea rdx, [rcx + 0x380]
mov rax, rcx
movdqa xmm3, xmmword [0x00888830]
movdqa xmm4, xmmword [0x00888840]
pxor xmm7, xmm7
nop
movdqu xmm0, xmmword [rax]
movdqu xmm5, xmmword [rax + 4]
add rax, 0x10
movdqu xmm6, xmmword [rax + 0x624]
pand xmm5, xmm2
pand xmm0, xmm1
por xmm0, xmm5
movdqa xmm5, xmm0
pand xmm0, xmm3
psrld xmm5, 1
pcmpeqd xmm0, xmm7
pxor xmm5, xmm6
movdqa xmm6, xmm5
pxor xmm6, xmm4
pand xmm5, xmm0
pandn xmm0, xmm6
por xmm0, xmm5
movups xmmword [rax - 0x10], xmm0
cmp rax, rdx
jne 0x827c10
mov eax, dword [rcx + 0x384]
mov r8d, dword [rcx + 0x380]
pxor xmm7, xmm7
mov edx, eax
and r8d, 0x80000000
and edx, 0x7fffffff
or r8d, edx
mov edx, r8d
shr edx, 1
xor edx, dword [rcx + 0x9b4]
mov r9d, edx
xor r9d, 0x9908b0df
and r8d, 1
cmovne edx, r9d
mov r9d, dword [rcx + 0x388]
and eax, 0x80000000
mov dword [rcx + 0x380], edx
mov edx, r9d
and edx, 0x7fffffff
or eax, edx
mov r8d, eax
shr r8d, 1
xor r8d, dword [rcx + 0x9b8]
mov edx, r8d
xor edx, 0x9908b0df
test al, 1
cmovne r8d, edx
mov edx, dword [rcx + 0x38c]
and r9d, 0x80000000
and edx, 0x7fffffff
mov dword [rcx + 0x384], r8d
or edx, r9d
mov eax, edx
shr eax, 1
xor eax, dword [rcx + 0x9bc]
mov r8d, eax
xor r8d, 0x9908b0df
and edx, 1
lea rdx, [rcx + 0x9bc]
cmovne eax, r8d
mov dword [rcx + 0x388], eax
lea rax, [rcx + 0x38c]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax + 4]
movdqu xmm5, xmmword [rax]
add rax, 0x10
movdqu xmm6, xmmword [rax - 0x39c]
pand xmm5, xmm1
pand xmm0, xmm2
por xmm0, xmm5
movdqa xmm5, xmm0
pand xmm0, xmm3
psrld xmm5, 1
pcmpeqd xmm0, xmm7
pxor xmm5, xmm6
movdqa xmm6, xmm5
pxor xmm6, xmm4
pand xmm5, xmm0
pandn xmm0, xmm6
por xmm0, xmm5
movups xmmword [rax - 0x10], xmm0
cmp rdx, rax
jne 0x827d30
mov eax, dword [rcx]
mov r8d, dword [rcx + 0x9bc]
mov edx, eax
and r8d, 0x80000000
and edx, 0x7fffffff
or r8d, edx
mov edx, r8d
shr edx, 1
xor edx, dword [rcx + 0x630]
mov r9d, edx
xor r9d, 0x9908b0df
and r8d, 1
cmovne edx, r9d
mov dword [rcx + 0x9bc], edx
mov edx, 1
jmp 0x827ba3

Function at 0x851f10
Capabilities:
Parse credit card information

Disassembly:
mov rax, qword [rcx + 0xb8]
cmp qword [rcx + 0xb0], rax
je 0x851f50
mov eax, dword [rcx + 0x88]
test eax, eax
je 0x851f38
cmp eax, 2
je 0x851f40
cmp eax, 1
je 0x851f48
ret
jmp fcn.008520b0
jmp fcn.00852e70
jmp fcn.008524d0
mov dword [rcx + 0x90], 0x1b
ret
Function at 0x862430
Capabilities:
Encode data using xor

Disassembly:
movabs r9, 0xc6a4a7935bd1e995
mov rax, rdx
mov r11, rdx
imul rax, r9
and r11, 0xfffffffffffffff8
add r11, rcx
xor rax, r8
cmp rcx, r11
je 0x862480
nop dword [rax + rax]
mov r10, qword [rcx]
add rcx, 8
imul r10, r9
mov r8, r10
shr r8, 0x2f
xor r8, r10
imul r8, r9
xor r8, rax
mov rax, r8
imul rax, r9
cmp r11, rcx
jne 0x862458
and edx, 7
je 0x8624b5
sub edx, 1
xor r8d, r8d
movsxd rdx, edx
nop
movzx ecx, byte [r11 + rdx]
shl r8, 8
sub rdx, 1
add r8, rcx
test edx, edx
jns 0x862490
xor r8, rax
movabs rax, 0xc6a4a7935bd1e995
imul rax, r8
mov r8, rax
shr r8, 0x2f
xor rax, r8
movabs r8, 0xc6a4a7935bd1e995
imul rax, r8
mov r8, rax
shr r8, 0x2f
xor rax, r8
ret

Function at 0x86d940
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push r13
push r12
sub rsp, 0x28
mov ecx, 0x10
call fcn.0086bbe0
lea rdx, str.Blob_read_out_of_range
mov rcx, rax
mov r12, rax
call fcn.008067d0
lea r8, [0x00806880]
lea rdx, [0x00921170]
mov rcx, r12
call fcn.0086c380
mov r13, rax
mov rcx, r12
call fcn.0086bf30
mov rcx, r13
call fcn.00704b70
nop
nop
nop
sub rsp, 0x28
lea rcx, [0x00994020]
call fcn.00818a90
lea rcx, [0x00994020]
call fcn.00818830
mov edx, 1
lea r8, [0x00993640]
mov dword [0x00993640], eax
nop
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [r8 + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x86d970
mov qword [0x00994000], 0x270
add rsp, 0x28
ret

Function at 0x86da20
Capabilities:
Check mutex on windows

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x98
mov r12d, ecx
mov rbx, rdx
call fcn.00703010
xor ecx, ecx
mov edx, 1
lea r8, str.newwdhhwkkzq0072rx2
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x86dae8
call fcn.004572d0
test al, al
je 0x86dad4
lea r13, [rsp + 0x20]
mov r8, rbx
mov edx, r12d
mov rcx, r13
call fcn.00412f00
mov rcx, r13
call fcn.00412b80
mov edx, eax
test eax, eax
jne 0x86dac7
lea r14, [rsp + 0x50]
mov rdx, r13
mov rcx, r14
call fcn.004495e0
mov rcx, r14
call fcn.004492f0
mov rcx, r14
mov r12d, eax
call fcn.00449060
lea rcx, [rsp + 0x30]
call fcn.0082eb80
mov eax, r12d
add rsp, 0x98
pop rbx
pop r12
pop r13
pop r14
ret
mov rcx, r13
call fcn.00412c20
mov r12d, eax
jmp 0x86daab
lea rcx, str.Another_instance_is_already_running._n
mov r12d, 1
call fcn.00457280
jmp 0x86dab5
lea rcx, str.allready_exit_app_n
xor r12d, r12d
call fcn.00457280
jmp 0x86dab5
Function at 0x140001dc8
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x180014ed0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1e53b1370
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.fake_cscapi.dll_powershellCommand]
mov rcx, rax
call sym.system
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x1e53b1397
mov eax, 0
jmp 0x1e53b139c
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x1e53b15c0
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 0x1e53b1630
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1e53b7064]
test esi, esi
mov rbx, rcx
jle 0x1e53b1760
mov rax, qword [0x1e53b7068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1e53b167b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1e53b1705
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1e53b1660
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x1e53b1782
mov rax, qword [0x1e53b7068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1e53b7068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1e53b1767
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1e53b16fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1e53b1710
add dword [0x1e53b7064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1e53b7068]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1e53b16fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1e53b1688
mov rax, qword [0x1e53b7068]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1e53b1b00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1e53b70a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1e53b7080]
test rbx, rbx
je 0x1e53b1b5c
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 eax, eax
jne 0x1e53b1b53
test rsi, rsi
je 0x1e53b1b53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1e53b1b38
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 0x1e53b1d70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1e53b1d88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1e53b1d90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1e53b1da0
Capabilities:
Enumerate pe sections

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

Function at 0x1e53b1df0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1e53b1e80
mov rdx, qword [0x1e53b4330]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1e53b1e6e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1e53b1e6e
cmp word [rax + 0x18], 0x20b
jne 0x1e53b1e6e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1e53b1e80
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1e53b1e59
add rbx, 0x28
cmp rbx, rdi
je 0x1e53b1e80
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1e53b1e50
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 0x1e53b1e90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1e53b4330]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1e53b1eb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1e53b1eb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1e53b1eb0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1e53b1f0d
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]
cmp rcx, r8
mov rdx, r8
jb 0x1e53b1f04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1e53b1eb0
add rax, 0x28
cmp rax, r9
jne 0x1e53b1ef0
xor eax, eax
ret