joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d3048
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1400d3067
call fcn.1400e4e38
jmp 0x1400d311c
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1400d1c50
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1400d30b2
cmp byte [rbp - 0x38], 0
je 0x1400d30e7
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400d30e7
call fcn.1400e2250
test eax, eax
jne 0x1400d30d3
cmp byte [rbp - 0x38], al
je 0x1400d30cb
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400d30e7
cmp byte [rbp - 0x38], 0
je 0x1400d30e4
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1400d13ec
test eax, eax
je 0x1400d3100
or ebx, 0xffffffff
jmp 0x1400d310b
mov rcx, qword [rbp - 0x20]
call fcn.1400e4e38
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1400d311a
mov rcx, qword [rbp - 0x20]
call fcn.1400e1fa8
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x1400dc70c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400dc743
call fcn.1400d2304
mov dword [rax], socket
call fcn.1400e0e38
xor eax, eax
jmp 0x1400dc7d1
mov rdx, r9
mov rcx, r8
call fcn.1400dc6a8
mov rbx, rax
test rax, rax
je 0x1400dc7ce
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400dc5d4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400dc7bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d2278
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400dc7a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400dc7b1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400e1fa8
jmp 0x1400dc7ce
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400dc7cb
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400de914
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140120e90]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400de96b
cmp word [rdx], r13w
jne 0x1400de96b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400de970
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400dea95
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400deab6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400de9a9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400de9d0
cmp r9, r8
jae 0x1400de9e0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400de98a
jmp 0x1400dea95
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400dea8a
cmp dword [rsp + 0x80], esi
je 0x1400dea8a
lea r8, [0x140120e90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400dea62
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400dea32
mov word [rbx], r13w
jmp 0x1400dea92
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400dea3f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400dea92
cmp word [rsp + 0x70], r13w
jne 0x1400dea6f
cmp rbx, r14
je 0x1400dea2c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400dcef8
cmp word [rsp + 0x70], r13w
je 0x1400dea95
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140120e90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400dea8f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400dea95
Function at 0x1400e4cf0
Capabilities:
Get file size

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

Function at 0x1400e54a0
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.1400dcef8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400dcef8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e55f0
cmp rax, 0xffffffffffffffff
je 0x1400e55f0
xor edi, edi
test rbp, rbp
jle 0x1400e559b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e1f30
mov rbx, rax
test rax, rax
jne 0x1400e5528
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e5591
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ddf90
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.1400dfccc
cmp eax, 0xffffffff
je 0x1400e5571
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e5538
mov edx, r15d
mov ecx, r14d
call fcn.1400ddf90
jmp 0x1400e5591
cmp byte [rsi + 0x38], dil
je 0x1400e5588
cmp dword [rsi + 0x34], 5
jne 0x1400e5588
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400e5591
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e1fa8
jmp 0x1400e5604
jns 0x1400e5604
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400dcef8
cmp rax, 0xffffffffffffffff
jne 0x1400e55bc
cmp byte [rsi + 0x30], dil
je 0x1400e5604
mov edi, dword [rsi + 0x2c]
jmp 0x1400e5604
mov ecx, r14d
call fcn.1400e4710
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e5604
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400e5604
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e55fd
mov eax, dword [rsi + 0x2c]
jmp 0x1400e5602
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400dcef8
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 0x1400e84b0
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 0x1400e84e0
xor eax, eax
jmp 0x1400e85a3
mov rbp, rbx
cmp word [rax], si
je 0x1400e8505
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400e84ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400e84e8
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.1400e49c4
movsxd r14, eax
test eax, eax
jne 0x1400e8543
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400e84d9
mov rcx, r14
call fcn.1400e2938
mov rdi, rax
test rax, rax
jne 0x1400e855c
xor ecx, ecx
call fcn.1400e1fa8
jmp 0x1400e8538
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.1400e49c4
test eax, eax
jne 0x1400e858d
mov rcx, rdi
call fcn.1400e1fa8
jmp 0x1400e8597
xor ecx, ecx
call fcn.1400e1fa8
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 0x1400e85c0
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 0x1400e8647
mov rsi, rbx
cmp word [rax], bp
je 0x1400e8606
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e85f0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e85ec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e2938
mov rdi, rax
test rax, rax
je 0x1400e8634
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c98d0
mov rbp, rdi
xor ecx, ecx
call fcn.1400e1fa8
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 0x1400e9ccc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400e9cec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400d2278
or eax, 0xffffffff
jmp 0x1400e9cee
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400eb9c4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14011f7a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400eba0e
call fcn.1400d22e4
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400d2304
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400e0e38
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c8a50
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400eba19
lea eax, [rbx + 1]
jmp 0x1400eb9fb
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400eb9f9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400eb9fb
Function at 0x1400ed420
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.1400d1c50
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ed4aa
cmp byte [rbp - 0x21], r15b
je 0x1400ed4a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ed4e0
call fcn.1400e2250
test eax, eax
jne 0x1400ed4cc
cmp byte [rbp - 0x21], r15b
je 0x1400ed4c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ed4e0
cmp byte [rbp - 0x21], r15b
je 0x1400ed4dd
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.1400d13ec
test eax, eax
jne 0x1400ed580
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400d1c50
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ed51f
cmp byte [rbp - 0x21], r15b
je 0x1400ed554
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ed554
call fcn.1400e2250
test eax, eax
jne 0x1400ed540
cmp byte [rbp - 0x21], r15b
je 0x1400ed539
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ed554
cmp byte [rbp - 0x21], r15b
je 0x1400ed551
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.1400d13ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ed580
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ed583
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ed591
mov rcx, rdi
call fcn.1400e1fa8
cmp byte [rbp + 0x3f], r15b
je 0x1400ed5a0
mov rcx, qword [rbp + 0x27]
call fcn.1400e1fa8
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
Function at 0x44e120
Capabilities:
Parse pe header
Terminate process

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x44e141
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x44e162
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x44e1a0
cmp ecx, 0x20b
je 0x44e17e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
cmp dword [rax + 0x84], 0xe
ja 0x44e18f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
cmp dword [rax + 0x74], 0xe
ja 0x44e1ae
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x0046eca8], 0xffffffffffffffff
mov qword [0x0046ecb0], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x0046cc8c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x0046cc88]
mov dword [rcx], eax
call fcn.0044cf50
cmp dword [0x0046c6b0], 0
jne 0x44e217
lea rcx, [fcn.0044cf50]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x0044f488]
lea rcx, [0x0044f480]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x0046cc84]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x0046cc80]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x0044f478]
lea rcx, [0x0044f420]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.0044aadc
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x44e2a3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x44e2c4
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x140005d30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rsi, rdx
mov edi, ecx
xor r14d, r14d
mov ebx, r14d
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
movdqa xmm1, xmmword [0x1402c55b0]
movdqu xmmword [rbp + 0x27], xmm1
mov word [rbp + 0x17], r14w
movups xmmword [rbp - 9], xmm0
movdqu xmmword [rbp + 7], xmm1
mov word [rbp - 9], r14w
mov qword [rbp + 0x7f], r14
lea rdx, [rbp + 0x17]
lea ecx, [r14 + 0xf]
call fcn.1400a9720
lea rdx, [rbp - 9]
lea ecx, [r14 + 0x10]
call fcn.1400a9720
test edi, edi
jne 0x140005e1c
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 8
cmovae rdx, qword [rbp + 0x17]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
mov edi, 1
mov r9d, edi
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005e97
mov dword [rbp + 0x67], r14d
mov dword [rbp + 0x77], 4
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x67]
xor r8d, r8d
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005e97
cmp dword [rbp + 0x67], 4
jne 0x140005e97
mov ebx, edi
jmp 0x140005e97
cmp edi, 1
jne 0x140005e97
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 8
cmovae rdx, qword [rbp + 0x17]
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005e97
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
lea r9d, [rdi + 3]
xor r8d, r8d
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove ebx, edi
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140005ea7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140005ee3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ede
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005f47
call fcn.140086a30
movdqa xmm0, xmmword [0x1402c55b0]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r14w
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x140005f31
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005f41
call fcn.140086a30
mov eax, ebx
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140037b28
nop
call fcn.140037b28
nop
int3
Function at 0x140008680
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.1400ef1a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400ef1a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400087d0
cmp rax, 0xffffffffffffffff
je 0x1400087d0
xor edi, edi
test rbp, rbp
jle 0x14000877b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140093418
mov rbx, rax
test rax, rax
jne 0x140008708
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140008771
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e3970
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.140086720
cmp eax, 0xffffffff
je 0x140008751
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140008718
mov edx, r15d
mov ecx, r14d
call fcn.1400e3970
jmp 0x140008771
cmp byte [rsi + 0x38], dil
je 0x140008768
cmp dword [rsi + 0x34], 5
jne 0x140008768
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140008771
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400422b8
jmp 0x1400087e4
jns 0x1400087e4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400ef1a8
cmp rax, 0xffffffffffffffff
jne 0x14000879c
cmp byte [rsi + 0x30], dil
je 0x1400087e4
mov edi, dword [rsi + 0x2c]
jmp 0x1400087e4
mov ecx, r14d
call fcn.14007d72c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400087e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400087e4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400087dd
mov eax, dword [rsi + 0x2c]
jmp 0x1400087e2
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400ef1a8
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 0x140010c60
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call fcn.140055458
test rax, rax
je 0x140010c96
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x140012740
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1400b7950
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.14004ddd4
mov rcx, rdi
mov rsi, rax
call fcn.14004ddd4
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1400127f0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1400b7950
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400584a0
cmp rax, 0x3e8
ja 0x140012821
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1400127a0
test rsi, rsi
je 0x1400127fd
mov rcx, rsi
call fcn.140034090
test rbx, rbx
je 0x14001280a
mov rcx, rbx
call fcn.140034090
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14001282e
mov rcx, rsi
call fcn.140034090
test rbx, rbx
je 0x14001283b
mov rcx, rbx
call fcn.140034090
mov eax, 1
jmp 0x14001280c
Function at 0x14001bbc0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x14001bc25
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x14001bbd0
ret
Function at 0x14002538c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400253ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400617c4
or eax, 0xffffffff
jmp 0x1400253ae
xor eax, eax
add rsp, 0x28
ret