joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140087350
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, rcx
mov dword [rsp + 0x40], 1
je 0x1400873be
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rcx, qword [rbx + 0x10]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0x10], 0xffffffffffffffff
test rcx, rcx
je 0x1400873be
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor eax, eax
mov qword [rbx + 0x28], rax
mov qword [rbx + 8], rax
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x140087410
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140087410
mov rcx, rbx
call fcn.140087660
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400874b0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
je 0x140087551
xorps xmm0, xmm0
mov eax, 2
movups xmmword [rsp + 0x20], xmm0
mov rcx, rdx
mov word [rsp + 0x20], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x24], eax
cmp eax, 0xffffffff
jne 0x14008751b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140087551
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x140087551
mov eax, dword [rcx]
mov dword [rsp + 0x24], eax
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140087551
mov rcx, rbx
call fcn.140087660
mov eax, 0xffffffff
jmp 0x140087553
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401312e0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140087570
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140087645
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 4
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov rcx, qword [rbx + 0x10]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x48], 0x8000
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140087645
mov ecx, 0x23f8
call fcn.140131308
mov rcx, rax
mov qword [rsp + 0x50], rax
call fcn.1400871b0
mov rbx, rax
test rax, rax
je 0x14008762e
mov rcx, rax
mov qword [rax + 0x10], rdi
call fcn.140087660
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140087660
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov ebx, 0xffffffff
mov dword [rsp + 0x50], 1
mov rdi, rcx
mov dword [rsp + 0x20], 4
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x50]
lea edx, [rbx + 7]
lea r8d, [rbx + 2]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x50]
xor esi, esi
mov dword [rsp + 0x20], 4
test eax, eax
mov edx, 0xffff
cmovne ebx, esi
lea r8d, [rsi + 8]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1400876de
mov eax, esi
jmp 0x14008774c
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x68], rax
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov dword [rsp + 0x70], eax
mov edx, 0x98000004
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 0x2710
mov dword [rsp + 0x60], 0x3e8
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
cmovne ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401312e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140087cf0
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 0x140087d1f
xor eax, eax
jmp 0x140087eb9
test r8d, r8d
je 0x140087d64
xor r14d, r14d
cmp byte [rcx + 0x30], r14b
je 0x140087dd5
mov r15, qword [rcx + 0x20]
cmp byte [r15 + 0x39], r14b
je 0x140087dd5
cmp byte [rcx + 0xb8], r14b
je 0x140087d6e
mov r8, rbp
movsxd rcx, dword [rcx + 0xbc]
add rcx, qword [rbx + 0xb0]
call fcn.140133620
add dword [rbx + 0xbc], ebp
mov eax, 0xffffffff
jmp 0x140087eb9
mov dword [rsp + 0x50], r14d
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x140087d8f
mov rax, qword [rcx]
lea r9, [rsp + 0x50]
mov r8d, ebp
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, rax
jmp 0x140087dd1
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 0x140087e93
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.140133620
lea rdx, [rbx + 0xc4]
mov r8d, dword [rbx + 0x23f0]
mov rcx, qword [rbx + 0x10]
call fcn.1400881e0
test al, al
jne 0x140087e37
mov eax, r14d
jmp 0x140087eb0
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 0x140087e93
nop dword [rax]
mov r8d, edx
mov rdx, rsi
mov rcx, qword [rbx + 0x10]
call fcn.1400881e0
test al, al
je 0x140087e32
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 0x140087e60
mov ecx, dword [rbx + 0x23ec]
mov r8d, edi
add rcx, 0xc4
add rcx, rbx
mov rdx, rsi
call fcn.140133620
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 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.1401312e0
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 0x1400ad2c0
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 0x1400ad2ed
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
cmp r8d, 4
jb 0x1400ad3b8
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 0x1400ad3a9
movzx ecx, byte [rdi + 1]
movzx eax, byte [rdi]
shl cx, 8
or cx, ax
cmp cx, r12w
jne 0x1400ad391
cmp r8d, 0xffffffff
jne 0x1400ad376
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400ad36a
mov r8d, 1
mov dword [0x1401efef8], r8d
jmp 0x1400ad37b
xor r8d, r8d
mov dword [0x1401efef8], r8d
jmp 0x1400ad391
test r8d, r8d
je 0x1400ad391
cmp ebx, 5
jb 0x1400ad391
cmp byte [rdi + 8], 0
ja 0x1400ad391
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 0x1400ad320
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 0x1400add00
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.140143800
test eax, eax
je 0x1400add57
mov r8d, 2
lea rdx, [0x1401d2e6c]
mov rcx, rbx
call fcn.140143800
test eax, eax
jne 0x1400add67
movzx eax, byte [rbx + 2]
test al, al
je 0x1400add67
cmp al, 0x2f
je 0x1400add67
cmp al, 0x5c
jne 0x1400add98
movzx ecx, byte [rbx]
call fcn.14014bbd0
test eax, eax
je 0x1400add79
cmp byte [rbx + 1], 0x3a
je 0x1400adda7
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 0x1400add9f
xor eax, eax
jmp 0x1400adec0
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.140143800
test eax, eax
je 0x1400adeb3
mov rdx, qword [rsp + 0x48]
lea rcx, [rsi + 0x10e4c]
mov r8d, 2
call fcn.140150660
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 0x1400ade43
mov byte [rsi + 0x10e4c], al
jmp 0x1400adeb8
xor ebx, ebx
lea rcx, [rsp + 0x60]
cmp dword [rsp + 0x40], 0xc
mov eax, ebx
setbe al
mov dword [rsi + 0x10e50], eax
call fcn.14014a2ac
mov rcx, rax
lea r8d, [rbx + 4]
lea rdx, str.VFAT
call fcn.140143800
test eax, eax
je 0x1400adea8
lea r8d, [rbx + 4]
lea rdx, str.HPFS
lea rcx, [rsp + 0x60]
call fcn.140143800
test eax, eax
je 0x1400adea8
lea r8d, [rbx + 3]
lea rdx, [0x1401d2e70]
lea rcx, [rsp + 0x60]
call fcn.140143800
test eax, eax
jne 0x1400adead
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.1401312e0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x290
pop rsi
ret
Function at 0x1400b0d80
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 0x1400b0e50
mov ecx, dword [rcx + 0x10b28]
test ecx, ecx
jg 0x1400b0df7
mov rdx, qword [rbx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rbx + 0x10b50]
call fcn.14014ea00
mov dword [rbx + 0x10b28], eax
mov ecx, eax
test eax, eax
je 0x1400b0e4e
js 0x1400b0e2e
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.140133620
sub dword [rbx + 0x10b28], edi
add r14, rdi
add qword [rbx + 0x10b20], rdi
mov ecx, dword [rbx + 0x10b28]
sub esi, edi
jne 0x1400b0db5
jmp 0x1400b0e50
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 0x1400b0e52
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 0x1400b0e70
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 0x1400b0e9e
mov eax, dword [rcx + 0xa0]
test eax, eax
jg 0x1400b0ea9
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 0x1400b0f5f
mov rdx, qword [rcx + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rcx + 0x10b50]
call fcn.14014ea00
mov dword [rbx + 0x10b28], eax
mov ecx, eax
test eax, eax
jne 0x1400b0ef0
xor r8d, r8d
lea eax, [rcx - 1]
mov dword [rbx + 0x10b28], r8d
add rsp, 0x20
pop rbx
ret
test ecx, ecx
js 0x1400b103a
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 0x1400b0f43
test r8d, r8d
jns 0x1400b0f2a
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 0x1400b0f50
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 0x1400b1015
mov r9, qword [rbx + 0x10b20]
test r8d, r8d
je 0x1400b1015
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 0x1400b0f90
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.140133f38
int3
Function at 0x1400b1070
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 0x1400b1099
dec ebx
or ebx, 0xffffe000
inc ebx
mov edx, ecx
sub edx, ebx
test ecx, ecx
jns 0x1400b10eb
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.1400ab2e0
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 0x1400b1147
mov ecx, dword [rdi + 0x10b50]
xor r8d, r8d
call fcn.14014f69c
mov rdx, qword [rdi + 0x10b18]
mov r8d, 0x2000
mov ecx, dword [rdi + 0x10b50]
mov dword [rdi + 0x10b58], eax
call fcn.14014ea00
mov dword [rdi + 0x10b28], eax
test eax, eax
jg 0x1400b1139
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 0x1400b1165
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 0x1400b5c00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1400b5c67
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 0x1400b5c30
mov dword [r10], eax
inc r8d
add r10, 4
cmp r8d, 0x100
jl 0x1400b5c20
mov dword [reloc.WS2_32.dll_accept], r9d
mov rax, r11
ret
lea rax, [0x14023e500]
ret
Function at 0x1400bacc0
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 0x1400bacf6
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401312e0
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 0x1400bae76
xchg dword [0x1401fc078], eax
mov qword [rsp + 0x68], rdi
movsxd rdi, eax
test eax, eax
je 0x1400bad5e
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 0x1400bae71
lea rcx, [0x14028bfa0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
lea rcx, [0x1402595e0]
mov r8d, 0x120
call fcn.140133cd0
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 0x1400bae60
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 0x1400badfb
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 0x1400badfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400badfb
mov dword [0x1401fbe28], ebx
jmp 0x1400bae55
cmp dword [0x1401fbe28], edi
jne 0x1400bae55
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeSecurityPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400bae55
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 0x1400bae55
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.1401312e0
add rsp, 0x50
pop rbx
ret
Function at 0x1400bbb90
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 0x1400bbbbe
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.1400b5c00
mov rdx, rax
not ebx
cmp rsi, 8
jb 0x1400bbc7d
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 0x1400bbbe0
test rsi, rsi
je 0x1400bbcab
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 0x1400bbc90
mov rsi, qword [rsp + 0x38]
not ebx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret