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

Disassembly:
sub rsp, 0x28
xor eax, eax
cmp word [0x00400000], 0x5a4d
mov dword [0x00407038], 1
mov dword [0x00407034], 1
mov dword [0x00407030], 1
mov dword [0x00407040], 1
je 0x4010b0
mov dword [0x00407008], eax
mov eax, dword [0x00407050]
test eax, eax
je 0x4010a1
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov edx, dword [0x00407060]
mov qword [0x00407998], rax
mov qword [0x00407990], rax
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov dword [rax], edx
call dbg._setargv
cmp dword [0x00403280], 1
je 0x401100
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401063
movsxd rcx, dword [0x0040003c]
lea rdx, [0x00400000]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x401049
movzx ecx, word [rdx + 0x18]
cmp cx, 0x10b
je 0x401113
cmp cx, 0x20b
jne 0x401049
cmp dword [rdx + 0x84], 0xe
jbe 0x401049
mov edx, dword [rdx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401049
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rdx + 0x74], 0xe
jbe 0x401049
mov ecx, dword [rdx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401049
Function at 0x401d10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov ecx, dword [0x00407354]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x401ef5
mov rax, qword [0x00407358]
xor ebx, ebx
nop
mov r9, qword [rax + 8]
cmp rsi, r9
jb 0x401d5c
mov rdx, qword [rax + 0x10]
mov edx, dword [rdx + 8]
add r9, rdx
cmp rsi, r9
jb 0x401e30
add ebx, 1
add rax, 0x18
cmp ebx, ecx
jne 0x401d40
mov rcx, rsi
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401f19
movsxd rbx, ebx
lea r13, [rsp + 0x30]
lea r14, [rbx + rbx*2]
shl r14, 3
mov rbx, r14
add rbx, qword [0x00407358]
mov qword [rbx + 0x10], rax
mov dword [rbx], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov rdx, r13
mov qword [rbx + 8], rax
mov rax, qword [0x00407358]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rax + r14 + 8]
call rbx
test rax, rax
je 0x401efc
mov eax, dword [rsp + 0x54]
cmp eax, 4
jne 0x401eb0
add dword [0x00407354], 1
mov r8d, 0x30
mov rdx, r13
mov rcx, rsi
call rbx
test rax, rax
je 0x401f28
mov eax, dword [rsp + 0x54]
cmp eax, 4
jne 0x401e40
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.memcpy
lea r13, [rsp + 0x30]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x401deb
cmp eax, 0x40
je 0x401e0b
lea r12, [rsp + 0x2c]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r12
call rbx
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call sym.memcpy
mov eax, dword [rsp + 0x54]
cmp eax, 0x40
je 0x401e97
cmp eax, 4
je 0x401e97
mov r9, r12
mov r8d, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call rbx
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp eax, 0x40
je 0x401de4
add r14, qword [0x00407358]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov r9, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401de4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor ebx, ebx
jmp 0x401d67
mov rax, qword [0x00407358]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + r14 + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call dbg.__report_error
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, rsi
mov edx, 0x30
call dbg.__report_error
nop
nop dword [rax]
Function at 0x402500
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00407900]
test rbx, rbx
je 0x402554
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 0x40254b
test rsi, rsi
je 0x40254b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402530
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x00407920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x402750
Capabilities:
Parse pe header

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

Function at 0x402770
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 0x4027b0
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov ecx, dword [rax + 0xc]
mov r8d, ecx
cmp r8, rdx
ja 0x4027a7
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4027b2
add rax, 0x28
cmp rax, r9
jne 0x402794
xor eax, eax
repz ret

Function at 0x402870
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp word [0x00400000], 0x5a4d
lea rbx, [0x00400000]
mov rsi, rcx
je 0x402894
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40288b
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x14000f570
Capabilities:
Encode data using base64

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rdi
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rdx]
test rcx, rcx
jne 0x14000f5bc
xor edx, edx
lea rcx, [0x140183df0]
call fcn.1400a9db0
mov rdx, rax
xor eax, eax
mov rbx, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x10]
mov rsp, rbp
pop rbp
ret
mov qword [rbp + 0x18], rdx
mov rbx, rcx
mov rax, rbx
movabs rdx, 0xaaaaaaaaaaaaaaab
mul rdx
shr rdx, 1
imul rax, rdx, 3
sub rbx, rax
mov rax, rdx
mov rdx, rbx
mov qword [rbp - 8], rdx
mov rdi, qword [rbp + 0x10]
mov r8, qword [rdi + 8]
mov r10, qword [rbp + 0x18]
mov r9, qword [r10 + 8]
xor r11d, r11d
mov rsi, rax
test rsi, rsi
je 0x14000f6b8
movzx edx, byte [r9]
shl edx, 0x10
movzx ecx, byte [r9 + 1]
shl ecx, 8
or edx, ecx
movzx eax, byte [r9 + 2]
or edx, eax
mov eax, edx
sar eax, 0x12
cdqe
mov rbx, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, byte [rax + rbx]
mov rcx, r8
inc r8
mov byte [rcx], dil
add rcx, 1
mov eax, edx
sar eax, 0xc
and eax, 0x3f
cdqe
mov r10, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ebx, byte [rax + r10]
mov rdi, r8
inc r8
mov byte [rdi], bl
add rdi, 1
mov eax, edx
sar eax, 6
and eax, 0x3f
cdqe
mov rcx, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx r10d, byte [rax + rcx]
mov rbx, r8
inc r8
mov byte [rbx], r10b
add rbx, 1
mov eax, edx
and eax, 0x3f
cdqe
mov rdi, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [rax + rdi]
mov r10, r8
inc r8
mov byte [r10], cl
add r10, 1
add r9, 3
inc r11
cmp r11, rsi
jb 0x14000f606
mov rsi, qword [rbp - 8]
test rsi, rsi
je 0x14000f786
movzx edx, byte [r9]
shl edx, 0x10
cmp rsi, 2
jne 0x14000f6dc
movzx ebx, byte [r9 + 1]
shl ebx, 8
jmp 0x14000f6de
xor ebx, ebx
or edx, ebx
mov eax, edx
sar eax, 0x12
cdqe
mov rcx, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, byte [rax + rcx]
mov r10, r8
inc r8
mov byte [r10], dil
add r10, 1
mov eax, edx
sar eax, 0xc
and eax, 0x3f
cdqe
mov rbx, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [rax + rbx]
mov rdi, r8
inc r8
mov byte [rdi], cl
add rdi, 1
cmp rsi, 1
je 0x14000f765
cmp rsi, 2
je 0x14000f731
jmp 0x14000f784
mov eax, edx
sar eax, 6
and eax, 0x3f
cdqe
mov rcx, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx esi, byte [rax + rcx]
mov rdi, r8
inc r8
mov byte [rdi], sil
add rdi, 1
mov rbx, r8
inc r8
mov byte [rbx], 0x3d
add rbx, 1
jmp 0x14000f786
mov edx, 0x3d
mov rax, r8
inc r8
mov byte [rax], dl
add rax, 1
mov rbx, r8
inc r8
mov byte [rbx], dl
add rbx, 1
jmp 0x14000f786
ud2
mov rax, r8
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
sub rax, rdx
mov rbx, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x10]
mov rsp, rbp
pop rbp
ret
Function at 0x14000f7b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x160
mov qword [rbp - 0x140], rbx
mov qword [rbp - 0x138], rsi
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x130]
call fcn.14000e370
mov rbx, qword [rbp - 0x130]
cmp rbx, 0xffffffffffffffff
jne 0x14000f806
lea rsi, [rbp - 0x120]
jmp 0x14000f809
mov rsi, rbx
mov rcx, rsi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
mov byte [rbp - 0x10], al
lea rcx, [rbp - 0x130]
call fcn.14000e7b0
mov al, byte [rbp - 0x10]
mov rbx, qword [rbp - 0x140]
mov rsi, qword [rbp - 0x138]
mov rsp, rbp
pop rbp
ret
Function at 0x14001d320
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
cmp qword [0x1401dbf20], 0
jne 0x14001d3b0
mov eax, 0xf0000040
mov qword [rbp - 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r8
lea rcx, [0x1401dbf20]
call sub.ADVAPI32.dll_CryptAcquireContextW
test eax, eax
jne 0x14001d3b0
mov qword [rbp - 0x20], 0x48
mov r9d, 1
xor r8d, r8d
mov rdx, r8
lea rcx, [0x1401dbf20]
call sub.ADVAPI32.dll_CryptAcquireContextA
test eax, eax
jne 0x14001d3b0
lea rcx, [0x14018ac80]
call fcn.1400a9c50
lea rbx, str.CryptAcquireContext_failed
mov qword [rbp - 8], rbx
mov qword [rbp - 0x10], 0x1a
lea r8, [rbp - 0x10]
xor edx, edx
mov rcx, rax
call fcn.1400bae80
mov rcx, rax
call fcn.1400b3dc0
mov rsp, rbp
pop rbp
ret

Function at 0x14001db40
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rsi
mov rsi, rcx
mov eax, dword [rsi + 0x80]
cmp rax, 0x20
jb 0x14001db81
mov r8, rsi
mov edx, 0x80
mov rcx, qword [0x1401dbf20]
call sub.ADVAPI32.dll_CryptGenRandom
test eax, eax
je 0x14001db5f
mov dword [rsi + 0x80], 0
mov ebx, dword [rsi + 0x80]
mov eax, dword [rsi + rbx*4]
mov rbx, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
mov rsp, rbp
pop rbp
ret
Function at 0x1400463e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rdi
mov rdi, rcx
mov rsi, rdx
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x30]
call fcn.1400bb290
xor al, 1
je 0x140046469
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rcx, [rbp - 0x20]
call fcn.1400bb2c0
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.1400560f0
mov rcx, rsi
call fcn.1400bb3e0
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x30]
call fcn.1400bb290
xor al, 1
jne 0x140046412
mov eax, 1
mov rsi, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rsp, rbp
pop rbp
ret

Function at 0x140049080
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rsi
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x10]
call fcn.1400594c0
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor al, 1
je 0x140049124
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rcx]
call qword [rdx + 0x18]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov r8d, 1
lea rdx, [rbp - 0x30]
lea rcx, [0x1401711b0]
call fcn.1400a9f10
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x10]
shl rbx, 4
add rbx, qword [rbp - 8]
mov qword [rbx - 0x10], rax
mov qword [rbx - 8], rdx
mov rcx, qword [rbp + 0x20]
mov rsi, qword [rcx]
call qword [rsi + reloc.WS2_32.dll_htonl]
xor al, 1
jne 0x1400490c8
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
mov rsp, rbp
pop rbp
ret
Function at 0x1400494d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rdi
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov rdx, qword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
xor esi, esi
cmp qword [rbp - 0x40], rsi
je 0x1400495cd
mov rcx, qword [rbp - 0x38]
lea rbx, [rcx + rsi*8]
mov qword [rbp - 0x30], rbx
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x10]
call fcn.1400595d0
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
mov rbx, qword [rcx]
call qword [rbx + 0x20]
mov rdx, qword [rbp - 0x48]
xor edi, edi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdx
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
mov rbx, qword [rcx]
call qword [rbx + reloc.WS2_32.dll_htonl]
xor al, 1
je 0x1400495c0
mov rdx, qword [rbp - 0x30]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov r8d, 1
lea rdx, [rbp - 0x50]
lea rcx, [0x1401711b0]
call fcn.1400a9f10
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x10]
shl rbx, 4
add rbx, qword [rbp - 8]
mov qword [rbx - 0x10], rax
mov qword [rbx - 8], rdx
mov rdi, qword [rbp - 0x30]
mov rcx, qword [rdi]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
xor al, 1
jne 0x14004955e
inc rsi
cmp rsi, qword [rbp - 0x40]
jb 0x140049517
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x10]
call fcn.140059550
mov rbx, qword [rbp - 0x68]
mov rsi, qword [rbp - 0x60]
mov rdi, qword [rbp - 0x58]
mov rsp, rbp
pop rbp
ret

Function at 0x14004a990
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rdi
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x30]
call fcn.1400bb290
xor al, 1
je 0x14004aa1e
mov rcx, qword [rbp + 0x10]
lea rdi, [rcx - 0x8b0]
mov rcx, rsi
call fcn.14005a460
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov r8, qword [rbp - 0x20]
mov qword [rbp - 0x10], r8
mov r9, qword [rbp - 0x18]
mov qword [rbp - 8], r9
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.140016210
mov rcx, rsi
call fcn.14005a440
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x30]
call fcn.1400bb290
xor al, 1
jne 0x14004a9ce
mov eax, 1
mov rsi, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rsp, rbp
pop rbp
ret
Function at 0x14004ac00
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x150
mov qword [rbp - 0x130], rsi
mov qword [rbp - 0x128], rdi
mov rdi, rcx
mov rsi, rdx
mov rcx, rsi
call fcn.14005aa90
test al, al
je 0x14004ac42
xor eax, eax
xor edx, edx
mov rsi, qword [rbp - 0x130]
mov rdi, qword [rbp - 0x128]
mov rsp, rbp
pop rbp
ret
mov qword [rbp - 0x120], 0
mov qword [rbp - 0x110], 0
mov qword [rbp - 0x108], 0
lea rdx, [rbp - 0x110]
lea rcx, [rbp - 0x120]
call fcn.140015f00
lea rdx, [rbp - 0xe0]
mov rcx, rsi
call fcn.14005ad60
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0xf0], rax
mov qword [rbp - 0xe8], rdx
lea r8, str._s_s
mov qword [rbp - 0xc8], r8
mov qword [rbp - 0xd0], 5
lea r8, [rbp - 0xd0]
mov r9, qword [rbp - 0xf0]
mov rdx, qword [r9 + 8]
mov rax, qword [r9]
mov qword [rbp - 0xc0], rax
mov qword [rbp - 0xb8], rdx
lea rdx, [rbp - 0xc0]
mov rcx, qword [rbp - 0xe8]
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rbp - 0xb0], rax
mov qword [rbp - 0xa8], rcx
lea rcx, [rbp - 0xb0]
call fcn.140024660
mov qword [rbp - 0x100], rax
mov qword [rbp - 0xf8], rdx
mov r8, qword [rbp - 0x100]
mov qword [rbp - 0xa0], r8
mov rdx, qword [rbp - 0xf8]
mov qword [rbp - 0x98], rdx
lea rdx, [rbp - 0xa0]
lea rcx, [rbp - 0x120]
call fcn.140016210
mov rcx, rsi
call fcn.14005ac70
mov rcx, rsi
call fcn.14005aa90
xor al, 1
je 0x14004ae3a
mov rdx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rbp - 0x90], rax
mov qword [rbp - 0x88], rdx
mov r8, qword [rbp - 0x90]
mov qword [rbp - 0x80], r8
mov r9, qword [rbp - 0x88]
mov qword [rbp - 0x78], r9
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x120]
call fcn.140016210
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.14005ad60
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea r8, str._s_s
mov qword [rbp - 0x38], r8
mov qword [rbp - 0x40], 5
lea r8, [rbp - 0x40]
mov r9, qword [rbp - 0x60]
mov rdx, qword [r9 + 8]
mov rax, qword [r9]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x20]
call fcn.140024660
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
mov r8, qword [rbp - 0x70]
mov qword [rbp - 0x10], r8
mov rdx, qword [rbp - 0x68]
mov qword [rbp - 8], rdx
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x120]
call fcn.140016210
mov rcx, rsi
call fcn.14005ac70
mov rcx, rsi
call fcn.14005aa90
xor al, 1
jne 0x14004ad5a
cmp qword [rbp - 0x120], 0
je 0x14004ae55
mov rax, qword [rbp - 0x120]
mov rdx, qword [rax + 0x10]
mov rax, qword [rax + 8]
jmp 0x14004ae59
xor eax, eax
xor edx, edx
mov rsi, qword [rbp - 0x130]
mov rdi, qword [rbp - 0x128]
mov rsp, rbp
pop rbp
ret
Function at 0x14004ae70
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rdi
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x30]
call fcn.1400bb290
xor al, 1
je 0x14004aefe
mov rcx, qword [rbp + 0x10]
lea rdi, [rcx - 0xb90]
mov rcx, rsi
call fcn.14005a460
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov r8, qword [rbp - 0x20]
mov qword [rbp - 0x10], r8
mov r9, qword [rbp - 0x18]
mov qword [rbp - 8], r9
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.140016210
mov rcx, rsi
call fcn.14005a440
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x30]
call fcn.1400bb290
xor al, 1
jne 0x14004aeae
mov eax, 1
mov rsi, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rsp, rbp
pop rbp
ret

Function at 0x14004b120
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rdi
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x30]
call fcn.1400bb290
xor al, 1
je 0x14004b1ae
mov rcx, qword [rbp + 0x10]
lea rdi, [rcx - 0xba8]
mov rcx, rsi
call fcn.14005a460
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov r8, qword [rbp - 0x20]
mov qword [rbp - 0x10], r8
mov r9, qword [rbp - 0x18]
mov qword [rbp - 8], r9
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.140016210
mov rcx, rsi
call fcn.14005a440
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x30]
call fcn.1400bb290
xor al, 1
jne 0x14004b15e
mov eax, 1
mov rsi, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rsp, rbp
pop rbp
ret
Function at 0x14004cfb0
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov qword [rbp - 0x98], rsi
mov qword [rbp - 0x90], rdi
mov rsi, rcx
mov rdi, rdx
cmp qword [rdi], 0
jne 0x14004d031
lea rcx, [0x140183700]
call fcn.1400a9c50
mov rsi, rax
lea rax, str.rawRead_must_take_a_non_empty_buffer
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], 0x24
lea rdx, [rbp - 0x60]
mov qword [rbp - 0xa0], rdx
lea rbx, str.C:Ddmd_2.096.1windows_bin...._srcphobos_std_stdio.d
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x50], reloc.WS2_32.dll_gethostname
lea r9, [rbp - 0x50]
mov r8d, 0x405
xor edx, edx
mov rcx, rsi
call fcn.1400aa910
mov rcx, rax
call fcn.1400b3dc0
mov edx, 0x8000
mov qword [rbp - 0x88], rdx
mov r8, qword [rsi]
mov rcx, qword [r8]
call fcn.14013bb24
mov ecx, eax
mov dword [rbp - 0x40], ecx
mov rdx, qword [rbp - 0x88]
call fcn.14013bbbc
mov dword [rbp - 0x3c], eax
mov r9, qword [rsi]
mov rdx, qword [r9]
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rcx
mov r9, rdx
mov r8, qword [rbp - 0x30]
mov edx, 1
mov rcx, qword [rbp - 0x28]
sub rsp, 0x20
call fcn.14013c030
add rsp, 0x20
mov qword [rbp - 0x38], rax
mov r10, qword [rdi]
cmp r10, qword [rbp - 0x38]
je 0x14004d159
cmp qword [rsi], 0
je 0x14004d0ae
mov r8, qword [rsi]
cmp qword [r8], 0
jne 0x14004d0b3
xor r9d, r9d
jmp 0x14004d0b9
mov r9d, 1
xor r9b, 1
jne 0x14004d0db
mov rcx, qword [rsi]
mov rcx, qword [rcx]
sub rsp, 0x20
call fcn.14013c124
add rsp, 0x20
test eax, eax
jne 0x14004d0db
xor r9d, r9d
jmp 0x14004d0e1
mov r9d, 1
xor r9b, 1
mov qword [rbp - 0x20], rsi
lea rdx, [fcn.140031db0]
mov qword [rbp - 0x18], rdx
lea r8, [rbp - 0x20]
lea r10, str.C:Ddmd_2.096.1windows_bin...._srcphobos_std_stdio.d
mov qword [rbp - 8], r10
mov qword [rbp - 0x10], reloc.WS2_32.dll_gethostname
lea rdx, [rbp - 0x10]
mov ecx, 0x419
sub rsp, 0x20
call fcn.14005ba20
add rsp, 0x20
mov rax, qword [rbp - 0x38]
mov rdx, qword [rdi + 8]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
sub rsp, 8
call fcn.14004d19f
add rsp, 8
mov rdx, qword [rbp - 0x68]
mov rax, qword [rbp - 0x70]
mov rsi, qword [rbp - 0x98]
mov rdi, qword [rbp - 0x90]
mov rsp, rbp
pop rbp
ret
mov rdx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdx
sub rsp, 8
call fcn.14004d19f
add rsp, 8
mov rdx, qword [rbp - 0x78]
mov rax, qword [rbp - 0x80]
mov rsi, qword [rbp - 0x98]
mov rdi, qword [rbp - 0x90]
mov rsp, rbp
pop rbp
ret