joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042a44d
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0xa0
mov rbx, rcx
mov edx, 0
test rcx, rcx
je 0x10042a49d
lea rdx, [rsp + 0x20]
call sym.stat
mov rdx, qword [rsp + 0x60]
test eax, eax
jns 0x10042a49d
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8, rbx
lea rdx, [0x100457710]
mov ecx, 1
call dbg.outerror
mov edx, 0
mov rax, rdx
add rsp, 0xa0
pop rbx
ret

Function at 0x10042aa98
Capabilities:
Get file attributes

Disassembly:
push rsi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rcx, rdx
mov edx, 0x10000
call sym.open
mov ebx, eax
test eax, eax
js 0x10042ab1c
lea rdx, [rsp + 0x30]
mov ecx, eax
call sym.fstat
test eax, eax
jns 0x10042aad5
mov ecx, ebx
call sym.close
mov eax, 0
jmp 0x10042ab21
mov rcx, qword [rsp + 0x58]
mov dword [rsi + 8], ecx
mov ecx, ecx
mov dword [rsp + 0x20], 0xdd
lea r9, str.src.it_dinoex_ssl.c
lea r8, str.keyfile_load
mov edx, 0
call dbg.mymalloc2
mov qword [rsi], rax
mov r8d, dword [rsi + 8]
mov rdx, rax
mov ecx, ebx
call sym.read
mov ecx, ebx
call sym.close
mov rax, qword [rsi]
jmp 0x10042ab21
mov eax, 0
add rsp, 0xb8
pop rbx
pop rsi
ret

Function at 0x10042b0dd
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
mov r10, rcx
mov r8, rdx
mov rax, qword [0x1004632e0]
mov rax, qword [rax]
mov rcx, qword [rax + 0x1e0]
test rcx, rcx
je 0x10042b107
mov rdx, r10
call sym.gnutls_record_recv
jmp 0x10042b11b
mov ecx, dword [rax + 0xb24]
mov r9d, 0x10
mov rdx, r10
call sym.recv
add rsp, 0x28
ret

Function at 0x10042b120
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov r10, rcx
mov r8, rdx
mov rax, qword [0x1004632e0]
mov rax, qword [rax]
mov rcx, qword [rax + 0x1e0]
test rcx, rcx
je 0x10042b14a
mov rdx, r10
call sym.gnutls_record_send
jmp 0x10042b15e
mov ecx, dword [rax + 0xb24]
mov r9d, 0x20
mov rdx, r10
call sym.send
add rsp, 0x28
ret

Function at 0x10042b1a5
Capabilities:
Resolve dns

Disassembly:
push rsi
push rbx
sub rsp, 0x478
mov rbx, rcx
mov rsi, rdx
mov rcx, r8
cmp word [r8], 2
jne 0x10042b202
mov rax, qword [0x1004632e0]
mov rax, qword [rax]
cmp dword [rax + 0xae4], 0
je 0x10042b1da
mov r9d, dword [rax + 0xb38]
jmp 0x10042b1e1
mov r9d, dword [r8 + 4]
bswap r9d
movzx eax, word [rcx + 2]
xchg ah, al
movzx eax, ax
mov dword [rsp + 0x20], eax
lea r8, str._u__d
mov rdx, rsi
mov rcx, rbx
call dbg.add_snprintf
jmp 0x10042b26a
mov dword [rsp + 0x30], 0xa
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x401
lea r8, [rsp + 0x60]
mov edx, 0x1c
call sym.getnameinfo
test eax, eax
je 0x10042b249
lea r8, [0x100457926]
mov rdx, rsi
mov rcx, rbx
call dbg.add_snprintf
jmp 0x10042b26a
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [0x100457934]
mov rdx, rsi
mov rcx, rbx
call dbg.add_snprintf
add rsp, 0x478
pop rbx
pop rsi
ret
Function at 0x10042b3df
Capabilities:
Set socket configuration

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov ebx, ecx
mov esi, edx
mov r12, r8
mov ebp, r9d
mov dword [rsp + 0x4c], 4
lea rdi, [rsp + 0x4c]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
mov r8d, edx
mov edx, 0xffff
call sym.getsockopt
mov dword [rsp + 0x44], ebp
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x44]
mov r8d, esi
mov edx, 0xffff
mov ecx, ebx
call sym.setsockopt
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, esi
mov edx, 0xffff
mov ecx, ebx
call sym.getsockopt
mov rax, qword [0x1004632d0]
cmp dword [rax + 0x78b8], 0
je 0x10042b492
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov r9, r12
lea r8, str._s_a__i_b__i_c__i
mov edx, 0x21
mov ecx, 3
call dbg.ioutput
nop
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x10042b56d
Capabilities:
Resolve dns

Disassembly:
push rsi
push rbx
sub rsp, 0x478
mov rbx, rcx
mov rsi, rdx
mov rcx, r8
cmp word [r8], 2
mov edx, 0x1c
mov eax, 0x10
cmove edx, eax
mov dword [rsp + 0x30], 0xa
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x401
lea r8, [rsp + 0x60]
call sym.getnameinfo
test eax, eax
je 0x10042b5d3
lea r8, [0x100457926]
mov rdx, rsi
mov rcx, rbx
call dbg.add_snprintf
jmp 0x10042b5f4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, str.host_s_porta_s
mov rdx, rsi
mov rcx, rbx
call dbg.add_snprintf
add rsp, 0x478
pop rbx
pop rsi
ret
Function at 0x10042b5fe
Capabilities:
Resolve dns

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov r8d, 0x8c
lea rdx, str.update_natip
lea rcx, str.src.it_dinoex_irc.c
call dbg.updatecontext_f
test rbx, rbx
je 0x10042b832
mov rax, qword [0x1004632e0]
mov rax, qword [rax]
mov dword [rax + 0xae4], 1
cmp word [rax + 0xb40], 2
jne 0x10042b832
cmp dword [rax + 0xb3c], 0
jne 0x10042b832
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov rcx, rbx
call sym.inet_aton
test eax, eax
jne 0x10042b81c
mov rcx, rbx
call sym.gethostbyname
test rax, rax
jne 0x10042b6aa
mov rax, qword [sym.imp.cygwin1.dll_h_errno]
mov ecx, dword [rax]
call sym.hstrerror
mov r8, rax
lea rdx, str.NAT_Host_non_valido__ignorato:__s
mov ecx, 1
call dbg.outerror
jmp 0x10042b832
cmp word [rax + 0x12], 4
jbe 0x10042b6d8
mov rax, qword [sym.imp.cygwin1.dll_h_errno]
mov ecx, dword [rax]
call sym.hstrerror
mov r8, rax
lea rdx, str.Risposta_del_DNS_non_valida._La_ignoro:__s
mov ecx, 1
call dbg.outerror
jmp 0x10042b832
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov rax, qword [0x1004632e0]
mov r8, qword [rax]
mov edx, dword [r8 + 0xb38]
mov ecx, edx
bswap ecx
mov eax, dword [rsp + 0x30]
cmp eax, ecx
je 0x10042b832
bswap eax
mov dword [r8 + 0xb38], eax
cmp eax, edx
je 0x10042b790
call sym.inet_ntoa
mov r9d, 0xad
lea r8, str.src.it_dinoex_irc.c
lea rdx, str.update_natip
mov rcx, rax
call dbg.mystrdup2
mov rsi, rax
mov rbx, qword [0x1004632e0]
mov rax, qword [rbx]
mov rdi, qword [rax + 0xa48]
mov ecx, dword [rsp + 0x30]
call sym.inet_ntoa
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, str.DCC_IP_cambiato_da__s_a__s_in__s
mov edx, 0x21
mov ecx, 7
call dbg.ioutput
mov rcx, rsi
call dbg.mydelete2
mov rax, qword [rbx]
mov edx, dword [rax + 0xb38]
mov ecx, dword [rax + 0xaa0]
call dbg.update_getip_net
mov rax, qword [0x1004632d0]
cmp dword [rax + 0x78b8], 0
je 0x10042b7c2
mov ecx, dword [rsp + 0x30]
call sym.inet_ntoa
mov r9, rax
lea r8, str.ip_s_n
mov edx, 0x21
mov ecx, 3
call dbg.ioutput
mov rax, qword [0x1004632e0]
mov rax, qword [rax]
mov eax, dword [rax + 0xb38]
mov edx, eax
and edx, 0xff000000
cmp edx, 0xa000000
je 0x10042b7fd
mov edx, eax
and edx, 0xfff00000
cmp edx, 0xac100000
je 0x10042b7fd
mov ax, 0
cmp eax, 0xc0a80000
jne 0x10042b832
mov ecx, dword [rsp + 0x30]
call sym.inet_ntoa
mov r8, rax
lea rdx, str.Lusenatip_di__s_sembra_sbagliato__questo_probabilmente_non__quello_che_vorresti_fare
mov ecx, 1
call dbg.outerror
jmp 0x10042b832
mov rax, qword [0x1004632e0]
mov r8, qword [rax]
mov edx, dword [r8 + 0xb38]
jmp 0x10042b6f6
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x10042b83a
Capabilities:
Convert ip address from string
Set socket configuration

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov esi, ecx
mov rbx, rdx
mov r12, r8
mov edi, r9d
mov rbp, qword [rsp + 0xa0]
mov r8d, 0x14a
lea rdx, str.open_listen
lea rcx, str.src.it_dinoex_irc.c
call dbg.updatecontext_f
test rbp, rbp
je 0x10042b88e
mov edx, 0x3a
mov rcx, rbp
call sym.strchr
cmp rax, 1
sbb esi, esi
and esi, 0xffffffeb
add esi, 0x17
mov r8d, 0
mov edx, 1
mov ecx, esi
call sym.socket
mov dword [r12], eax
test eax, eax
jns 0x10042b8da
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r8, rax
lea rdx, str.Non_posso_creare_un_Socket__sto_annullando:__s
mov ecx, 1
call dbg.outerror
mov dword [r12], 0xffffffff
mov edx, 1
jmp 0x10042baac
cmp dword [rsp + 0x90], 0
je 0x10042ba83
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 4
mov edx, 0xffff
mov ecx, eax
call sym.setsockopt
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
mov dword [rbx + 0x18], 0
cmp esi, 2
jne 0x10042b94d
mov word [rbx], 2
mov dword [rbx + 4], 0
mov eax, edi
xchg ah, al
mov word [rbx + 2], ax
test rbp, rbp
jne 0x10042b961
jmp 0x10042b9b1
mov word [rbx], 0x17
mov eax, edi
xchg ah, al
mov word [rbx + 2], ax
test rbp, rbp
jne 0x10042b97e
jmp 0x10042b9b8
mov word [rbx], 2
lea r8, [rbx + 4]
mov rdx, rbp
mov ecx, 2
call sym.inet_pton
mov esi, 0x10
jmp 0x10042b996
mov word [rbx], 0x17
lea r8, [rbx + 8]
mov rdx, rbp
mov ecx, esi
call sym.inet_pton
mov esi, 0x1c
cmp eax, 1
je 0x10042b9bd
mov r8, rbp
lea rdx, str.IP_Non_Valido:__s
mov ecx, 1
call dbg.outerror
jmp 0x10042b9bd
mov esi, 0x10
jmp 0x10042b9bd
mov esi, 0x1c
cmp dword [rsp + 0x98], 0
je 0x10042b9d5
mov rdx, rbx
mov ecx, dword [r12]
call dbg.ir_bind_listen_socket
jmp 0x10042b9e4
mov r8d, esi
mov rdx, rbx
mov ecx, dword [r12]
call sym.bind
test eax, eax
jns 0x10042ba23
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r8, rax
lea rdx, str.Non_posso_impegnare_il_Socket__sto_annullando:__s
mov ecx, 1
call dbg.outerror
mov ecx, dword [r12]
call dbg.shutdown_close
mov dword [r12], 0xffffffff
mov edx, 1
jmp 0x10042baac
mov edx, 1
mov ecx, dword [r12]
call sym.listen
mov edx, 0
test eax, eax
jns 0x10042baac
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r8, rax
lea rdx, str.Impossibile_stare_in_ascolto__sto_annullando:__s
mov ecx, 1
call dbg.outerror
mov ecx, dword [r12]
call dbg.shutdown_close
mov dword [r12], 0xffffffff
mov edx, 1
jmp 0x10042baac
mov word [rbx], 2
mov dword [rbx + 4], 0
jmp 0x10042b93e
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
mov dword [rbx + 0x18], 0
cmp esi, 2
jne 0x10042b94d
jmp 0x10042ba72
mov eax, edx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x10042bab9
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x38], 1
mov r8d, 0x1b1
lea rdx, str.ir_setsockopt
lea rcx, str.src.it_dinoex_irc.c
call dbg.updatecontext_f
mov rax, qword [0x1004632d0]
mov r9d, dword [rax + 0x7940]
test r9d, r9d
je 0x10042bb28
lea r8, str.SO_SNDBUF
mov edx, 0x1001
mov ecx, ebx
call dbg.ir_setsockopt2
mov rax, qword [0x1004632d0]
mov r9d, dword [rax + 0x7940]
lea r8, str.SO_RCVBUF
mov edx, 0x1002
mov ecx, ebx
call dbg.ir_setsockopt2
mov dword [rsp + 0x3c], 8
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 3
mov edx, 0
mov ecx, ebx
call sym.setsockopt
mov rax, qword [0x1004632d0]
cmp dword [rax + 0x7a5c], 0
je 0x10042bb93
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov r8d, 1
mov edx, 6
mov ecx, ebx
call sym.setsockopt
test eax, eax
jns 0x10042bb93
lea rdx, str.Non_posso_settare_il_TCP_NODELAY
mov ecx, 2
call dbg.outerror
mov edx, 1
mov ecx, ebx
call dbg.set_socket_nonblocking
test eax, eax
jns 0x10042bbb5
lea rdx, [0x100457ba8]
mov ecx, 2
call dbg.outerror
nop
add rsp, 0x40
pop rbx
ret
Function at 0x10042bc41
Capabilities:
Resolve dns

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov ebp, ecx
mov rax, qword [0x1004632e0]
mov rax, qword [rax]
mov ecx, dword [rax + 0x17c]
call sym.close
mov ebx, 3
mov rsi, qword [0x1004632e0]
mov rax, qword [rsi]
cmp dword [rax + 0x180], ebx
je 0x10042bc81
mov ecx, ebx
call sym.close
add ebx, 1
cmp ebx, 0xff
jne 0x10042bc6f
lea rdx, [rsp + 0x30]
mov eax, 0
mov ecx, 7
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, qword [0x1004632d0]
mov dword [rdx + 0xb80c], 0xffffffff
lea rdx, [rsp + 0x70]
mov ecx, 6
mov rdi, rdx
rep stosq qword [rdi], rax
test ebp, ebp
je 0x10042bcda
cmp ebp, 2
mov edx, 0x17
mov eax, 2
cmovne eax, edx
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x78], 1
mov rsi, qword [0x1004632e0]
mov rax, qword [rsi]
lea rbx, [rsp + 0x20]
movzx r9d, word [rax + 0x178]
lea r8, [0x100457bca]
mov edx, 0x10
mov rcx, rbx
call sym.snprintf
mov rax, qword [rsi]
mov rcx, qword [rax + 0x170]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
mov rdx, rbx
call sym.getaddrinfo
test eax, eax
jne 0x10042bd37
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jne 0x10042bd8f
mov rax, qword [sym.imp.cygwin1.dll_h_errno]
mov eax, dword [rax]
cmp eax, 2
je 0x10042bd7b
cmp eax, 2
jg 0x10042bd51
cmp eax, 1
je 0x10042bd5d
jmp 0x10042bd85
cmp eax, 3
je 0x10042bd71
cmp eax, 4
je 0x10042bd67
jmp 0x10042bd85
mov ecx, 0x14
call sym._exit
mov ecx, 0x15
call sym._exit
mov ecx, 0x16
call sym._exit
mov ecx, 0x17
call sym._exit
mov ecx, 0xc
call sym._exit
mov dword [rsp + 0x30], 0
mov rax, qword [0x1004632e0]
mov rbx, qword [rax]
mov r8d, dword [rbx + 0x188]
mov rax, rdx
test r8d, r8d
jle 0x10042be69
jmp 0x10042bdc4
add ecx, 1
cmp ecx, r8d
je 0x10042be69
jmp 0x10042bdcc
mov rax, rdx
mov ecx, 0
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x10042bdb6
jmp 0x10042bde4
mov dword [rsp + 0x30], 1
test rax, rax
jne 0x10042bdef
mov dword [rsp + 0x30], 1
mov rax, rdx
mov edx, dword [rax + 4]
mov dword [rsp + 0x34], edx
mov edx, dword [rax + 8]
mov dword [rsp + 0x38], edx
mov edx, dword [rax + 0xc]
mov dword [rsp + 0x3c], edx
movsxd rdx, dword [rax + 0x10]
mov qword [rsp + 0x40], rdx
mov rdx, qword [rax + 0x20]
mov rcx, qword [rdx]
mov qword [rsp + 0x48], rcx
mov rdx, qword [rdx + 8]
mov qword [rsp + 0x50], rdx
lea rsi, [rsp + 0x30]
lea rcx, [rsi + 0x18]
mov rdx, qword [rax + 0x20]
movsxd r8, dword [rax + 0x10]
call sym.memcpy
mov ecx, dword [rbx + 0x180]
mov r8d, 0x38
mov rdx, rsi
call sym.write
mov rbx, rax
mov rcx, qword [rsp + 0x68]
call sym.freeaddrinfo
cmp rbx, 0x38
je 0x10042be79
mov ecx, 0xb
call sym._exit
cmp qword [rax + 0x28], 0
jne 0x10042bdef
jmp 0x10042bdd7
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x10042c095
Capabilities:
Convert ip address from string

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov esi, ecx
mov edi, edx
call dbg.get_local_vhost
mov rbx, rax
mov eax, 0
test rbx, rbx
je 0x10042c158
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
cmp esi, 2
jne 0x10042c106
mov word [rsp + 0x20], 2
mov word [rsp + 0x22], 0
lea r8, [rsp + 0x24]
mov rdx, rbx
mov ecx, 2
call sym.inet_pton
mov r8d, 0x10
jmp 0x10042c129
mov word [rsp + 0x20], 0x17
mov word [rsp + 0x22], 0
lea r8, [rsp + 0x28]
mov rdx, rbx
mov ecx, esi
call sym.inet_pton
mov r8d, 0x1c
cmp eax, 1
je 0x10042c149
mov r8, rbx
lea rdx, str.IP_Non_Valido:__s
mov ecx, 1
call dbg.outerror
mov eax, 1
jmp 0x10042c158
lea rdx, [rsp + 0x20]
mov ecx, edi
call sym.bind
shr eax, 0x1f
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x1004321cb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov rax, qword [0x1004632d0]
mov eax, dword [rax + 0xb6f8]
test rdx, rdx
je 0x100432203
add rdx, rcx
mov r9, qword [0x100463280]
mov r8d, eax
shr r8d, 8
xor al, byte [rcx]
movzx eax, al
xor r8d, dword [r9 + rax*4]
mov eax, r8d
add rcx, 1
cmp rdx, rcx
jne 0x1004321e7
mov rdx, qword [0x1004632d0]
mov dword [rdx + 0xb6f8], eax
ret

Function at 0x1004336b4
Capabilities:
Move file

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r13, rcx
mov rax, qword [0x1004632d0]
cmp qword [rax + 0x7810], 0
je 0x100433814
call dbg.getfilename
mov rbp, rax
mov rbx, qword [0x1004632d0]
mov r8, 0xffffffffffffffff
mov rdi, qword [rbx + 0x7810]
mov eax, 0
mov rcx, r8
repne scasb al, byte [rdi]
mov rdx, rcx
not rdx
mov rcx, r8
mov rdi, rbp
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdi, [rdx + rax + 0xd]
mov dword [rsp + 0x20], 0x562
lea r9, str.src.it_dinoex_jobs.c
lea r8, str.save_unlink
mov edx, 0
mov rcx, rdi
call dbg.mymalloc2
mov rsi, rax
mov r9, qword [rbx + 0x7810]
mov qword [rsp + 0x20], rbp
lea r8, [0x10045926b]
mov rdx, rdi
mov rcx, rax
call sym.snprintf
mov ebx, 0
mov r14, qword [0x1004632d0]
lea r12, str._s__s._03u
jmp 0x1004337b6
add ebx, 1
mov r9, qword [r14 + 0x7810]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbp
mov r8, r12
mov rdx, rdi
mov rcx, rsi
call sym.snprintf
cmp ebx, 0xc8
jne 0x1004337b6
mov rdx, rsi
mov rcx, r13
call dbg.save_unlink_failed
mov rcx, rsi
call dbg.mydelete2
mov eax, 0xffffffff
jmp 0x100433819
mov edx, 0x10001
mov rcx, rsi
call sym.open
test eax, eax
jns 0x1004337d3
call sym.__errno
cmp dword [rax], 2
jne 0x100433773
jmp 0x1004337dc
mov ecx, eax
call sym.close
jmp 0x100433773
mov rdx, rsi
mov rcx, r13
call sym.rename
test eax, eax
je 0x100433805
mov rdx, rsi
mov rcx, r13
call dbg.save_unlink_failed
mov rcx, rsi
call dbg.mydelete2
mov eax, 0xffffffff
jmp 0x100433819
mov rcx, rsi
call dbg.mydelete2
mov eax, 0
jmp 0x100433819
call sym.unlink
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x100433828
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov rbp, r9
mov rcx, rdx
call sym.unlink
test eax, eax
jns 0x10043387a
call sym.__errno
cmp dword [rax], 2
je 0x10043387a
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8, rbp
lea rdx, str.Impossibile_rimuovere_il_vecchio__s__s:__s
mov ecx, 1
call dbg.outerror
mov rdx, rsi
mov rcx, rbx
call sym.link
test eax, eax
jns 0x1004338c0
call sym.__errno
cmp dword [rax], 2
je 0x1004338c0
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9, rbx
mov r8, rbp
lea rdx, str.Impossibile_creare_un_backup_del_vecchio__s__s_____s:__s
mov ecx, 1
call dbg.outerror
mov rdx, rbx
mov rcx, rdi
call sym.rename
test eax, eax
jns 0x1004338f8
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rbp
lea rdx, str.Impossibile_salvare_il_nuovo__s__s:__s
mov ecx, 1
call dbg.outerror
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x100435446
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov r12, rcx
mov r8d, 0x859
lea rdx, global___FUNCTION__.166
lea rcx, str.src.it_dinoex_jobs.c
call dbg.updatecontext_f
mov rax, qword [0x1004632c0]
mov dword [rax], 0
mov dword [rsp + 0x20], 0x85c
lea r9, str.src.it_dinoex_jobs.c
lea r8, global___FUNCTION__.166
mov edx, 0
mov ecx, 0x200
call dbg.mymalloc2
mov rsi, rax
mov rax, qword [0x1004632d0]
mov r8, qword [rax + 0x76a8]
test r8, r8
je 0x100435641
mov r14, rax
lea rbp, [rax + 0x76a8]
add r14, 0x76f0
lea r15, [rsp + 0x30]
mov rdi, qword [0x1004632b0]
test r12, r12
jne 0x10043550c
mov rdx, r8
lea rcx, str._Carico_il_file__s_...__n
call sym.printf
lea rdx, [0x100458d84]
mov rcx, qword [rbp]
call sym.fopen
mov rbx, rax
test rax, rax
jne 0x100435585
jmp 0x100435535
lea rdx, str.Sto_ricaricando__s_...
mov rcx, r12
call dbg.a_respond
lea rdx, [0x100458d84]
mov rcx, qword [rbp]
call sym.fopen
mov rbx, rax
test rax, rax
jne 0x100435585
jmp 0x10043555e
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8, qword [rbp]
lea rdx, str.Non_posso_accedere_al_file_config__s:__s
mov ecx, 0
call dbg.outerror
jmp 0x10043562b
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8, qword [rbp]
lea rdx, str.Non_posso_accedere_al_file__s._Annullo_il_rehash:__s
mov rcx, r12
call dbg.a_respond
jmp 0x10043562b
mov r13, rbp
mov rdx, r15
mov rcx, qword [rbp]
call sym.stat
test eax, eax
jns 0x1004355bc
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8, qword [rbp]
lea rdx, str.Impossibile_effettuare_lo_stat_del_file__s:__s
mov ecx, 0
call dbg.outerror
mov rax, qword [rsp + 0x70]
mov qword [r13 - 0x50], rax
mov rax, qword [r13]
mov rdx, qword [0x1004632a0]
mov qword [rdx], rax
mov rax, qword [0x1004632b0]
mov qword [rax], 0
mov rax, qword [0x100463290]
mov dword [rax], 0
jmp 0x10043561d
mov r8, rbx
mov edx, 0x200
mov rcx, rsi
call sym.fgets
test rax, rax
je 0x100435623
add qword [rdi], 1
mov rcx, rsi
call dbg.admin_clean_input
test eax, eax
jne 0x10043561d
mov rcx, rsi
call dbg.getconfig_set
test byte [rbx + 0x10], 0x20
je 0x1004355f0
mov rcx, rbx
call sym.fclose
cmp r14, rbp
je 0x100435641
add rbp, 8
mov r8, qword [rbp]
test r8, r8
jne 0x1004354de
mov rax, qword [0x1004632d0]
add dword [rax + 0xb750], 1
mov rax, qword [0x1004632b0]
mov qword [rax], 0
mov rcx, rsi
call dbg.mydelete2
nop
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x100435c17
Capabilities:
Move file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov r8d, 0x958
lea rdx, global___FUNCTION__.299
lea rcx, str.src.it_dinoex_jobs.c
call dbg.updatecontext_f
mov rcx, rsi
call dbg.new_logfilename
mov rbx, rax
mov eax, 0
test rbx, rbx
je 0x100435cb4
mov rdx, rbx
mov rcx, rsi
call sym.rename
test eax, eax
jns 0x100435c8d
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov r8, rbx
mov rdx, rsi
lea rcx, str.Il_File__s_non_pu_essere_spostato_in__s:__s
call dbg.mylog
mov rcx, rbx
call dbg.mydelete2
mov eax, 0
jmp 0x100435cb4
mov r8, rbx
mov rdx, rsi
lea rcx, str.Il_File__s__stato_spostato_in__s.
call dbg.mylog
mov rcx, rbx
call dbg.mydelete2
mov rcx, rsi
call dbg.expire_logfiles
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x100435d8a
Capabilities:
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov dword [rsp + 0x20], 0x99a
lea r9, str.src.it_dinoex_jobs.c
lea r8, global___FUNCTION__.67
mov edx, 1
mov ecx, 0x3c
call dbg.mymalloc2
mov rbx, rax
mov r8d, 0x3c
mov edx, 0
mov rcx, rax
call dbg.getdatestr
mov rdi, qword [0x1004632d0]
mov rcx, qword [rdi + 0x7730]
mov dword [rsp + 0x28], 0x99c
lea rax, str.src.it_dinoex_jobs.c
mov qword [rsp + 0x20], rax
lea r9, global___FUNCTION__.67
mov r8d, 0x2e
mov rdx, rbx
call dbg.mystrjoin2
mov rsi, rax
mov rcx, rbx
call dbg.mydelete2
mov rcx, qword [rdi + 0x7730]
mov rdx, rsi
call sym.rename
test eax, eax
jns 0x100435e4f
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r9, rax
mov rax, qword [0x1004632d0]
mov r8, qword [rax + 0x7730]
lea rdx, str.Non_posso_salvare_il_nuovo_file_di_stato__s:__s
mov ecx, 1
call dbg.outerror
mov rcx, rsi
call dbg.mydelete2
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x100436050
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0x3d090
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sym.select
add rsp, 0x48
ret