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 [0x1403fa674]
mov r12, rcx
test ebx, ebx
jle 0x140034d80
mov rax, qword [0x1403fa678]
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 [0x1403fa678]
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 [0x1403fa678]
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 [0x1403fa674], 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 [0x1403fa678]
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 [0x1403fa678]
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, [0x1403fa6e0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403fa6c0]
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 [0x1403e3f80]
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 [0x1403e3f80]
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 [0x1403e3f80]
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 0x140052b80
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 0x140052bc0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140059df0
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
push r12
mov r12d, ecx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov eax, dword [0x140276380]
test eax, eax
je 0x140059f50
cmp eax, 0xffffffff
je 0x140059f7a
lea rax, [0x1403e4560]
lea rcx, [0x1402bd4c6]
cmp dword [rax], r12d
jne 0x140059e70
movzx edx, byte [rcx]
mov eax, 7
lea r9, [0x1402764bf]
mov r8d, 6
test dl, dl
je 0x140059e5c
nop dword [rax]
mov byte [r9 + rax], dl
movsxd r8, eax
add rax, 1
movzx edx, byte [rcx + rax - 7]
test dl, dl
jne 0x140059e48
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 0x140059e26
cmp r12d, 9
jle 0x140059f87
mov edx, 1
lea r11, [rsp + 0x1f]
lea r9, [0x1402bd4e4]
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 0x140059ea0
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, [0x1402764c6]
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 0x140059f20
lea edx, [r8 + 7]
lea rax, str.ERRNO
movsxd rdx, edx
mov byte [rax + rdx], 0
jmp 0x140059e68
lea rcx, str._JSON_C_STRERROR_ENABLE
call sub.msvcrt.dll_getenv
test rax, rax
je 0x140059f70
mov dword [0x140276380], 1
jmp 0x140059e18
mov dword [0x140276380], 0xffffffff
mov ecx, r12d
mov r12, qword [rbp - 8]
leave
jmp sub.msvcrt.dll_strerror
xor r8d, r8d
lea r9, [0x1402bd4e4]
jmp 0x140059ed6
Function at 0x14005d4b0
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 0x14005d4ff
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 0x14005d4e0
mov ebp, dword [rbp + 0x38]
xor edi, edi
xor r11d, r11d
lea r12, [r10 + 4]
test ebp, ebp
je 0x14005d5b0
nop dword [rax + rax]
mov esi, r13d
sub esi, 1
je 0x14005d5a8
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 0x14005d538
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 0x14005d518
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 0x14005d576
xor r12d, r12d
jmp 0x14005d58d
Function at 0x140076d70
Capabilities:
Read file on windows

Disassembly:
push r14
lea rdx, [0x1402c6960]
push r13
xor r13d, r13d
push r12
sub rsp, 0x30
call sub.msvcrt.dll_fopen
test rax, rax
je 0x140076dff
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 0x140076e10
mov r9, r12
mov r8, r13
mov edx, 1
mov rcx, r14
call sub.msvcrt.dll_fread
cmp rax, r13
jne 0x140076e20
mov rdx, r13
mov rcx, r14
call fcn.1400779f0
mov r13, rax
test rax, rax
je 0x140076def
mov rcx, rax
call fcn.140075630
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 0x140076dbc
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.14005a150
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x140076df7

Function at 0x140076e60
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.1400f5290
mov r12, rax
mov rcx, rax
call fcn.1400f4290
mov rcx, r12
call sub.msvcrt.dll_free
lea rdx, [0x1402c674c]
mov rcx, r13
call sub.msvcrt.dll_fopen
test rax, rax
je 0x140076f8a
lea rdx, [rsp + 0x4c]
mov rcx, r14
mov dword [rsp + 0x4c], 0
mov r12, rax
call fcn.140077c90
mov r13, rax
test rax, rax
je 0x140076f50
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 0x140076f30
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.14005a150
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.14005a150
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.14005a150
mov eax, 0xfffffffe
jmp 0x140076f1d
Function at 0x140095ab0
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 0x140095c9c
mov rax, qword [rcx + 0x180]
mov r13, rcx
test rax, rax
je 0x140095af8
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 0x140095add
mov rcx, r12
call fcn.1400c4030
test al, al
je 0x140095c60
mov rcx, r12
call fcn.140035ff0
mov r14, rax
test rax, rax
je 0x140095ca7
mov rcx, rax
xor r15d, r15d
call fcn.140036200
test rax, rax
je 0x140095c18
lea rsi, [rsp + 0x44]
lea rdi, str._s.unsorted
movabs rbx, 0x636e69616863642e
jmp 0x140095b71
mov rcx, r14
call fcn.140036200
test rax, rax
je 0x140095c18
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 0x140095b60
mov rdx, r12
mov rcx, r13
call fcn.14007d730
mov rcx, r13
mov rdx, rax
mov r12, rax
call fcn.14007dff0
add r15d, eax
mov rax, qword [r13 + 0x1b0]
cmp byte [rax + 0x28], 0
je 0x140095b60
add r12, 0x10
mov rcx, rdi
mov rdx, r12
call fcn.1400fc480
mov rcx, rax
mov rbp, rax
call fcn.140044838
cmp eax, 0xffffffff
je 0x140095c70
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_rename
test eax, eax
jne 0x140095c28
mov rcx, rbp
call sub.msvcrt.dll_free
mov rcx, r14
call fcn.140036200
test rax, rax
jne 0x140095b71
nop dword [rax]
mov rcx, r14
call fcn.140036450
jmp 0x140095add
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, [0x1402ab6d2]
mov qword [rsp + 0x20], rax
call fcn.14005a150
jmp 0x140095bfc
mov rcx, r12
call fcn.1400f4290
jmp 0x140095b1b
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, [0x1402ab6d2]
call fcn.14005a150
jmp 0x140095bed
mov r15d, 0xfffffffe
jmp 0x140095add
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov r15d, 0xfffffffd
mov rax, qword [r13 + 0x1b0]
lea r8, [0x1402ab6d2]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
lea rax, [0x1402ab942]
mov qword [rsp + 0x20], rax
call fcn.14005a150
jmp 0x140095add
Function at 0x1400a5a10
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rsi
mov rsi, rdx
lea rdx, [0x14027c4de]
push rbx
sub rsp, 0x38
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x1400a5a90
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 0x1400a5a98
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r13
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x1400a5aa8
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 0x1400a5a7f
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r13, rax
jmp 0x1400a5a5c
lea rax, [0x14027c4e8]
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.14005a150
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 0x1400ad2b0
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x1400ad530
mov rax, qword [0x1403eb520]
mov r10, qword [rax + 0x20]
xor eax, eax
test r10, r10
je 0x1400ad518
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 0x1400ad2f8
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 0x1400ad509
mov rax, qword [rdx + 0x20]
mov rbp, rax
sub rsi, rax
neg rbp
jmp 0x1400ad4d7
mov rsi, qword [rsi + 0x138]
test rsi, rsi
je 0x1400ad520
add rsi, rbp
cmp dword [rsi + 0x14c], edi
jne 0x1400ad4c8
cmp dword [rsi + 0x148], 0x4d
jne 0x1400ad4c8
mov rcx, qword [rsi + 0x140]
mov r8d, 0x4d
mov rdx, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400ad4c8
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 0x1400b1ef0
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 0x1400b1f98
mov esi, edx
lea rdi, [rcx + 0x1ac]
lea rdx, [rcx + 0x1a8]
mov eax, dword [rcx + 0x1a8]
test eax, eax
jne 0x1400b1f70
mov eax, esi
xchg dword [rdi], eax
cmp esi, 7
je 0x1400b1f88
test esi, esi
je 0x1400b1f58
call fcn.1400d1610
add rsp, 0x30
mov r8, rbx
mov r9d, 2
pop rbx
mov rcx, rax
lea rdx, [fcn.1401bfcf0]
pop rsi
pop rdi
jmp fcn.1400f89d0
mov rcx, qword [rbx]
call fcn.140094c70
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.1401bfcf0
jmp 0x1400b1f21
mov rcx, qword [rbx]
call fcn.140094bb0
jmp 0x1400b1f2e
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.14005a150
mov eax, 0xffffffff
jmp 0x1400b1f62
Function at 0x1400b8ff0
Capabilities:
Create directory

Disassembly:
push rbp
xor eax, eax
mov ecx, 0x1e
mov rbp, rsp
push r15
push r14
push r13
push r12
lea r12, [0x1403eb100]
push rdi
mov r13, r12
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x150
cmp byte [0x1403eb100], 0
mov qword [rsp + 0x40], 0
lea rdi, [rsp + 0x50]
rep stosq qword [rdi], rax
mov rax, qword [0x1403e4430]
mov qword [rsp + 0x48], 0
mov rcx, qword [rax]
mov dword [rdi], 0
je 0x1400b9178
mov rcx, r13
lea rsi, [0x14022c018]
lea rdi, [rsp + 0x40]
call fcn.140035ff0
lea r14, [0x14027cd8d]
mov r12, rax
test rax, rax
je 0x1400b91c0
nop dword [rax]
mov rcx, r12
call fcn.140036200
test rax, rax
je 0x1400b9158
lea rbx, [rax + 8]
mov rcx, rbx
call sub.msvcrt.dll_strlen
cmp rax, 8
jbe 0x1400b9080
lea rcx, [rbx + rax - 8]
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400b9080
mov qword [rsp + 0x20], rbx
mov r9, r13
mov r8, r14
mov edx, 0x103
mov rcx, rdi
call fcn.1401ff150
test eax, eax
js 0x1400b9080
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1400b9410
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400b9080
mov r15, qword [rax + 0x50]
test r15, r15
je 0x1400b913a
mov rcx, qword [r15 + 0x110]
test rcx, rcx
je 0x1400b9132
cmp qword [r15 + 0x108], 0
je 0x1400b912d
xor ebx, ebx
nop dword [rax + rax]
mov rcx, qword [rcx + rbx*8]
add rbx, 1
call fcn.140076610
cmp rbx, qword [r15 + 0x108]
mov rcx, qword [r15 + 0x110]
jb 0x1400b9110
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rcx, r12
call fcn.140036200
test rax, rax
jne 0x1400b9091
nop dword [rax]
mov rcx, r12
call fcn.140036450
xor eax, eax
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rdx, [0x14027c8ad]
xor r9d, r9d
lea r8, [0x14027c8a0]
call fcn.1400be440
mov rdx, rax
test rax, rax
je 0x1400b91cc
mov r8d, 0x103
mov rcx, r12
mov r13, r12
call sub.msvcrt.dll_strncpy
test r12, r12
jne 0x1400b9052
mov eax, 0xffffffff
jmp 0x1400b9162
mov rcx, r13
call sub.msvcrt.dll__mkdir
xor eax, eax
jmp 0x1400b9162
lea rax, str.No_path_to_wallets_store_has_been_defined
mov r9d, 5
lea r8, str.dap_chain_wallet
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14005a150
mov eax, 0xffffffff
jmp 0x1400b9162