joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ce4a0
Capabilities:
Hash data with md5

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd0]
mov rbp, rcx
mov rbx, qword [rsp + 0xd8]
xor edi, edi
mov qword [rcx + 0x18], rdi
mov r12, r9
mov dword [rcx + 8], 0x67452301
mov r15, r8
mov dword [rcx + 0xc], 0xefcdab89
mov r13, rdx
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov ecx, 0x4e28
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
call fcn.140012c10
mov rsi, rax
test rax, rax
je 0x1400ce6c0
mov rcx, r13
mov dword [rsp + 0x48], edi
mov byte [rsp + 0x30], 1
call fcn.140118e80
test al, al
jne 0x1400ce6a6
nop word [rax + rax]
mov qword [rsp + 0x28], r12
lea r9, [rsp + 0x48]
mov r8d, 0x4e20
mov qword [rsp + 0x20], r15
mov rdx, rsi
mov rcx, r13
call fcn.1401190d0
test al, al
je 0x1400ce6a6
mov r9d, dword [rsp + 0x48]
test r9d, r9d
je 0x1400ce67e
test rbx, rbx
je 0x1400ce58e
mov r8d, r9d
mov rdx, rsi
mov rcx, rbx
call fcn.14003eae0
mov r9d, dword [rsp + 0x48]
mov edi, r9d
test r9d, r9d
je 0x1400ce667
mov eax, dword [rbp + 0x18]
lea ecx, [r9*8]
mov edx, eax
add eax, ecx
shr edx, 3
and edx, 0x3f
mov dword [rbp + 0x18], eax
cmp eax, ecx
jae 0x1400ce5b9
inc dword [rbp + 0x1c]
mov eax, edi
mov ebx, 0x40
shr eax, 0x1d
sub ebx, edx
add dword [rbp + 0x1c], eax
cmp edi, ebx
jb 0x1400ce631
test ebx, ebx
je 0x1400ce5f2
mov r8d, edx
mov rcx, rsi
sub r8, rsi
mov edx, ebx
add r8, rbp
nop
movzx eax, byte [rcx]
mov byte [r8 + rcx + 0x20], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400ce5e0
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 8]
call fcn.1400cda70
lea eax, [rbx + 0x3f]
cmp eax, edi
jae 0x1400ce628
nop word [rax + rax]
mov edx, ebx
lea rcx, [rbp + 8]
add rdx, rsi
call fcn.1400cda70
add ebx, 0x40
lea eax, [rbx + 0x3f]
cmp eax, edi
jb 0x1400ce610
mov r9d, dword [rsp + 0x48]
xor edx, edx
jmp 0x1400ce633
xor ebx, ebx
sub edi, ebx
je 0x1400ce662
mov r8d, edx
lea rcx, [rbx + rsi]
mov eax, ebx
sub r8, rax
mov edx, edi
sub r8, rsi
add r8, rbp
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [r8 + rcx + 0x20], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400ce650
mov rbx, qword [rsp + 0x38]
test r15, r15
je 0x1400ce67e
mov edx, r9d
mov r8, r12
mov rcx, r15
call fcn.1400c6d40
test al, al
jne 0x1400ce690
mov rcx, r13
call fcn.140118e80
test al, al
je 0x1400ce540
jmp 0x1400ce6a6
mov rax, qword [r12]
lea rdx, str.Digest_MD5_aborted_by_application
mov rcx, r12
call qword [rax + 0x28]
mov byte [rsp + 0x30], 0
mov rcx, rsi
call fcn.1401e12f0
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.1400ce760
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400ce6e0
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov qword [rcx + 0x18], rax
mov rsi, rcx
mov dword [rcx + 0xc], 0xefcdab89
mov rbp, r8
mov dword [rcx + 0x10], 0x98badcfe
mov rdi, rdx
mov dword [rcx + 0x14], 0x10325476
mov rcx, rdx
call fcn.140036680
mov rcx, rdi
mov ebx, eax
call fcn.1400366f0
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call fcn.1400ce8b0
mov rdx, rbp
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1400ce760

Function at 0x1400ce880
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov qword [rcx + 0x18], rax
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0xc64d29ea
mov rdi, r8
movzx esi, dl
mov rbx, rcx
jne 0x1400d0229
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1400d025b
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x1400d0275
xor ecx, ecx
call fcn.14000c920
cmp dword [rbx + 0xee8], 2
mov rdx, rdi
jne 0x1400d0349
lea rcx, [rbx + 0x220]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14019d090
cmp dword [rcx + 0xee8], 2
jne 0x1400d0230
add rcx, 0x220
call fcn.14019ce70
test rax, rax
je 0x1400d0230
mov rdx, rdi
mov rcx, rax
call fcn.1401a0070
test al, al
je 0x1400d031e
test sil, sil
jne 0x1400d029f
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rdi + 0x169], 0
je 0x1400d02b8
mov rax, qword [rdi]
lea rdx, str.Checking_SSH_channel...
mov rcx, rdi
call qword [rax + 0x30]
cmp qword [rbx + 0xed8], 0
je 0x1400d02dd
mov eax, dword [rbx + 0xee0]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp dword [rbx + 0xee8], 2
jne 0x1400d0307
lea rcx, [rbx + 0x220]
call fcn.14019ce60
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rdi + 0x169], 0
je 0x1400d0337
mov rax, qword [rdi]
lea rdx, str.SSH_tunnel_is_not_connected.
mov rcx, rdi
call qword [rax + 0x30]
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [rbx + 0xb50]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140138220
add rcx, 0x18
jmp fcn.14019b4a0

Function at 0x1400d0480
Capabilities:
Get socket status

Disassembly:
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1400d0494
mov rcx, rax
jmp fcn.1401a0840
cmp dword [rcx + 0xee8], 2
jne 0x1400d04a9
add rcx, 0x220
jmp fcn.14019cf40
add rcx, 0xb50
jmp fcn.1401376d0
Function at 0x1400d05f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0xc64d29ea
mov rdi, r8
mov esi, edx
mov rbx, rcx
jne 0x1400d0628
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1400d0658
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x1400d0672
xor ecx, ecx
call fcn.14000c920
cmp dword [rbx + 0xee8], 2
jne 0x1400d067f
lea rcx, [rbx + 0x220]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14019cf60
cmp dword [rcx + 0xee8], 2
jne 0x1400d062f
add rcx, 0x220
call fcn.14019ce70
test rax, rax
je 0x1400d062f
mov rcx, rax
call fcn.14019ed90
mov rcx, rax
jmp 0x1400d0686
lea rcx, [rbx + 0xb50]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140137860
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x18]
mov rbx, r8
mov rcx, rdi
mov esi, edx
call fcn.14019ade0
test rax, rax
jne 0x14019cfa5
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [str._U_]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x28]
mov r8, rbx
mov edx, esi
mov rcx, rax
call fcn.140137860
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14019b140

Function at 0x1400d06a0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0xc64d29ea
mov rdi, r8
mov esi, edx
mov rbx, rcx
jne 0x1400d06d8
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1400d0708
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x1400d0722
xor ecx, ecx
call fcn.14000c920
cmp dword [rbx + 0xee8], 2
jne 0x1400d072f
lea rcx, [rbx + 0x220]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14019cfd0
cmp dword [rcx + 0xee8], 2
jne 0x1400d06df
add rcx, 0x220
call fcn.14019ce70
test rax, rax
je 0x1400d06df
mov rcx, rax
call fcn.14019ed90
mov rcx, rax
jmp 0x1400d0736
lea rcx, [rbx + 0xb50]
mov r8, rdi
mov edx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140137880
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x18]
mov rbx, r8
mov rcx, rdi
mov esi, edx
call fcn.14019ade0
test rax, rax
jne 0x14019d015
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [str._U_]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x28]
mov r8, rbx
mov edx, esi
mov rcx, rax
call fcn.140137880
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14019b140

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

Disassembly:
mov r8, rdx
add rcx, 0xffffffffffffff78
mov dl, 1
jmp fcn.1400d01f0
Function at 0x1400d0fa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
mov esi, r9d
mov rdi, qword [rsp + 0x88]
mov r15d, r8d
mov r12, rdx
mov byte [rbx], 0
cmp byte [rdi + 0x10], 0
jne 0x1400d0ff5
mov rcx, qword [rsp + 0x90]
mov rdx, qword [str.Internal_error:_Socket_IO_params_not_valid.__Contact_support_chilkatsoft.com]
mov rax, qword [rcx]
call qword [rax + 0x28]
xor al, al
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
lea rbp, [rcx - 0x88]
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], r14
mov r14, qword [rsp + 0x90]
mov qword [rsp + 0x88], rbp
test r9d, r9d
jne 0x1400d106c
mov rax, qword [rcx + 0xe50]
mov r8, r14
mov rdx, rdi
test rax, rax
je 0x1400d103c
mov rcx, rax
call fcn.1401a0840
jmp 0x1400d105f
cmp dword [rcx + 0xe60], 2
jne 0x1400d1053
add rcx, 0x198
call fcn.14019cf40
jmp 0x1400d105f
add rcx, 0xac8
call fcn.1401376d0
test al, al
je 0x1400d114c
mov esi, 0x7530
mov rcx, r12
call fcn.140043080
mov r9d, esi
mov qword [rsp + 0x28], r14
mov r8d, r15d
mov qword [rsp + 0x20], rdi
mov rdx, r12
mov rcx, rbp
mov r13d, eax
call fcn.1400d0a80
movzx r15d, al
test al, al
je 0x1400d114c
mov rcx, r12
call fcn.140043080
cmp eax, r13d
jbe 0x1400d10bd
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov byte [rbx], al
mov al, 1
jmp 0x1400d114e
call sub.KERNEL32.dll_GetTickCount
mov ebp, eax
xor ebx, ebx
mov rcx, r12
call fcn.140043080
cmp eax, r13d
jne 0x1400d111f
cmp ebx, esi
jae 0x1400d111f
mov r8d, dword [rsp + 0x70]
mov r9d, esi
mov rcx, qword [rsp + 0x88]
mov rdx, r12
movzx ebx, byte [rdi + 0x34]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
call fcn.1400d0a80
movzx r15d, al
test bl, bl
je 0x1400d1109
mov byte [rdi + 0x34], 1
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
cmp eax, ebp
jb 0x1400d114c
sub ebx, ebp
cmp ebx, esi
jae 0x1400d1138
test r15b, r15b
jne 0x1400d10c6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x80]
mov byte [rcx], al
movzx eax, r15b
jmp 0x1400d114e
mov rax, qword [r14]
lea rdx, str.Timed_out......
mov rcx, r14
call qword [rax + 0x28]
mov byte [rdi + 0x28], 1
xor al, al
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400d2d50
Capabilities:
Get socket status

Disassembly:
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x1400d2d64
mov rcx, rax
jmp 0x1401ae020
cmp dword [rcx + 0xee8], 2
jne 0x1400d2d79
add rcx, 0x220
jmp 0x14019d770
add rcx, 0xb50
jmp fcn.140139b80
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbx, rcx
mov rsi, r9
add rcx, 0x40
mov rbp, r8
mov r14d, edx
call fcn.140043080
test eax, eax
je 0x14019b8d2
mov al, 1
jmp 0x14019b926
mov qword [rsp + 0x30], rdi
mov rcx, rbx
xor dil, dil
call fcn.14000fbb0
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14019b8fb
mov r9, rsi
mov r8, rbp
mov edx, r14d
call fcn.140139b80
jmp 0x14019b912
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14019b915
mov r9, rsi
mov r8, rbp
mov edx, r14d
call fcn.1400d2d50
movzx edi, al
mov rcx, rbx
call fcn.14000fb30
movzx eax, dil
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
add rcx, 0x18
jmp 0x14019b8a0
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, r9
mov rsi, r8
mov edi, edx
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14006abe0
nop
lea rcx, [rbx + 0xbe0]
call fcn.14019aed0
mov rcx, rax
mov r9, rbp
mov r8, rsi
mov edx, edi
call fcn.140139b80
movzx ebx, al
lea rcx, [rsp + 0x20]
call fcn.14006acb0
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400d3bb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1402cc128], 0
mov edi, edx
mov esi, ecx
jne 0x1400d3bd7
call sub.KERNEL32.dll_GetTickCount
mov dword [0x1402cc128], eax
call fcn.140052cd0
mov ebx, eax
imul ebx, dword [0x1402cc128]
call fcn.140052ce0
mov r8d, eax
xor edx, edx
mov eax, ebx
div r8d
mov dword [0x1402cc128], edx
mov eax, edx
test edx, edx
jne 0x1400d3c0b
call sub.KERNEL32.dll_GetTickCount
mov dword [0x1402cc128], eax
mov r8d, edi
mov edx, esi
mov ecx, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140053040
Function at 0x1400d4a10
Capabilities:
Reference google public dns server

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push r14
sub rsp, 0x20
mov esi, ecx
mov r14, r8
mov rcx, rdx
mov rbx, rdx
call fcn.140033810
mov byte [r14], 0
cmp byte [0x1402cc0f1], 0
jne 0x1400d4ae8
call fcn.1400d3d10
mov rcx, qword [0x1402cc0f8]
test rcx, rcx
je 0x1400d4ae8
cmp qword [0x1402cc120], 0
je 0x1400d4ae8
mov qword [rsp + 0x30], rdi
call fcn.14006ae40
mov rcx, qword [0x1402cc120]
mov edx, esi
xor dil, dil
call fcn.1400698a0
mov rsi, rax
test rax, rax
je 0x1400d4ac2
lea rdx, [rax + 0x10]
mov rcx, rbx
call fcn.140030ba0
lea rdx, str.0.0.0.0
mov rcx, rbx
call fcn.140035be0
test al, al
je 0x1400d4ab5
lea rdx, str.8.8.8.8
mov rcx, rbx
call fcn.14003a1d0
movzx eax, byte [rsi + 0xa0]
mov dil, 1
mov byte [r14], al
mov rcx, qword [0x1402cc0f8]
call fcn.14006ae80
movzx eax, dil
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov rbx, qword [rsp + 0x38]
xor al, al
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x1400d4f10
Capabilities:
Reference google public dns server

Disassembly:
test rcx, rcx
je 0x1400d50a6
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
movzx r14d, dl
mov rbp, rcx
cmp byte [0x1402cc0f1], 0
jne 0x1400d5094
call fcn.1400d3d10
cmp byte [0x1402cc0f0], 0
je 0x1400d5094
mov rcx, qword [0x1402cc0f8]
test rcx, rcx
je 0x1400d5094
cmp qword [0x1402cc120], 0
je 0x1400d5094
call fcn.14006ae40
mov ecx, 0xb8
call fcn.1401e1594
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400d4fc7
xor edx, edx
mov r8d, 0xb8
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call fcn.140012320
nop
lea rax, vtable._ckNameserver.0
mov qword [rdi], rax
lea rcx, [rdi + 0x10]
call fcn.140030810
xor ebx, ebx
mov dword [rdi + 0xa4], ebx
mov dword [rdi + 0xb4], ebx
jmp 0x1400d4fcb
xor ebx, ebx
mov edi, ebx
test rdi, rdi
je 0x1400d5088
mov rdx, rbp
lea rcx, [rdi + 0x10]
call fcn.140030f40
lea rcx, [rdi + 0x10]
call fcn.14003d080
lea rdx, str.0.0.0.0
lea rcx, [rdi + 0x10]
call fcn.140035be0
test al, al
je 0x1400d500d
lea rdx, str.8.8.8.8
lea rcx, [rdi + 0x10]
call fcn.14003a1d0
lea rcx, [rdi + 0x10]
call fcn.140036680
test eax, eax
je 0x1400d507b
mov byte [rdi + 0xa0], r14b
mov rcx, qword [0x1402cc120]
call fcn.140069a60
mov ebp, eax
test eax, eax
jle 0x1400d506a
nop dword [rax]
nop word [rax + rax]
mov edx, ebx
mov rcx, qword [0x1402cc120]
call fcn.1400698a0
test rax, rax
je 0x1400d5064
lea rcx, [rax + 0x10]
lea rdx, [rdi + 0x10]
call fcn.140035ba0
test al, al
jne 0x1400d507b
inc ebx
cmp ebx, ebp
jl 0x1400d5040
mov rdx, rdi
mov rcx, qword [0x1402cc120]
call fcn.140069500
jmp 0x1400d5088
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, qword [0x1402cc0f8]
call fcn.14006ae80
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400df6c0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rdx
mov rax, qword [rcx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x1400df793
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1400df78f
test rdi, rdi
je 0x1400df78f
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
lea rcx, [rsp + 0x20]
call fcn.140030810
nop
lea rcx, [rsp + 0x20]
call fcn.140032100
mov rbx, qword [rdi]
lea rcx, [rsp + 0x20]
call fcn.1400366f0
mov rdx, rax
mov rcx, rdi
call qword [rbx + 0x28]
mov rax, qword [rdi]
lea rdx, str.Failed_to_get_file_size__32_
mov rcx, rdi
call qword [rax + 0x28]
nop
lea rcx, [rsp + 0x20]
call fcn.140030860
mov eax, esi
jmp 0x1400df7af
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400df7aa
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__filelength
jmp 0x1400df7af
mov eax, 0xffffffff
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401e12d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400df7e0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x1400df8ff
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400df8f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400df8f2
test rdi, rdi
je 0x1400df8ca
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
lea rcx, [rsp + 0x30]
call fcn.140030810
nop
lea rcx, [rsp + 0x30]
call fcn.140032100
mov rbx, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.1400366f0
mov rdx, rax
mov rcx, rdi
call qword [rbx + 0x28]
mov rax, qword [rdi]
lea rdx, str.Failed_to_get_file_size__64_
mov rcx, rdi
call qword [rax + 0x28]
nop
lea rcx, [rsp + 0x30]
call fcn.140030860
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401e12d0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
ret
mov edx, dword [rsp + 0x20]
mov ecx, ebx
call fcn.14006d320
jmp 0x1400df8d1
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400df8ca
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rcx, qword [rbx + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__filelengthi64
jmp 0x1400df8d1
Function at 0x1400dfa10
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, qword [rsp + 0xd0]
mov rax, rdx
mov r14, qword [rsp + 0xd8]
xor r15d, r15d
mov qword [rsp + 0x30], rcx
mov rdi, r9
mov ebx, r8d
mov rdx, rcx
mov byte [rsi], 0
mov dword [r9], r15d
test rax, rax
jne 0x1400dfa7f
test r14, r14
je 0x1400dfba0
mov rax, qword [r14]
lea rdx, str.NULL_buf_pointer.
mov rcx, r14
call qword [rax + 0x28]
xor al, al
jmp 0x1400dfba6
test ebx, ebx
je 0x1400dfba4
mov ecx, 0x10000
mov byte [rsi], r15b
cmp ebx, ecx
mov dword [rsp + 0x48], r15d
mov ebp, ebx
mov r13, rax
cmova ebp, ecx
mov r12, rax
test rax, rax
je 0x1400dfb83
mov rcx, qword [rdx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x1400dfaff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r15
mov r8d, ebp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400dfaf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x1400dfb3d
test r14, r14
je 0x1400dfae8
mov edx, eax
mov rcx, r14
call fcn.140054940
mov eax, dword [rsp + 0x48]
add dword [rdi], eax
xor al, al
jmp 0x1400dfba6
mov eax, dword [rsp + 0x48]
test eax, eax
jne 0x1400dfb44
jmp 0x1400dfb41
mov r9, qword [rdx + 8]
test r9, r9
je 0x1400dfb75
mov r8d, ebp
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov dword [rsp + 0x48], eax
cmp eax, ebp
jne 0x1400dfb2b
add dword [rdi], eax
sub ebx, eax
mov eax, eax
add rax, r13
jmp 0x1400dfb4b
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 8]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x1400dfb5e
mov eax, dword [rsp + 0x48]
mov byte [rsi], 1
add dword [rdi], eax
sub ebx, eax
add rax, r12
cmp byte [rsi], r15b
jne 0x1400dfba4
test ebx, ebx
je 0x1400dfba4
mov rdx, qword [rsp + 0x30]
jmp 0x1400dfa87
test r14, r14
je 0x1400dfae8
mov rcx, r14
call fcn.140054450
mov eax, dword [rsp + 0x48]
add dword [rdi], eax
xor al, al
jmp 0x1400dfba6
test r14, r14
je 0x1400dfb9d
lea rdx, str.No_file_is_open.
jmp 0x1400dfb8f
test r14, r14
je 0x1400dfb9d
lea rdx, str.NULL_buf_or_bufSize
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
mov r15d, dword [rsp + 0x48]
add dword [rdi], r15d
xor al, al
jmp 0x1400dfba6
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e0070
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov r14, r9
mov rsi, qword [rsp + 0xb0]
mov rdi, r8
mov rbp, rdx
mov r15, rcx
jne 0x1400e00d2
cmp qword [rcx + 8], 0
jne 0x1400e00d2
test rsi, rsi
je 0x1400e01d0
mov rax, qword [rsi]
lea rdx, str.Failed_to_write_because_file_is_not_open.
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x1400e019d
xor r13d, r13d
test r14, r14
je 0x1400e00dd
mov qword [r9], r13
test r8, r8
je 0x1400e019b
mov edx, dword [rsp + 0x30]
mov r12d, 0x989680
mov rcx, qword [r15 + 0x10]
cmp rdi, r12
mov ebx, edi
cmovg ebx, r12d
cmp rcx, 0xffffffffffffffff
je 0x1400e015b
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r13d
mov r8d, ebx
mov qword [rsp + 0x20], r13
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400e012a
mov edx, dword [rsp + 0x30]
cmp edx, ebx
je 0x1400e0180
test rsi, rsi
je 0x1400e01d0
mov rax, qword [rsi]
lea rdx, str.WriteFileError
mov r8b, 1
mov rcx, rsi
call qword [rax + 0x48]
mov rcx, rsi
call fcn.140054450
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x50]
xor al, al
jmp 0x1400e019d
mov r9, qword [r15 + 8]
test r9, r9
je 0x1400e0180
mov edx, ebx
mov r8d, 1
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
cmp rax, 1
jne 0x1400e01bb
mov edx, ebx
mov dword [rsp + 0x30], ebx
mov eax, ebx
add rbp, rax
sub rdi, rax
test r14, r14
je 0x1400e0192
mov eax, edx
add qword [r14], rax
test rdi, rdi
jne 0x1400e00f0
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rsi, rsi
je 0x1400e01d0
mov rax, qword [rsi]
lea rdx, str.fwrite_failed.
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x1400e019d