joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029c60
Capabilities:
Read 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 [0x1400b9ba8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140029ca4
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_NtReadFile]
cmp eax, 0x103
jne 0x140029d03
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140029d12
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140029d4a
cmp eax, 0x103
je 0x140029d54
test eax, eax
js 0x140029d2f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140029d4a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x1400b9c08]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.14001d4f0
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140022a40
mov rcx, rax
call fcn.14001da90
mov ecx, 7
int 0x29
ud2

Function at 0x140029db0
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 [0x1400b9ba8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140029df4
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 0x140029e5a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140029e91
test eax, eax
js 0x140029e6b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140029e84
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x1400b9c08]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.14001d4f0
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140022a40
mov rcx, rax
call fcn.14001da90
mov ecx, 7
int 0x29
ud2
Function at 0x14002b210
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14002b248
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14002b260
nop
add rsp, 0x38
ret

Function at 0x14002b260
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 0x14002b2a3
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, [0x140021140]
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.1400a5350
ud2
Function at 0x140038ad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140038b4a
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 0x140038b40
cmp r11, r10
ja 0x140038be3
cmp r10, rdx
ja 0x140038bf7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140038b42
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140038b20
jmp 0x140038bb7
ja 0x140038b4a
mov r11, r10
cmp rax, r8
jne 0x140038af2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140038bbb
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 0x140038b90
mov r8, r10
sub ecx, r9d
jns 0x140038bae
jmp 0x140038bbd
cmp r10, rdx
je 0x140038bc9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140038bbd
xor al, 1
cmp r8, rdx
jne 0x140038b70
jmp 0x140038bbd
xor eax, eax
jmp 0x140038bbd
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__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400a53f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400a5850
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400a57e0
ud2

Function at 0x14003a070
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
cmp rbx, 0x20
jb 0x14003a14d
mov rdx, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
mov rax, rdx
mov r8, qword [rcx + 0x10]
mov r11, r9
mov r10, qword [rcx + 0x20]
rol r11, 0xc
rol rax, 1
add r11, rax
mov qword [rsp + 0x30], rsi
movabs rsi, 0x9e3779b185ebca87
mov qword [rsp + 0x38], rdi
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, r8
rol rax, 7
add r11, rax
mov rax, r10
imul rdx, rdi
imul r8, rdi
imul r10, rdi
imul r9, rdi
mov rdi, qword [rsp + 0x38]
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
imul rdx, rsi
movabs rax, 0x7a1435883d4d519d
rol r8, 0x1f
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r8, rsi
imul r10, rsi
sub r11, rax
rol r9, 0x1f
xor r11, r8
imul r11, rsi
imul r9, rsi
sub r11, rax
xor r11, r9
imul r11, rsi
sub r11, rax
xor r11, r10
movabs r10, 0x85ebca77c2b2ae63
imul r11, rsi
mov rsi, qword [rsp + 0x30]
add r10, r11
jmp 0x14003a15e
mov r10, qword [rcx + 0x18]
movabs rdx, 0x27d4eb2f165667c5
add r10, rdx
add r10, rbx
lea rdx, [rcx + 0x28]
mov rcx, r10
xor r9d, r9d
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.140039f70
Function at 0x1400a33a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a33ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a33ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a33ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a33ee
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a33ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a33f0
xor al, al
add rsp, 0x28
ret
Function at 0x1400214c0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x7a8]
sub rsp, 0x8a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140232230]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14002161e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002161e
mov r9, rbx
lea r8, str.Cant_delete_file___s___
mov edx, 0x400
lea rcx, [rbp - 0x70]
call fcn.140167410
lea rax, [rsp + 0x50]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], 7
xor edi, edi
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
cmp word [rbp - 0x70], di
jne 0x140021562
mov r8d, edi
jmp 0x14002157a
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x140021570
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.14000dc20
nop
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str._path___remove_
lea rcx, [rsp + 0x20]
call fcn.14000dc20
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x20]
call fcn.140078b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.1401670f4
nop
lea rax, vtable.win32_error.0
mov qword [rsp + 0x20], rax
lea rax, str.DeleteFile
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], ebx
lea rax, vtable.path_error.0
mov qword [rsp + 0x20], rax
lea rdx, [0x14022d858]
lea rcx, [rsp + 0x20]
call fcn.140170da8
int3
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.140166980
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14002c0e0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140232230]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x14002c314
cmp byte [rcx + 0x81], 0
je 0x14002c314
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14002c141
xor al, al
jmp 0x14002c316
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov r15d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp r15, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
nop word [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x30]
cmovae r8, r10
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
test eax, eax
je 0x14002c1d4
dec eax
jne 0x14002c2ce
jmp 0x14002c1db
mov byte [rdi + 0x81], 0
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x14002c229
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.140168220
cmp rbx, rax
jne 0x14002c2d3
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
cmp byte [rdi + 0x81], 0
je 0x14002c2f1
test rbx, rbx
jne 0x14002c190
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x20]
sub rax, r8
cmp rax, 8
jbe 0x14002c2e4
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x14002c2d7
cmp r9, rbx
jae 0x14002c279
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140001dc0
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
jmp 0x14002c295
test rbx, rbx
jne 0x14002c29e
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], bl
jmp 0x14002c17b
test rbx, rbx
je 0x14002c190
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x20]
xor edx, edx
mov qword [rax + rcx], rdx
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rbx + rax], dl
jmp 0x14002c17b
sub eax, 2
je 0x14002c2f1
xor bl, bl
jmp 0x14002c2f3
lea rcx, [0x1401b5938]
call fcn.140144f6c
int3
lea rcx, [0x1401b5938]
call fcn.140144f6c
int3
mov bl, 1
cmp qword [rbp - 0x18], 0x10
jb 0x14002c303
mov rcx, qword [rbp - 0x30]
call fcn.1401669a0
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], 0
movzx eax, bl
jmp 0x14002c316
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140166980
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002db90
Capabilities:
Terminate process

Disassembly:
test eax, esi
add byte [rax], al
add byte [rax - 0x7b], cl
sal byte [rax + rdx*2 + 0x48], 0x8b
mov rax, qword [rax + 4]

Function at 0x140030140
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov rax, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov edx, 0x405
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbp, rax
test rax, rax
je 0x1400301f5
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [rax + 1]
movsxd rcx, ebx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140145c6c
mov rdi, rax
mov qword [rsp + 0x68], rax
mov r8d, ebx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd r8, eax
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r14
mov word [rsi], r14w
mov rdx, rdi
mov rcx, rsi
call fcn.14000dc20
mov dword [rsp + 0x20], 1
mov rcx, rdi
call fcn.140167434
jmp 0x140030220
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r14
mov word [rsi], r14w
xor r8d, r8d
lea rdx, [0x1401b6720]
mov rcx, rsi
call fcn.14000dc20
nop
mov dword [rsp + 0x20], 1
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400405a0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov rax, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov edx, 0x437
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbp, rax
test rax, rax
je 0x140040655
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [rax + 1]
movsxd rcx, ebx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140145c6c
mov rdi, rax
mov qword [rsp + 0x68], rax
mov r8d, ebx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd r8, eax
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r14
mov word [rsi], r14w
mov rdx, rdi
mov rcx, rsi
call fcn.14000dc20
mov dword [rsp + 0x20], 1
mov rcx, rdi
call fcn.140167434
jmp 0x140040680
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r14
mov word [rsi], r14w
xor r8d, r8d
lea rdx, [0x1401b6720]
mov rcx, rsi
call fcn.14000dc20
nop
mov dword [rsp + 0x20], 1
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x1400406a0
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x140232230]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x30]
call fcn.140021800
nop
cmp qword [rax + 0x18], 8
jb 0x1400406d8
mov rax, qword [rax]
lea rdx, [0x1401c5010]
mov rcx, rax
call fcn.140167854
mov rdi, rax
cmp qword [rsp + 0x48], 8
jb 0x1400406fc
mov rcx, qword [rsp + 0x30]
call fcn.1401669a0
mov qword [rsp + 0x48], 7
xor eax, eax
mov qword [rsp + 0x40], rax
mov word [rsp + 0x30], ax
test rdi, rdi
jne 0x140040750
lea rax, str.file_does_not_exist
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14016707c
nop
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x30], rax
lea rdx, [0x14022d968]
lea rcx, [rsp + 0x30]
call fcn.140170da8
int3
mov r9, rdi
mov edx, 1
lea r8d, [rdx + 5]
lea rcx, [rsp + 0x50]
call fcn.14016968c
mov rbx, rax
mov rcx, rdi
call fcn.1401679bc
cmp rbx, 2
jb 0x1400407c4
mov ecx, dword [rsp + 0x50]
cmp cl, 0x1f
jne 0x14004078e
cmp byte [rsp + 0x51], 0x8b
jne 0x14004078e
mov eax, 2
jmp 0x1400407c6
cmp rbx, 4
jb 0x1400407c4
cmp ecx, dword [0x1401c502c]
jne 0x1400407a3
mov eax, 1
jmp 0x1400407c6
cmp rbx, 6
jne 0x1400407c4
cmp ecx, dword [0x1401c5034]
jne 0x1400407c4
movzx eax, word [rsp + 0x54]
cmp ax, word [0x1401c5038]
jne 0x1400407c4
lea eax, [rbx - 3]
jmp 0x1400407c6
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140166980
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14004d5d0
Capabilities:
Create process on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1a8], rbx
mov rax, qword [0x140232230]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, rcx
dec edx
je 0x14004d790
sub edx, 0x4bd
je 0x14004d730
dec edx
je 0x14004d708
cmp edx, 3
jne 0x14004d7d0
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x38], bx
lea r8d, [rdx + 0x2f]
lea rdx, [0x1401c8200]
lea rcx, [rsp + 0x38]
call fcn.14000dc20
nop
cmp qword [0x140239bc0], rbx
je 0x14004d6da
lea rdx, [0x1401c8268]
lea rcx, [rbp - 0x80]
call fcn.140021a10
nop
lea rdx, [0x140239bb0]
mov rcx, rax
call fcn.14000cbd0
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.14000d8f0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000d720
nop
cmp qword [rsp + 0x70], 8
jb 0x14004d6be
mov rcx, qword [rsp + 0x58]
call fcn.1401669a0
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
lea rcx, [rbp - 0x80]
call fcn.1400090e0
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r8, qword [rsp + 0x38]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
jmp 0x14004d769
mov dword [rsp + 0x28], 5
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [0x1401c8180]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x14004d7d0
lea rcx, [rsp + 0x38]
call fcn.14004d4a0
nop
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r8, qword [rsp + 0x38]
mov dword [rsp + 0x28], 5
xor ebx, ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
cmp qword [rsp + 0x50], 8
jb 0x14004d77b
mov rcx, qword [rsp + 0x38]
call fcn.1401669a0
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x38], bx
jmp 0x14004d7d0
cmp dword [0x1402391ec], 0
je 0x14004d7c2
mov edx, 0x4c1
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x14004d7c2
mov byte [0x140239bf0], al
lea rdx, str.peerblock.conf
lea rcx, [0x140239840]
call fcn.140014180
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EndDialog]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140166980
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x190
pop rbp
ret
Function at 0x14007aad0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140232230]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x14007ad04
cmp byte [rcx + 0x82], 0
je 0x14007ad04
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + 0x18]
cmp bx, ax
jne 0x14007ab35
xor al, al
jmp 0x14007ad06
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov r15d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], r14b
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp r15, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
nop word [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x30]
cmovae r8, r10
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
test eax, eax
je 0x14007abc4
dec eax
jne 0x14007acbe
jmp 0x14007abcb
mov byte [rdi + 0x82], 0
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x14007ac19
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.140168220
cmp rbx, rax
jne 0x14007acc3
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
cmp byte [rdi + 0x82], 0
je 0x14007ace1
test rbx, rbx
jne 0x14007ab80
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x20]
sub rax, r8
cmp rax, 8
jbe 0x14007acd4
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x14007acc7
cmp r9, rbx
jae 0x14007ac69
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140001dc0
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
jmp 0x14007ac85
test rbx, rbx
jne 0x14007ac8e
mov qword [rbp - 0x20], r14
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], bl
jmp 0x14007ab6f
test rbx, rbx
je 0x14007ab80
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x20]
xor edx, edx
mov qword [rax + rcx], rdx
mov qword [rbp - 0x20], rbx
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov byte [rbx + rax], dl
jmp 0x14007ab6f
sub eax, 2
je 0x14007ace1
xor bl, bl
jmp 0x14007ace3
lea rcx, [0x1401b5938]
call fcn.140144f6c
int3
lea rcx, [0x1401b5938]
call fcn.140144f6c
int3
mov bl, 1
cmp qword [rbp - 0x18], 0x10
jb 0x14007acf3
mov rcx, qword [rbp - 0x30]
call fcn.1401669a0
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x30], 0
movzx eax, bl
jmp 0x14007ad06
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140166980
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140126310
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x140232230]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp dword [rcx + 0x3d0], 0
mov rax, qword [rsp + 0x130]
mov r14, r9
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x14012643d
test rax, rax
je 0x14012643d
mov rdx, qword [rax + 0xb0]
test rdx, rdx
je 0x14012643d
mov ecx, esi
lea r9, str.Data
dec ecx
je 0x140126397
dec ecx
je 0x140126387
dec ecx
je 0x14012639e
dec ecx
je 0x14012638e
jmp 0x14012643d
lea r9, str.Header
lea rax, [0x1401e0c78]
jmp 0x1401263a5
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
lea rcx, [rsp + 0x30]
mov edx, 0xa0
mov qword [rsp + 0x20], rax
call fcn.1401320d0
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1401263d0
mov r10, qword [rdi + 0x1f8]
test r10, r10
je 0x140126407
mov rax, qword [rdi + 0x148]
lea r8, [rsp + 0x30]
mov r9, rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call r10
test eax, eax
je 0x14012643d
jmp 0x14012644d
mov r9, qword [rdi + 0x140]
mov edx, 2
lea rcx, [0x1401c26c8]
lea r8d, [rdx - 1]
call fcn.140168220
mov r9, qword [rdi + 0x140]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.140168220
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.140126270
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140166980
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret