joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005040
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x560
lea rdx, [0x140018c30]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x40]
lea rcx, str.VPinMAME.Controller
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x14000513d
mov r8d, 0x100
lea rdx, [rsp + 0x360]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ole32.dll_StringFromGUID2]
xor eax, eax
lea r8, [rsp + 0x360]
mov qword [rsp + 0x38], rax
mov r9d, 0xffffffff
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x150]
mov dword [rsp + 0x28], 0x100
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, str.CLSID_
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.InProcServer32
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea r9, [rsp + 0x578]
mov dword [rsp + 0x578], 0x104
lea r8, [rsp + 0x250]
mov rcx, 0xffffffff80000000
lea rdx, [rsp + 0x50]
call qword [0x140011018]
test eax, eax
jne 0x14000513d
mov rdx, rbx
lea rcx, [rsp + 0x250]
call fcn.140006190
mov rax, rbx
add rsp, 0x560
pop rbx
ret

Function at 0x140006080
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x150
xor esi, esi
mov dword [rax + 0x10], 0x104
mov qword [rsp + 0x38], rsi
lea r9, [rax + 0x10]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x28], rsi
mov rcx, qword [rcx]
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [0x140011010]
test eax, eax
jne 0x140006150
nop
mov rcx, qword [rdi]
lea rax, [rsp + 0x170]
mov r9d, 0xf003f
mov qword [rsp + 0x170], rcx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
call qword [0x140011008]
mov ebx, eax
test eax, eax
jne 0x140006111
lea rcx, [rsp + 0x170]
call fcn.140006080
mov ebx, eax
mov rcx, qword [rdi]
test ebx, ebx
jne 0x140006165
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x168]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x168], 0x104
call qword [0x140011010]
test eax, eax
je 0x1400060d0
mov rcx, qword [rdi]
lea rdx, [0x140018c30]
call qword [section..rdata]
mov rcx, qword [rdi]
mov ebx, eax
call qword [0x140011020]
lea r11, [rsp + 0x150]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140006190
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rbp, rdx
mov r14, rcx
test rdx, rdx
je 0x1400062e2
lea rdx, [0x140018c30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rsp + 0x170]
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test eax, eax
je 0x1400062cf
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x1400062e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x1400062e2
mov edx, dword [rsp + 0x170]
mov r9, rax
mov r8d, esi
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x1400062e2
lea r9, [rsp + 0x178]
mov rcx, rdi
lea r8, [rsp + 0x20]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x1400062e2
mov rax, qword [rsp + 0x20]
lea r9, [0x1400185a8]
lea rdx, str.StringFileInfo_0.8x_s
mov ecx, dword [rax]
mov r8d, ecx
shl ecx, 0x10
shr r8d, 0x10
add r8d, ecx
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x168]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x1400062e2
mov eax, dword [rsp + 0x168]
mov ecx, 0x100
mov rdx, qword [rsp + 0x28]
cmp eax, ecx
cmova eax, ecx
mov rcx, rbp
mov r8d, eax
mov dword [rsp + 0x168], eax
call fcn.140008050
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140008e08
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008b6c
Function at 0x1400289e4
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.14001c2f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c2f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028b34
cmp rax, 0xffffffffffffffff
je 0x140028b34
xor edi, edi
test rbp, rbp
jle 0x140028adf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001ec08
mov rbx, rax
test rax, rax
jne 0x140028a6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028ad5
mov edx, 0x8000
mov ecx, r14d
call fcn.140019c58
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.14001cfd0
cmp eax, 0xffffffff
je 0x140028ab5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a7c
mov edx, r15d
mov ecx, r14d
call fcn.140019c58
jmp 0x140028ad5
cmp byte [rsi + 0x38], dil
je 0x140028acc
cmp dword [rsi + 0x34], 5
jne 0x140028acc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028ad5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a9b8
jmp 0x140028b48
jns 0x140028b48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c2f4
cmp rax, 0xffffffffffffffff
jne 0x140028b00
cmp byte [rsi + 0x30], dil
je 0x140028b48
mov edi, dword [rsi + 0x2c]
jmp 0x140028b48
mov ecx, r14d
call fcn.14001878c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028b48
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 0x140028b48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028b41
mov eax, dword [rsi + 0x2c]
jmp 0x140028b46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c2f4
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 0x140029c40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029c68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029c68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor rcx, rcx
sub rcx, 0xffffffffffffffc0
lea rax, [entry0]
movabs rbx, 0x8e6594d0dd7c9a1
xor qword [rax + 0x27], rbx
sub rax, 0xfffffffffffffff8
loop 0x14000401b
pop rbp
adc dword [rcx + rbp*8 - 0x43], 0xa1082ab1
leave
xchg esi, eax
pop rsp
or al, 9
mov ah, 0x40
nop
sbb esi, dword [rdx - 0x79f439bb]
sub bl, byte [rbx + 0xbc645cf]
invalid
Function at 0x14106e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14106e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14106e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14106e06f
add dl, dl
jne 0x14106e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14106e0f6
xor eax, eax
add dl, dl
jne 0x14106e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14106e1ad
add dl, dl
jne 0x14106e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14106e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14106e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14106e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14106e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14106e07e
mov eax, 1
add dl, dl
jne 0x14106e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14106e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14106e0fb
sub eax, ebx
mov ebx, 1
jne 0x14106e14c
mov ecx, 1
add dl, dl
jne 0x14106e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14106e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14106e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14106e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14106e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14106e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14106e15d
cmp eax, 0x7d00
jae 0x14106e19b
cmp eax, 0x500
jb 0x14106e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14106e07e
cmp eax, 0x7f
ja 0x14106e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14106e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14106e1d2
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 0x14106e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140031d10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140031d1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140031d2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140031d15
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140031d45
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140031d32
sub eax, 3
jb 0x140031d5f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140031d96
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140031d86
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140031d84
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140031d73
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140031cd2
jmp 0x140031d1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1a000
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140031de2
cmp rsi, rcx
jae 0x140031dea
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140031dc9
cmp al, 0x8f
ja 0x140031dc9
cmp byte [rsi - 2], 0xf
je 0x140031dcf
sub al, 0xe8
cmp al, 1
ja 0x140031db3
cmp rsi, rcx
jae 0x140031dea
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140031db9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140031dea
lodsb al, byte [rsi]
jmp 0x140031dc9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2f000]
mov eax, dword [rdi]
or eax, eax
je 0x140031e47
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x32280]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140031df7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140031e41
mov qword [rbx], rax
add rbx, 8
jmp 0x140031e17
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140031e81
cmp al, 0xef
ja 0x140031e73
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140031e53
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140031e62
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140031ed5
sub rsp, 0xffffffffffffff80
jmp 0x1400036f0
Function at 0x140115c70
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x80]
and rsp, 0xffffffffffffffe0
xor eax, eax
nop word cs:[rax + rax]
test al, al
jne 0x140115c90
mov rax, qword [rcx + 0x220]
nop dword [rax + rax]
mov r8d, dword [0x1415bce48]
and r8d, dword [0x1415bce4c]
imul r8, r8, 0x7c9d637d
shr r8, 0x3e
imul r8d, r8d, 0x64aa0926
cmp r8d, 0x525369eb
je 0x140115ca0
cmp rax, 3
ja 0x140115cd9
xor r8d, r8d
test r8b, r8b
je 0x140115cdb
jmp 0x140115d25
ud2
mov r8d, dword [0x1415bce50]
and r8d, dword [0x1415bce54]
add r8d, 0xf56f12e7
mov r9d, r8d
and r9d, 0x76c202e2
add r9d, r9d
sub r8d, r9d
add r8d, 0x76c202e2
mov r9, rax
shl r9, 4
vmovups xmm0, xmmword [rdx]
vmovups xmmword [rcx + r9 + 0x1e0], xmm0
cmp r8d, 0x2809d5a8
jae 0x140115d3c
mov r8, rax
shl r8, 4
vmovups xmm0, xmmword [rdx]
vmovups xmmword [rcx + r8 + 0x1e0], xmm0
jmp 0x140115cdb
mov rax, qword [rcx + 0x220]
nop word cs:[rax + rax]
mov edx, dword [0x1415bce58]
mov r8d, dword [0x1415bce5c]
not edx
not r8d
and r8d, edx
not r8d
add r8d, 0x1c04f6b5
and r8d, 0x5db82745
cmp r8d, 0x834c202f
ja 0x140115d50
cmp rax, 3
jae 0x140115e01
inc rax
nop dword [rax + rax]
mov edx, dword [0x1415bce68]
mov r8d, dword [0x1415bce6c]
add edx, r8d
add edx, 0xb9463a04
mov r8d, edx
and r8d, 0x5381698f
xor edx, 0xd381698f
lea edx, [rdx + r8*2]
mov r8d, edx
not r8d
and r8d, 0x1efacc12
mov r9d, edx
and r9d, 0xe10533ed
imul r9d, r8d
mov r8d, edx
and r8d, 0x1efacc12
or edx, 0x1efacc12
imul edx, r8d
add edx, r9d
cmp edx, 0x50c46333
jb 0x140115d90
mov qword [rcx + 0x220], rax
lea rsp, [rbp + 0x10]
pop rbp
ret
mov qword [rcx + 0x220], 0
nop dword [rax]
mov eax, dword [0x1415bce60]
mov edx, dword [0x1415bce64]
mov r8d, eax
not r8d
mov r9d, edx
not r9d
mov r10d, r8d
and r10d, 0x30bab34d
and eax, 0xcf454cb2
or eax, r10d
or r8d, r9d
and r9d, 0x30bab34d
and edx, 0xcf454cb2
or edx, r9d
xor edx, eax
not r8d
or r8d, edx
imul rax, r8, 0x24fd861d
shr rax, 0x3d
imul eax, eax, 0x63330ec2
add eax, 0x9925f824
cmp eax, 0x74aee724
jb 0x140115e10
vmovdqa ymm0, ymmword [rcx + 0x1e0]
vmovdqa ymm1, ymmword [rcx + 0x200]
vpunpckhqdq ymm2, ymm0, ymm1
vpermq ymm2, ymm2, 0xd8
vpunpcklqdq ymm0, ymm0, ymm1
vpermq ymm0, ymm0, 0xd8
vpbroadcastd ymm1, dword [0x140258f40]
vpsrlq ymm3, ymm2, 0x28
vpor ymm1, ymm3, ymm1
vpsrlq ymm3, ymm0, 0x2e
vpsllq ymm2, ymm2, 0x12
vpor ymm3, ymm2, ymm3
vpsrlq ymm4, ymm0, 0x1a
vpbroadcastq ymm5, qword [0x140258f48]
vpblendd ymm2, ymm4, ymm2, 0xaa
vpand ymm2, ymm2, ymm5
vpsllq ymm3, ymm3, 0x1a
vpblendd ymm0, ymm0, ymm3, 0xaa
vpand ymm0, ymm0, ymm5
vmovdqa ymmword [rsp + 0x20], ymm0
vmovdqa ymmword [rsp + 0x40], ymm2
vmovdqa ymmword [rsp + 0x60], ymm1
lea rdx, [rsp + 0x20]
vzeroupper
call fcn.140115f10
nop
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x1401b5da0
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov eax, dword [0x1415ca920]
or eax, dword [0x1415ca924]
or eax, 0xf2ab711f
imul rax, rax, 0x7ea6b5bd
shr rax, 0x3e
xor eax, 0xb7f1742d
neg eax
cmp eax, 0x18b037d0
jb 0x1401b5e1d
mov eax, dword [0x1415ca928]
mov ecx, dword [0x1415ca92c]
mov edx, eax
not edx
and edx, ecx
mov r8d, ecx
not r8d
and r8d, eax
imul r8d, edx
mov edx, eax
and edx, ecx
or eax, ecx
imul eax, edx
lea esi, [rax + r8]
add esi, 0x36175031
and esi, 0x90b5cb6e
add esi, 0xe1fb26b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call fcn.14021c4a0
jmp 0x1401b5dcf
Function at 0x140219c70
Capabilities:
Get hostname

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop
add rsp, 0x28
ret

Function at 0x14021a1d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
add rsp, 0x38
ret

Function at 0x14021a550
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov r10d, dword [rsp + 0x68]
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret

Function at 0x14021aa10
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
movaps xmm0, xmmword [rsp + 0x70]
mov eax, dword [rsp + 0x80]
movups xmm1, xmmword [rsp + 0x88]
movups xmmword [rsp + 0x38], xmm1
mov dword [rsp + 0x30], eax
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop
add rsp, 0x48
ret

Function at 0x14021b9b0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop
add rsp, 0x28
ret

Function at 0x14021bfa0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop
add rsp, 0x28
ret

Function at 0x14021c000
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x58
mov eax, dword [rsp + 0x80]
mov r10d, dword [rsp + 0x88]
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop
add rsp, 0x58
ret

Function at 0x14021c0a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
nop
add rsp, 0x28
ret

Function at 0x14021c1a0
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
add rsp, 0x28
ret

Function at 0x14021c2d0
Capabilities:
Create pipe

Disassembly:
push rsi
sub rsp, 0x40
mov eax, dword [rsp + 0x70]
mov r10d, dword [rsp + 0x78]
mov r11d, dword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
nop
add rsp, 0x40
pop rsi
ret

Function at 0x14021c350
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov eax, dword [rsp + 0x60]
mov r10, qword [rsp + 0x68]
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x38
ret

Function at 0x14021c490
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x14021c900
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
nop
add rsp, 0x28
ret
Function at 0x14021ca20
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
nop
add rsp, 0x28
ret

Function at 0x14021d458
Capabilities:
Parse pe header

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

Function at 0x140220c34
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 0x140220ca3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140220ca3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140220ca3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140220ca3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140220ca3
cmp dword [rcx + 0x84], 0xe
jbe 0x140220ca3
cmp dword [rcx + 0xf8], 0
je 0x140220ca3
mov ecx, ebx
call fcn.140220d54
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.140220b30
nop
cmp dword [rbp + 0x20], 0
je 0x140220cf1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140220cfc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140220c34

Function at 0x140220e38
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140220c34
Function at 0x140223efc
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 0x140223f2c
xor eax, eax
jmp 0x140223fef
mov rbp, rbx
cmp word [rax], si
je 0x140223f51
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140223f38
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140223f34
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.140223e1c
movsxd r14, eax
test eax, eax
jne 0x140223f8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140223f25
mov rcx, r14
call fcn.140224dd8
mov rdi, rax
test rax, rax
jne 0x140223fa8
xor ecx, ecx
call fcn.14022247c
jmp 0x140223f84
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.140223e1c
test eax, eax
jne 0x140223fd9
mov rcx, rdi
call fcn.14022247c
jmp 0x140223fe3
xor ecx, ecx
call fcn.14022247c
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