joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052b90
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 0x140052bd0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140059e00
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
push r12
mov r12d, ecx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov eax, dword [0x140279380]
test eax, eax
je 0x140059f60
cmp eax, 0xffffffff
je 0x140059f8a
lea rax, [0x1403e7820]
lea rcx, [0x1402c0726]
cmp dword [rax], r12d
jne 0x140059e80
movzx edx, byte [rcx]
mov eax, 7
lea r9, [0x1402794bf]
mov r8d, 6
test dl, dl
je 0x140059e6c
nop dword [rax]
mov byte [r9 + rax], dl
movsxd r8, eax
add rax, 1
movzx edx, byte [rcx + rax - 7]
test dl, dl
jne 0x140059e58
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 0x140059e36
cmp r12d, 9
jle 0x140059f97
mov edx, 1
lea r11, [rsp + 0x1f]
lea r9, [0x1402c0744]
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 0x140059eb0
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, [0x1402794c6]
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 0x140059f30
lea edx, [r8 + 7]
lea rax, str.ERRNO
movsxd rdx, edx
mov byte [rax + rdx], 0
jmp 0x140059e78
lea rcx, str._JSON_C_STRERROR_ENABLE
call sub.msvcrt.dll_getenv
test rax, rax
je 0x140059f80
mov dword [0x140279380], 1
jmp 0x140059e28
mov dword [0x140279380], 0xffffffff
mov ecx, r12d
mov r12, qword [rbp - 8]
leave
jmp sub.msvcrt.dll_strerror
xor r8d, r8d
lea r9, [0x1402c0744]
jmp 0x140059ee6
Function at 0x14005d4c0
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 0x14005d50f
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 0x14005d4f0
mov ebp, dword [rbp + 0x38]
xor edi, edi
xor r11d, r11d
lea r12, [r10 + 4]
test ebp, ebp
je 0x14005d5c0
nop dword [rax + rax]
mov esi, r13d
sub esi, 1
je 0x14005d5b8
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 0x14005d548
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 0x14005d528
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 0x14005d586
xor r12d, r12d
jmp 0x14005d59d
Function at 0x140077040
Capabilities:
Read file on windows

Disassembly:
push r14
lea rdx, [0x1402c9c20]
push r13
xor r13d, r13d
push r12
sub rsp, 0x30
call sub.msvcrt.dll_fopen
test rax, rax
je 0x1400770cf
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 0x1400770e0
mov r9, r12
mov r8, r13
mov edx, 1
mov rcx, r14
call sub.msvcrt.dll_fread
cmp rax, r13
jne 0x1400770f0
mov rdx, r13
mov rcx, r14
call fcn.140077cc0
mov r13, rax
test rax, rax
je 0x1400770bf
mov rcx, rax
call fcn.140075900
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 0x14007708c
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.14005a160
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x1400770c7

Function at 0x140077130
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.1400f9d20
mov r12, rax
mov rcx, rax
call fcn.1400f8db0
mov rcx, r12
call sub.msvcrt.dll_free
lea rdx, [0x1402c9a0c]
mov rcx, r13
call sub.msvcrt.dll_fopen
test rax, rax
je 0x14007725a
lea rdx, [rsp + 0x4c]
mov rcx, r14
mov dword [rsp + 0x4c], 0
mov r12, rax
call fcn.140077f60
mov r13, rax
test rax, rax
je 0x140077220
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 0x140077200
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.14005a160
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.14005a160
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.14005a160
mov eax, 0xfffffffe
jmp 0x1400771ed
Function at 0x1400967e0
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 0x1400969cc
mov rax, qword [rcx + 0x188]
mov r13, rcx
test rax, rax
je 0x140096828
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 + 0x1b8]
xor r15d, r15d
mov r12, qword [rax + 8]
test r12, r12
je 0x14009680d
mov rcx, r12
call fcn.1400c70b0
test al, al
je 0x140096990
mov rcx, r12
call fcn.140035ff0
mov r14, rax
test rax, rax
je 0x1400969d7
mov rcx, rax
xor r15d, r15d
call fcn.140036200
test rax, rax
je 0x140096948
lea rsi, [rsp + 0x44]
lea rdi, str._s.unsorted
movabs rbx, 0x636e69616863642e
jmp 0x1400968a1
mov rcx, r14
call fcn.140036200
test rax, rax
je 0x140096948
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 0x140096890
mov rdx, r12
mov rcx, r13
call fcn.14007da00
mov rcx, r13
mov rdx, rax
mov r12, rax
call fcn.14007e2c0
add r15d, eax
mov rax, qword [r13 + 0x1b8]
cmp byte [rax + 0x28], 0
je 0x140096890
add r12, 0x10
mov rcx, rdi
mov rdx, r12
call fcn.140100f10
mov rcx, rax
mov rbp, rax
call fcn.140044840
cmp eax, 0xffffffff
je 0x1400969a0
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_rename
test eax, eax
jne 0x140096958
mov rcx, rbp
call sub.msvcrt.dll_free
mov rcx, r14
call fcn.140036200
test rax, rax
jne 0x1400968a1
nop dword [rax]
mov rcx, r14
call fcn.140036450
jmp 0x14009680d
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, [0x1402ae832]
mov qword [rsp + 0x20], rax
call fcn.14005a160
jmp 0x14009692c
mov rcx, r12
call fcn.1400f8db0
jmp 0x14009684b
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, [0x1402ae832]
call fcn.14005a160
jmp 0x14009691d
mov r15d, 0xfffffffe
jmp 0x14009680d
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov r15d, 0xfffffffd
mov rax, qword [r13 + 0x1b8]
lea r8, [0x1402ae832]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
lea rax, [0x1402aeaa2]
mov qword [rsp + 0x20], rax
call fcn.14005a160
jmp 0x14009680d
Function at 0x1400a6be0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rsi
mov rsi, rdx
lea rdx, [0x14027f524]
push rbx
sub rsp, 0x38
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x1400a6c60
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 0x1400a6c68
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r13
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x1400a6c78
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 0x1400a6c4f
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r13, rax
jmp 0x1400a6c2c
lea rax, [0x14027f528]
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.14005a160
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 0x1400b4bc0
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 0x1400b4c68
mov esi, edx
lea rdi, [rcx + 0x1ac]
lea rdx, [rcx + 0x1a8]
mov eax, dword [rcx + 0x1a8]
test eax, eax
jne 0x1400b4c40
mov eax, esi
xchg dword [rdi], eax
cmp esi, 7
je 0x1400b4c58
test esi, esi
je 0x1400b4c28
call fcn.1400d4690
add rsp, 0x30
mov r8, rbx
mov r9d, 2
pop rbx
mov rcx, rax
lea rdx, [fcn.1401c4780]
pop rsi
pop rdi
jmp fcn.1400fd460
mov rcx, qword [rbx]
call fcn.140095950
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.1401c4780
jmp 0x1400b4bf1
mov rcx, qword [rbx]
call fcn.140095890
jmp 0x1400b4bfe
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.14005a160
mov eax, 0xffffffff
jmp 0x1400b4c32
Function at 0x1400bbcd0
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, [0x1403ee100]
push rdi
mov r13, r12
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x150
cmp byte [0x1403ee100], 0
mov qword [rsp + 0x40], 0
lea rdi, [rsp + 0x50]
rep stosq qword [rdi], rax
mov rax, qword [0x1403e76f0]
mov qword [rsp + 0x48], 0
mov rcx, qword [rax]
mov dword [rdi], 0
je 0x1400bbe58
mov rcx, r13
lea rsi, [0x14022f018]
lea rdi, [rsp + 0x40]
call fcn.140035ff0
lea r14, [0x140280fad]
mov r12, rax
test rax, rax
je 0x1400bbea0
nop dword [rax]
mov rcx, r12
call fcn.140036200
test rax, rax
je 0x1400bbe38
lea rbx, [rax + 8]
mov rcx, rbx
call sub.msvcrt.dll_strlen
cmp rax, 8
jbe 0x1400bbd60
lea rcx, [rbx + rax - 8]
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400bbd60
mov qword [rsp + 0x20], rbx
mov r9, r13
mov r8, r14
mov edx, 0x103
mov rcx, rdi
call fcn.140202820
test eax, eax
js 0x1400bbd60
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1400bc0f0
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400bbd60
mov r15, qword [rax + 0x50]
test r15, r15
je 0x1400bbe1a
mov rcx, qword [r15 + 0x110]
test rcx, rcx
je 0x1400bbe12
cmp qword [r15 + 0x108], 0
je 0x1400bbe0d
xor ebx, ebx
nop dword [rax + rax]
mov rcx, qword [rcx + rbx*8]
add rbx, 1
call fcn.1400768e0
cmp rbx, qword [r15 + 0x108]
mov rcx, qword [r15 + 0x110]
jb 0x1400bbdf0
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 0x1400bbd71
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, [0x140280acd]
xor r9d, r9d
lea r8, [0x140280ac0]
call fcn.1400c1150
mov rdx, rax
test rax, rax
je 0x1400bbeac
mov r8d, 0x103
mov rcx, r12
mov r13, r12
call sub.msvcrt.dll_strncpy
test r12, r12
jne 0x1400bbd32
mov eax, 0xffffffff
jmp 0x1400bbe42
mov rcx, r13
call sub.msvcrt.dll__mkdir
xor eax, eax
jmp 0x1400bbe42
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.14005a160
mov eax, 0xffffffff
jmp 0x1400bbe42
Function at 0x1400c2110
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push rbp
mov rbp, rsp
push r14
push r13
mov r13, rcx
mov ecx, 1
push r12
push rbx
mov rbx, rdx
mov edx, 0x370
and rsp, 0xfffffffffffffff0
sub rsp, 0x50
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x1400c22a5
mov qword [rax + 0x60], 1
mov edx, 1
mov ecx, 1
mov qword [rax + 0x80], 1
call sub.msvcrt.dll_calloc
mov dword [r12 + 0x34], 6
mov qword [r12 + 0x70], rax
call fcn.140109120
mov ecx, 2
xor r8d, r8d
mov qword [r12 + 0x280], rbx
mov qword [r12 + 0x38], rax
mov edx, 2
mov dword [r12 + 0x268], 0x2019
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r12], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c2328
lea r9, [rsp + 0x30]
mov r8d, 0x1002
mov edx, 0xffff
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x20], 4
mov rbx, qword [sym.imp.WS2_32.dll_setsockopt]
call rbx
mov rcx, qword [r12]
lea r8, [rsp + 0x34]
mov edx, 0x8004667e
mov dword [rsp + 0x34], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x38], 1
mov rcx, qword [r12]
mov r8d, 4
call rbx
test eax, eax
js 0x1400c22f0
mov eax, 2
mov ecx, 0x7f000001
mov qword [rsp + 0x40], 0
lea r14, [rsp + 0x40]
mov qword [rsp + 0x48], 0
mov word [rsp + 0x40], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [r12]
mov r8d, 0x10
mov rdx, r14
mov dword [rsp + 0x44], eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1400c22b8
mov dword [rsp + 0x3c], 0x64
mov rcx, qword [r12]
lea r8, [rsp + 0x3c]
mov rdx, r14
call qword [sym.imp.WS2_32.dll_getsockname]
movzx eax, word [rsp + 0x42]
mov word [r12 + 0x1c], ax
test r13, r13
je 0x1400c22a5
mov rdx, r12
mov rcx, r13
call fcn.1400c1810
lea rsp, [rbp - 0x20]
mov rax, r12
pop rbx
pop r12
pop r13
pop r14
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, [0x1402c1343]
lea r8, str.dap_context
mov qword [rsp + 0x20], rax
call fcn.14005a160
jmp 0x1400c2295
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 5
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, str.Cant_set_up_REUSEADDR_flag_to_the_socket__err:__d
lea r8, str.dap_context
mov qword [rsp + 0x20], rax
call fcn.14005a160
jmp 0x1400c2229
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], eax
lea rax, str.Error_creating_socket_for_TYPE_EVENT:__d
lea r8, str.dap_context
mov qword [rsp + 0x20], rax
call fcn.14005a160
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
jmp 0x1400c22a5
Function at 0x1400c70b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test rcx, rcx
je 0x1400c70e0
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400c70d0
shr eax, 4
add rsp, 0x28
and eax, 1
ret
xor eax, eax
add rsp, 0x28
ret
xor eax, eax
ret
Function at 0x1400ca400
Capabilities:
Encode data using base64

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
cmp r9d, 1
je 0x1400ca608
cmp r9d, 2
jne 0x1400ca627
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_UUUUUU
test r8, r8
je 0x1400ca618
test rdx, rdx
je 0x1400ca618
movzx r9d, byte [rcx]
lea rax, [rcx + 1]
xor r12d, r12d
mov byte [rsp + 0x2d], r9b
mov r9d, 1
cmp rdx, 1
je 0x1400ca540
add rcx, rdx
xor esi, esi
mov edx, 1
xor r12d, r12d
jmp 0x1400ca474
cmp rcx, rax
je 0x1400ca520
mov edx, r9d
movzx r11d, byte [rax]
movzx r10d, dl
add rax, 1
lea r9d, [rdx + 1]
mov byte [rsp + r10 + 0x2d], r11b
cmp dl, 2
jne 0x1400ca468
movzx r9d, byte [rsp + 0x2d]
movzx edx, byte [rsp + 0x2e]
movzx r10d, byte [rsp + 0x2f]
mov r11d, r9d
shl r9d, 4
shr r11b, 2
and r9d, 0x30
movzx r11d, r11b
movzx r11d, byte [rbx + r11]
mov byte [r8 + r12], r11b
mov r11d, edx
shl edx, 2
shr r11b, 4
and edx, 0x3c
add r9d, r11d
mov r11d, r10d
and r10d, 0x3f
movzx r9d, r9b
shr r11b, 6
movzx r9d, byte [rbx + r9]
add edx, r11d
movzx edx, dl
mov byte [r8 + r12 + 1], r9b
movzx edx, byte [rbx + rdx]
lea r9, [r12 + 3]
mov byte [r8 + r12 + 2], dl
movzx edx, byte [rbx + r10]
add r12, 4
mov byte [r8 + r9], dl
cmp rcx, rax
je 0x1400ca52a
mov esi, 1
xor r9d, r9d
jmp 0x1400ca471
test sil, sil
je 0x1400ca540
test r9b, r9b
jne 0x1400ca540
add rsp, 0x30
mov rax, r12
pop rbx
pop rsi
pop r12
ret
movzx r10d, r9b
movzx eax, r9b
mov edx, 3
lea r11, [rsp + r10 + 0x2d]
sub edx, eax
je 0x1400ca566
xor eax, eax
mov ecx, eax
add eax, 1
mov byte [r11 + rcx], 0
cmp eax, edx
jb 0x1400ca558
movzx eax, byte [rsp + 0x2d]
movzx ecx, byte [rsp + 0x2e]
movzx r11d, byte [rsp + 0x2f]
mov esi, eax
shl eax, 4
lea edx, [rcx*4]
shr sil, 2
and eax, 0x30
shr cl, 4
and edx, 0x3c
movzx esi, sil
add eax, ecx
shr r11b, 6
movzx esi, byte [rbx + rsi]
movzx eax, al
add edx, r11d
lea r11, [r12 + 1]
mov byte [r8 + r12], sil
movzx eax, byte [rbx + rax]
mov byte [r8 + r12 + 1], al
cmp r9b, 2
jne 0x1400ca5c7
movzx edx, dl
movzx eax, byte [rbx + rdx]
mov byte [r8 + r12 + 2], al
mov r12d, 3
add r11, r10
sub r12d, r9d
add r8, r11
movzx r12d, r12b
mov ecx, r12d
test r12d, r12d
je 0x1400ca5f2
xor eax, eax
mov edx, eax
add eax, 1
mov byte [r8 + rdx], 0x3d
cmp eax, ecx
jb 0x1400ca5e4
add rsp, 0x30
add r12, r11
mov rax, r12
pop rbx
pop rsi
pop r12
ret
lea rbx, [0x1402ca0e0]
test r8, r8
jne 0x1400ca42c
add rsp, 0x30
xor r12d, r12d
mov rax, r12
pop rbx
pop rsi
pop r12
ret
lea rcx, str.Unknown_base64_standard
call sub.msvcrt.dll_perror
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
cmp rcx, 0x10
jbe 0x1400ca650
lea rax, [rcx - 8]
ret
sub rsp, 0x38
lea rax, str.blowfish_cbc_decryption_size_in_ct_with_iv_must_be_more_than_28_bytes
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.dap_enc_blowfish
call fcn.14005a160
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400ccba0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rax, r8
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x160
and eax, 0xf
mov qword [rbp + 0x28], r9
mov qword [rsp + 0x48], rax
jne 0x1400cccd4
mov r12, r8
cmp r8, qword [rbp + 0x30]
ja 0x1400cccb0
mov rdi, rdx
mov rdx, qword [rcx + 8]
lea r13, [rsp + 0x50]
mov rax, qword [rcx + 0x98]
lea r15, [rsp + 0x70]
mov rcx, r13
movdqu xmm0, xmmword [rdx]
mov rsi, qword [rax]
mov r14, qword [rax + 8]
movaps xmmword [rsp + 0x50], xmm0
movdqu xmm1, xmmword [rdx + 0x10]
mov edx, 8
movaps xmmword [rsp + 0x60], xmm1
call fcn.14020b4d0
mov rcx, r13
mov rdx, r15
mov r13, r12
call fcn.14004e320
shr r13, 4
je 0x1400ccc7a
mov rbx, qword [rbp + 0x28]
shl r13, 4
add r13, rbx
nop word [rax + rax]
mov rdx, rbx
mov rcx, rdi
mov r8, r15
add rdi, 0x10
call fcn.140044b50
mov rax, r14
xor dword [rbx], esi
shr rsi, 0x20
xor dword [rbx + 8], r14d
shr rax, 0x20
xor dword [rbx + 4], esi
xor dword [rbx + 0xc], eax
add rbx, 0x10
mov rsi, qword [rdi - 0x10]
mov r14, qword [rdi - 8]
cmp r13, rbx
jne 0x1400ccc40
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax + r12 - 1]
cmp r12, rax
jb 0x1400ccd01
sub r12, rax
mov qword [rsp + 0x48], r12
mov rax, qword [rsp + 0x48]
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, str.buf_out_size___a_in_size
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_enc_aes
call fcn.14005a160
jmp 0x1400ccc91
lea rax, str.Bad_in_size
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.dap_enc_aes
call fcn.14005a160
mov qword [rsp + 0x48], 0
jmp 0x1400ccc91
mov qword [rsp + 0x28], rax
lea rax, str.Padding_size_is__zu_while_whole_message_is_just__zu
mov r9d, 8
lea r8, str.dap_enc_aes
mov qword [rsp + 0x30], r12
mov edx, 0x85
lea rcx, str.dap_enc_iaes256_cbc_decrypt_fast
mov qword [rsp + 0x20], rax
call fcn.14005a160
jmp 0x1400ccc91