joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ee90
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1400299a0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.140038940
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140014bf0]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.140014990
cmp qword [rbp + 0xfe8], 0
jne 0x14000f067
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x14000f033
cmp r12, 0x1000
ja 0x14000f089
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x14000f007
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14000efb0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14000f00d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x14000eff0
jbe 0x14000ef60
jmp 0x14000f075
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x14000ef15
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140003ba0
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140003ba0
jmp 0x14000f033
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140039e80
jmp 0x14000f09d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140039e00
ud2
Function at 0x1400124c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14003ddc8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140012504
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001256a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400125a1
test eax, eax
js 0x14001257b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140012594
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14000bbb0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140004110
mov ecx, 7
int 0x29
ud2
Function at 0x14001a5e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14001a623
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14000ade0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140039900
ud2
Function at 0x140028720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002879a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140028790
cmp r11, r10
ja 0x140028833
cmp r10, rdx
ja 0x140028847
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140028792
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140028770
jmp 0x140028807
ja 0x14002879a
mov r11, r10
cmp rax, r8
jne 0x140028742
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002880b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400287e0
mov r8, r10
sub ecx, r9d
jns 0x1400287fe
jmp 0x14002880d
cmp r10, rdx
je 0x140028819
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002880d
xor al, 1
cmp r8, rdx
jne 0x1400287c0
jmp 0x14002880d
xor eax, eax
jmp 0x14002880d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400399b0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140039e80
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140039e00
ud2

Function at 0x140029ed0
Capabilities:
Parse pe header

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

Function at 0x14002e714
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002e510
Function at 0x1400317dc
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 0x14003180c
xor eax, eax
jmp 0x1400318cf
mov rbp, rbx
cmp word [rax], si
je 0x140031831
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140031818
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140031814
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.1400316fc
movsxd r14, eax
test eax, eax
jne 0x14003186f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140031805
mov rcx, r14
call fcn.1400326b8
mov rdi, rax
test rax, rax
jne 0x140031888
xor ecx, ecx
call fcn.14002fd5c
jmp 0x140031864
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.1400316fc
test eax, eax
jne 0x1400318b9
mov rcx, rdi
call fcn.14002fd5c
jmp 0x1400318c3
xor ecx, ecx
call fcn.14002fd5c
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 0x140034dc0
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.1400307cc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140034e4a
cmp byte [rbp - 0x21], r15b
je 0x140034e45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140034e80
call fcn.140032ec8
test eax, eax
jne 0x140034e6c
cmp byte [rbp - 0x21], r15b
je 0x140034e64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140034e80
cmp byte [rbp - 0x21], r15b
je 0x140034e7d
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.14002fdac
test eax, eax
jne 0x140034f20
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400307cc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140034ebf
cmp byte [rbp - 0x21], r15b
je 0x140034ef4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140034ef4
call fcn.140032ec8
test eax, eax
jne 0x140034ee0
cmp byte [rbp - 0x21], r15b
je 0x140034ed9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140034ef4
cmp byte [rbp - 0x21], r15b
je 0x140034ef1
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.14002fdac
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140034f20
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140034f23
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140034f31
mov rcx, rdi
call fcn.14002fd5c
cmp byte [rbp + 0x3f], r15b
je 0x140034f40
mov rcx, qword [rbp + 0x27]
call fcn.14002fd5c
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 0x140037e20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140037e48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140037e48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001230
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov eax, dword [rdx]
mov rdi, rdx
mov dword [rcx], eax
mov rbx, rcx
mov eax, dword [rdx]
bt eax, 0xe
jb 0x180001264
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
jmp 0x180001398
cmp eax, 0x43ca
jg 0x180001344
je 0x18000131b
sub eax, 0x4002
cmp eax, 0x61
ja case.0x18000129e.16387
lea rdx, [0x180000000]
cdqe
movzx eax, byte [rdx + rax + 0x13c0]
mov ecx, dword [rdx + rax*4 + 0x13b4]
add rcx, rdx
jmp rcx
mov ecx, 0x20
call fcn.180004150
mov rsi, rax
xor eax, eax
mov byte [rsi + 0x18], al
lea r14, [rsi + 0x18]
mov dword [rsi], eax
mov qword [rsi + 0x10], 1
mov word [rsi + 0x19], 1
mov qword [rbx + 8], rsi
mov rdi, qword [rdi + 8]
cmp rsi, rdi
je 0x180001398
mov qword [rsi + 0x10], rax
mov rcx, rsi
mov rdx, qword [rdi + 0x10]
call fcn.180003150
cmp byte [rdi + 0x19], 0
mov rdx, rdi
mov r8, qword [rdi + 0x10]
jne 0x1800012f8
mov rdx, qword [rdi + 8]
cmp byte [rsi + 0x19], 0
jne 0x180001302
mov rsi, qword [rsi + 8]
lea r8, [r8*4]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [rdi + 0x18]
mov byte [r14], al
jmp 0x180001398
xor eax, eax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x180001332
lock inc dword [rax + 8]
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
jmp 0x180001398
cmp eax, 0x43e6
je case.0x18000129e.16404
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.SYSTEM_ERROR_at_TypedValue_copy_constructor._n
call fcn.180001020
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x180001388
lock inc dword [rax + 8]
mov rax, qword [rdi + 8]
mov qword [rbx + 8], rax
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x10], rax
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180002380
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x6c], 0
mov rdi, rcx
je 0x180002599
mov rcx, qword [rcx + 0x88]
mov qword [rsp + 0x38], rbp
test rcx, rcx
je 0x1800023b7
mov edx, 8
call fcn.180004514
mov rsi, qword [rdi + 0xa8]
xor ebp, ebp
test rsi, rsi
je 0x180002460
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x180002413
mov rdx, qword [rsi + 0x28]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x180002402
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002592
mov rcx, r8
call fcn.180004514
mov qword [rsi + 0x18], rbp
mov qword [rsi + 0x20], rbp
mov qword [rsi + 0x28], rbp
mov rcx, qword [rsi + 8]
mov rax, qword [rcx + 8]
mov qword [rax], rbp
mov rcx, qword [rcx]
test rcx, rcx
je 0x180002445
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.180004514
mov rcx, rbx
test rbx, rbx
jne 0x180002430
mov rcx, qword [rsi + 8]
mov edx, 0x18
call fcn.180004514
mov edx, 0x40
mov rcx, rsi
call fcn.180004514
lea rcx, [rdi + 0xb0]
call fcn.180002a40
mov rbx, qword [rdi + 0xa0]
test rbx, rbx
je 0x1800024a4
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800024a4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1800024a4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rdx, qword [rdi + 0x60]
cmp rdx, 0x10
jb 0x1800024df
mov rcx, qword [rdi + 0x48]
inc rdx
cmp rdx, 0x1000
jb 0x1800024da
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002592
mov rcx, r8
call fcn.180004514
mov qword [rdi + 0x58], rbp
mov qword [rdi + 0x60], 0xf
mov byte [rdi + 0x48], bpl
mov rdx, qword [rdi + 0x40]
cmp rdx, 0x10
jb 0x180002526
mov rcx, qword [rdi + 0x28]
inc rdx
cmp rdx, 0x1000
jb 0x180002521
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002592
mov rcx, r8
call fcn.180004514
mov qword [rdi + 0x38], rbp
mov qword [rdi + 0x40], 0xf
mov byte [rdi + 0x28], bpl
mov rdx, qword [rdi + 0x20]
cmp rdx, 0x10
jb 0x18000256d
mov rcx, qword [rdi + 8]
inc rdx
cmp rdx, 0x1000
jb 0x180002568
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002592
mov rcx, r8
call fcn.180004514
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov qword [rdi + 0x18], rbp
mov byte [rdi + 8], bpl
mov rbp, qword [rsp + 0x38]
mov qword [rdi + 0x20], 0xf
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rcx, 8
call fcn.180002df0
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.SYSTEM_ERROR:_illegal_destructor_call._can_not_forget_the_word__s_n
mov rcx, rax
call fcn.180001020
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1800028a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 0x10
lea rsi, [rcx + 0xb0]
mov r10, qword [rdx + 0x10]
mov rdi, rdx
mov rbx, rcx
jb 0x1800028ca
mov rdx, qword [rdx]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x180002904
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
inc r8
xor r9, rax
imul r9, rcx
cmp r8, r10
jb 0x1800028f0
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180003d60
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x180002921
mov rcx, qword [rsi + 8]
cmp rcx, qword [rbx + 0xb8]
je 0x18000293c
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ebx, dword [rbx + 0xc0]
lea rdx, [rsp + 0x20]
mov r8, rdi
mov rcx, rsi
call fcn.1800034b0
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rax]
mov al, 1
mov dword [rcx + 0x30], ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180002970
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 0x10
mov rbx, rdx
mov r10, qword [rdx + 0x10]
mov rsi, rcx
jb 0x180002993
mov rdx, qword [rdx]
xor r8d, r8d
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x1800029c4
movabs rcx, 0x100000001b3
nop
movzx eax, byte [r8 + rdx]
inc r8
xor r9, rax
imul r9, rcx
cmp r8, r10
jb 0x1800029b0
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0xb0]
call fcn.180003d60
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x1800029e8
mov rcx, qword [rsi + 0xb8]
cmp rcx, qword [rsi + 0xb8]
jne 0x180002a06
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0xb0]
call fcn.1800034b0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rax]
mov eax, dword [rcx + 0x30]
add rsp, 0x30
pop rdi
ret
Function at 0x140002fb0
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1060
call fcn.14000f590
sub rsp, rax
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003051
nop
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140003051
mov r9d, eax
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.140009340
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003010
mov rax, qword [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmp qword [rsp + 0x38], rax
je 0x1400030ae
lea rdx, str.Sending_data_of_size:
call fcn.140007a50
mov rdx, qword [rsp + 0x40]
sub rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x140007df0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
sub r8, rdx
xor r9d, r9d
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_send]
jmp 0x1400030cb
lea rdx, str.No_data_to_send.
call fcn.140007a50
lea rdx, [0x140007df0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000310a
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003105
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003105
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ea70
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000e460
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005680
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11c0]
mov eax, 0x12c0
call fcn.14000f590
sub rsp, rax
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rbp + 0x11b0], rax
lea r8, [rsp + 0x78]
mov edx, 0x1000
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x140005879
mov r12d, dword [rsp + 0x78]
shr r12d, 2
movups xmm0, xmmword [str._unknown_]
movaps xmmword [rbp + 0xfa0], xmm0
mov eax, dword [0x1400121b8]
mov dword [rbp + 0xfb0], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0xfb4]
call sub.VCRUNTIME140.dll_memset
xor r13d, r13d
mov r15d, r13d
test r12d, r12d
je 0x140005879
lea r14, [rbp - 0x60]
mov r8d, dword [r14]
test r8d, r8d
je 0x140005869
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140005869
lea r9, [rbp - 0x68]
mov r8d, 8
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140005860
mov r9d, 0x104
lea r8, [rbp + 0xfa0]
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
lea r8d, [rax + 0xd]
lea rdx, str.wireshark.exe
lea rcx, [rsp + 0x30]
call fcn.140008460
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov r8d, recv
lea rdx, str.dumpcap.exe
lea rcx, [rsp + 0x50]
call fcn.140008460
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140006320
nop
lea r9, [fcn.140001e00]
mov edx, 0x20
lea r8d, [rdx - 0x1e]
lea rcx, [rsp + 0x30]
call fcn.14000e758
mov rbx, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x78]
cmp rbx, rdi
je 0x140005857
nop word [rax + rax]
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000583d
mov rdx, qword [rbx]
lea rcx, [rbp + 0xfa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400058ab
add rbx, 0x20
cmp rbx, rdi
jne 0x140005830
lea rcx, [rbp - 0x80]
call fcn.140007160
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r15d
add r14, 4
cmp r15d, r12d
jb 0x140005724
xor al, al
mov rcx, qword [rbp + 0x11b0]
xor rcx, rsp
call fcn.14000e460
lea r11, [rsp + 0x12c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x80]
call fcn.140007160
mov al, 1
jmp 0x14000587b