joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180060e10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x180
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x1800ec7a0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rdi, r9
mov rbx, r8
mov r14, rcx
mov dword [rsp + 0x40], 0
xor r9d, r9d
lea r8, [rsp + 0x44]
mov rcx, qword [0x1800edf20]
call fcn.18005d1c0
mov rsi, rax
test rax, rax
je 0x18006102f
cmp dword [rax], 0x4c
jne 0x18006102f
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x258], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x268], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r14 + 0x278], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r14 + 0x288], xmm1
movsd xmm0, qword [rax + 0x40]
movsd qword [r14 + 0x298], xmm0
mov eax, dword [rax + 0x48]
mov dword [r14 + 0x2a0], eax
mov ecx, dword [rsi + 8]
add rcx, 0x4c
mov eax, dword [rsp + 0x44]
cmp rax, rcx
jb 0x18006102f
lea rcx, [rsp + 0x60]
sub rcx, rbx
nop dword [rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x180060ee0
lea rcx, [rsp + 0x60]
call fcn.18005cd10
test rdi, rdi
je 0x180060f31
cmp byte [rdi], 0
je 0x180060f31
lea rcx, [rsp + 0x60]
dec rcx
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x180060f10
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [rdi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180060f20
jmp 0x180060f60
lea rcx, [rsp + 0x60]
dec rcx
nop dword [rax]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x180060f40
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [rsi + rdx + 0xc]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180060f50
mov rcx, qword [r14 + 0x1f0]
test rcx, rcx
je 0x180060f76
mov edx, 1
call fcn.1800686a4
mov ecx, dword [r14 + 0x260]
call fcn.180068f50
mov qword [r14 + 0x1f0], rax
mov r8d, dword [r14 + 0x260]
lea rdx, [rsi + 0x4c]
mov rcx, rax
call fcn.18006c9b0
mov r9d, dword [r14 + 0x25c]
mov r8d, dword [r14 + 0x260]
mov rdx, qword [r14 + 0x1f0]
lea rcx, [r14 + 0x1f8]
call fcn.180061470
test eax, eax
je 0x18006102f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18006102f
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [r14 + 0x25c]
mov rdx, qword [r14 + 0x1f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x40], 1
mov eax, 1
jmp 0x180061042
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180068b60
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x180
pop r14
pop rdi
pop rsi
ret
Function at 0x180061070
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
xor edi, edi
mov r14d, edi
mov dword [rax - 0x38], edi
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax + 0xe0], 0
jne 0x1800610a0
test rax, rax
je 0x180061216
cmp qword [rcx + 0x1f8], 0
je 0x180061216
cmp qword [rcx + 0x208], 0
je 0x180061216
mov rcx, qword [rcx + 0x1f0]
mov r12d, 1
test rcx, rcx
je 0x1800610f3
mov edx, r12d
call fcn.1800686a4
mov qword [rsi + 0x1f0], rdi
mov rdx, qword [rsi + 0x208]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdx
lea r9, [rsi + 0x200]
mov r8, qword [rsi + 0x1f8]
lea rcx, [rsi + 0x1f0]
call fcn.180061370
test eax, eax
je 0x180061210
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r12d
mov edx, 0x40000000
lea rcx, [rsi + 0xe0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi + 0x1e8], rax
cmp rax, 0xffffffffffffffff
je 0x180061210
mov rdi, qword [rsi + 0x200]
add rdi, 0x4c
mov qword [rsp + 0x90], rdi
mov rcx, rdi
call fcn.180068f50
mov rbx, rax
mov dword [rax], 0x4c
mov ecx, dword [rsi + 0x200]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0x208]
mov dword [rax + 4], ecx
lea rdx, [rsi + 0x210]
lea rcx, [rax + 0xc]
mov r8d, 0x40
call fcn.180060160
lea rcx, [rbx + 0x4c]
mov r8, qword [rsi + 0x200]
mov rdx, qword [rsi + 0x1f0]
call fcn.18006c9b0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rsi + 0x1e8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x88]
cmp rax, rdi
cmove r14d, r12d
mov dword [rsp + 0x40], r14d
mov edx, 0x50
mov rcx, rbx
call fcn.1800686a4
mov rcx, rsi
call fcn.180060d10
xor edi, edi
mov dword [rsi + 0x254], edi
mov eax, r14d
jmp 0x18006121f
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180061cf0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rdx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x180061d71
mov edx, 8
lea r8d, [rdx + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x180061d52
lea rcx, str.____DataEvent::_Failed_to_allocate_memory_n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [rsp + 0x40], 1
lea rdx, [0x1800ea6e0]
lea rcx, [rsp + 0x40]
call fcn.18006cde8
int3
mov qword [rax + 8], rbx
mov qword [rsp + 0x50], rax
lea rdx, [0x1800b1858]
mov qword [rax], rdx
xor ecx, ecx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
jmp 0x180061db7
mov ecx, 0x20
call fcn.180068f50
test rax, rax
jne 0x180061d9a
mov dword [rsp + 0x40], 1
lea rdx, [0x1800ea6e0]
lea rcx, [rsp + 0x40]
call fcn.18006cde8
int3
xor ecx, ecx
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rdx, [0x1800b1858]
mov qword [rax], rdx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180067c50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
movzx esi, word [r8 + 0xe]
lea rdi, [r8 + 0x10]
movzx eax, word [r8 + 0xc]
mov rbx, r9
mov r11, rcx
add esi, eax
je 0x180067d27
mov qword [rsp + 0x60], rbp
mov ebp, dword [rsp + 0x70]
mov eax, dword [rdi + 4]
cmp eax, 0x80000000
jb 0x180067cbb
test ebp, ebp
jne 0x180067c9a
cmp word [rdi], 0x18
je 0x180067d15
btr eax, 0x1f
lea ecx, [rbp + 1]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov rcx, r11
lea r8, [rdx + rax]
call fcn.180067c50
mov r11, qword [rsp + 0x50]
jmp 0x180067d10
btr eax, 0x1f
mov r8d, dword [rax + rdx]
mov r9d, dword [rax + rdx + 4]
add r8, r11
shr r9d, 2
test r9d, r9d
je 0x180067d15
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rbx]
xor dword [r8], eax
lea r8, [r8 + 4]
mov ecx, dword [rbx]
mov eax, 0x8fd66c05
mul ecx
shr edx, 0x11
imul eax, edx, 0x38f40
sub ecx, eax
imul eax, ecx, 0x2455
add eax, 0xc091
mov dword [rbx], eax
sub r9d, 1
jne 0x180067ce0
mov rdx, qword [rsp + 0x58]
add rdi, 8
sub esi, 1
jne 0x180067c86
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x180067d30
Capabilities:
Check mutex on windows
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov rax, qword [0x1800ec7a0]
xor rax, rsp
mov qword [rsp + 0x150], rax
movsxd rdi, dword [rcx + 0x3c]
xor ebp, ebp
add rdi, rcx
mov r14, rcx
mov ebx, ebp
movzx eax, word [rdi + 0x14]
lea rsi, [rdi + 0x18]
add rsi, rax
cmp bp, word [rdi + 6]
jae 0x180067da1
nop word [rax + rax]
lea rdx, str..rsrc
mov rcx, rsi
call fcn.180070884
test eax, eax
je 0x180067da1
movzx eax, word [rdi + 6]
add rsi, 0x28
inc ebx
cmp ebx, eax
jl 0x180067d80
movzx eax, word [rdi + 6]
cmp ebx, eax
jge 0x180067f41
xor edx, edx
mov qword [rsp + 0x188], r15
mov r8d, 0x104
lea rcx, [rsp + 0x40]
call fcn.18006ced0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, str.QA1Q0ZWQIE__d
lea rcx, [rsp + 0x40]
call fcn.18004ee70
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov r15, rax
test rax, rax
je 0x180067f39
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x180067f30
mov edi, dword [rsi + 0xc]
add rdi, r14
mov ecx, dword [rdi]
mov dword [rsp + 0x30], ecx
test ecx, ecx
je 0x180067f27
mov eax, ecx
shr eax, 0x10
xor al, 0x76
cmp cl, al
jne 0x180067f27
mov eax, ecx
shr ecx, 8
shr eax, 0x18
xor al, 0x5a
cmp cl, al
jne 0x180067f27
mov edx, dword [rsi + 0x10]
lea r9, [rsp + 0x34]
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [rdi + 0xc]
lea rbx, [rdi + 0x10]
mov dword [rdi], ebp
movzx ebp, word [rdi + 0xe]
add ebp, eax
je 0x180067f11
mov eax, dword [rsp + 0x30]
nop dword [rax + rax]
mov ecx, dword [rbx + 4]
cmp ecx, 0x80000000
jb 0x180067eb7
cmp word [rbx], 0x18
je 0x180067f04
btr ecx, 0x1f
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x30]
mov rdx, rdi
lea r8, [rdi + rcx]
mov rcx, r14
call fcn.180067c50
mov eax, dword [rsp + 0x30]
jmp 0x180067f04
btr ecx, 0x1f
mov r9d, dword [rcx + rdi]
mov r10d, dword [rcx + rdi + 4]
add r9, r14
shr r10d, 2
test r10d, r10d
je 0x180067f04
xor dword [r9], eax
lea r9, [r9 + 4]
mov eax, 0x8fd66c05
mul dword [rsp + 0x30]
imul eax, dword [rsp + 0x30], 0x2455
shr edx, 0x11
imul r8d, edx, 0x7eac6fc0
add eax, 0xc091
add eax, r8d
mov dword [rsp + 0x30], eax
sub r10d, 1
jne 0x180067ed0
add rbx, 8
sub ebp, 1
jne 0x180067e80
mov edx, dword [rsi + 0x10]
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180068b60
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180088f58
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180068ed0
sub rsp, rax
mov rax, qword [0x1800ec7a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.18008715c
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x180088fac
mov rax, r14
jmp 0x1800890c6
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x180000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0xef590]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.1800894fc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rdi*8 + 0xef590]
cmp r13, qword [rbx + rcx + 0x30]
je 0x180089013
or rax, 0xffffffffffffffff
jmp 0x1800890c6
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0xef590]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008900a
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.1800894fc
test rax, rax
js 0x18008900a
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x18008900a
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x1800890ba
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800890ba
cmp byte [rcx], 0xd
jne 0x1800890a0
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800890af
cmp byte [rcx + 1], 0xa
jne 0x1800890af
inc rcx
jmp 0x1800890af
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xed230]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x180089082
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180068b60
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180090cb4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x1800ef590]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x180090d19
cmp byte [r14], 0xa
jne 0x180090d19
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x180090d3a
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x180090e94
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x180090e54
cmp al, 0xd
je 0x180090d6e
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x180090e49
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x180090d94
cmp byte [rax], 0xa
jne 0x180090d86
mov byte [rbx], 0xa
mov eax, 2
jmp 0x180090d8c
mov byte [rbx], 0xd
mov rax, r13
add rsi, rax
jmp 0x180090e46
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180090e3c
cmp dword [rsp + 0x78], 0
je 0x180090e3c
mov rcx, rdi
lea r10, [0x1800ef590]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x180090e0c
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x180090e18
mov rcx, rdi
mov byte [rbx], 0xd
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x180090e46
cmp byte [rsp + 0x70], 0xa
jne 0x180090e1d
cmp rbx, r14
jne 0x180090e1d
mov byte [rbx], 0xa
jmp 0x180090e46
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.180089504
cmp byte [rsp + 0x70], 0xa
lea r10, [0x1800ef590]
je 0x180090e49
jmp 0x180090e43
lea r10, [0x1800ef590]
mov byte [rbx], 0xd
add rbx, r13
cmp rsi, rbp
jb 0x180090d53
jmp 0x180090e94
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x180090e8d
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x180090e94
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180090eb4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r11, [0x1800ef590]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x180090f20
cmp word [r14], r10w
jne 0x180090f20
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x180090f41
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x18009111a
mov ecx, recv
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x1800910d8
cmp ax, cx
je 0x180090f7d
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x180091071
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x180090fa5
cmp word [rax], r10w
jne 0x180090f97
mov word [rbx], r10w
mov eax, 4
jmp 0x180090f9d
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x1800910bb
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800910c0
cmp dword [rsp + 0x80], 0
je 0x1800910c0
mov rcx, rdi
lea r11, [0x1800ef590]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x18009107f
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x180091017
mov word [rbx], r10w
jmp 0x180091069
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, recv
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x180091038
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, recv
cmp rsi, rbp
jb 0x180090f5d
jmp 0x18009111a
cmp word [rsp + 0x70], r10w
jne 0x18009108c
cmp rbx, r14
je 0x180091011
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180089504
mov r10d, 0xa
lea r11, [0x1800ef590]
cmp word [rsp + 0x70], r10w
je 0x18009106c
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x180091071
mov ecx, recv
lea r11, [0x1800ef590]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x180091071
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x180091111
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x18009111a
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180095b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
sub esi, dword [rdi + 0x9c]
mov ecx, dword [rdi + 0x44]
sub esi, edx
add ecx, 0xfffffefa
add ecx, ebx
cmp edx, ecx
jb 0x180095bcc
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.18006c9b0
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
lea rdx, [rdx - 2]
cmp eax, ebx
jb 0x180095b90
sub eax, ebx
jmp 0x180095b92
xor eax, eax
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x180095b80
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop word [rax + rax]
movzx eax, word [rcx - 2]
lea rcx, [rcx - 2]
cmp eax, ebx
jb 0x180095bc0
sub eax, ebx
jmp 0x180095bc2
xor eax, eax
mov word [rcx], ax
add edx, 0xffffffff
jne 0x180095bb0
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x180095c46
mov edx, dword [rdi + 0x9c]
mov r8d, esi
mov eax, dword [rdi + 0x94]
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.180095fa0
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x180095c30
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x180095c46
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x180095b30
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002990
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400029ed
lea rbx, [0x140052ef0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400029d4
cmp r10, 2
jb 0x1400029d4
cmp byte [r9], r8b
jne 0x1400029d4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400029b0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002a2f
lea rbx, [0x140052ef0]
cmp r8b, 0x23
jne 0x140002a13
cmp byte [r9], r8b
jne 0x140002a13
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002a00
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002bf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x140002c1f
mov r8d, 0x600
lea rdx, [0x14004fe00]
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x140002c2b
mov qword [rdi], 0
lea rdx, [0x140052b00]
mov rcx, rbx
call fcn.140002a40
mov rbx, rax
test rax, rax
jne 0x140002c4d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140002d24
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002d24
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002d24
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002d24
cmp rsi, 0xffffffffffffffff
je 0x140002d24
mov rax, qword [0x1400aa200]
test rax, rax
je 0x140002cc1
inc dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140002d24
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140002d11
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400aa200]
test rax, rax
je 0x140002d06
dec dword [rax + 0x3b4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002d2d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002d1f
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140002d2f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005050
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xc8], 0
mov rbx, rcx
mov edi, edx
jg 0x140005086
mov r8d, 0x67f
lea rdx, [0x14004fcb0]
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd r8, dword [rbx + 0xc8]
mov rax, qword [rbx + 0xd0]
mov edx, dword [rax + r8*4 - 4]
lea r8, [0x140052ef0]
not edx
movzx eax, dil
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x39]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3a]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3b]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x1400aa200]
xor edx, dword [r8 + rcx*4]
not edx
cmp dword [rax + 0x1b30], edx
jne 0x140005100
mov dword [rax + 0x1b34], edx
cmp dword [rax + 0x1b70], edx
jne 0x14000510f
mov byte [rax + 0x1b74], 1
mov rbx, qword [rsp + 0x30]
mov eax, edx
add rsp, 0x20
pop rdi
ret