joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013f34a
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r14d, r9d
mov rbx, r8
mov r13, rdx
mov r12, rcx
mov rbp, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0xc0]
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea eax, [rcx + r14]
lea rdi, [r12 + 0x28]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
xor r15d, r15d
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rdi
mov rdx, rax
call fcn.14000f62c
mov rsi, qword [r12 + 0x28]
lea rax, [rsi + 1]
cmp rax, 1
ja 0x14013f3fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp], eax
mov ebx, 0x19
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140183a80
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x40], r14
mov rbp, qword [r12]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 7
lea r9, [rsp + 0x48]
mov rcx, rax
mov rdx, rsi
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14013f544
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 0
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14013f55e
mov rbp, rax
mov esi, dword [rsp + 0x40]
mov eax, dword [rsp + 0xc0]
mov r14d, eax
test rbx, rbx
je 0x14013f4a7
test eax, eax
je 0x14013f4a7
lea rdi, [rsi + rbp]
mov rcx, rdi
mov rdx, rbx
mov r8, r14
call fcn.140186330
xor eax, eax
mov rcx, qword [rdi + rax*8]
test rcx, rcx
je 0x14013f49e
sub rcx, rbx
mov qword [rdi + rax*8], rcx
inc rax
cmp rax, 0x40
jne 0x14013f48e
mov rax, qword [rsp + 0x48]
mov qword [0x1403496c0], rax
lea r8, [0x1403496c0]
mov r9d, 8
mov rcx, r12
call fcn.14013f2ce
mov qword [0x1403496c0], 0
test eax, eax
jne 0x14013f52d
mov qword [0x140349e38], rsi
lea r8, [0x140349e38]
mov r9d, 8
mov rcx, r12
call fcn.14013f2ce
mov qword [0x140349e38], 0
test eax, eax
jne 0x14013f52d
mov qword [0x140349e40], r14
lea r8, [0x140349e40]
mov r9d, 8
mov rcx, r12
call fcn.14013f2ce
mov qword [0x140349e40], 0
test eax, eax
je 0x14013f578
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
jmp 0x14013f3dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebx, 0x1a
jmp 0x14013f3dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xc8]
mov dword [rcx], eax
mov ebx, 0x1b
jmp 0x14013f3dd
lea rsi, [r12 + 0x38]
mov ecx, 0x40
call fcn.14018360c
mov rdi, rax
mov r9, qword [r12 + 0x40]
mov r8d, dword [r12 + 0x10]
mov rdx, qword [r12]
mov qword [rsp + 0x20], r13
mov rcx, rax
call fcn.1401646d0
mov rcx, rsi
mov rdx, rdi
call fcn.14013eee6
mov rcx, qword [r12 + 0x38]
mov rdx, rbp
mov r8, qword [rsp + 0x40]
mov r9d, 0x400
call fcn.140164780
mov ebx, 4
test al, al
je 0x14013f3dd
mov rcx, r12
call fcn.1400951a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x14013f3dd
Function at 0x14013f5ee
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140094f80
test al, al
je 0x14013f610
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret

Function at 0x140158cb4
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140158cb4
sub rsp, 0x1c8
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x28]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140158d08
movzx eax, byte [rsp + 0x29]
shl eax, 8
cmp eax, 0x200
jne 0x140158d1e
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140183a80
nop
add rsp, 0x1c8
ret
lea rdx, str.WSAStartup_failed_with_error:__d_n
mov ecx, 0xfffffffd
mov r8d, eax
call fcn.1400b8218
jmp 0x140158d35
lea rdx, str.Could_not_find_a_usable_version_of_Winsock.dll_n
mov ecx, 0xfffffffd
call fcn.1400b8218
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0xffffffff
call fcn.1401918b0
int3
Function at 0x14015a818
Capabilities:
Resume thread

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rdx, [rcx + 0x10]
mov rcx, qword [rcx + 8]
call fcn.1400411d3
mov rcx, qword [rsi + 8]
add rsp, 0x20
pop rsi
jmp fcn.1400426c9

Function at 0x14015ab10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov eax, dword [0x140349fd8]
mov ecx, dword [0x1403488a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x14015ab93
lea rcx, [0x140349fd0]
call fcn.140081650
test rax, rax
jne 0x14015ab82
mov ecx, 4
call fcn.14018360c
mov rsi, rax
mov dword [rax], 0
lea rcx, [0x140349fd0]
call fcn.140081650
test rax, rax
je 0x14015ab73
mov rcx, rax
call fcn.140183668
lea rcx, [0x140349fd0]
mov rdx, rsi
call fcn.140081690
lea rcx, [0x140349fd0]
add rsp, 0x20
pop rsi
jmp fcn.140081650
lea rcx, [0x140349fd8]
call fcn.140183810
cmp dword [0x140349fd8], 0xffffffff
jne 0x14015ab36
mov qword [0x140349fd0], 0
lea rcx, [0x140349fd0]
lea rdx, [0x140067bc0]
call fcn.1400816e0
lea rcx, [0x140349fd8]
call fcn.1401838a8
jmp 0x14015ab36

Function at 0x140160aae
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r15, qword [rsp + 0xc8]
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r15], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x140160b96
mov edi, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0xa8]
mov eax, dword [rsp + 0xa0]
cmp byte [r8 + 0x17], 0
jns 0x140160b13
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, eax
mov r9d, r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x140160b80
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 3
lea r14, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb rbx, rbx
or rbx, qword [r14]
jmp 0x140160b87
mov rbx, 0xffffffffffffffff
mov qword [r15], rbx
xor eax, eax
cmp rbx, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140183a80
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140160fb6
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r12d, ecx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [r12 - 5]
mov ebp, 5
cmp eax, 1
ja 0x140161163
mov rbx, r8
mov r15, rdx
mov rbp, qword [rsp + 0x130]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
xor edi, edi
mov qword [rsp + 0xb0], rdi
mov dword [rsp + 0x50], WSAGetLastError
cmp byte [r9 + 0x17], dil
jns 0x140161044
mov r9, qword [r9]
mov rcx, r9
call fcn.14019cc7c
mov r14, rax
movzx eax, byte [rbp + 0x17]
test al, al
jns 0x14016105f
mov rax, qword [rbp + 8]
mov rbp, qword [rbp]
mov rsi, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
cmp byte [rbx + 0x17], dil
jns 0x140161077
mov rbx, qword [rbx]
mov r15, qword [r15]
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 5
test eax, eax
je 0x140161156
cmp r12d, 6
mov r13d, 0x1fffff
mov edi, 0x101c01
cmove edi, r13d
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, rbx
mov r8, r15
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rbx, qword [rsi + 8]
test eax, eax
je 0x14016114d
add rsi, 8
cmp r12d, 6
mov edi, 0x100c43
cmove edi, r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, rbx
mov r8, r15
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea ebp, [rcx + rcx*4]
jmp 0x140161156
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x140161163
mov rcx, r14
call fcn.140095b90
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140183a80
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14016118a
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x140161222
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1401638da
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov r15, rcx
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0xa8], rax
test dl, dl
je 0x140163965
lea rax, [0x1401692a0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1402de780]
lea r8, str.NtMapViewOfSection
mov rcx, r15
mov rdx, rdi
mov r9d, 1
call fcn.140163362
lea rax, [0x140169310]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, str.NtUnmapViewOfSection
mov rcx, r15
mov rdx, rdi
mov r9d, 1
call fcn.140163362
jmp 0x140163970
cmp qword [r15 + 0x18], 0
je 0x140163aad
mov rax, qword [r15]
mov r14, qword [rax]
mov dword [rsp + 0x20], 1
mov r12, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, r14
xor edx, edx
mov r9d, 0x2000
call r12
mov rdi, rax
mov rsi, qword [r15 + 0x18]
shl rsi, 6
lea rbx, [rsi + 0x60]
mov rcx, rbx
call fcn.140163218
mov rbp, rax
mov rax, 0xfffffffffffff000
mov rcx, rbp
and rcx, rax
lea rdx, [rcx + rdi]
add rsi, 0x105f
and rsi, rax
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov r8, rsi
mov r9d, 0x1000
call r12
test rax, rax
je 0x140163ad3
mov rdi, rax
and ebp, 0xfff
add rdi, rbp
lea rsi, [rsp + 0x48]
mov qword [rsi], rbx
mov dword [rsi + 0x18], 0
mov qword [rsi + 8], 0x20
lea rcx, [0x14034a090]
mov r8d, 0x150
xor edx, edx
call fcn.1401867a0
mov rcx, r15
mov rdx, rdi
mov r8, rbx
mov r9, rsi
call fcn.140163d16
mov ebp, eax
test eax, eax
jne 0x140163aaf
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov r9d, 0x20
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, 0x2a
test eax, eax
je 0x140163aaf
cmp qword [rsp + 0x40], 0x20
jne 0x140163aaf
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, rdi
mov r8, rbx
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [r15]
lea rdx, str.g_originals
lea r8, [0x14034a090]
mov r9d, 0x150
call fcn.14013f2ce
mov ebp, eax
jmp 0x140163aaf
xor ebp, ebp
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140183a80
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
int3

Function at 0x140168ebc
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret
Function at 0x14016c7b2
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x308
mov r15, r9
mov rsi, r8
mov rdi, rdx
mov r12, rcx
mov r14, qword [rsp + 0x390]
mov rbx, qword [rsp + 0x380]
mov rax, qword [0x14030f948]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x80], rdx
call fcn.1400aff18
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, rax
call fcn.140114ca4
test al, al
je 0x14016c877
mov rax, qword [rsp + 0x388]
mov rcx, qword [rsp + 0x378]
mov edx, dword [rsp + 0x370]
mov r8d, dword [rsp + 0x368]
mov r9, qword [rsp + 0x360]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
mov rcx, rdi
mov rdx, rsi
mov r8, r15
call r12
mov esi, 1
test eax, eax
jne 0x14016c9ae
call fcn.1400aff18
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, rax
call fcn.140114c94
xor esi, esi
test al, al
je 0x14016c9ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x18
mov rcx, r14
mov r8d, 1
call fcn.1401409e2
test al, al
je 0x14016c9a4
call fcn.140140918
test rax, rax
je 0x14016c9a4
mov rsi, rax
mov qword [rsp + 0x78], 0
lea rbx, [rsp + 0xf0]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x14016c8f8
mov qword [rsp + 0x78], rbx
lea rbx, [rsp + 0x68]
mov rcx, rbx
mov rdx, rsi
call fcn.1401418b2
xorps xmm0, xmm0
lea rax, [rsp + 0x90]
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
mov qword [rax + 0x50], 0
lea rcx, [rsp + 0x58]
mov dword [rcx], 0x18
mov qword [rcx + 8], r14
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x380]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x80]
lea r9, [rsp + 0x88]
mov rcx, rbx
mov edx, reloc.WS2_32.dll_listen
call fcn.14016c9d1
test eax, eax
je 0x14016c983
mov al, 1
jmp 0x14016c9a0
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp dword [rsp + 0x98], 0
sete sil
xor eax, eax
test al, al
je 0x14016c9ae
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140183a80
mov eax, esi
add rsp, 0x308
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14016ee78
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov edi, edx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rsi
mov rdx, rax
call fcn.14000f62c
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14016eee2
mov eax, edi
mov qword [rsp + 0x20], rax
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 8], rax
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x1401918b0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401919e0
Function at 0x1401b23d0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1401b23f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401950d4
or eax, 0xffffffff
jmp 0x1401b23f2
xor eax, eax
add rsp, 0x28
ret

Function at 0x1401b4170
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401b4190
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401950d4
or eax, 0xffffffff
jmp 0x1401b4192
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401b48d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1401b4938
test byte [rbx + 6], 0xf
jne 0x1401b4928
xor edi, edi
cmp word [rbx + 4], di
jne 0x1401b4928
cmp word [rbx + 2], di
jne 0x1401b4928
cmp word [rbx], di
jne 0x1401b4928
lea esi, [rdi + 1]
jmp 0x1401b4930
mov eax, 2
movzx esi, ax
movzx eax, si
jmp 0x1401b4b3b
xor edi, edi
test cx, cx
jne 0x1401b4953
mov rcx, rbx
call fcn.1401b8b80
movzx ecx, ax
cmp di, ax
jl 0x1401b4b38
movsx edx, cx
test esi, esi
jle 0x1401b4983
sub ebp, edx
cmp ebp, esi
jg 0x1401b4983
movsd xmm0, qword [0x1402f70c0]
cmp word [rbx + 6], di
jge 0x1401b4975
xorps xmm0, xmmword [0x1401bca90]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1401b4b3b
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1401b49b0
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1401b4b3b
movzx r15d, r11w
lea eax, [rdx + rsi]
and r11w, 0xf
lea ebp, [rax - 1]
mov r13d, 0x8000
mov r12d, reloc.WS2_32.dll_recv
or r11w, r12w
and r15w, r13w
mov word [rbx + 6], r11w
cmp eax, 0xffffffcb
jle 0x1401b4b2d
test ebp, ebp
jns 0x1401b4b2d
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1401b4a51
movzx ecx, word [rbx + 4]
mov eax, 0xfff0
movzx edx, word [rbx + 2]
sub ax, bp
shr ax, 4
movzx r9d, r11w
add ax, si
movzx r8d, ax
movzx eax, r8w
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], dx
movzx edx, cx
movzx ecx, r9w
mov r9d, edi
sub r8, rsi
jne 0x1401b4a22
mov word [rbx + 4], cx
movzx r11d, di
mov word [rbx + 2], dx
neg bp
je 0x1401b4ad0
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1401b4ae6
jne 0x1401b4b05
test byte [rbx], sil
je 0x1401b4b05
add word [rbx], si
jne 0x1401b4b05
add word [rbx + 2], si
jne 0x1401b4b05
add word [rbx + 4], si
jne 0x1401b4b05
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1401b49a8
cmp r11w, r15w
jne 0x1401b49a8
cmp word [rbx + 4], di
jne 0x1401b49a8
cmp word [rbx + 2], di
jne 0x1401b49a8
cmp word [rbx], di
je 0x1401b4b38
jmp 0x1401b49a8
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001b08
Capabilities:
Parse pe header

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

Function at 0x140006194
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005f84
Function at 0x140008ea8
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 0x140008ed8
xor eax, eax
jmp 0x140008f9b
mov rbp, rbx
cmp word [rax], si
je 0x140008efd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008ee4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008ee0
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.140008df8
movsxd r14, eax
test eax, eax
jne 0x140008f3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008ed1
mov rcx, r14
call fcn.1400072bc
mov rdi, rax
test rax, rax
jne 0x140008f54
xor ecx, ecx
call fcn.140007488
jmp 0x140008f30
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.140008df8
test eax, eax
jne 0x140008f85
mov rcx, rdi
call fcn.140007488
jmp 0x140008f8f
xor ecx, ecx
call fcn.140007488
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000c2cc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007efc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c356
cmp byte [rbp - 0x21], r15b
je 0x14000c351
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c38c
call fcn.14000a464
test eax, eax
jne 0x14000c378
cmp byte [rbp - 0x21], r15b
je 0x14000c370
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c38c
cmp byte [rbp - 0x21], r15b
je 0x14000c389
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400074d8
test eax, eax
jne 0x14000c42c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007efc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c3cb
cmp byte [rbp - 0x21], r15b
je 0x14000c400
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c400
call fcn.14000a464
test eax, eax
jne 0x14000c3ec
cmp byte [rbp - 0x21], r15b
je 0x14000c3e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c400
cmp byte [rbp - 0x21], r15b
je 0x14000c3fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400074d8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c42c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c42f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c43d
mov rcx, rdi
call fcn.140007488
cmp byte [rbp + 0x3f], r15b
je 0x14000c44c
mov rcx, qword [rbp + 0x27]
call fcn.140007488
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret