joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140090930
Capabilities:
Parse pe header

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

Function at 0x140095778
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 0x1400957e7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400957e7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400957e7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400957e7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400957e7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400957e7
cmp dword [rcx + 0xf8], 0
je 0x1400957e7
mov ecx, ebx
call fcn.140095898
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.140095674
nop
cmp dword [rbp + 0x20], 0
je 0x140095835
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140095840
int3
xor r8d, r8d
xor edx, edx
jmp 0x140095778

Function at 0x14009597c
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 0x1400957e7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400957e7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400957e7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400957e7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400957e7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400957e7
cmp dword [rcx + 0xf8], 0
je 0x1400957e7
mov ecx, ebx
call fcn.140095898
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.140095674
nop
cmp dword [rbp + 0x20], 0
je 0x140095835
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140095840
int3
xor r8d, r8d
xor edx, edx
jmp 0x140095778
Function at 0x14009d3e4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009d3fa
mov al, 1
jmp 0x14009d45a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009d40b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14009d458
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a223c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009d458
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009d458
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009d458
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14009d45a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400a1970
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 0x1400a19a0
xor eax, eax
jmp 0x1400a1a63
mov rbp, rbx
cmp word [rax], si
je 0x1400a19c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a19ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a19a8
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.1400a00b8
movsxd r14, eax
test eax, eax
jne 0x1400a1a03
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a1999
mov rcx, r14
call fcn.14009b14c
mov rdi, rax
test rax, rax
jne 0x1400a1a1c
xor ecx, ecx
call fcn.14009b1ac
jmp 0x1400a19f8
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.1400a00b8
test eax, eax
jne 0x1400a1a4d
mov rcx, rdi
call fcn.14009b1ac
jmp 0x1400a1a57
xor ecx, ecx
call fcn.14009b1ac
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 0x1400a4790
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14009c2c4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a4831
cmp ebx, dword [rsp + 0x30]
je 0x1400a482a
test esi, esi
je 0x1400a482a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a4805
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a4812
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a47ef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a4816
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a4833
mov eax, 1
jmp 0x1400a4833
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a5ec4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140599ed0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400a5f1b
cmp word [rdx], r13w
jne 0x1400a5f1b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400a5f20
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400a6045
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400a6066
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400a5f59
mov rdx, r9
mov word [rbx], cx
jmp 0x1400a5f80
cmp r9, r8
jae 0x1400a5f90
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400a5f3a
jmp 0x1400a6045
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a603a
cmp dword [rsp + 0x80], esi
je 0x1400a603a
lea r8, [0x140599ed0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400a6012
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400a5fe2
mov word [rbx], r13w
jmp 0x1400a6042
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400a5fef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400a6042
cmp word [rsp + 0x70], r13w
jne 0x1400a601f
cmp rbx, r14
je 0x1400a5fdc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a5bfc
cmp word [rsp + 0x70], r13w
je 0x1400a6045
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140599ed0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400a603f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400a6045
Function at 0x1400a7988
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400a5bfc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a5bfc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a7ad8
cmp rax, 0xffffffffffffffff
je 0x1400a7ad8
xor edi, edi
test rbp, rbp
jle 0x1400a7a83
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009e22c
mov rbx, rax
test rax, rax
jne 0x1400a7a10
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a7a79
mov edx, 0x8000
mov ecx, r14d
call fcn.14009953c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14009cfe4
cmp eax, 0xffffffff
je 0x1400a7a59
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a7a20
mov edx, r15d
mov ecx, r14d
call fcn.14009953c
jmp 0x1400a7a79
cmp byte [rsi + 0x38], dil
je 0x1400a7a70
cmp dword [rsi + 0x34], 5
jne 0x1400a7a70
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400a7a79
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009b1ac
jmp 0x1400a7aec
jns 0x1400a7aec
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a5bfc
cmp rax, 0xffffffffffffffff
jne 0x1400a7aa4
cmp byte [rsi + 0x30], dil
je 0x1400a7aec
mov edi, dword [rsi + 0x2c]
jmp 0x1400a7aec
mov ecx, r14d
call fcn.1400a223c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a7aec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400a7aec
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a7ae5
mov eax, dword [rsi + 0x2c]
jmp 0x1400a7aea
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a5bfc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400a8940
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a8968
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a8968
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1401b7f80
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14054d040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r9, rcx
lea rdi, [rsp + 0x30]
xor eax, eax
mov ebx, 0x40
cmp edx, ebx
mov ecx, ebx
rep stosb byte [rdi], al
cmovbe ebx, edx
lea rcx, [rsp + 0x30]
movsxd rdi, ebx
mov rdx, r9
mov r8, rdi
call fcn.140259da0
xor r10d, r10d
test ebx, ebx
jle 0x1401b7fec
mov edx, r10d
movzx eax, byte [rsp + rdx + 0x30]
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x1401b7fe4
add al, 0x20
mov byte [rsp + rdx + 0x30], al
inc rdx
cmp rdx, rdi
jl 0x1401b7fd1
lea rdx, [rsp + 0x30]
mov r9d, 0xb801fcda
mov r8d, ebx
cmp ebx, 4
jl 0x1401b8037
mov edi, ebx
shr rdi, 2
mov eax, edi
neg eax
lea r8d, [rbx + rax*4]
nop dword [rax]
imul eax, dword [rdx], 0x5bd1e995
add rdx, 4
imul r9d, r9d, 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
xor r9d, ecx
sub rdi, 1
jne 0x1401b8010
sub r8d, 1
je 0x1401b805c
sub r8d, 1
je 0x1401b8052
cmp r8d, 1
jne 0x1401b8062
movzx r10d, byte [rdx + 2]
shl r10d, 0x10
movzx eax, byte [rdx + 1]
shl eax, 8
xor r10d, eax
movzx eax, byte [rdx]
xor r10d, eax
imul ecx, r10d, 0x5bd1e995
imul edi, ebx, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, r9d, 0x5bd1e995
xor ecx, eax
mov eax, edi
shr eax, 0x18
xor eax, edi
imul edx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor edx, eax
mov eax, edx
shr eax, 0xd
xor eax, edx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008fb20
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x140259640
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x100
call fcn.14008fde8
xor edx, edx
mov r8d, 0x100
mov rcx, rax
mov rbx, rax
call fcn.1402599e0
movdqa xmm2, xmmword [0x1405440f0]
lea rdx, [rbx + 8]
movdqa xmm3, xmmword [0x140544100]
mov ecx, 8
nop word [rax + rax]
lea eax, [rcx - 8]
movd xmm0, eax
lea rdx, [rdx + 0x10]
pshufd xmm0, xmm0, 0
lea eax, [rcx - 4]
paddd xmm0, xmm2
movd xmm1, eax
pshufd xmm1, xmm1, 0
lea eax, [rcx + 4]
paddd xmm1, xmm2
andps xmm0, xmm3
andps xmm1, xmm3
packuswb xmm0, xmm0
packuswb xmm1, xmm1
packuswb xmm0, xmm0
movd dword [rdx - 0x18], xmm0
packuswb xmm1, xmm1
movd dword [rdx - 0x14], xmm1
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm2
movd xmm1, eax
pshufd xmm1, xmm1, 0
andps xmm0, xmm3
paddd xmm1, xmm2
packuswb xmm0, xmm0
andps xmm1, xmm3
packuswb xmm0, xmm0
movd dword [rdx - 0x10], xmm0
lea eax, [rcx - 8]
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [rdx - 0xc], xmm1
cmp eax, 0x100
jl 0x140259690
xor r10d, r10d
mov r11, rbx
mov r9d, r10d
mov edi, r10d
mov ebp, 0x100
nop dword [rax]
nop word [rax + rax]
mov r8, qword [0x14059a490]
xor edx, edx
mov rcx, qword [0x14059a498]
mov rax, rdi
movzx esi, byte [r11]
sub rcx, r8
div rcx
movzx eax, byte [rdx + r8]
add r9d, eax
add r9d, esi
and r9d, 0x800000ff
jge 0x14025977e
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rcx, r9d
inc rdi
movzx eax, byte [rcx + rbx]
mov byte [r11], al
inc r11
mov byte [rcx + rbx], sil
sub rbp, 1
jne 0x140259740
mov eax, r10d
lea rdi, [0x14054dc90]
mov r11, r10
nop word [rax + rax]
lea ecx, [r10 + 1]
and ecx, 0x800000ff
jge 0x1402597c6
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r10, ecx
movzx r8d, byte [r10 + rbx]
add eax, r8d
and eax, 0x800000ff
jge 0x1402597e1
dec eax
or eax, 0xffffff00
inc eax
movsxd rdx, eax
movzx ecx, byte [rdx + rbx]
mov byte [r10 + rbx], cl
mov byte [rdx + rbx], r8b
movzx ecx, byte [r10 + rbx]
add r8, rcx
movzx r8d, r8b
movzx r9d, byte [r8 + rbx]
xor byte [r11 + rdi], r9b
inc r11
cmp r11, 0x1200
jl 0x1402597b0
test rbx, rbx
je 0x140259823
mov edx, 0x100
mov rcx, rbx
call fcn.140090064
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004168
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r9, [0x140026818]
lea r8, [0x1400373a0]
lea rdx, str.runas
xor ecx, ecx
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x1400041e0
lea rdx, str.Failed_to_start_elevated_process__ShellExecute_returned__d_
lea rcx, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [0x1400272d8]
lea rdx, [rsp + 0x30]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400093b0
add rsp, 0xc8
ret

Function at 0x140004218
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400342a0]
xor rax, rsp
mov qword [rbp + 0x200], rax
lea rdx, [rbp - 0x20]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rbp - 0x20]
lea rdx, str._s.bat
lea rcx, [rbp + 0xf0]
call fcn.14000c714
lea rdx, [0x140027364]
lea rcx, [rbp + 0xf0]
call fcn.14000c6b4
lea rdx, str.:Repeat_n
mov rcx, rax
mov rbx, rax
call fcn.14000a3c8
lea r8, [rbp - 0x20]
lea rdx, str.del___s__n
mov rcx, rbx
call fcn.14000a3c8
lea r8, [rbp - 0x20]
lea rdx, str.if_exist___s__goto_Repeat_n
mov rcx, rbx
call fcn.14000a3c8
lea r8, [rbp + 0xf0]
lea rdx, str.del___s__n
mov rcx, rbx
call fcn.14000a3c8
mov rcx, rbx
call fcn.14000ad7c
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call fcn.140008d30
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [0x140026688]
lea rdx, [rbp + 0xf0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], 0x44
mov dword [rbp - 0x54], 1
mov word [rbp - 0x50], bx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140004394
mov rcx, qword [rsp + 0x58]
lea edx, [rbx - 0xf]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea edx, [rbx + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400093b0
mov rbx, qword [rsp + 0x320]
add rsp, 0x310
pop rbp
ret
Function at 0x140003dd0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1080
call fcn.14000fdd0
sub rsp, rax
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov r14, qword [rsp + 0x10d0]
xor ebx, ebx
mov rbp, r9
mov rdi, r8
mov rsi, rcx
test r8, r8
je 0x140003ef9
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
lea r9d, [rbx + 0x28]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
mov dword [rsp + 0x28], ebx
mov edx, 0x80862007
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], 0x33
mov qword [rsp + 0x68], 0x1000
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140003e75
lea rdx, str.____Cant_read_module_headers
jmp 0x140003edd
movsxd rax, dword [rsp + 0xac]
lea rcx, [rsp + 0x70]
add rcx, rax
mov r8d, ebx
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx r9d, word [rcx + 6]
add r10, rax
test r9d, r9d
je 0x140003ed6
nop dword [rax]
mov eax, r8d
lea rcx, [rax + rax*4]
cmp dword [r10 + rcx*8], 0x45474150
lea rdx, [r10 + rcx*8]
jne 0x140003ece
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], bl
jne 0x140003ec0
cmp rax, 4
je 0x140003f2d
inc r8d
cmp r8d, r9d
jb 0x140003ea0
lea rdx, str.____Cant_find_section
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140005ee0
lea rdx, [0x1400060c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, rbx
mov r8d, ebx
mov r9, rbp
mov rcx, rsi
mov qword [rsp + 0x20], r14
call fcn.140003bf0
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.14000ebc0
add rsp, 0x1080
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x140003ed6
mov ecx, dword [rdx + 8]
mov edx, eax
lea rax, [rsp + 0x70]
add rax, rdx
je 0x140003ed6
test ecx, ecx
je 0x140003ed6
mov ebx, ecx
add rdx, rdi
jmp 0x140003efc
Function at 0x140004ce0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140004d17
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140004d38
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004d3a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004d93
test ecx, ecx
jle 0x140004d73
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004d93
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004d93
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140004dc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004de2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004df8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004e14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004e16
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140004e50
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004ef7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140004e8b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140004ed1
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140004f10
cmp rbx, rax
ja 0x140004ea0
mov r8, rdi
test rdi, rdi
je 0x140004ef7
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x140004efa