joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140088110
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ebx, 1
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140088159
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140088157
movsxd rcx, eax
add rdi, rcx
sub ebx, eax
jmp 0x140088166
je 0x14008817d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400881a7
test ebx, ebx
jne 0x140088130
lea eax, [rbx - 1]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r8, str.VSocket::ReadExactHTTP_:_zero_bytes_read3_n
mov edx, 4
lea rcx, vtable.VNCLog.0
call fcn.140017a50
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.VSocket::ReadExactHTTP_:_HTTP_socket_error:__d_n
mov edx, 4
mov r9d, eax
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400881e0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r13d, r13d
mov r15d, r8d
mov r12, rdx
mov rsi, rcx
mov ebp, r13d
mov edi, r13d
test r8d, r8d
je 0x1400882c8
mov qword [rsp + 0x30], 1
mov ebx, r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rsi
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 1
xor edx, edx
lea ecx, [rsi + 1]
call qword [sym.imp.WS2_32.dll_select]
mov ecx, eax
inc ebx
movzx eax, byte [0x1401f32c3]
test ecx, ecx
jne 0x140088279
test al, al
jne 0x140088279
cmp ebx, 0x258
jl 0x140088230
xor al, al
jmp 0x1400882ca
cmp ebx, 0x258
jge 0x140088275
test al, al
jne 0x140088275
cmp ecx, 1
ja 0x140088275
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400882b5
mov r8d, r15d
mov edx, edi
sub r8d, edi
add rdx, r12
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
lea ecx, [rbp + 1]
cmp ecx, 1
jbe 0x140088275
add edi, ebp
cmp edi, r15d
jb 0x140088224
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401312c0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ad2a0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x20
xor ebp, ebp
mov r15, r9
mov esi, r8d
mov rdi, rdx
cmp dword [rcx + 0x68], ebp
jne 0x1400ad2cd
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
cmp r8d, 4
jb 0x1400ad398
mov r8d, dword [0x1401efef8]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r12
mov r12d, 0x4453
mov qword [rsp + 0x50], r14
mov r14, qword [rsp + 0x60]
nop dword [rax + rax]
movzx eax, byte [rdi + 2]
movzx ebx, byte [rdi + 3]
shl ebx, 8
or ebx, eax
lea eax, [rsi - 4]
cmp ebx, eax
ja 0x1400ad389
movzx ecx, byte [rdi + 1]
movzx eax, byte [rdi]
shl cx, 8
or cx, ax
cmp cx, r12w
jne 0x1400ad371
cmp r8d, 0xffffffff
jne 0x1400ad356
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400ad34a
mov r8d, 1
mov dword [0x1401efef8], r8d
jmp 0x1400ad35b
xor r8d, r8d
mov dword [0x1401efef8], r8d
jmp 0x1400ad371
test r8d, r8d
je 0x1400ad371
cmp ebx, 5
jb 0x1400ad371
cmp byte [rdi + 8], 0
ja 0x1400ad371
mov qword [r15], rdi
mov ebp, 1
mov dword [r14], ebx
mov ecx, 0xfffffffc
lea edx, [rbx + 4]
sub ecx, ebx
add rdi, rdx
add esi, ecx
cmp esi, 4
jae 0x1400ad300
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x1400adce0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x290
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rdx
mov rsi, rcx
mov rcx, rbx
lea rdx, [0x1401d2e30]
mov r8d, 2
call fcn.1401437e0
test eax, eax
je 0x1400add37
mov r8d, 2
lea rdx, [0x1401d2e6c]
mov rcx, rbx
call fcn.1401437e0
test eax, eax
jne 0x1400add47
movzx eax, byte [rbx + 2]
test al, al
je 0x1400add47
cmp al, 0x2f
je 0x1400add47
cmp al, 0x5c
jne 0x1400add78
movzx ecx, byte [rbx]
call fcn.14014bbb0
test eax, eax
je 0x1400add59
cmp byte [rbx + 1], 0x3a
je 0x1400add87
lea r9, [rsp + 0x48]
mov edx, 0x104
lea r8, [rsp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x1400add7f
xor eax, eax
jmp 0x1400adea0
lea rbx, [rsp + 0x170]
mov r8d, 2
mov qword [rsp + 0x2b0], rdi
mov rdx, rbx
mov qword [rsp + 0x48], rbx
lea rcx, [rsi + 0x10e4c]
call fcn.1401437e0
test eax, eax
je 0x1400ade93
mov rdx, qword [rsp + 0x48]
lea rcx, [rsi + 0x10e4c]
mov r8d, 2
call fcn.140150640
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x50]
mov word [rsi + 0x10e4e], 0x2f
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x170]
lea rax, [rsp + 0x40]
mov r8d, 0x104
lea rcx, [rsi + 0x10e4c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x1400ade23
mov byte [rsi + 0x10e4c], al
jmp 0x1400ade98
xor ebx, ebx
lea rcx, [rsp + 0x60]
cmp dword [rsp + 0x40], 0xc
mov eax, ebx
setbe al
mov dword [rsi + 0x10e50], eax
call fcn.14014a28c
mov rcx, rax
lea r8d, [rbx + 4]
lea rdx, str.VFAT
call fcn.1401437e0
test eax, eax
je 0x1400ade88
lea r8d, [rbx + 4]
lea rdx, str.HPFS
lea rcx, [rsp + 0x60]
call fcn.1401437e0
test eax, eax
je 0x1400ade88
lea r8d, [rbx + 3]
lea rdx, [0x1401d2e70]
lea rcx, [rsp + 0x60]
call fcn.1401437e0
test eax, eax
jne 0x1400ade8d
mov ebx, 1
mov dword [rsi + 0x10e54], ebx
mov eax, 1
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401312c0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x290
pop rsi
ret
Function at 0x1400b0d60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov ebp, r8d
test r8d, r8d
je 0x1400b0e30
mov ecx, dword [rcx + 0x10b28]
test ecx, ecx
jg 0x1400b0dd7
mov rdx, qword [rbx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rbx + 0x10b50]
call fcn.14014e9e0
mov dword [rbx + 0x10b28], eax
mov ecx, eax
test eax, eax
je 0x1400b0e2e
js 0x1400b0e0e
mov rax, qword [rbx + 0x10b18]
add dword [rbx + 0x10b58], 0x2000
mov qword [rbx + 0x10b20], rax
mov rdx, qword [rbx + 0x10b20]
cmp esi, ecx
mov eax, esi
cmovae eax, ecx
mov rcx, r14
mov r8d, eax
mov edi, eax
call fcn.140133600
sub dword [rbx + 0x10b28], edi
add r14, rdi
add qword [rbx + 0x10b20], rdi
mov ecx, dword [rbx + 0x10b28]
sub esi, edi
jne 0x1400b0d95
jmp 0x1400b0e30
mov r9d, 0x401
lea rdx, str.error:__zipfile_read_error_n
mov r8d, 0x1b
mov rcx, rbx
call qword [rbx + 0x10df0]
xor eax, eax
jmp 0x1400b0e32
sub ebp, esi
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400b0e50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x10c00], 0
mov rbx, rcx
jne 0x1400b0e7e
mov eax, dword [rcx + 0xa0]
test eax, eax
jg 0x1400b0e89
dec eax
xor r8d, r8d
mov dword [rcx + 0xa0], eax
mov dword [rcx + 0x10b28], r8d
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov r8d, dword [rcx + 0x10b28]
test r8d, r8d
jg 0x1400b0f3f
mov rdx, qword [rcx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rcx + 0x10b50]
call fcn.14014e9e0
mov dword [rbx + 0x10b28], eax
mov ecx, eax
test eax, eax
jne 0x1400b0ed0
xor r8d, r8d
lea eax, [rcx - 1]
mov dword [rbx + 0x10b28], r8d
add rsp, 0x20
pop rbx
ret
test ecx, ecx
js 0x1400b101a
mov r8d, dword [rbx + 0xa0]
mov edx, r8d
add dword [rbx + 0x10b58], 0x2000
mov r9, qword [rbx + 0x10b18]
mov qword [rbx + 0x10b20], r9
cmp ecx, r8d
jle 0x1400b0f23
test r8d, r8d
jns 0x1400b0f0a
xor r8d, r8d
mov edx, r8d
mov eax, r8d
add rax, r9
mov dword [rbx + 0x10b28], r8d
mov qword [rbx + 0x10e28], rax
sub ecx, r8d
jmp 0x1400b0f30
xor r8d, r8d
mov ecx, r8d
mov r8d, dword [rbx + 0x10b28]
sub edx, r8d
mov dword [rbx + 0x10e20], ecx
mov dword [rbx + 0xa0], edx
mov rax, qword [rbx + 0xb00]
mov ecx, r8d
test byte [rax + 0x18], 1
je 0x1400b0ff5
mov r9, qword [rbx + 0x10b20]
test r8d, r8d
je 0x1400b0ff5
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rbx + 0x10d74]
lea r9, [r9 + 1]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [r9 - 1], al
movzx eax, byte [r9 - 1]
mov ecx, dword [rbx + 0x10d6c]
xor rax, rcx
mov rdx, qword [rbx + 0x10b08]
movzx eax, al
shr ecx, 8
xor ecx, dword [rdx + rax*4]
movzx eax, cl
add eax, dword [rbx + 0x10d70]
imul eax, eax, 0x8088405
mov dword [rbx + 0x10d6c], ecx
mov ecx, dword [rbx + 0x10d74]
inc eax
mov dword [rbx + 0x10d70], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
xor ecx, dword [rdx + rax*4]
mov dword [rbx + 0x10d74], ecx
sub r8d, 1
jne 0x1400b0f70
mov ecx, dword [rbx + 0x10b28]
lea eax, [rcx - 1]
mov dword [rbx + 0x10b28], eax
mov rax, qword [rbx + 0x10b20]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0x10b20], rax
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov r9d, 0x401
lea rdx, str.error:__zipfile_read_error_n
mov r8d, 0x1b
mov rcx, rbx
call qword [rbx + 0x10df0]
mov edx, 1
lea rcx, [0x1401fcd00]
call fcn.140133f18
int3
Function at 0x1400b1050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [rcx + 0x10b5c]
add ecx, edx
mov ebx, ecx
and ebx, 0x80001fff
jge 0x1400b1079
dec ebx
or ebx, 0xffffe000
inc ebx
mov edx, ecx
sub edx, ebx
test ecx, ecx
jns 0x1400b10cb
mov r8, qword [rdi + 0x10b48]
lea r9, str.___please_check_that_you_have_transferred_or_created_the_zipfile_in_the_n__appropriate_BINARY_mode_and_that_you_have_compiled_UnZip_properly__n
lea rdx, str.error___s_:__attempt_to_seek_before_beginning_of_zipfile_n_s
lea rcx, [rdi + 0xb08]
call fcn.1400ab2c0
mov r8d, eax
lea rdx, [rdi + 0xb08]
mov r9d, 1
mov rcx, rdi
call qword [rdi + 0x10df0]
mov eax, 3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp edx, dword [rdi + 0x10b58]
je 0x1400b1127
mov ecx, dword [rdi + 0x10b50]
xor r8d, r8d
call fcn.14014f67c
mov rdx, qword [rdi + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rdi + 0x10b50]
mov dword [rdi + 0x10b58], eax
call fcn.14014e9e0
mov dword [rdi + 0x10b28], eax
test eax, eax
jg 0x1400b1119
mov eax, gethostbyname
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movsxd rcx, ebx
add rcx, qword [rdi + 0x10b18]
sub eax, ebx
jmp 0x1400b1145
mov eax, dword [rdi + 0x10b20]
sub eax, dword [rdi + 0x10b18]
movsxd rcx, ebx
sub eax, ebx
add rcx, qword [rdi + 0x10b18]
add eax, dword [rdi + 0x10b28]
mov dword [rdi + 0x10b28], eax
xor eax, eax
mov qword [rdi + 0x10b20], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b5be0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1400b5c47
lea r11, [0x14023e500]
xor r8d, r8d
mov r10, r11
nop word [rax + rax]
mov eax, r8d
mov r9d, 8
nop dword [rax]
mov edx, eax
mov ecx, eax
shr edx, 1
mov eax, edx
xor eax, 0xedb88320
and cl, 1
cmove eax, edx
sub r9d, 1
jne 0x1400b5c10
mov dword [r10], eax
inc r8d
add r10, 4
cmp r8d, 0x100
jl 0x1400b5c00
mov dword [reloc.WS2_32.dll_accept], r9d
mov rax, r11
ret
lea rax, [0x14023e500]
ret
Function at 0x1400baca0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [0x1401fbe2c], 0
je 0x1400bacd6
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401312c0
add rsp, 0x50
pop rbx
ret
mov ebx, 1
mov qword [rsp + 0x60], rsi
mov edx, ebx
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rsi, rax
test rax, rax
je 0x1400bae56
xchg dword [0x1401fc078], eax
mov qword [rsp + 0x68], rdi
movsxd rdi, eax
test eax, eax
je 0x1400bad3e
mov eax, edi
mov rcx, rsi
xchg dword [0x1401fc078], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x1401fbe2c]
jmp 0x1400bae51
lea rcx, [0x14028bfa0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
lea rcx, [0x1402595e0]
mov r8d, 0x120
call fcn.140133cb0
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 0x1400bae40
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x38], ebx
lea rdx, str.SeRestorePrivilege
mov dword [rsp + 0x44], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
xor edi, edi
test eax, eax
je 0x1400baddb
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400baddb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400baddb
mov dword [0x1401fbe28], ebx
jmp 0x1400bae35
cmp dword [0x1401fbe28], edi
jne 0x1400bae35
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeSecurityPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400bae35
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400bae35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1401fbc1c]
test eax, eax
cmove ecx, ebx
mov dword [0x1401fbc1c], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
mov dword [0x1401fbe2c], ebx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401312c0
add rsp, 0x50
pop rbx
ret
Function at 0x1400bbb70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov ebx, ecx
test rdx, rdx
jne 0x1400bbb9e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.1400b5be0
mov rdx, rax
not ebx
cmp rsi, 8
jb 0x1400bbc5d
mov r8, rsi
shr r8, 3
imul rcx, r8, 0xfffffffffffffff8
add rsi, rcx
movzx ecx, byte [rdi]
mov eax, ebx
xor rcx, rax
shr ebx, 8
movzx eax, cl
movzx ecx, byte [rdi + 1]
xor ebx, dword [rdx + rax*4]
mov eax, ebx
shr ebx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [rdi + 2]
xor ebx, dword [rdx + rax*4]
mov eax, ebx
shr ebx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [rdi + 3]
xor ebx, dword [rdx + rax*4]
mov eax, ebx
shr ebx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [rdi + 4]
xor ebx, dword [rdx + rax*4]
mov eax, ebx
shr ebx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [rdi + 5]
xor ebx, dword [rdx + rax*4]
mov eax, ebx
shr ebx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [rdi + 6]
xor ebx, dword [rdx + rax*4]
mov eax, ebx
shr ebx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [rdi + 7]
add rdi, 8
xor ebx, dword [rdx + rax*4]
mov eax, ebx
shr ebx, 8
xor rcx, rax
movzx eax, cl
xor ebx, dword [rdx + rax*4]
sub r8, 1
jne 0x1400bbbc0
test rsi, rsi
je 0x1400bbc8b
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdi]
lea rdi, [rdi + 1]
mov eax, ebx
shr ebx, 8
xor rcx, rax
movzx eax, cl
xor ebx, dword [rdx + rax*4]
sub rsi, 1
jne 0x1400bbc70
mov rsi, qword [rsp + 0x38]
not ebx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c2ff0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [0x14023e908]
lea rdx, [rsp + 0x20]
mov rbp, rcx
call fcn.1400c3a70
test eax, eax
jne 0x1400c303e
cmp word [rsp + 0x28], 1
jg 0x1400c305b
mov rcx, rbp
call fcn.140151898
test eax, eax
jne 0x1400c30b3
mov rdx, rbp
mov rcx, r14
call fcn.140154830
test eax, eax
je 0x1400c3188
call fcn.14015280c
cmp dword [rax], 0x12
jne 0x1400c30b3
lea rdx, [0x1401c8108]
mov rcx, r14
call fcn.140149ea4
mov rsi, rax
test rax, rax
jne 0x1400c3094
lea ecx, [rax + 2]
call fcn.14014a458
mov rcx, rax
lea rdx, str._replace:_cant_open__s_n
mov r8, r14
call fcn.1400560e0
lea eax, [rsi + 0xa]
jmp 0x1400c318a
lea rdx, [0x1401d3c34]
mov rcx, rbp
call fcn.140149ea4
mov r15, rax
test rax, rax
jne 0x1400c30bd
mov rcx, rsi
call fcn.140149fd0
mov eax, recv
jmp 0x1400c318a
mov ecx, 0x4000
call fcn.140139fc8
mov rbx, rax
test rax, rax
jne 0x1400c30d7
lea ebx, [rax + 4]
jmp 0x1400c3168
mov qword [rsp + 0x88], rdi
nop
mov r9, rsi
mov edx, 1
mov r8d, 0x4000
mov rcx, rbx
call fcn.140154fcc
mov rdi, rax
test rax, rax
je 0x1400c313e
mov r9, r15
mov r8, rax
mov edx, 1
mov rcx, rbx
call fcn.140154cc8
cmp rax, rdi
je 0x1400c30e0
mov rcx, rbx
call fcn.140137f10
mov ecx, 2
call fcn.14014a458
mov rcx, rax
lea rdx, str._fcopy:_write_error_n
call fcn.1400560e0
mov ebx, 0xa
jmp 0x1400c3160
mov rcx, rsi
call fcn.140153ff8
mov rcx, rbx
test eax, eax
je 0x1400c3159
call fcn.140137f10
mov ebx, reloc.WS2_32.dll_inet_addr
jmp 0x1400c3160
call fcn.140137f10
xor ebx, ebx
mov rdi, qword [rsp + 0x88]
mov rcx, rsi
call fcn.140149fd0
mov rcx, r15
call fcn.140149fd0
test eax, eax
jne 0x1400c31ad
test ebx, ebx
jne 0x1400c31ad
mov rcx, r14
call fcn.140151898
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401312c0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rsi
ret
mov rcx, rbp
call fcn.140151898
test ebx, ebx
je 0x1400c31c8
mov eax, recv
cmp ebx, 0xa
cmove ebx, eax
mov eax, ebx
jmp 0x1400c318a
mov ebx, recv
mov eax, ebx
jmp 0x1400c318a
Function at 0x1400c31e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov esi, r8d
mov ecx, 0x4000
mov r15, rdx
call fcn.140139fc8
mov rbp, rax
test rax, rax
jne 0x1400c321b
lea eax, [rbp + 4]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov qword [rsp + 0x48], rdi
cmp esi, 0xffffffff
je 0x1400c3242
cmp ebx, esi
jae 0x1400c32bf
mov eax, esi
sub eax, ebx
mov r8d, eax
cmp eax, 0x4000
jb 0x1400c3248
mov r8d, 0x4000
mov r9, r14
mov edx, 1
mov rcx, rbp
call fcn.140154fcc
mov rdi, rax
test rax, rax
je 0x1400c32a4
mov r9, r15
mov r8, rax
mov edx, 1
mov rcx, rbp
call fcn.140154cc8
cmp rax, rdi
jne 0x1400c327c
add ebx, edi
jmp 0x1400c3227
mov rcx, rbp
call fcn.140137f10
mov ecx, 2
call fcn.14014a458
mov rcx, rax
lea rdx, str._fcopy:_write_error_n
call fcn.1400560e0
mov eax, 0xa
jmp 0x1400c32c9
mov rcx, r14
call fcn.140153ff8
test eax, eax
je 0x1400c32bf
mov rcx, rbp
call fcn.140137f10
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x1400c32c9
mov rcx, rbp
call fcn.140137f10
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret

Function at 0x1400c3840
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
movzx ecx, byte [rcx]
call fcn.14014bbb0
test eax, eax
je 0x1400c3870
cmp byte [rbx + 1], 0x3a
je 0x1400c3893
lea r9, [rsp + 0x50]
mov edx, 0x104
lea r8, [rsp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea rbx, [rsp + 0x170]
mov r8d, 3
mov qword [rsp + 0x50], rbx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140150640
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x44]
mov byte [rsp + 0x43], 0
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x170]
lea rax, [rsp + 0x48]
mov r8d, 0x104
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea rcx, [rsp + 0x60]
call fcn.14014a28c
mov rcx, rax
lea rdx, [0x1401d2e70]
mov r8d, 3
call fcn.1401437e0
test eax, eax
je 0x1400c3951
mov r8d, 4
lea rdx, str.VFAT
lea rcx, [rsp + 0x60]
call fcn.1401437e0
test eax, eax
je 0x1400c3951
mov r8d, 4
lea rdx, str.HPFS
lea rcx, [rsp + 0x60]
call fcn.1401437e0
test eax, eax
je 0x1400c3951
xor eax, eax
jmp 0x1400c3956
mov eax, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401312c0
add rsp, 0x290
pop rbx
ret
Function at 0x1400c4630
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x1401fcf2c]
mov rbx, rcx
mov ecx, dword [0x14023e984]
test eax, eax
jne 0x1400c467e
mov r8d, edx
mov rdx, rbx
call fcn.14014e9e0
mov edi, eax
lea ecx, [rax + 1]
test ecx, 0xfffffffe
jne 0x1400c474d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 1
jne 0x1400c46d7
shr edx, 1
mov esi, edx
mov r8d, edx
add rsi, rbx
mov rdx, rsi
call fcn.14014e9e0
mov edi, eax
mov ecx, eax
dec eax
cmp eax, 0xfffffffd
ja 0x1400c4776
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rsi]
lea rsi, [rsi + 1]
mov byte [rbx], al
inc rbx
cmp al, 0xa
jne 0x1400c46cb
mov word [rbx - 1], 0xa0d
inc rbx
inc edi
add ecx, 0xffffffff
jne 0x1400c46b0
mov eax, edi
sub rbx, rax
jmp 0x1400c474d
lea r8d, [rdx - 1]
mov rsi, rbx
mov rdx, rbx
call fcn.14014e9e0
mov edi, eax
mov ecx, eax
lea eax, [rdi - 1]
cmp eax, 0xfffffffd
ja 0x1400c4776
mov byte [rdi + rbx], 0xa
nop word [rax + rax]
movzx eax, byte [rsi]
lea rsi, [rsi + 1]
mov byte [rbx], al
mov rdx, rbx
inc rbx
cmp al, 0xd
jne 0x1400c471d
cmp byte [rsi], 0xa
jne 0x1400c471d
mov rbx, rdx
dec edi
add ecx, 0xffffffff
jne 0x1400c4700
test edi, edi
jne 0x1400c473e
mov ecx, dword [0x14023e984]
mov edi, 1
mov r8d, edi
mov rdx, rbx
call fcn.14014e9e0
jmp 0x1400c474d
mov eax, edi
lea ecx, [rdi - 1]
sub rbx, rax
cmp byte [rcx + rbx], 0x1a
cmove edi, ecx
mov ecx, dword [0x14023e964]
mov r8d, edi
mov rdx, rbx
call fcn.1400bbb70
mov dword [0x14023e964], eax
mov eax, dword [0x14023ed90]
add eax, edi
mov dword [0x14023ed90], eax
cmp eax, edi
jb 0x1400c4788
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, str.file_exceeds_Zips_4GB_uncompressed_size_limit
mov ecx, 6
call fcn.1400bf140
int3