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

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.1400440e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400440e0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140034c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1403f7674]
mov r12, rcx
test ebx, ebx
jle 0x140034d80
mov rax, qword [0x1403f7678]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140034c9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140034d25
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140034c80
mov rcx, r12
call fcn.1400356d0
mov rsi, rax
test rax, rax
je 0x140034da2
mov rax, qword [0x1403f7678]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140035800
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1403f7678]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140034d87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140034d1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140034d30
add dword [0x1403f7674], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1403f7678]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140034d1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140034be0
nop dword [rax]
xor ebx, ebx
jmp 0x140034ca8
mov rax, qword [0x1403f7678]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140034be0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140034be0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140035320
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1403f76e0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403f76c0]
test rbx, rbx
je 0x14003537c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140035373
test r12, r12
je 0x140035373
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140035358
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400356d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403e12e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400356f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400356f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400356f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140035745
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14003573c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400356f0
add rax, 0x28
cmp rax, r9
jne 0x140035728
xor eax, eax
ret

Function at 0x140035750
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403e12e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140035770
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140035778
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140035770
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140035800
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403e12e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140035820
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140035828
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140035ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x130
mov r12, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test r12, r12
je 0x1400361a8
cmp byte [r12], 0
je 0x140036180
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400361c0
test al, 0x10
je 0x140036180
lea rsi, [rsp + 0x20]
mov rdx, r12
mov r8d, 0x104
mov rcx, rsi
call sub.msvcrt.dll__fullpath
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x1400361ef
lea rdx, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x140036148
mov rcx, qword [rsp + 0x20]
lea rdi, [r12 + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [r12 + 0x244], rcx
mov ecx, eax
mov r8, qword [rsi + rcx - 8]
mov qword [rdx + rcx - 8], r8
mov rcx, rdx
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [r12 + 0x244], 0
je 0x1400360e8
movzx ecx, byte [r12 + rbx + 0x243]
cmp cl, 0x5c
je 0x1400360e8
cmp cl, 0x2f
jne 0x140036190
nop dword [rax]
mov eax, 0x2a
mov ecx, 0x20
mov word [rdx + rbp], ax
lea rdx, [r12 + 0x130]
xor eax, eax
mov qword [r12 + 0x238], 0xffffffffffffffff
mov rdi, rdx
mov dword [r12 + 0x240], 0
mov qword [r12 + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, r12
add rsp, 0x130
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test al, 4
jne 0x1400361d8
test eax, eax
je 0x1400360bf
movzx ecx, byte [rsp + 0x20]
mov byte [rdx], cl
test al, 2
je 0x1400360bf
mov ecx, eax
movzx r8d, word [rsi + rcx - 2]
mov word [rdx + rcx - 2], r8w
jmp 0x1400360bf
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 0x14
jmp 0x140036130
mov ecx, 0x5c
mov rbp, rax
mov word [rdx + rbx], cx
jmp 0x1400360e8
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x140036130
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 2
jmp 0x140036130
mov ecx, dword [rsp + 0x20]
mov dword [rdx], ecx
mov ecx, eax
mov r8d, dword [rsi + rcx - 4]
mov dword [rdx + rcx - 4], r8d
jmp 0x1400360bf
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x140036130
Function at 0x1400538f0
Capabilities:
Encode data using xor

Disassembly:
push r15
mov r10, rdx
mov r11, rcx
xor edx, edx
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov rbx, r8
mov qword [r8], 0
mov qword [r8 + 8], 0
mov qword [r8 + 0x10], 0
mov qword [r8 + 0x18], 0
mov r8d, 0xc004
nop dword [rax]
mov eax, dword [r11 + rdx*4]
mov edi, dword [r10 + rdx*4 + 0xc00]
lea esi, [rax*8]
mov eax, dword [r10 + rdx*4]
lea eax, [rdi + rax*2]
imul eax, eax, 0x3001
sub esi, eax
mov eax, dword [r11 + rdx*4 + 0x400]
mov ebp, esi
mov r12d, esi
lea ecx, [rax*8]
mov eax, dword [r10 + rdx*4 + 0x400]
sar ebp, 0x1f
xor r12d, ebp
lea eax, [rdi + rax*2]
sub r12d, ebp
and ebp, 0xfffffff0
imul eax, eax, 0x3001
xor ebp, 0xfffe7ff8
sub ecx, eax
mov eax, dword [r11 + rdx*4 + 0x800]
lea r9d, [rax*8]
mov eax, dword [r10 + rdx*4 + 0x800]
lea eax, [rdi + rax*2]
imul eax, eax, 0x3001
imul edi, edi, 0x3001
sub r9d, eax
mov eax, dword [r11 + rdx*4 + 0xc00]
shl eax, 3
sub eax, edi
mov edi, r8d
sub edi, r12d
mov r12d, ecx
mov r15d, eax
sar edi, 0x1f
and edi, ebp
mov ebp, ecx
sar ebp, 0x1f
add edi, esi
mov esi, r8d
xor r12d, ebp
mov r14d, edi
sub r12d, ebp
and ebp, 0xfffffff0
sar r14d, 0x1f
sub esi, r12d
xor ebp, 0xfffe7ff8
mov r12d, r9d
sar esi, 0x1f
and esi, ebp
mov ebp, r9d
sar ebp, 0x1f
add esi, ecx
mov ecx, r8d
xor r12d, ebp
mov r13d, esi
sub r12d, ebp
sar r13d, 0x1f
sub ecx, r12d
and ebp, 0xfffffff0
xor edi, r14d
xor esi, r13d
xor ebp, 0xfffe7ff8
sar ecx, 0x1f
and ecx, ebp
mov ebp, r8d
add ecx, r9d
mov r9d, eax
sar r9d, 0x1f
mov r12d, ecx
xor r15d, r9d
sar r12d, 0x1f
sub r15d, r9d
and r9d, 0xfffffff0
xor ecx, r12d
sub ebp, r15d
xor r9d, 0xfffe7ff8
sar ebp, 0x1f
and ebp, r9d
mov r9d, edx
add ebp, eax
shr r9d, 3
mov r15d, ebp
sar r15d, 0x1f
lea eax, [r14 + r15 + 0x18008]
xor ebp, r15d
add eax, r13d
add eax, r12d
sub eax, ebp
sub eax, edi
sub eax, esi
sub eax, ecx
mov ecx, edx
shr eax, 0x1f
and ecx, 7
xor eax, 1
shl eax, cl
or byte [rbx + r9], al
add rdx, 1
cmp rdx, 0x100
jne 0x140053930
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14005ab60
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
push r12
mov r12d, ecx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov eax, dword [0x140274380]
test eax, eax
je 0x14005acc0
cmp eax, 0xffffffff
je 0x14005acea
lea rax, [0x1403e18a0]
lea rcx, [0x1402bb7a6]
cmp dword [rax], r12d
jne 0x14005abe0
movzx edx, byte [rcx]
mov eax, 7
lea r9, [0x1402744bf]
mov r8d, 6
test dl, dl
je 0x14005abcc
nop dword [rax]
mov byte [r9 + rax], dl
movsxd r8, eax
add rax, 1
movzx edx, byte [rcx + rax - 7]
test dl, dl
jne 0x14005abb8
lea rax, str.ERRNO
mov byte [rax + r8], 0
mov r12, qword [rbp - 8]
leave
ret
mov rcx, qword [rax + 0x18]
add rax, 0x10
test rcx, rcx
jne 0x14005ab96
cmp r12d, 9
jle 0x14005acf7
mov edx, 1
lea r11, [rsp + 0x1f]
lea r9, [0x1402bb7c4]
mov r10d, 0xcccccccd
nop
mov eax, r12d
mov ecx, r12d
imul rax, r10
shr rax, 0x23
lea r8d, [rax + rax*4]
add r8d, r8d
sub ecx, r8d
mov r8d, edx
movsxd rcx, ecx
movzx ecx, byte [r9 + rcx]
mov byte [r11 + rdx], cl
mov ecx, r12d
add rdx, 1
mov r12d, eax
cmp ecx, 0x63
jg 0x14005ac10
movsxd rax, r12d
mov edx, r12d
movsxd rcx, r8d
imul rax, rax, 0x66666667
sar edx, 0x1f
sar rax, 0x22
sub eax, edx
lea rdx, [rsp + rcx + 0x20]
lea eax, [rax + rax*4]
add eax, eax
sub r12d, eax
movsxd rax, r12d
movzx eax, byte [r9 + rax]
mov byte [rsp + rcx + 0x20], al
lea rax, [0x1402744c6]
lea r9, [rax + 1]
add r9, rcx
nop word cs:[rax + rax]
movzx ecx, byte [rdx]
add rax, 1
sub rdx, 1
mov byte [rax - 1], cl
cmp rax, r9
jne 0x14005ac90
lea edx, [r8 + 7]
lea rax, str.ERRNO
movsxd rdx, edx
mov byte [rax + rdx], 0
jmp 0x14005abd8
lea rcx, str._JSON_C_STRERROR_ENABLE
call sub.msvcrt.dll_getenv
test rax, rax
je 0x14005ace0
mov dword [0x140274380], 1
jmp 0x14005ab88
mov dword [0x140274380], 0xffffffff
mov ecx, r12d
mov r12, qword [rbp - 8]
leave
jmp sub.msvcrt.dll_strerror
xor r8d, r8d
lea r9, [0x1402bb7c4]
jmp 0x14005ac46
Function at 0x14005e220
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
mov rbp, r8
push rdi
push rsi
mov rsi, rcx
push rbx
mov ebx, edx
sub rsp, 0x28
mov edi, dword [r8 + 4]
lea rcx, [rdi + rdi]
mov r13, rdi
call sub.msvcrt.dll_malloc
xor edx, edx
mov r10, rax
test edi, edi
je 0x14005e26f
nop dword [rax]
mov rax, qword [rsi + rdx*8]
mov rcx, rax
sar rcx, 0x3f
xor rax, rcx
sub rax, rcx
mov word [r10 + rdx*2], ax
add rdx, 1
cmp rdi, rdx
jne 0x14005e250
mov ebp, dword [rbp + 0x38]
xor edi, edi
xor r11d, r11d
lea r12, [r10 + 4]
test ebp, ebp
je 0x14005e320
nop dword [rax + rax]
mov esi, r13d
sub esi, 1
je 0x14005e318
lea edx, [r13 - 2]
movzx ecx, word [r10]
lea rax, [r10 + 2]
lea r9, [r12 + rdx*2]
nop dword [rax]
movsx edx, word [rax]
movsx r13d, cx
add rax, 2
mov r8d, edx
sub edx, r13d
mov r13d, r8d
sar edx, 0xf
xor r13d, ecx
and edx, r13d
xor ecx, edx
mov r13d, ecx
mov ecx, r8d
xor ecx, edx
mov word [rax - 4], r13w
mov word [rax - 2], cx
cmp rax, r9
jne 0x14005e2a8
mov eax, esi
mov r13d, esi
lea rax, [r10 + rax*2]
movsx eax, word [rax]
add r11d, 1
add edi, eax
cmp r11d, ebp
jne 0x14005e288
xor r12d, r12d
cmp edi, ebx
seta r12b
mov rcx, r10
call sub.msvcrt.dll_free
add rsp, 0x28
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rax, r10
xor r13d, r13d
jmp 0x14005e2e6
xor r12d, r12d
jmp 0x14005e2fd
Function at 0x140075d80
Capabilities:
Read file on windows

Disassembly:
push r14
lea rdx, [0x1402c4c40]
push r13
xor r13d, r13d
push r12
sub rsp, 0x30
call sub.msvcrt.dll_fopen
test rax, rax
je 0x140075e0f
mov r12, rax
mov r8d, 2
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rcx, r12
xor r14d, r14d
call sub.msvcrt.dll_ftell
mov rcx, r12
movsxd r13, eax
call sub.msvcrt.dll_rewind
test r13, r13
jne 0x140075e20
mov r9, r12
mov r8, r13
mov edx, 1
mov rcx, r14
call sub.msvcrt.dll_fread
cmp rax, r13
jne 0x140075e30
mov rdx, r13
mov rcx, r14
call fcn.140076a00
mov r13, rax
test rax, rax
je 0x140075dff
mov rcx, rax
call fcn.140074640
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_fclose
add rsp, 0x30
mov rax, r13
pop r12
pop r13
pop r14
ret
mov rcx, r13
call sub.msvcrt.dll_malloc
mov r14, rax
jmp 0x140075dcc
lea rax, str.Cant_read__llu_bytes_from_the_disk_
mov qword [rsp + 0x28], r13
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.dap_cert_file
xor r13d, r13d
call fcn.14005aec0
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x140075e07

Function at 0x140075e70
Capabilities:
Write file on windows

Disassembly:
push r14
mov r14, rcx
mov rcx, rdx
push r13
mov r13, rdx
push r12
sub rsp, 0x50
call fcn.1400f4450
mov r12, rax
mov rcx, rax
call fcn.1400f3450
mov rcx, r12
call sub.msvcrt.dll_free
lea rdx, [0x1402c4a2c]
mov rcx, r13
call sub.msvcrt.dll_fopen
test rax, rax
je 0x140075f9a
lea rdx, [rsp + 0x4c]
mov rcx, r14
mov dword [rsp + 0x4c], 0
mov r12, rax
call fcn.140076ca0
mov r13, rax
test rax, rax
je 0x140075f60
mov r8d, dword [rsp + 0x4c]
mov rcx, rax
mov r9, r12
mov edx, 1
call sub.msvcrt.dll_fwrite
mov ecx, dword [rsp + 0x4c]
cmp rcx, rax
je 0x140075f40
mov qword [rsp + 0x30], rax
lea rax, str.Cant_write__u_bytes_on_disk__processed_only__zu__
mov r9d, 7
xor edx, edx
mov dword [rsp + 0x28], ecx
lea r8, str.dap_cert_file
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, 0xfffffffd
add rsp, 0x50
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r13
call sub.msvcrt.dll_free
add rsp, 0x50
xor eax, eax
pop r12
pop r13
pop r14
ret
lea rax, str.Cant_serialize_certificate_in_memory
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_cert_file
call fcn.14005aec0
mov rcx, r12
call sub.msvcrt.dll_fclose
add rsp, 0x50
mov eax, 0xfffffffc
pop r12
pop r13
pop r14
ret
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
mov qword [rsp + 0x28], r13
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], rax
lea rax, str.Cant_open_file__s_for_write:__s
mov r9d, 7
lea r8, str.dap_cert_file
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov eax, 0xfffffffe
jmp 0x140075f2d
Function at 0x140094af0
Capabilities:
Delete file
Move file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
test rcx, rcx
je 0x140094cdc
mov rax, qword [rcx + 0x180]
mov r13, rcx
test rax, rax
je 0x140094b38
call rax
xor r15d, r15d
add rsp, 0x58
mov eax, r15d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rcx + 0x1b0]
xor r15d, r15d
mov r12, qword [rax + 8]
test r12, r12
je 0x140094b1d
mov rcx, r12
call fcn.1400c33a0
test al, al
je 0x140094ca0
mov rcx, r12
call fcn.140035ff0
mov r14, rax
test rax, rax
je 0x140094ce7
mov rcx, rax
xor r15d, r15d
call fcn.140036200
test rax, rax
je 0x140094c58
lea rsi, [rsp + 0x44]
lea rdi, str._s.unsorted
movabs rbx, 0x636e69616863642e
jmp 0x140094bb1
mov rcx, r14
call fcn.140036200
test rax, rax
je 0x140094c58
lea r12, [rax + 8]
mov qword [rsp + 0x44], rbx
mov rcx, r12
mov dword [rsp + 0x4c], 0x6c6c65
call sub.msvcrt.dll_strlen
mov r8d, 0xb
mov rdx, rsi
lea rcx, [r12 + rax - 0xb]
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x140094ba0
mov rdx, r12
mov rcx, r13
call fcn.14007c740
mov rcx, r13
mov rdx, rax
mov r12, rax
call fcn.14007d000
add r15d, eax
mov rax, qword [r13 + 0x1b0]
cmp byte [rax + 0x28], 0
je 0x140094ba0
add r12, 0x10
mov rcx, rdi
mov rdx, r12
call fcn.1400fb640
mov rcx, rax
mov rbp, rax
call fcn.140044838
cmp eax, 0xffffffff
je 0x140094cb0
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_rename
test eax, eax
jne 0x140094c68
mov rcx, rbp
call sub.msvcrt.dll_free
mov rcx, r14
call fcn.140036200
test rax, rax
jne 0x140094bb1
nop dword [rax]
mov rcx, r14
call fcn.140036450
jmp 0x140094b1d
lea rax, str.Couldnt_rename__s_to__s
mov qword [rsp + 0x30], rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov r9d, 7
lea r8, [0x1402a9912]
mov qword [rsp + 0x20], rax
call fcn.14005aec0
jmp 0x140094c3c
mov rcx, r12
call fcn.1400f3450
jmp 0x140094b5b
lea rax, str.File__s_doesnt_exist
mov qword [rsp + 0x28], rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, [0x1402a9912]
call fcn.14005aec0
jmp 0x140094c2d
mov r15d, 0xfffffffe
jmp 0x140094b1d
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov r15d, 0xfffffffd
mov rax, qword [r13 + 0x1b0]
lea r8, [0x1402a9912]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
lea rax, [0x1402a9b82]
mov qword [rsp + 0x20], rax
call fcn.14005aec0
jmp 0x140094b1d
Function at 0x1400a4a50
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rsi
mov rsi, rdx
lea rdx, [0x14027a5f2]
push rbx
sub rsp, 0x38
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x1400a4ad0
mov r8d, 2
xor edx, edx
mov rcx, rax
xor r13d, r13d
call sub.msvcrt.dll_fseek
mov rcx, r12
call sub.msvcrt.dll_ftell
mov rcx, r12
movsxd rbx, eax
call sub.msvcrt.dll_rewind
test rbx, rbx
jne 0x1400a4ad8
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r13
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x1400a4ae8
mov rcx, r12
mov r12, r13
call sub.msvcrt.dll_fclose
mov qword [rsi], rbx
add rsp, 0x38
mov rax, r12
pop rbx
pop rsi
pop r12
pop r13
ret
xor ebx, ebx
jmp 0x1400a4abf
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r13, rax
jmp 0x1400a4a9c
lea rax, [0x14027a5f8]
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.chain_net_srv_datum
call fcn.14005aec0
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_fclose
add rsp, 0x38
mov rax, r12
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x1400ac680
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x1400ac900
mov rax, qword [0x1403e8520]
mov r10, qword [rax + 0x20]
xor eax, eax
test r10, r10
je 0x1400ac8e8
push rbp
lea r9, [rcx + 0x48]
mov r8, rcx
mov r11d, 0x9e3779b9
push rdi
push rsi
mov esi, 0x9e3779b9
push rbx
mov rbx, rcx
mov ecx, 0xfeedbeef
sub rsp, 0x28
nop dword [rax]
movzx edx, byte [r8 + 5]
movzx eax, byte [r8 + 6]
shl edx, 8
shl eax, 0x10
add edx, eax
movzx eax, byte [r8 + 4]
add edx, eax
movzx eax, byte [r8 + 7]
shl eax, 0x18
add edx, eax
movzx eax, byte [r8 + 9]
add edx, esi
movzx esi, byte [r8 + 0xa]
shl eax, 8
shl esi, 0x10
add eax, esi
movzx esi, byte [r8 + 8]
add eax, esi
movzx esi, byte [r8 + 0xb]
shl esi, 0x18
add eax, esi
movzx esi, byte [r8 + 2]
add eax, ecx
movzx ecx, byte [r8 + 1]
shl esi, 0x10
shl ecx, 8
add ecx, esi
movzx esi, byte [r8]
add ecx, esi
movzx esi, byte [r8 + 3]
shl esi, 0x18
add ecx, esi
sub ecx, edx
sub edx, eax
sub ecx, eax
add ecx, r11d
mov r11d, eax
shr r11d, 0xd
xor ecx, r11d
sub edx, ecx
sub eax, ecx
mov r11d, edx
mov edx, ecx
shl edx, 8
xor edx, r11d
sub eax, edx
mov r11d, eax
mov eax, edx
shr eax, 0xd
xor eax, r11d
sub ecx, edx
add r8, 0xc
sub ecx, eax
sub edx, eax
mov r11d, ecx
mov ecx, eax
shr ecx, 0xc
xor ecx, r11d
sub edx, ecx
sub eax, ecx
mov r11d, edx
mov edx, ecx
shl edx, 0x10
xor edx, r11d
sub eax, edx
sub ecx, edx
mov r11d, eax
mov eax, edx
shr eax, 5
xor eax, r11d
mov r11d, eax
sub ecx, eax
sub edx, eax
shr r11d, 3
xor r11d, ecx
mov esi, r11d
sub edx, r11d
sub eax, r11d
shl esi, 0xa
xor esi, edx
mov ecx, esi
sub eax, esi
shr ecx, 0xf
xor ecx, eax
cmp r8, r9
jne 0x1400ac6c8
movzx eax, byte [rbx + 0x4b]
movzx edx, byte [rbx + 0x4a]
add ecx, 0x4d
movzx r8d, byte [rbx + 0x4c]
shl edx, 0x10
shl eax, 0x18
add eax, edx
movzx edx, byte [rbx + 0x48]
add r8d, esi
add eax, edx
movzx edx, byte [rbx + 0x49]
shl edx, 8
add eax, edx
mov edx, ecx
add eax, r11d
shr edx, 0xd
sub eax, r8d
sub r8d, ecx
sub eax, ecx
xor edx, eax
mov eax, edx
sub r8d, edx
sub ecx, edx
shl eax, 8
xor eax, r8d
sub ecx, eax
sub edx, eax
mov r8d, ecx
mov ecx, eax
shr ecx, 0xd
xor ecx, r8d
mov r8d, ecx
sub edx, ecx
sub eax, ecx
shr r8d, 0xc
xor r8d, edx
mov edx, r8d
sub eax, r8d
sub ecx, r8d
shl edx, 0x10
xor edx, eax
mov eax, edx
sub ecx, edx
shr eax, 5
xor eax, ecx
sub r8d, edx
mov ecx, eax
sub r8d, eax
sub edx, eax
shr ecx, 3
xor ecx, r8d
mov edi, ecx
sub edx, ecx
sub eax, ecx
shl edi, 0xa
xor edi, edx
mov rdx, qword [r10 + 0x118]
sub eax, edi
shr edi, 0xf
xor edi, eax
mov eax, dword [rdx + 8]
sub eax, 1
and eax, edi
shl rax, 4
add rax, qword [rdx]
mov rsi, qword [rax]
xor eax, eax
test rsi, rsi
je 0x1400ac8d9
mov rax, qword [rdx + 0x20]
mov rbp, rax
sub rsi, rax
neg rbp
jmp 0x1400ac8a7
mov rsi, qword [rsi + 0x138]
test rsi, rsi
je 0x1400ac8f0
add rsi, rbp
cmp dword [rsi + 0x14c], edi
jne 0x1400ac898
cmp dword [rsi + 0x148], 0x4d
jne 0x1400ac898
mov rcx, qword [rsi + 0x140]
mov r8d, 0x4d
mov rdx, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400ac898
cmp byte [rsi], 1
sbb eax, eax
or eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
ret
add rsp, 0x28
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
ret
Function at 0x1400b12c0
Capabilities:
Send data
Send data on socket

Disassembly:
push rdi
push rsi
push rbx
mov rbx, rcx
sub rsp, 0x30
cmp byte [rcx + 0x13c], 0
jne 0x1400b1368
mov esi, edx
lea rdi, [rcx + 0x1ac]
lea rdx, [rcx + 0x1a8]
mov eax, dword [rcx + 0x1a8]
test eax, eax
jne 0x1400b1340
mov eax, esi
xchg dword [rdi], eax
cmp esi, 7
je 0x1400b1358
test esi, esi
je 0x1400b1328
call fcn.1400d0920
add rsp, 0x30
mov r8, rbx
mov r9d, 2
pop rbx
mov rcx, rax
lea rdx, [fcn.1401bf5f0]
pop rsi
pop rdi
jmp fcn.1400f7b90
mov rcx, qword [rbx]
call fcn.140093cb0
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
mov ecx, eax
xchg dword [rdi], ecx
xchg dword [rdx], eax
xor ecx, ecx
mov rdx, rbx
call fcn.1401bf5f0
jmp 0x1400b12f1
mov rcx, qword [rbx]
call fcn.140093bf0
jmp 0x1400b12fe
mov rax, qword [rcx + 8]
mov r9d, 7
xor edx, edx
xor ecx, ecx
lea r8, str.chain_net
mov qword [rsp + 0x28], rax
lea rax, str.Cant_change_state_of_loading_network__s
mov qword [rsp + 0x20], rax
call fcn.14005aec0
mov eax, 0xffffffff
jmp 0x1400b1332