joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140087b90
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x10], 0xffffffffffffffff
jne 0x140087bbf
xor eax, eax
jmp 0x140087d59
test r8d, r8d
je 0x140087c04
xor r14d, r14d
cmp byte [rcx + 0x30], r14b
je 0x140087c75
mov r15, qword [rcx + 0x20]
cmp byte [r15 + 0x39], r14b
je 0x140087c75
cmp byte [rcx + 0xb8], r14b
je 0x140087c0e
mov r8, rbp
movsxd rcx, dword [rcx + 0xbc]
add rcx, qword [rbx + 0xb0]
call fcn.140134230
add dword [rbx + 0xbc], ebp
mov eax, 0xffffffff
jmp 0x140087d59
mov dword [rsp + 0x50], r14d
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140087c2f
mov rax, qword [rcx]
lea r9, [rsp + 0x50]
mov r8d, ebp
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, rax
jmp 0x140087c71
lea rdi, [r15 + 0x320]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], WSAGetLastError
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea r8, [rsp + 0x50]
mov edx, ebp
mov rcx, rsi
call qword [r15 + 0x2d8]
mov rsi, rax
mov qword [r15 + 0x310], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [rsp + 0x50]
mov edi, ebp
mov ecx, dword [rbx + 0x23ec]
lea eax, [rcx + rbp]
cmp eax, dword [rbx + 0x23f0]
jb 0x140087d33
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x18], eax
mov ecx, dword [rbx + 0x23ec]
mov r8d, dword [rbx + 0x23f0]
sub r8d, ecx
add rcx, 0xc4
add rcx, rbx
mov rdx, rsi
call fcn.140134230
lea rdx, [rbx + 0xc4]
mov r8d, dword [rbx + 0x23f0]
mov rcx, qword [rbx + 0x10]
call fcn.140088080
test al, al
jne 0x140087cd7
mov eax, r14d
jmp 0x140087d50
mov edx, dword [rbx + 0x23f0]
mov edi, dword [rbx + 0x23ec]
mov ecx, edx
sub ecx, edi
add rsi, rcx
sub edi, edx
add edi, ebp
mov dword [rbx + 0x23ec], r14d
mov ecx, r14d
cmp edi, edx
jb 0x140087d33
nop dword [rax]
mov r8d, edx
mov rdx, rsi
mov rcx, qword [rbx + 0x10]
call fcn.140088080
test al, al
je 0x140087cd2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x18], eax
mov eax, dword [rbx + 0x23f0]
add rsi, rax
sub edi, eax
mov edx, eax
cmp edi, eax
jae 0x140087d00
mov ecx, dword [rbx + 0x23ec]
mov r8d, edi
add rcx, 0xc4
add rcx, rbx
mov rdx, rsi
call fcn.140134230
add dword [rbx + 0x23ec], edi
mov eax, ebp
cmp eax, ebp
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140087d80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov edi, r8d
mov rbp, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], 0xffffffffffffffff
je 0x140087ede
test r8d, r8d
je 0x140087f4a
cmp byte [rcx + 0x30], 0
je 0x140087f51
mov rcx, qword [rcx + 0x20]
cmp byte [rcx + 0x39], 0
je 0x140087f51
mov r14, qword [rsi + 0x28]
test r14, r14
sete al
lea r15, [rcx + 0x10]
mov qword [rsp + 0x20], r15
mov byte [rsp + 0x28], al
mov rcx, r14
test r14, r14
jne 0x140087df7
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x28]
mov dword [rsp + 0x60], 0
test rcx, rcx
je 0x140087e16
mov rax, qword [rcx]
lea r9, [rsp + 0x60]
mov r8d, edi
xor edx, edx
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140087e30
mov rbx, qword [rsi + 0x20]
lea r8, [rsp + 0x60]
mov edx, edi
xor ecx, ecx
call qword [rbx + 0x2e0]
mov qword [rbx + 0x318], rax
mov rdi, rax
test rax, rax
jne 0x140087e41
lea r8, str.VSocket::ReadExact_:_WriteExact:_DSMPlugin_RestoreBuffer_Alloc_Error_n
jmp 0x140087e9b
mov eax, dword [rsp + 0x60]
mov r12d, eax
test eax, eax
jle 0x140087ef7
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140087e81
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdx, eax
test eax, eax
jle 0x140087e7f
add rdi, rdx
mov eax, dword [rsp + 0x60]
sub eax, edx
mov dword [rsp + 0x60], eax
jmp 0x140087e48
je 0x140087e94
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140087eae
mov eax, dword [rsp + 0x60]
jmp 0x140087e48
lea r8, str.VSocket::ReadExact_:_zero_bytes_read1_n
mov edx, 4
lea rcx, vtable.VNCLog.0
call fcn.140017a50
jmp 0x140087ed0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, str.VSocket::ReadExact_:_socket_error_1:__d_n
mov edx, 4
lea rcx, vtable.VNCLog.0
call fcn.140017a50
nop
test r14, r14
jne 0x140087ede
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x60], r12d
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x140087f20
mov rax, qword [rcx]
lea r9, [rsp + 0x78]
mov r8d, r12d
mov rdx, rbp
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140087f3c
mov rbx, qword [rsi + 0x20]
lea r8, [rsp + 0x78]
mov edx, r12d
mov rcx, rbp
call qword [rbx + 0x2e0]
mov qword [rbx + 0x318], rax
test r14, r14
jne 0x140087f4a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xffffffff
jmp 0x140087ee0
mov rcx, qword [rsi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140087f7a
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140087f78
movsxd rcx, eax
add rbp, rcx
sub edi, eax
jmp 0x140087f8b
je 0x140087f91
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140087ede
test edi, edi
je 0x140087f4a
jmp 0x140087f51
lea r8, str.VSocket::ReadExact_:_zero_bytes_read2_n
mov edx, 4
lea rcx, vtable.VNCLog.0
call fcn.140017a50
jmp 0x140087ede
Function at 0x140087fb0
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 0x140087ff9
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140087ff7
movsxd rcx, eax
add rdi, rcx
sub ebx, eax
jmp 0x140088006
je 0x14008801d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140088047
test ebx, ebx
jne 0x140087fd0
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 0x140088080
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 [0x1401f0010]
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 0x140088168
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 [0x1401f42c3]
test ecx, ecx
jne 0x140088119
test al, al
jne 0x140088119
cmp ebx, 0x258
jl 0x1400880d0
xor al, al
jmp 0x14008816a
cmp ebx, 0x258
jge 0x140088115
test al, al
jne 0x140088115
cmp ecx, 1
ja 0x140088115
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140088155
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 0x140088115
add edi, ebp
cmp edi, r15d
jb 0x1400880c4
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140131ef0
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 0x1400ad160
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 0x1400ad18d
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
cmp r8d, 4
jb 0x1400ad258
mov r8d, dword [0x1401f0ef8]
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 0x1400ad249
movzx ecx, byte [rdi + 1]
movzx eax, byte [rdi]
shl cx, 8
or cx, ax
cmp cx, r12w
jne 0x1400ad231
cmp r8d, 0xffffffff
jne 0x1400ad216
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400ad20a
mov r8d, 1
mov dword [0x1401f0ef8], r8d
jmp 0x1400ad21b
xor r8d, r8d
mov dword [0x1401f0ef8], r8d
jmp 0x1400ad231
test r8d, r8d
je 0x1400ad231
cmp ebx, 5
jb 0x1400ad231
cmp byte [rdi + 8], 0
ja 0x1400ad231
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 0x1400ad1c0
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 0x1400adba0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x290
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rdx
mov rsi, rcx
mov rcx, rbx
lea rdx, [0x1401d36a8]
mov r8d, 2
call fcn.140144410
test eax, eax
je 0x1400adbf7
mov r8d, 2
lea rdx, [0x1401d36e4]
mov rcx, rbx
call fcn.140144410
test eax, eax
jne 0x1400adc07
movzx eax, byte [rbx + 2]
test al, al
je 0x1400adc07
cmp al, 0x2f
je 0x1400adc07
cmp al, 0x5c
jne 0x1400adc38
movzx ecx, byte [rbx]
call fcn.14014c7e0
test eax, eax
je 0x1400adc19
cmp byte [rbx + 1], 0x3a
je 0x1400adc47
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 0x1400adc3f
xor eax, eax
jmp 0x1400add60
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.140144410
test eax, eax
je 0x1400add53
mov rdx, qword [rsp + 0x48]
lea rcx, [rsi + 0x10e4c]
mov r8d, 2
call fcn.140151270
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 0x1400adce3
mov byte [rsi + 0x10e4c], al
jmp 0x1400add58
xor ebx, ebx
lea rcx, [rsp + 0x60]
cmp dword [rsp + 0x40], 0xc
mov eax, ebx
setbe al
mov dword [rsi + 0x10e50], eax
call fcn.14014aebc
mov rcx, rax
lea r8d, [rbx + 4]
lea rdx, str.VFAT
call fcn.140144410
test eax, eax
je 0x1400add48
lea r8d, [rbx + 4]
lea rdx, str.HPFS
lea rcx, [rsp + 0x60]
call fcn.140144410
test eax, eax
je 0x1400add48
lea r8d, [rbx + 3]
lea rdx, [0x1401d36e8]
lea rcx, [rsp + 0x60]
call fcn.140144410
test eax, eax
jne 0x1400add4d
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.140131ef0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x290
pop rsi
ret
Function at 0x1400b0c20
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 0x1400b0cf0
mov ecx, dword [rcx + 0x10b28]
test ecx, ecx
jg 0x1400b0c97
mov rdx, qword [rbx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rbx + 0x10b50]
call fcn.14014f610
mov dword [rbx + 0x10b28], eax
mov ecx, eax
test eax, eax
je 0x1400b0cee
js 0x1400b0cce
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.140134230
sub dword [rbx + 0x10b28], edi
add r14, rdi
add qword [rbx + 0x10b20], rdi
mov ecx, dword [rbx + 0x10b28]
sub esi, edi
jne 0x1400b0c55
jmp 0x1400b0cf0
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 0x1400b0cf2
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 0x1400b0d10
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 0x1400b0d3e
mov eax, dword [rcx + 0xa0]
test eax, eax
jg 0x1400b0d49
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 0x1400b0dff
mov rdx, qword [rcx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rcx + 0x10b50]
call fcn.14014f610
mov dword [rbx + 0x10b28], eax
mov ecx, eax
test eax, eax
jne 0x1400b0d90
xor r8d, r8d
lea eax, [rcx - 1]
mov dword [rbx + 0x10b28], r8d
add rsp, 0x20
pop rbx
ret
test ecx, ecx
js 0x1400b0eda
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 0x1400b0de3
test r8d, r8d
jns 0x1400b0dca
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 0x1400b0df0
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 0x1400b0eb5
mov r9, qword [rbx + 0x10b20]
test r8d, r8d
je 0x1400b0eb5
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 0x1400b0e30
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, [0x1401fdd00]
call fcn.140134b48
int3
Function at 0x1400b0f10
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 0x1400b0f39
dec ebx
or ebx, 0xffffe000
inc ebx
mov edx, ecx
sub edx, ebx
test ecx, ecx
jns 0x1400b0f8b
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.1400ab180
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 0x1400b0fe7
mov ecx, dword [rdi + 0x10b50]
xor r8d, r8d
call fcn.1401502ac
mov rdx, qword [rdi + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rdi + 0x10b50]
mov dword [rdi + 0x10b58], eax
call fcn.14014f610
mov dword [rdi + 0x10b28], eax
test eax, eax
jg 0x1400b0fd9
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 0x1400b1005
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 0x1400b5aa0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1400b5b07
lea r11, [0x14023f510]
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 0x1400b5ad0
mov dword [r10], eax
inc r8d
add r10, 4
cmp r8d, 0x100
jl 0x1400b5ac0
mov dword [reloc.WS2_32.dll_accept], r9d
mov rax, r11
ret
lea rax, [0x14023f510]
ret
Function at 0x1400bab60
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [0x1401fce2c], 0
je 0x1400bab96
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140131ef0
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 0x1400bad16
xchg dword [0x1401fd078], eax
mov qword [rsp + 0x68], rdi
movsxd rdi, eax
test eax, eax
je 0x1400babfe
mov eax, edi
mov rcx, rsi
xchg dword [0x1401fd078], 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 [0x1401fce2c]
jmp 0x1400bad11
lea rcx, [0x14028cfc0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
lea rcx, [0x14025a600]
mov r8d, 0x120
call fcn.1401348e0
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 0x1400bad00
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 0x1400bac9b
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 0x1400bac9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400bac9b
mov dword [0x1401fce28], ebx
jmp 0x1400bacf5
cmp dword [0x1401fce28], edi
jne 0x1400bacf5
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeSecurityPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400bacf5
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 0x1400bacf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1401fcc1c]
test eax, eax
cmove ecx, ebx
mov dword [0x1401fcc1c], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
mov dword [0x1401fce2c], 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.140131ef0
add rsp, 0x50
pop rbx
ret
Function at 0x1400bba30
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 0x1400bba5e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.1400b5aa0
mov rdx, rax
not ebx
cmp rsi, 8
jb 0x1400bbb1d
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 0x1400bba80
test rsi, rsi
je 0x1400bbb4b
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 0x1400bbb30
mov rsi, qword [rsp + 0x38]
not ebx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c2eb0
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 [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [0x14023f910]
lea rdx, [rsp + 0x20]
mov rbp, rcx
call fcn.1400c3930
test eax, eax
jne 0x1400c2efe
cmp word [rsp + 0x28], 1
jg 0x1400c2f1b
mov rcx, rbp
call fcn.1401524c8
test eax, eax
jne 0x1400c2f73
mov rdx, rbp
mov rcx, r14
call fcn.140155460
test eax, eax
je 0x1400c3048
call fcn.14015343c
cmp dword [rax], 0x12
jne 0x1400c2f73
lea rdx, [0x1401c89e8]
mov rcx, r14
call fcn.14014aad4
mov rsi, rax
test rax, rax
jne 0x1400c2f54
lea ecx, [rax + 2]
call fcn.14014b088
mov rcx, rax
lea rdx, str._replace:_cant_open__s_n
mov r8, r14
call fcn.140055f80
lea eax, [rsi + 0xa]
jmp 0x1400c304a
lea rdx, [0x1401d44b4]
mov rcx, rbp
call fcn.14014aad4
mov r15, rax
test rax, rax
jne 0x1400c2f7d
mov rcx, rsi
call fcn.14014ac00
mov eax, recv
jmp 0x1400c304a
mov ecx, 0x4000
call fcn.14013abf8
mov rbx, rax
test rax, rax
jne 0x1400c2f97
lea ebx, [rax + 4]
jmp 0x1400c3028
mov qword [rsp + 0x88], rdi
nop
mov r9, rsi
mov edx, 1
mov r8d, 0x4000
mov rcx, rbx
call fcn.140155bfc
mov rdi, rax
test rax, rax
je 0x1400c2ffe
mov r9, r15
mov r8, rax
mov edx, 1
mov rcx, rbx
call fcn.1401558f8
cmp rax, rdi
je 0x1400c2fa0
mov rcx, rbx
call fcn.140138b40
mov ecx, 2
call fcn.14014b088
mov rcx, rax
lea rdx, str._fcopy:_write_error_n
call fcn.140055f80
mov ebx, 0xa
jmp 0x1400c3020
mov rcx, rsi
call fcn.140154c28
mov rcx, rbx
test eax, eax
je 0x1400c3019
call fcn.140138b40
mov ebx, reloc.WS2_32.dll_inet_addr
jmp 0x1400c3020
call fcn.140138b40
xor ebx, ebx
mov rdi, qword [rsp + 0x88]
mov rcx, rsi
call fcn.14014ac00
mov rcx, r15
call fcn.14014ac00
test eax, eax
jne 0x1400c306d
test ebx, ebx
jne 0x1400c306d
mov rcx, r14
call fcn.1401524c8
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140131ef0
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.1401524c8
test ebx, ebx
je 0x1400c3088
mov eax, recv
cmp ebx, 0xa
cmove ebx, eax
mov eax, ebx
jmp 0x1400c304a
mov ebx, recv
mov eax, ebx
jmp 0x1400c304a