joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005be80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005be8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005be9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005be85
lea eax, [rcx + 1]
jmp 0x14005beab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005bebe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005bea4
sub eax, 3
jb 0x14005bede
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005bf2d
sar eax, 1
movsxd rbp, eax
jb 0x14005bf14
jmp 0x14005beec
add ebx, ebx
jne 0x14005beea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005bf14
inc ecx
add ebx, ebx
jne 0x14005befa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005bf14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005bf0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005befc
add ecx, 2
jmp 0x14005bf19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005be42
jmp 0x14005be8d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005bf79
cmp rsi, rcx
jae 0x14005bf81
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005bf60
cmp al, 0x8f
ja 0x14005bf60
cmp byte [rsi - 2], 0xf
je 0x14005bf66
sub al, 0xe8
cmp al, 1
ja 0x14005bf4a
cmp rsi, rcx
jae 0x14005bf81
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005bf50
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005bf81
lodsb al, byte [rsi]
jmp 0x14005bf60
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x59000]
mov eax, dword [rdi]
or eax, eax
je 0x14005bfea
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x623e4]
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 0x14005bf8e
jns 0x14005bfc3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14005bfcd
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 0x14005bfe4
mov qword [rbx], rax
add rbx, 8
jmp 0x14005bfae
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 0x14005c024
cmp al, 0xef
ja 0x14005c016
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005bff6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005c005
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 + 0x237]
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 0x14005c078
sub rsp, 0xffffffffffffff80
jmp 0x14000afb0
Function at 0x401e4b
Capabilities:
Terminate process

Disassembly:
call section..text
mov rax, rsp
shr rax, 4
jae 0x401e5b
push 0
sub rsp, 0x80
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401e97
Capabilities:
Create thread

Disassembly:
call section..text
push 0
mov rbx, rsp
mov rax, rsp
shr rax, 4
jae 0x401eac
push 0
sub rsp, 0x80
push 0x10
call fcn.004019a8
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov rcx, qword [rbp + 0x18]
mov qword [rax + 8], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, 0x401f09
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, qword [rbx]
call fcn.00401018
ret 0x10
Function at 0x409a0f
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push qword [0x0040105b]
call fcn.004020bf
pop rax
Function at 0x40a1de
Capabilities:
Query or enumerate registry value

Disassembly:
call section..text
cmp qword [rbp + 0x18], 0
je 0x40a1fa
push 0
push qword [rbp + 0x18]
push 0x11
call fcn.00402d3b
mov qword [rbp + 0x18], rax
mov rax, rsp
shr rax, 4
jae 0x40a205
push 0
sub rsp, 0x80
mov rax, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x28]
mov r8, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
cmp qword [rbp + 0x18], 0
je 0x40a245
push rax
push qword [rbp + 0x18]
call fcn.00401aae
pop rax
call fcn.00401018
ret 0x30

Function at 0x40a24d
Capabilities:
Set registry value

Disassembly:
call section..text
cmp qword [rbp + 0x18], 0
je 0x40a269
push 0
push qword [rbp + 0x18]
push 0x11
call fcn.00402d3b
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
je 0x40a2a5
mov rax, qword [rbp + 0x28]
cmp eax, 1
je 0x40a283
cmp eax, 7
jne 0x40a2a5
mov eax, 0x12
push 0
push qword [rbp + 0x30]
push rax
push 0
push qword [rbp + 0x30]
push rax
push 0
push 1
call fcn.00402d44
mov qword [rbp + 0x38], rax
call fcn.00402d3b
mov qword [rbp + 0x30], rax
mov rax, rsp
shr rax, 4
jae 0x40a2b0
push 0
sub rsp, 0x80
mov rax, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x28]
mov r8, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
push rax
cmp qword [rbp + 0x18], 0
je 0x40a2ef
push qword [rbp + 0x18]
call fcn.00401aae
cmp qword [rbp + 0x30], 0
je 0x40a30c
mov rax, qword [rbp + 0x28]
cmp eax, 1
je 0x40a304
cmp eax, 7
jne 0x40a30c
push qword [rbp + 0x30]
call fcn.00401aae
pop rax
call fcn.00401018
ret 0x30

Function at 0x40a34a
Capabilities:
Delete registry key

Disassembly:
call section..text
cmp qword [rbp + 0x18], 0
je 0x40a366
push 0
push qword [rbp + 0x18]
push 0x11
call fcn.00402d3b
mov qword [rbp + 0x18], rax
mov rax, rsp
shr rax, 4
jae 0x40a371
push 0
sub rsp, 0x80
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.DLL_RegDeleteKeyW]
cmp qword [rbp + 0x18], 0
je 0x40a397
push rax
push qword [rbp + 0x18]
call fcn.00401aae
pop rax
call fcn.00401018
ret 0x10

Function at 0x40a760
Capabilities:
Delete registry value

Disassembly:
call section..text
mov rax, rsp
shr rax, 4
jae 0x40a770
push 0
sub rsp, 0x80
cmp qword [rbp + 0x38], 0
je 0x40a78e
push 0
push qword [rbp + 0x38]
push 0x11
call fcn.00402d3b
mov qword [rbp + 0x38], rax
push qword [rbp + 0x30]
push qword [rbp + 0x28]
push qword [rbp + 0x20]
push qword [rbp + 0x18]
push qword [rbp + 0x10]
push 0
call fcn.0040a3f8
test rcx, rcx
jne 0x40a7d0
mov rbx, rax
mov rdx, qword [rbp + 0x38]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_RegDeleteValueW]
cmp qword [rbp + 0x18], 0
je 0x40a7ca
push rax
push qword [rbp + 0x18]
call fcn.00401aae
pop rax
push rbx
call fcn.0040a14f
call fcn.00401018
ret 0x30
Function at 0x40ad9f
Capabilities:
Delete service
Stop service

Disassembly:
call section..text
mov rax, rsp
shr rax, 4
jae 0x40adaf
push 0
sub rsp, 0x80
mov r8, 0x10020
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerA]
test rax, rax
je 0x40ae43
mov rsi, rax
mov r8, 0x10020
mov rdx, qword [0x0040a949]
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_OpenServiceW]
test rax, rax
je 0x40ae36
mov rbx, rax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov rcx, rsp
sub rsp, 0x28
mov r8, rcx
mov rdx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_ControlService]
test qword [rbp + 0x10], 1
je 0x40ae29
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
xor eax, eax
inc eax
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov eax, ebx
call fcn.00401018
ret 8
Function at 0x140002dd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400a0060]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov qword [rsp + 0x30], rdx
mov rdi, qword [0x1400a1550]
cmp byte [0x1400a1548], 0
je 0x140002e73
mov dword [rsp + 0x38], 0
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x18]
cmp rcx, rdx
jae 0x140002e32
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140002e2a
mov rax, qword [rbx]
mov word [rax + rcx], 0xa
jmp 0x140002e3d
mov r9b, 0xa
mov rcx, rbx
call fcn.140001b50
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140002e4a
mov rdx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, dword [rbx + 0x10]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140002e80
lea rcx, str.Couldnt_write_command
jmp 0x140002e7a
lea rcx, str.Couldnt_write_to_CMD:_CMD_not_open
call fcn.140001e40
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140002eb6
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140002eb1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002ee1
mov rcx, r8
call fcn.14007dd0c
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007dcb0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140007bb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400a0060]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, r9
mov rbp, r8
mov r14d, edx
mov r15, rcx
mov dword [rsp + 0x34], 0x78563412
cmp dword [rcx + 0x58], 1
jbe 0x140007dba
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x30], sil
mov edx, esi
mov eax, 2
cmp r8, 0x7e
cmovae edx, eax
mov ecx, 8
cmp r8, 0x10000
cmovae eax, ecx
add rdx, rax
movzx eax, byte [r15 + 0x5c]
neg al
sbb rcx, rcx
and ecx, 4
add rdx, rcx
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140008080
or r14b, 0x80
mov rdi, qword [rsp + 0x38]
mov byte [rdi], r14b
movzx edx, byte [r15 + 0x5c]
cmp rbp, 0x7e
jae 0x140007c7a
neg dl
sbb al, al
and al, 0x80
or al, bpl
mov byte [rdi + 1], al
cmp byte [r15 + 0x5c], sil
je 0x140007d1a
mov dword [rdi + 2], 0x78563412
jmp 0x140007d1a
mov rcx, rbp
shr rcx, 8
cmp rbp, 0x10000
jae 0x140007cb5
mov eax, 0x7e
mov r8d, 0xfe
test dl, dl
cmovne eax, r8d
mov byte [rdi + 1], al
mov byte [rdi + 2], cl
mov byte [rdi + 3], bpl
cmp byte [r15 + 0x5c], 0
je 0x140007d1a
mov dword [rdi + 4], 0x78563412
jmp 0x140007d1a
mov eax, 0x7f
mov r8d, 0xff
test dl, dl
cmovne eax, r8d
mov byte [rdi + 1], al
mov rax, rbp
shr rax, 0x38
mov byte [rdi + 2], al
mov rax, rbp
shr rax, 0x30
mov byte [rdi + 3], al
mov rax, rbp
shr rax, 0x28
mov byte [rdi + 4], al
mov rax, rbp
shr rax, 0x20
mov byte [rdi + 5], al
mov rax, rbp
shr rax, 0x18
mov byte [rdi + 6], al
mov rax, rbp
shr rax, 0x10
mov byte [rdi + 7], al
mov byte [rdi + 8], cl
mov byte [rdi + 9], bpl
cmp byte [r15 + 0x5c], 0
je 0x140007d1a
mov dword [rdi + 0xa], 0x78563412
mov rdx, qword [r15 + 0x28]
mov r9, qword [rsp + 0x40]
mov r8, rdi
lea rcx, [r15 + 0x20]
call fcn.140008210
mov rdx, qword [r15 + 0x28]
mov r9, qword [rsp + 0xb0]
mov r8, rbx
lea rcx, [r15 + 0x20]
call fcn.140008210
cmp byte [r15 + 0x5c], 0
je 0x140007d82
mov r8, qword [r15 + 0x28]
sub r8, qword [r15 + 0x20]
sub r8, rbp
test rbp, rbp
je 0x140007d82
nop
mov rdx, qword [r15 + 0x20]
add rdx, rsi
movzx ecx, byte [rdx + r8]
mov rax, rsi
and eax, 3
xor cl, byte [rsp + rax + 0x34]
mov byte [rdx + r8], cl
inc rsi
cmp rsi, rbp
jne 0x140007d60
mov rdx, qword [rsp + 0x48]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140007db2
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007db2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14007dd0c
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14007dcb0
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007de0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400a0060]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, r9
mov rbp, r8
mov r15, rcx
mov dword [rsp + 0x34], 0x78563412
cmp dword [rcx + 0x58], 1
jbe 0x140007fea
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x30], sil
mov edx, esi
mov eax, 2
cmp r8, 0x7e
cmovae edx, eax
mov ecx, 8
cmp r8, 0x10000
cmovae eax, ecx
add rdx, rax
movzx eax, byte [r15 + 0x5c]
neg al
sbb rcx, rcx
and ecx, 4
add rdx, rcx
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140008080
mov rdi, qword [rsp + 0x38]
mov byte [rdi], 0x82
movzx edx, byte [r15 + 0x5c]
cmp rbp, 0x7e
jae 0x140007ea3
neg dl
sbb al, al
and al, 0x80
or al, bpl
mov byte [rdi + 1], al
cmp byte [r15 + 0x5c], sil
je 0x140007f43
mov dword [rdi + 2], 0x78563412
jmp 0x140007f43
mov rcx, rbp
shr rcx, 8
cmp rbp, 0x10000
jae 0x140007ede
mov eax, 0x7e
mov r8d, 0xfe
test dl, dl
cmovne eax, r8d
mov byte [rdi + 1], al
mov byte [rdi + 2], cl
mov byte [rdi + 3], bpl
cmp byte [r15 + 0x5c], 0
je 0x140007f43
mov dword [rdi + 4], 0x78563412
jmp 0x140007f43
mov eax, 0x7f
mov r8d, 0xff
test dl, dl
cmovne eax, r8d
mov byte [rdi + 1], al
mov rax, rbp
shr rax, 0x38
mov byte [rdi + 2], al
mov rax, rbp
shr rax, 0x30
mov byte [rdi + 3], al
mov rax, rbp
shr rax, 0x28
mov byte [rdi + 4], al
mov rax, rbp
shr rax, 0x20
mov byte [rdi + 5], al
mov rax, rbp
shr rax, 0x18
mov byte [rdi + 6], al
mov rax, rbp
shr rax, 0x10
mov byte [rdi + 7], al
mov byte [rdi + 8], cl
mov byte [rdi + 9], bpl
cmp byte [r15 + 0x5c], 0
je 0x140007f43
mov dword [rdi + 0xa], 0x78563412
mov rdx, qword [r15 + 0x28]
mov r9, qword [rsp + 0x40]
mov r8, rdi
lea rcx, [r15 + 0x20]
call fcn.140008210
mov rdx, qword [r15 + 0x28]
mov r9, qword [rsp + 0xb0]
mov r8, rbx
lea rcx, [r15 + 0x20]
call fcn.140008210
cmp byte [r15 + 0x5c], 0
je 0x140007fb2
mov r8, qword [r15 + 0x28]
sub r8, qword [r15 + 0x20]
sub r8, rbp
test rbp, rbp
je 0x140007fb2
nop word [rax + rax]
mov rdx, qword [r15 + 0x20]
add rdx, rsi
movzx ecx, byte [rdx + r8]
mov rax, rsi
and eax, 3
xor cl, byte [rsp + rax + 0x34]
mov byte [rdx + r8], cl
inc rsi
cmp rsi, rbp
jne 0x140007f90
mov rdx, qword [rsp + 0x48]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140007fe2
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007fe2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14007dd0c
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14007dcb0
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000dbf0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1400a0060]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
mov qword [rbp + 0x27], rcx
mov r8, rcx
lea rdx, [0x1400917ec]
lea rcx, [rbp + 0x2f]
call fcn.140022a00
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
mov dword [rbp - 0x49], reloc.WS2_32.dll_WSASetLastError
mov dword [rbp - 0x45], 0x40
xor edi, edi
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x39], rdi
lea rax, str.cmd.exe
mov qword [rbp - 0x31], rax
lea rax, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae rax, qword [rbp + 0x2f]
mov qword [rbp - 0x29], rax
mov dword [rbp - 0x19], edi
mov qword [rbp - 0x11], rdi
lea rcx, [rbp - 0x49]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x14000dcd2
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dccd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000dccd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007dd0c
mov qword [rbp + 0x3f], rdi
mov qword [rbp + 0x47], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x2f], dil
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14000dd18
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000dd13
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000dd48
mov rcx, r8
call fcn.14007dd0c
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14007dcb0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400166e0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, dword [0x1400a154c]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
mov edx, 1
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400a1538]
test rcx, rcx
je 0x140016761
cmp qword [0x1400a1540], 0
je 0x140016761
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x1400a1540]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
mov qword [0x1400a1550], rax
mov byte [0x1400a1548], al
mov qword [0x1400a1558], rax
mov dword [0x1400a154c], eax
add rsp, 0x20
pop rbx
ret
Function at 0x140020930
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 0x140020967
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 0x140020988
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14002098a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400209e3
test ecx, ecx
jle 0x1400209c3
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 0x1400209e3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400209e3
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 0x140020a10
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 0x140020a32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140020a48
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 0x140020a64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140020a66
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140020aa0
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 0x140020b47
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140020adb
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 0x140020b21
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 0x140020b60
cmp rbx, rax
ja 0x140020af0
mov r8, rdi
test rdi, rdi
je 0x140020b47
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 0x140020b4a
Function at 0x140020f70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a0060]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140020f9d
xor eax, eax
jmp 0x1400210f2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140020fc8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140020fc8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1400210f2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400210e5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14002100b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140021036
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400210ea
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400210a5
sub eax, 1
je 0x1400210a5
cmp eax, 2
jne 0x1400210e5
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400210ea
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400210d3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400210e5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1400210ea
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007dcb0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret