joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c30a0
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.14013abf8
mov rbp, rax
test rax, rax
jne 0x1400c30db
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 0x1400c3102
cmp ebx, esi
jae 0x1400c317f
mov eax, esi
sub eax, ebx
mov r8d, eax
cmp eax, 0x4000
jb 0x1400c3108
mov r8d, 0x4000
mov r9, r14
mov edx, 1
mov rcx, rbp
call fcn.140155bfc
mov rdi, rax
test rax, rax
je 0x1400c3164
mov r9, r15
mov r8, rax
mov edx, 1
mov rcx, rbp
call fcn.1401558f8
cmp rax, rdi
jne 0x1400c313c
add ebx, edi
jmp 0x1400c30e7
mov rcx, rbp
call fcn.140138b40
mov ecx, 2
call fcn.14014b088
mov rcx, rax
lea rdx, str._fcopy:_write_error_n
call fcn.140055f80
mov eax, 0xa
jmp 0x1400c3189
mov rcx, r14
call fcn.140154c28
test eax, eax
je 0x1400c317f
mov rcx, rbp
call fcn.140138b40
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x1400c3189
mov rcx, rbp
call fcn.140138b40
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 0x1400c3700
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
movzx ecx, byte [rcx]
call fcn.14014c7e0
test eax, eax
je 0x1400c3730
cmp byte [rbx + 1], 0x3a
je 0x1400c3753
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.140151270
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.14014aebc
mov rcx, rax
lea rdx, [0x1401d36e8]
mov r8d, 3
call fcn.140144410
test eax, eax
je 0x1400c3811
mov r8d, 4
lea rdx, str.VFAT
lea rcx, [rsp + 0x60]
call fcn.140144410
test eax, eax
je 0x1400c3811
mov r8d, 4
lea rdx, str.HPFS
lea rcx, [rsp + 0x60]
call fcn.140144410
test eax, eax
je 0x1400c3811
xor eax, eax
jmp 0x1400c3816
mov eax, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140131ef0
add rsp, 0x290
pop rbx
ret
Function at 0x1400c44f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x1401fdf2c]
mov rbx, rcx
mov ecx, dword [0x14023fd90]
test eax, eax
jne 0x1400c453e
mov r8d, edx
mov rdx, rbx
call fcn.14014f610
mov edi, eax
lea ecx, [rax + 1]
test ecx, 0xfffffffe
jne 0x1400c460d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 1
jne 0x1400c4597
shr edx, 1
mov esi, edx
mov r8d, edx
add rsi, rbx
mov rdx, rsi
call fcn.14014f610
mov edi, eax
mov ecx, eax
dec eax
cmp eax, 0xfffffffd
ja 0x1400c4636
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 0x1400c458b
mov word [rbx - 1], 0xa0d
inc rbx
inc edi
add ecx, 0xffffffff
jne 0x1400c4570
mov eax, edi
sub rbx, rax
jmp 0x1400c460d
lea r8d, [rdx - 1]
mov rsi, rbx
mov rdx, rbx
call fcn.14014f610
mov edi, eax
mov ecx, eax
lea eax, [rdi - 1]
cmp eax, 0xfffffffd
ja 0x1400c4636
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 0x1400c45dd
cmp byte [rsi], 0xa
jne 0x1400c45dd
mov rbx, rdx
dec edi
add ecx, 0xffffffff
jne 0x1400c45c0
test edi, edi
jne 0x1400c45fe
mov ecx, dword [0x14023fd90]
mov edi, 1
mov r8d, edi
mov rdx, rbx
call fcn.14014f610
jmp 0x1400c460d
mov eax, edi
lea ecx, [rdi - 1]
sub rbx, rax
cmp byte [rcx + rbx], 0x1a
cmove edi, ecx
mov ecx, dword [0x14023f96c]
mov r8d, edi
mov rdx, rbx
call fcn.1400bba30
mov dword [0x14023f96c], eax
mov eax, dword [0x14023fd94]
add eax, edi
mov dword [0x14023fd94], eax
cmp eax, edi
jb 0x1400c4648
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.1400bf000
int3
Function at 0x1400c4d70
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
cmp dword [0x1401fdf3c], 1
mov rbx, rcx
jne 0x1400c4e9b
xor esi, esi
mov dword [0x1401fdf3c], 2
test rcx, rcx
je 0x1400c4db3
movzx eax, byte [rcx]
cmp al, 0x80
jae 0x1400c4db3
cmp byte [rcx + 1], 0x3a
jne 0x1400c4db3
lea rcx, [0x14028a8c0]
movzx edi, byte [rax + rcx]
jmp 0x1400c4db5
mov edi, esi
xor ecx, ecx
mov dword [0x14023fda4], 0x28
mov dword [0x14023fda8], 0x210000
call fcn.14013ad20
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.140151d94
mov rcx, rax
mov dword [rax + 0x20], 0xffffffff
mov qword [rax], rsi
mov dword [rax + 8], esi
mov qword [rax + 0xc], 1
mov dword [rax + 0x14], 0x50
call fcn.140150d88
mov qword [0x14023fdb0], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x80]
test edi, edi
mov dword [rsp + 0x78], 0x5c3a78
mov byte [rsp + 0x78], dil
lea rdi, [0x14023f970]
cmove rcx, rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x88]
mov rdx, rdi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0xd]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x1400c4e74
xor r8d, r8d
mov qword [0x1401fde08], rdi
mov rcx, rdi
call fcn.1400c2910
jmp 0x1400c4e7b
mov qword [0x1401fde08], rsi
test rbx, rbx
je 0x1400c4e91
cmp byte [rbx], 0x80
jae 0x1400c4e9b
cmp byte [rbx + 1], 0x3a
jne 0x1400c4e9b
cmp byte [rbx + 2], sil
jne 0x1400c4e9b
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx], 0x2d
jne 0x1400c4eb8
cmp byte [rbx + 1], 0
jne 0x1400c4eb8
xor r8d, r8d
mov rcx, rbx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
jmp fcn.1400c2910
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400c4ec0
add rcx, 2
call fcn.14013abf8
mov rdi, rax
test rax, rax
jne 0x1400c4ee5
lea eax, [rdi + 4]
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov rcx, rdi
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400c4ef0
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x1400c4f2f
cmp al, 0x5c
jne 0x1400c4f0f
mov byte [rbx], 0x2f
call fcn.140151404
movsxd rdx, eax
mov rcx, rbx
call fcn.1401511c8
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400c4f08
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x1400c4f57
cmp al, 0x3a
je 0x1400c4f79
call fcn.140151404
movsxd rdx, eax
mov rcx, rbx
call fcn.1401511c8
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400c4f36
mov rsi, rdi
mov rdx, rsi
mov rcx, rdi
call fcn.1400c4980
mov rcx, rdi
mov ebx, eax
call fcn.140138b40
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
movzx eax, byte [rbx + 1]
lea rsi, [rbx + 1]
mov rbx, rsi
test al, al
je 0x1400c4fa9
cmp al, 0x3a
je 0x1400c4fbd
call fcn.140151404
movsxd rdx, eax
mov rcx, rbx
call fcn.1401511c8
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400c4f88
cmp rsi, rdi
jbe 0x1400c4f5a
cmp byte [rsi], 0
jne 0x1400c4f5a
mov eax, 0x2e
mov word [rsi], ax
jmp 0x1400c4f5a
mov eax, 0xffffffff
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400c9410
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov r10, rcx
mov eax, 0x12345678
movzx ecx, byte [rcx]
mov r9d, 0x23456789
mov dword [0x14023fdd0], eax
mov r8d, 0x34567890
mov dword [0x14023fdd4], r9d
mov dword [0x14023fdd8], r8d
test cl, cl
je 0x1400c94aa
mov r11, qword [0x14028ae70]
nop word [rax + rax]
xor rcx, qword [0x14023fdd0]
lea r10, [r10 + 1]
movzx edx, cl
shr eax, 8
shr r8d, 8
xor eax, dword [r11 + rdx*4]
movzx ecx, al
add ecx, r9d
mov dword [0x14023fdd0], eax
imul r9d, ecx, 0x8088405
inc r9d
mov ecx, r9d
mov dword [0x14023fdd4], r9d
shr rcx, 0x18
xor rcx, qword [0x14023fdd8]
movzx ecx, cl
xor r8d, dword [r11 + rcx*4]
movzx ecx, byte [r10]
mov dword [0x14023fdd8], r8d
test cl, cl
jne 0x1400c9450
ret
Function at 0x1400c97a0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
cmp qword [0x1401fdf70], 0
mov r15, r9
mov rdi, r8
mov rsi, rcx
je 0x1400c988c
mov qword [rsp + 0x40], rbx
mov rbx, rcx
mov r11d, edi
test edi, edi
je 0x1400c9887
mov r9d, dword [0x14023fdd8]
mov r10d, dword [0x14023fdd0]
mov qword [rsp + 0x48], rbp
mov ebp, dword [0x14023fdd4]
mov qword [rsp + 0x50], r14
mov r14, qword [0x14028ae70]
nop dword [rax + rax]
movsx rdx, byte [rbx]
lea rbx, [rbx + 1]
mov r8d, r9d
shr r10d, 8
and r8d, 0xfffd
shr r9d, 8
or r8d, 2
mov rax, rdx
xor rax, qword [0x14023fdd0]
movzx ecx, al
xor r10d, dword [r14 + rcx*4]
movzx eax, r10b
add eax, ebp
mov dword [0x14023fdd0], r10d
imul ebp, eax, 0x8088405
inc ebp
mov eax, ebp
mov dword [0x14023fdd4], ebp
shr rax, 0x18
xor rax, qword [0x14023fdd8]
movzx eax, al
xor r9d, dword [r14 + rax*4]
mov eax, r8d
xor eax, 1
mov dword [0x14023fdd8], r9d
imul eax, r8d
shr eax, 8
xor al, dl
mov byte [rbx - 1], al
add r11d, 0xffffffff
jne 0x1400c9800
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r9, r15
mov r8, rdi
mov edx, 1
mov rcx, rsi
add rsp, 0x20
pop r15
pop rdi
pop rsi
jmp fcn.1401558f8
Function at 0x1400cb3e0
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 [0x1401fe0f4], 0
je 0x1400cb416
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 0x1400cb596
xchg dword [0x1401fdff8], eax
mov qword [rsp + 0x68], rdi
movsxd rdi, eax
test eax, eax
je 0x1400cb47e
mov eax, edi
mov rcx, rsi
xchg dword [0x1401fdff8], 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 [0x1401fe0f4]
jmp 0x1400cb591
lea rcx, [0x14028cfc0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
lea rcx, [0x14025a600]
mov r8d, 0x124
call fcn.1401348e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400cb580
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x38], ebx
lea rdx, str.SeBackupPrivilege
mov dword [rsp + 0x44], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
xor edi, edi
test eax, eax
je 0x1400cb51b
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 0x1400cb51b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400cb51b
mov dword [0x1401fdf6c], ebx
jmp 0x1400cb575
cmp dword [0x1401fdf6c], edi
jne 0x1400cb575
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeSecurityPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400cb575
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 0x1400cb575
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1401fe0f8]
test eax, eax
cmove ecx, ebx
mov dword [0x1401fe0f8], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
mov dword [0x1401fe0f4], 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 0x1400cbbc0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10, r8
mov r9, rdx
test rdx, rdx
jne 0x1400cbbd6
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x1401bc670]
not ecx
cmp r10, 4
jb 0x1400cbc46
mov r11, r10
shr r11, 2
imul rax, r11, 0xfffffffffffffffc
add r10, rax
nop word [rax + rax]
xor ecx, dword [r9]
add r9, 4
mov r8d, ecx
mov eax, ecx
shr rax, 0x10
movzx ecx, al
mov eax, r8d
shr rax, 8
movzx edx, al
mov eax, r8d
shr rax, 0x18
mov ecx, dword [rbx + rcx*4 + 0x400]
xor ecx, dword [rbx + rdx*4 + 0x800]
xor ecx, dword [rbx + rax*4]
movzx eax, r8b
xor ecx, dword [rbx + rax*4 + 0xc00]
sub r11, 1
jne 0x1400cbc00
test r10, r10
je 0x1400cbc6c
nop dword [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [rbx + rax*4]
sub r10, 1
jne 0x1400cbc50
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret

Function at 0x1400cc010
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rdi, r8
mov esi, edx
mov ebx, ecx
test r8, r8
jle 0x1400cbfdc
mov ecx, 1
mov dword [rsp + 0x20], 0xedb88320
mov eax, ecx
nop dword [rax]
nop word [rax + rax]
mov dword [rsp + rax*4 + 0x20], ecx
add ecx, ecx
inc rax
cmp rax, 0x20
jl 0x1400cbf20
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xa0]
call fcn.1400cbc90
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x20]
call fcn.1400cbc90
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xa0]
call fcn.1400cbc90
test dil, 1
je 0x1400cbf91
xor ecx, ecx
lea rax, [rsp + 0xa0]
test ebx, ebx
je 0x1400cbf8f
nop dword [rax]
test bl, 1
je 0x1400cbf87
xor ecx, dword [rax]
add rax, 4
shr ebx, 1
jne 0x1400cbf80
mov ebx, ecx
sar rdi, 1
je 0x1400cbfda
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x20]
call fcn.1400cbc90
test dil, 1
je 0x1400cbfd1
xor ecx, ecx
lea rax, [rsp + 0x20]
test ebx, ebx
je 0x1400cbfcf
nop dword [rax]
test bl, 1
je 0x1400cbfc7
xor ecx, dword [rax]
add rax, 4
shr ebx, 1
jne 0x1400cbfc0
mov ebx, ecx
sar rdi, 1
jne 0x1400cbf53
xor ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140131ef0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
movsxd r8, r8d
jmp 0x1400cbed0
Function at 0x1400d0c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r9d, dword [rcx + 0xf4]
mov ebx, edx
mov eax, dword [rcx + 0xa0]
xor ebp, ebp
mov r10d, dword [rcx + 0x118]
mov edx, r9d
mov r11d, dword [rcx + 0x104]
sub edx, eax
mov r12d, dword [rcx + 0x100]
add edx, 0x106
mov rsi, qword [rcx + 0xb0]
lea r8d, [rax - 0x106]
movzx eax, word [r9 + rsi]
lea r13, [r9 + rsi]
mov r14, qword [rcx + 0xc0]
cmp r9d, r8d
mov r15d, dword [rcx + 0xa8]
lea r9, [r13 + 0x102]
movzx edi, word [r12 + r13 - 1]
cmova ebp, edx
mov r8d, r11d
mov word [rsp + 0x48], ax
mov eax, dword [rcx + 0xfc]
cmp r10d, eax
mov edx, eax
cmovbe edx, r10d
mov r10, qword [rsp + 0x40]
shr r8d, 2
cmp r12d, dword [rcx + 0x114]
cmovb r8d, r11d
mov r11d, edx
nop dword [rax]
mov eax, ebx
add rax, rsi
mov edx, r12d
cmp word [rdx + rax - 1], di
je 0x1400d0d4a
nop
mov eax, ebx
mov rcx, r15
and rcx, rax
movzx ebx, word [r14 + rcx*2]
cmp ebx, ebp
jbe 0x1400d0dc7
add r8d, 0xffffffff
je 0x1400d0dc7
lea rax, [rsi + rbx]
cmp word [rdx + rax - 1], di
jne 0x1400d0d20
movzx ecx, word [rsp + 0x48]
cmp word [rax], cx
jne 0x1400d0dac
lea rdx, [r13 + 2]
add rax, 2
nop dword [rax]
mov ecx, dword [rax]
xor ecx, dword [rdx]
jne 0x1400d0d75
add rdx, 4
add rax, 4
cmp rdx, r9
jb 0x1400d0d60
jmp 0x1400d0d82
tzcnt ecx, ecx
mov ecx, ecx
shr rcx, 3
add rdx, rcx
cmp rdx, r9
cmova rdx, r9
sub edx, r9d
add edx, 0x102
cmp edx, r12d
jbe 0x1400d0dac
mov dword [r10 + 0xf8], ebx
mov r12d, edx
cmp edx, r11d
jae 0x1400d0dc7
movzx edi, word [rdx + r13 - 1]
mov eax, ebx
mov rcx, r15
and rcx, rax
movzx ebx, word [r14 + rcx*2]
cmp ebx, ebp
jbe 0x1400d0dc7
add r8d, 0xffffffff
jne 0x1400d0d10
mov eax, dword [r10 + 0xfc]
cmp r12d, eax
mov rbx, qword [rsp + 0x58]
cmovbe eax, r12d
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d2990
Capabilities:
Compute adler32 checksum

Disassembly:
mov r9d, ecx
mov r10, rdx
shr r9d, 0x10
movzx ecx, cx
cmp r8, 1
jne 0x1400d29d4
movzx edx, byte [rdx]
add edx, ecx
cmp edx, 0xfff1
lea r8d, [rdx - 0xfff1]
cmovb r8d, edx
lea eax, [r8 + r9]
cmp eax, 0xfff1
lea ecx, [rax - 0xfff1]
cmovb ecx, eax
shl ecx, 0x10
or ecx, r8d
mov eax, ecx
ret
test rdx, rdx
jne 0x1400d29dd
lea eax, [rdx + 1]
ret
cmp r8, 0x10
jae 0x1400d2a2c
test r8, r8
je 0x1400d2a03
nop dword [rax + rax]
movzx eax, byte [r10]
lea r10, [r10 + 1]
add ecx, eax
add r9d, ecx
sub r8, 1
jne 0x1400d29f0
cmp ecx, 0xfff1
lea r8d, [rcx - 0xfff1]
mov eax, 0x80078071
cmovb r8d, ecx
mul r9d
shr edx, 0xf
imul eax, edx, 0xf
add eax, r9d
shl eax, 0x10
or eax, r8d
ret
cmp r8, 0x15b0
jb 0x1400d2b07
mov r11, r8
movabs rax, 0x79baa6bb6398b6f7
mul r8
sub r11, rdx
shr r11, 1
add r11, rdx
shr r11, 0xc
imul rax, r11, 0xffffffffffffea50
add r8, rax
mov edx, 0x2b6
nop word [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add r10, 8
add ecx, eax
add r9d, ecx
add edx, 0xffffffff
jne 0x1400d2a70
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
sub r11, 1
jne 0x1400d2a60
test r8, r8
je 0x1400d2bb9
cmp r8, 8
jb 0x1400d2b80
mov rdx, r8
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r8, rax
nop word [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add r10, 8
add ecx, eax
add r9d, ecx
sub rdx, 1
jne 0x1400d2b20
test r8, r8
je 0x1400d2b93
nop
movzx eax, byte [r10]
lea r10, [r10 + 1]
add ecx, eax
add r9d, ecx
sub r8, 1
jne 0x1400d2b80
mov eax, 0x80078071
mul ecx
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mul r9d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
shl r9d, 0x10
or r9d, ecx
mov eax, r9d
ret
Function at 0x140117a70
Capabilities:
Encode data using xor

Disassembly:
push rbx
and r8d, 0x1f
mov r9, rdx
movabs rbx, 0xc2b2ae3d27d4eb4f
movabs r11, 0x9e3779b185ebca87
cmp r8, 8
jb 0x1401176ac
mov r10d, r8d
mov qword [rsp + 0x10], rdi
shr r10, 3
movabs rdi, 0x7a1435883d4d519d
imul rax, r10, 0xfffffffffffffff8
add r8, rax
mov rdx, qword [r9]
add r9, 8
imul rdx, rbx
rol rdx, 0x1f
imul rdx, r11
xor rcx, rdx
rol rcx, 0x1b
imul rcx, r11
sub rcx, rdi
sub r10, 1
jne 0x140117680
mov rdi, qword [rsp + 0x10]
mov rax, r9
movabs r10, 0x165667b19e3779f9
cmp r8, 4
jb 0x1401176db
mov eax, dword [rax]
add r9, 4
imul rax, r11
xor rcx, rax
rol rcx, 0x17
imul rcx, rbx
add rcx, r10
sub r8, 4
test r8, r8
je 0x14011770d
movabs rdx, 0x27d4eb2f165667c5
nop word [rax + rax]
movzx eax, byte [r9]
lea r9, [r9 + 1]
imul rax, rdx
xor rcx, rax
rol rcx, 0xb
imul rcx, r11
sub r8, 1
jne 0x1401176f0
mov rax, rcx
shr rax, 0x21
xor rax, rcx
imul rax, rbx
mov rcx, rax
shr rcx, 0x1d
xor rcx, rax
imul rcx, r10
mov rax, rcx
shr rax, 0x20
xor rax, rcx
pop rbx
ret
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
mov r9, qword [rcx + 0x18]
cmp rbx, 0x20
jb 0x140117b4d
mov rdx, qword [rcx + 8]
mov r11, r9
mov r8, qword [rcx + 0x10]
mov rax, rdx
mov r10, qword [rcx + 0x20]
rol r11, 0xc
rol rax, 1
add r11, rax
mov qword [rsp + 0x30], rsi
movabs rsi, 0x9e3779b185ebca87
mov qword [rsp + 0x38], rdi
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, r8
rol rax, 7
add r11, rax
mov rax, r10
imul rdx, rdi
imul r9, rdi
imul r8, rdi
imul r10, rdi
mov rdi, qword [rsp + 0x38]
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
imul rdx, rsi
movabs rax, 0x7a1435883d4d519d
rol r9, 0x1f
xor r11, rdx
rol r8, 0x1f
imul r11, rsi
imul r9, rsi
imul r8, rsi
sub r11, rax
rol r10, 0x1f
imul r10, rsi
xor r11, r8
imul r11, rsi
sub r11, rax
xor r11, r9
movabs r9, 0x85ebca77c2b2ae63
imul r11, rsi
sub r11, rax
xor r11, r10
imul r11, rsi
mov rsi, qword [rsp + 0x30]
add r9, r11
jmp 0x140117b5a
movabs rdx, 0x27d4eb2f165667c5
add r9, rdx
add r9, rbx
lea rdx, [rcx + 0x28]
mov rcx, r9
mov r8, rbx
add rsp, 0x20
pop rbx
jmp 0x140117640
Function at 0x140124b60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
xor edi, edi
mov qword [rsp + 0x38], r9
mov qword [rcx], rdi
lea rax, [0x140123ab0]
mov rbx, rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rdi
lea r8, [0x140124b00]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call fcn.14015645c
lea rcx, [rsp + 0x50]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rsp + 0x40], edi
jne 0x140124bfc
nop dword [rax]
nop word [rax + rax]
mov r8d, 0xffffffff
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SleepConditionVariableCS]
cmp dword [rsp + 0x40], edi
je 0x140124be0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rbx, qword [rsp + 0x90]
xor eax, eax
add rsp, 0x80
pop rdi
ret

Function at 0x140124c90
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, rcx
xor esi, esi
mov qword [rcx], rsi
mov ecx, dword [0x140259d84]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140124d4a
lea rcx, [0x1401fefd8]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401fef28]
test rax, rax
je 0x140124cef
mov qword [rbx], rax
mov rax, qword [rax + 0xa8]
mov rdi, qword [rbx]
mov qword [0x1401fef28], rax
jmp 0x140124d34
mov ecx, 0xb0
call fcn.140131f18
mov rdi, rax
lea rax, vtable.omni_thread.0
lea rcx, [rdi + 8]
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, rdi
call fcn.1401252c0
lea rax, vtable._internal_omni_thread_dummy.0
mov qword [rdi + 0x40], rsi
mov qword [rdi], rax
mov qword [rdi + 0x48], rsi
mov qword [rdi + 0xa8], rsi
mov qword [rbx], rdi
lea rcx, [0x1401fefd8]
mov qword [rbx + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret