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

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x14001e760
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x14001ee40
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400731a0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
mov rdi, rcx
mov dword [rcx], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rbx + 8]
mov rcx, rax
mov qword [rsp + 0x38], rbx
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14001eea3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x14001efb6
mov ebx, eax
jmp 0x14001ef61
xor edx, edx
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x50]
lea ecx, [rdx + 0x1a]
mov dword [rsp + 0x34], 0x44
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x14001ee8e
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14001ee8e
cmp dword [rsp + 0x30], ebx
jne 0x14001ef5b
mov rcx, qword [rsp + 0x38]
mov r9d, 8
lea rax, [rsp + 0x34]
lea r8, [rsp + 0x40]
lea edx, [r9 + 0xb]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14001ef38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add eax, 0xfffffae0
test eax, 0xfffffffd
je 0x14001ef61
test ecx, ecx
jg 0x14001ef2d
mov ebx, ecx
jmp 0x14001ef61
movzx ebx, cx
or ebx, 0x80070000
jmp 0x14001ef61
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14001ee8e
cmp dword [rsp + 0x30], ebx
je 0x14001ef61
mov dword [rdi], 1
test rsi, rsi
je 0x14001ef6f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001ef7f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001ef8f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140020e30
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14001ef61
Function at 0x14001efd0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400731a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebx, ebx
mov rsi, rcx
mov rbp, r8
mov dword [rsp + 0x50], edx
lea rcx, [rsp + 0x62]
mov r8d, 0x206
xor edx, edx
mov edi, ebx
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x60], bx
call fcn.140020fe0
lea edx, [rbx + 4]
mov r8, rbp
mov rcx, rsi
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x14001f0fa
nop word [rax + rax]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
je 0x14001f07b
cmp eax, 0xea
jne 0x14001f0c9
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001f0c9
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r8, rbp
call fcn.14001efd0
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x14001f0f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x208
inc edi
mov dword [rsp + 0x40], 0x104
call fcn.140020fe0
cmp ebx, 0xea
jne 0x14001f0fe
xor ebx, ebx
jmp 0x14001f040
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14001f103
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140020e30
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x140021a58
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400218c0
Function at 0x14004c09c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x1400731a0]
xor rax, rsp
mov qword [rbp + 0x50], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14004c1a3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14004c194
cmp dword [rsp + 0x30], 2
mov byte [rbp + 0x43], bl
lea rcx, [rsp + 0x40]
jne 0x14004c15e
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x14004c194
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x14004c180
mov al, byte [rcx + rdi]
test al, al
je 0x14004c180
mov byte [rdi], al
inc rdi
dec rsi
jne 0x14004c163
test rsi, rsi
jne 0x14004c18d
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14004c1a5
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140020e30
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14004cac0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14004cb83
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rdx, 0xffffffffffffffff
mov ebp, eax
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14004caf4
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14004cb86
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14004cb3f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x14004cb43
test rax, rax
je 0x14004cb83
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
or rax, 0xffffffffffffffff
mov edx, edi
inc rax
cmp word [rbx + rax*2], 0
jne 0x14004cb74
cmp rdx, rax
jb 0x14004cb60
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004cf70
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
sub rsp, 0x40
mov rax, qword [0x1400731a0]
xor rax, rsp
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [str.__p]
xor r12d, r12d
mov rsi, rcx
mov ebx, r12d
mov r14d, r12d
mov ebp, r12d
cmp dword [0x140076c20], ebx
movdqu xmmword [rsp + 0x20], xmm0
jne 0x14004d02d
lea edx, [r12 + 2]
mov r8b, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 1]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 0x20]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 0x23]
lea rcx, [0x140076c20]
mov r8, rax
mov dword [0x140076c20], 0x11c
mov dword [0x140076c24], 6
mov dword [0x140076c28], 1
mov word [0x140076d34], r12w
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, r12d
test eax, eax
sete cl
mov dword [0x140074a88], ecx
jmp 0x14004d033
mov ecx, dword [0x140074a88]
test ecx, ecx
je 0x14004d041
mov eax, 1
jmp 0x14004d1c2
test rsi, rsi
je 0x14004d1ae
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test eax, eax
je 0x14004d1a9
mov edx, edi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x14004d1a9
xor r9d, r9d
mov r8, rax
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x14004d1a9
mov rsi, r12
or rdi, 0xffffffffffffffff
nop word [rax + rax]
mov ecx, dword [rsp + rsi*4 + 0x20]
lea rdx, [0x1400523ec]
call fcn.14004c970
mov rbx, rax
test rax, rax
je 0x14004d1a9
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], r12w
jne 0x14004d0d0
mov rdx, rax
mov rcx, r14
call fcn.140043938
mov ebp, r12d
test eax, eax
sete bpl
test ebp, ebp
jne 0x14004d1a9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc rsi
mov rbx, r12
cmp rsi, 4
jl 0x14004d0b0
movups xmm0, xmmword [str.WinSxS_]
movzx eax, word [0x140067e58]
lea rcx, str._SystemRoot_
xor r8d, r8d
xor edx, edx
mov word [rsp + 0x30], ax
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x14004d1a9
lea rdx, [rsi + 0x12]
lea ecx, [rbp + 0x40]
mov qword [rsp + 0x80], r15
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14004d1a1
lea rcx, str._SystemRoot_
mov r8d, esi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
jne 0x14004d1a1
lea r8, [rsp + 0x20]
lea rdx, [rsi + 0x12]
mov rcx, rbx
call fcn.140015050
inc rdi
cmp word [rbx + rdi*2], r12w
jne 0x14004d180
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140043938
mov ebp, r12d
test eax, eax
sete bpl
mov r15, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140020e30
add rsp, 0x40
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400020f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021eb
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021f3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000222a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002200
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002255
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000227b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002260
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a460
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a4a5
xor al, al
jmp 0x14000a4f2
cmp word [rbx], 0
je 0x14000a4bd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a4b0
cmp word [rsp + 0x30], 0
je 0x14000a4eb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a513
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a4d0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b630
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f724
int3
Function at 0x14000aa00
Capabilities:
Read file on windows

Disassembly:
test rdx, rdx
je 0x14000ab8c
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x60], r14
xor sil, sil
xor r14d, r14d
mov qword [rsp + 0x50], rbx
mov rdi, rdx
mov rbp, rcx
nop word [rax + rax]
mov rax, qword [0x140032dd8]
mov rcx, qword [0x140032de0]
sub rax, rcx
je 0x14000aa74
mov rdx, qword [0x140032dd0]
cmp rdi, rax
mov rbx, rdi
cmovae rbx, rax
add rdx, rcx
mov r8, rbx
mov rcx, rbp
call fcn.14000d500
add rbp, rbx
sub rdi, rbx
add qword [0x140032de0], rbx
jmp 0x14000ab72
mov rax, qword [0x140030dc0]
mov rcx, qword [0x140030db8]
cmp rax, rcx
jb 0x14000ab20
test sil, sil
jne 0x14000ab20
cmp rcx, rax
jne 0x14000ab8d
mov rcx, qword [0x140030dc8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x140032de8]
mov eax, eax
sub rcx, rax
je 0x14000ab72
mov rdx, qword [0x140030db0]
lea r9, [rsp + 0x58]
mov ebx, 0x20003
mov qword [rsp + 0x20], r14
cmp rcx, rbx
cmovb rbx, rcx
mov rcx, qword [0x140030dc8]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ab93
mov eax, dword [rsp + 0x58]
cmp rax, rbx
jne 0x14000ab93
add qword [0x14002ed90], rbx
mov qword [0x140030dc0], r14
mov qword [0x140030db8], rbx
jmp 0x14000ab72
mov rcx, qword [0x140030da8]
lea r8, [0x140030db0]
lea rdx, [0x140032dd0]
mov qword [0x140032de0], r14
mov qword [0x140032dd8], 0x20000
call fcn.140007000
mov rcx, qword [0x140032de0]
cmp rcx, qword [0x140032dd8]
sete sil
cmp rax, 0xffffffffffffff88
ja 0x14000ab8d
mov qword [0x140032dd8], rcx
mov qword [0x140032de0], r14
test rdi, rdi
jne 0x14000aa30
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
call fcn.14000a900
int3
call fcn.14000a940
int3

Function at 0x14000aba0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x80
mov rcx, qword [0x140030da0]
xor ebx, ebx
test rcx, rcx
je 0x14000ac35
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne 0x14000ac16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x90]
mov r9d, 0x400
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call fcn.14000fdc4
mov rcx, qword [rsp + 0x90]
call fcn.14000fdc4
mov rcx, qword [0x140030da0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140030da0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140032df0], bl
je 0x14000ac85
lea rax, [0x140030dd0]
mov qword [rsp + 0x40], rbx
lea rcx, [0x140028890]
mov qword [rsp + 0x50], rax
mov eax, 0x414
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x60], ax
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x80
pop rbx
ret
Function at 0x14000bf38
Capabilities:
Parse pe header

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

Function at 0x14000f718
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 0x14000f583
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f583
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f583
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f583
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f583
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f583
cmp dword [rcx + 0xf8], 0
je 0x14000f583
mov ecx, ebx
call fcn.14000f634
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.14000f410
nop
cmp dword [rbp + 0x20], 0
je 0x14000f5d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f5dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f514
Function at 0x1400190f8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001917f
mov rsi, rbx
cmp word [rax], bp
je 0x14001913e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019128
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019124
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400167d4
mov rdi, rax
test rax, rax
je 0x14001916c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d500
mov rbp, rdi
xor ecx, ecx
call fcn.1400158e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b2ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b302
mov al, 1
jmp 0x14001b362
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b313
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b360
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019440
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b360
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b360
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b360
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b362
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f620
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x14000a913
and qword [r8], 0
call fcn.14000a9f8
mov rbx, rax
test rax, rax
je 0x14000a9db
mov rcx, rax
call fcn.14000a874
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000a9d2
mov rax, qword [0x1400881b0]
test rax, rax
je 0x14000a94b
inc dword [rax + 0xf4]
mov rdx, qword [0x1400881c0]
lea rcx, [rdi + rbp]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14000a9d2
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x14000a9aa
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400881b0]
test rax, rax
je 0x14000a998
dec dword [rax + 0xf4]
mov rdx, qword [0x1400881c0]
mov rcx, rsi
call qword [0x140070008]
jmp 0x14000a9db
test ebp, ebp
jle 0x14000a9bc
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000a9cd
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000a9dd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14000ad50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x14000ad7e
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x14005fa50]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x14000ad5b
not r8d
mov eax, r8d
ret

Function at 0x14000ad88
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x14000ade2
mov r11b, 0x23
lea rbx, [0x14005fa50]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x14000adcc
cmp rdx, 2
jb 0x14000adcc
cmp byte [r10], r11b
jne 0x14000adcc
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x14000adaa
jmp 0x14000ae23
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x14000ae23
mov r11b, 0x23
lea rbx, [0x14005fa50]
cmp dl, r11b
jne 0x14000ae07
cmp byte [r10], r11b
jne 0x14000ae07
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x14000adf5
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret