joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026d00
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x1400358b0]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [0x14003cd48], 0
je 0x140026d2f
mov eax, dword [0x14003cd48]
jmp 0x140026e30
mov dword [rsp + 0x40], 0x11c
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 0x118
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea rdx, [0x14002e450]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140026d86
lea rcx, [rsp + 0x40]
call qword [rsp + 0x20]
jmp 0x140026d9e
xor r9d, r9d
lea r8, [rsp + 0x4c]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x44]
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [rsp + 0x44], 5
jne 0x140026db8
cmp dword [rsp + 0x48], 1
jne 0x140026db8
mov dword [0x14003cd48], 0x33
jmp 0x140026e2a
cmp dword [rsp + 0x44], 6
jne 0x140026dd2
cmp dword [rsp + 0x48], 1
jne 0x140026dd2
mov dword [0x14003cd48], 0x3d
jmp 0x140026e2a
cmp dword [rsp + 0x44], 6
jne 0x140026dec
cmp dword [rsp + 0x48], 2
jne 0x140026dec
mov dword [0x14003cd48], 0x3e
jmp 0x140026e2a
cmp dword [rsp + 0x44], 6
jne 0x140026e06
cmp dword [rsp + 0x48], 3
jne 0x140026e06
mov dword [0x14003cd48], 0x3f
jmp 0x140026e2a
cmp dword [rsp + 0x44], 0xa
jne 0x140026e20
cmp dword [rsp + 0x48], 0
jne 0x140026e20
mov dword [0x14003cd48], 0x64
jmp 0x140026e2a
mov dword [0x14003cd48], 0
mov eax, dword [0x14003cd48]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14002cd90
add rsp, 0x170
pop rdi
ret
Function at 0x140027270
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x300
mov rax, qword [0x1400358b0]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov dword [rsp + 0x60], 0xc0000001
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x78], rax
xor eax, eax
mov word [rsp + 0x70], ax
mov eax, 0x208
mov word [rsp + 0x72], ax
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 6
lea rdx, [0x14002e490]
mov rax, qword [rsp + 0x310]
mov rcx, qword [rax + 8]
call qword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
cmp rax, 6
jne 0x140027310
lea rdx, [0x14002e4a0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov dword [rsp + 0x60], eax
jmp 0x140027326
lea rdx, [0x14002dc70]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x310]
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xb0], 0x40
lea rax, [rsp + 0x70]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x98]
mov edx, 0x80000000
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x1400274ee
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0xc8]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x1400274ee
mov rax, qword [rsp + 0x320]
mov ecx, dword [rsp + 0xd0]
mov dword [rax], ecx
mov rax, qword [rsp + 0x320]
mov eax, dword [rax]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rcx, qword [rsp + 0x318]
mov qword [rcx], rax
mov rax, qword [rsp + 0x320]
mov eax, dword [rax]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x318]
mov rdi, qword [rcx]
xor eax, eax
mov rcx, qword [rsp + 0x80]
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x320]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x318]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x1400274ee
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x60]
jmp 0x1400274f2
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.14002cd90
add rsp, 0x300
pop rdi
ret
Function at 0x140027800
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x10325476
ret

Function at 0x14002c490
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp qword [rsp + 0x20], 0
jne 0x14002c4ae
mov dword [rsp], 0xffffffff
jmp 0x14002c507
mov eax, dword [0x1400358a0]
mov dword [rsp], eax
cmp dword [rsp + 0x28], 0
je 0x14002c507
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x1400354a0]
mov edx, dword [rsp]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov dword [rsp], eax
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x14002c4be
mov eax, dword [rsp]
mov dword [0x1400358a0], eax
mov eax, dword [rsp]
xor eax, 0xffffffff
add rsp, 0x18
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140002b10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004530
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004530
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002cb0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002bcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002c55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002bb0
mov rcx, rbx
call fcn.1400035d0
mov rdi, rax
test rax, rax
je 0x140002cd2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003710
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002cb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002c4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002c60
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002c4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002b10
nop dword [rax]
xor esi, esi
jmp 0x140002bd8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002b10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002b10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003240
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000329c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003293
test rsi, rsi
je 0x140003293
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003278
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400035d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006aa0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400035f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400035f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400035f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000364d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003644
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400035f0
add rax, 0x28
cmp rax, r9
jne 0x140003630
xor eax, eax
ret

Function at 0x140003650
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006aa0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000366f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003678
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000366f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003710
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006aa0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000372f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003738
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x4863c0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x4863fd
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x48648b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x486421
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x486468
cmp ecx, 0x20b
je 0x486440
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
cmp dword [rax + 0x84], 0xe
ja 0x486454
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
cmp dword [rax + 0x74], 0xe
ja 0x486479
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x004bc360], 0xffffffffffffffff
mov qword [0x004bc368], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x004bbde4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x004bbde0]
mov dword [rcx], eax
call fcn.00564000
cmp dword [0x004bb0f0], 0
jne 0x4864e5
lea rcx, [0x00486670]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004879e8]
lea rcx, [0x004879e0]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x004bbddc]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x004bbdd8]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004879d8]
lea rcx, [0x00487930]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x486586
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x486576
cmp al, 0x22
je 0x486576
jmp 0x486560
cmp byte [r8], 0x22
jne 0x486596
inc r8
mov qword [rsp + 0x30], r8
jmp 0x486596
cmp byte [r8], 0x20
jbe 0x486596
inc r8
mov qword [rsp + 0x30], r8
jmp 0x486586
movzx eax, byte [r8]
test al, al
je 0x4865ac
cmp al, 0x20
ja 0x4865ac
inc r8
mov qword [rsp + 0x30], r8
jmp 0x486596
test byte [rsp + 0x8c], 1
je 0x4865c1
movzx r9d, word [rsp + 0x90]
jmp 0x4865c7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.0044a454
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x4865e3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x486607
mov eax, edi
jmp 0x486610
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x1800016e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov r10d, dword [rsp + 0x58]
lea eax, [rcx - 0x35df]
mov ebx, dword [rsp + 0x50]
mov edx, r10d
xor eax, 0x33af
xor edx, 0x145e
xor r10d, 0x2e7e
cmp edx, eax
mov eax, ebx
lea r11d, [rbx - 0x3389]
je 0x180001919
xor eax, 0x26
sub eax, 0x5b6
cmp edx, eax
je 0x1800018d1
mov edx, dword [0x1800590a0]
add edx, 0x15e6
add edx, dword [r9 + 0x10]
mov dword [r9 + 0x64], edx
mov eax, dword [r9 + 0x80]
sub eax, dword [0x1800590ec]
add eax, 0x10a
add eax, edx
mov dword [r9 + 0x64], eax
mov rax, qword [section..data]
add dword [rax + 0x64], 0x123
mov eax, 0xfcfcd8ff
sub eax, dword [r9 + 0x6c]
sub eax, dword [0x18005906c]
add dword [r9 + 0x64], eax
cmp dword [r9 + 0x6c], 0x4860
mov rcx, qword [section..data]
je 0x18000179a
mov eax, 0xbab76
sub eax, dword [rcx + 0x130]
add dword [0x180059074], eax
cmp dword [r9 + 0x1c], 0x12675
jb 0x1800017b2
lea rax, [0x180059170]
mov qword [rcx + 0xa0], rax
xor r10d, r10d
nop word [rax + rax]
movsxd rcx, dword [0x180059078]
mov rax, qword [r9 + 0xa0]
mov r8d, dword [rax + r10]
add r10, 4
imul r8d, dword [r9 + 0x64]
mov rax, qword [r9 + 0xa8]
mov edx, r8d
shr edx, 0x10
mov byte [rcx + rax], dl
inc dword [0x180059078]
mov ecx, dword [r9 + 0xd0]
mov eax, dword [r9 + 0x50]
xor ecx, 2
imul eax, ecx
mov dword [r9 + 0x50], eax
mov rdx, qword [section..data]
mov ecx, dword [rdx + 0x104]
mov eax, dword [rdx + 0x34]
inc ecx
imul eax, ecx
mov dword [rdx + 0x34], eax
mov rdx, qword [section..data]
mov eax, dword [0x180059158]
inc eax
mov ecx, dword [rdx + 0x10]
imul ecx, eax
mov dword [rdx + 0x10], ecx
mov edx, r8d
mov rax, qword [0x1800590b8]
movsxd rcx, dword [r9 + 0x68]
shr edx, 8
mov byte [rcx + rax], dl
inc dword [r9 + 0x68]
mov eax, dword [r9 + 0xec]
xor eax, 0x1bd89d
add dword [0x1800590a0], eax
mov rax, qword [section..data]
movsxd rdx, dword [r9 + 0x68]
mov rcx, qword [rax + 0xa8]
mov byte [rdx + rcx], r8b
inc dword [r9 + 0x68]
mov ecx, dword [r9 + 0xdc]
mov edx, dword [r9 + 0xc4]
add ecx, 0xff0c5a58
mov r8, qword [section..data]
add edx, ecx
or dword [r8 + 0x10], edx
mov rcx, qword [section..data]
mov edx, dword [r9 + 0x140]
sub edx, dword [rcx + 0x90]
xor edx, 0xffee0a9e
sub dword [r9 + 0x134], edx
cmp r10, 0x15a0
jl 0x1800017c0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
mov rcx, qword [section..data]
mov eax, dword [rcx + 0x10c]
xor eax, 0x2e92
cmp dword [0x180059094], eax
jb 0x180001917
mov r8d, dword [0x1800590f8]
mov edx, dword [r9 + 0x130]
imul r8d, r10d
and edx, r11d
or r10d, 0x3389
xor r8d, dword [rcx + 0x148]
mov ecx, r10d
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180001be0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov ebp, dword [rsp + 0x70]
lea eax, [r8 + 0x767]
mov r9, qword [rsp + 0x68]
lea r10d, [r8 + 0x360]
mov edi, ecx
mov esi, r8d
xor edi, 0xb88
lea edx, [rbp - 0x712]
lea ebx, [rbp - 0x35a4]
cmp eax, edx
je 0x180001da5
lea eax, [r10 - 0xd85]
cmp ebx, eax
jg 0x180001d69
mov qword [rsp + 0x40], r14
xor r14d, r14d
mov rdx, qword [section..data]
mov ecx, dword [0x180059060]
mov eax, dword [rdx + 0x130]
sub eax, 0xb9fca
imul ecx, eax
mov dword [0x180059060], ecx
mov eax, dword [r9 + 0xbc]
xor eax, 0x1b8e3e
add dword [rdx + 0x104], eax
mov rax, qword [r9 + 0xa0]
movsxd rcx, dword [0x180059078]
mov r8d, dword [r14 + rax]
add r14, 4
imul r8d, dword [0x180059074]
mov eax, dword [0x1800590ec]
sub dword [0x1800590d4], eax
mov rax, qword [r9 + 0xa8]
mov edx, r8d
shr edx, 0x10
mov byte [rcx + rax], dl
inc dword [0x180059078]
mov rdx, qword [section..data]
mov ecx, dword [rdx + 0x50]
mov eax, dword [rdx + 0x2c]
xor ecx, 0xfff3d0fa
imul eax, ecx
mov dword [rdx + 0x2c], eax
mov edx, r8d
mov eax, dword [r9 + 0xec]
mov ecx, dword [r9 + 0x18]
inc ecx
shr edx, 8
imul eax, ecx
movsxd rcx, dword [r9 + 0x68]
mov dword [r9 + 0xec], eax
mov rax, qword [r9 + 0xa8]
mov byte [rcx + rax], dl
inc dword [r9 + 0x68]
movsxd rcx, dword [r9 + 0x68]
mov rax, qword [0x1800590b8]
mov byte [rcx + rax], r8b
mov eax, 1
sub eax, dword [r9 + 0x10c]
inc dword [r9 + 0x68]
sub eax, dword [0x180059028]
mov rcx, qword [section..data]
add dword [rcx + 0x34], eax
mov eax, dword [r9 + 0xc4]
xor eax, 0xf3a5a8
sub dword [0x180059090], eax
cmp r14, 0x22700
jl 0x180001c41
mov rdx, qword [section..data]
mov r14, qword [rsp + 0x40]
mov eax, dword [rdx + 0x148]
add eax, 0x35931
mov dword [0x180059074], eax
jmp 0x180001dac
lea eax, [rbp + 0x9e8]
xor eax, 0x3fd5
cmp dword [0x18005906c], eax
jb 0x180001da5
mov eax, dword [r9 + 0x60]
sub eax, dword [r9 + 0x124]
add eax, ebx
cmp edi, eax
jae 0x180001da5
mov ecx, dword [r9 + 0x5c]
or ecx, dword [0x180059030]
xor ecx, dword [r9 + 0x5c]
xor ecx, 0x3bc2
mov dword [r9 + 0x5c], ecx
mov rdx, qword [section..data]
lea eax, [rbp - 0x5ad]
cmp r10d, eax
je 0x180001df6
cmp dword [rdx + 0x104], 0x15ead
jae 0x180001dd2
mov eax, 0xffffe7d3
sub eax, dword [0x180059158]
add dword [r9 + 0x64], eax
lea eax, [rbp - 0x6d]
mov ebx, ebp
lea r8d, [r10 - 0xda4]
mov dword [rsp + 0x20], eax
lea edx, [rsi - 0x4b3]
lea ecx, [r10 + 0x413]
call sym.iixfgec031pc.dll_NIBPcz441G
jmp 0x180001e00
mov ecx, ebx
xor ecx, edi
sub dword [rdx + 0x148], ecx
mov rbp, qword [rsp + 0x50]
xor ebx, 0xa71
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180002740
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, dword [rsp + 0x80]
lea r12d, [rdx - 0x3389]
mov esi, dword [rsp + 0x88]
xor r15d, 0x115b
mov ebp, r8d
mov r14d, edx
xor ebp, 0x35a4
xor r14d, 0x1d1b
add esi, 0xffffc79e
lea eax, [r15 - 0x74]
cmp r14d, eax
mov rax, qword [rsp + 0x90]
jle 0x1800027ca
cmp dword [rax + 0x80], 0x12283
je 0x180002884
mov rdx, qword [section..data]
mov eax, 0x1325cc
mov ecx, dword [rdx + 0xbc]
xor ecx, dword [rdx + 0x10]
sub eax, ecx
add dword [rdx + 0x2c], eax
jmp 0x180002884
mov edx, dword [0x180059108]
mov qword [rsp + 0x60], rbx
mov ebx, dword [rax + 0x5c]
mov eax, edx
or eax, 0x2e3d
cmp ebx, eax
je 0x18000287f
mov rcx, qword [section..data]
and ebp, 0x3ebf
mov qword [rsp + 0x68], rdi
nop dword [rax]
cmp dword [rcx + 0x2c], ebp
jb 0x18000286c
mov r8d, dword [rcx + 0x28]
mov eax, r15d
mov edi, dword [0x18005911c]
or eax, 0x2e7e
mov r9d, dword [0x180059104]
sub eax, r14d
mov ecx, dword [rcx + 0x10]
mov r11d, esi
movsxd r10, eax
and edi, esi
imul r11d, r14d
lea eax, [r14 + 0x2e3d]
mov dword [rsp + 0x30], edi
add r9d, 0xffffc02b
mov qword [rsp + 0x28], r10
sub ecx, 0x2e92
imul r8d, r12d
movsxd rdx, eax
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov rcx, qword [section..data]
mov edx, dword [0x180059108]
mov eax, edx
add ebx, 3
or eax, 0x2e3d
cmp ebx, eax
jne 0x180002800
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
lea eax, [rsi + 0x3fd5]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x18000aff0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r11d, dword [rsp + 0x60]
lea ebx, [r8 - 0x2e1e]
add r11d, 0x32b
mov eax, ebx
mov edx, ecx
xor eax, 0x3bc2
xor edx, 0x3fd5
mov edi, r11d
cmp r11d, eax
jg 0x18000b0af
cmp dword [r9 + 0x140], 0x4d5
je 0x18000b041
add dword [0x180059074], 0xfffffcf2
jmp 0x18000b061
mov rdx, qword [section..data]
mov ecx, dword [r9 + 0x1c]
sub ecx, 0x26bf7
mov eax, dword [rdx + 0x140]
imul eax, ecx
mov dword [rdx + 0x140], eax
cmp dword [0x1800590fc], 0xc5c4
jae 0x18000b093
mov eax, dword [r9 + 0xd0]
mov ecx, dword [r9 + 0x1c]
sub ecx, dword [0x180059144]
add ecx, dword [0x180059050]
imul eax, ecx
mov dword [r9 + 0xd0], eax
jmp 0x18000b123
mov rax, qword [section..data]
mov ecx, dword [rax + 0x60]
sub ecx, dword [rax + 0x148]
sub ecx, 0x13e9ab
xor dword [r9 + 0x64], ecx
jmp 0x18000b123
mov eax, dword [r9 + 0x70]
or eax, edi
cmp edx, eax
jne 0x18000b123
mov eax, dword [r9 + 0xdc]
mov r8, qword [section..data]
or eax, ebx
and eax, 0x3ebf
cmp dword [r8 + 0x5c], eax
jbe 0x18000b12a
mov r10d, dword [r8 + 0x50]
sub r11d, dword [r8 + 0x148]
mov ecx, dword [0x180059034]
imul r11d, dword [r8 + 0x18]
add ecx, edx
mov r9d, dword [r9 + 0x28]
sub edi, ecx
mov ecx, dword [r8 + 0xd0]
add r9d, edx
add r10d, dword [0x180059060]
and ecx, ebx
sub ecx, dword [0x180059110]
movsxd rdx, ebx
mov r8d, r11d
or rdx, 0x2e3d
mov qword [rsp + 0x20], r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8, qword [section..data]
lea eax, [rbx + 0x2e92]
cmp edi, eax
jl 0x18000b143
mov eax, dword [r8 + 0x10]
xor eax, 0xf2
sub dword [0x180059074], eax
lea eax, [rbx + 0x3ebf]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret