joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c3010
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, qword [0x14023e908]
lea rdx, [rsp + 0x20]
mov rbp, rcx
call fcn.1400c3a90
test eax, eax
jne 0x1400c305e
cmp word [rsp + 0x28], 1
jg 0x1400c307b
mov rcx, rbp
call fcn.1401518b8
test eax, eax
jne 0x1400c30d3
mov rdx, rbp
mov rcx, r14
call fcn.140154850
test eax, eax
je 0x1400c31a8
call fcn.14015282c
cmp dword [rax], 0x12
jne 0x1400c30d3
lea rdx, [0x1401c8108]
mov rcx, r14
call fcn.140149ec4
mov rsi, rax
test rax, rax
jne 0x1400c30b4
lea ecx, [rax + 2]
call fcn.14014a478
mov rcx, rax
lea rdx, str._replace:_cant_open__s_n
mov r8, r14
call fcn.1400560e0
lea eax, [rsi + 0xa]
jmp 0x1400c31aa
lea rdx, [0x1401d3c34]
mov rcx, rbp
call fcn.140149ec4
mov r15, rax
test rax, rax
jne 0x1400c30dd
mov rcx, rsi
call fcn.140149ff0
mov eax, recv
jmp 0x1400c31aa
mov ecx, 0x4000
call fcn.140139fe8
mov rbx, rax
test rax, rax
jne 0x1400c30f7
lea ebx, [rax + 4]
jmp 0x1400c3188
mov qword [rsp + 0x88], rdi
nop
mov r9, rsi
mov edx, 1
mov r8d, 0x4000
mov rcx, rbx
call fcn.140154fec
mov rdi, rax
test rax, rax
je 0x1400c315e
mov r9, r15
mov r8, rax
mov edx, 1
mov rcx, rbx
call fcn.140154ce8
cmp rax, rdi
je 0x1400c3100
mov rcx, rbx
call fcn.140137f30
mov ecx, 2
call fcn.14014a478
mov rcx, rax
lea rdx, str._fcopy:_write_error_n
call fcn.1400560e0
mov ebx, 0xa
jmp 0x1400c3180
mov rcx, rsi
call fcn.140154018
mov rcx, rbx
test eax, eax
je 0x1400c3179
call fcn.140137f30
mov ebx, reloc.WS2_32.dll_inet_addr
jmp 0x1400c3180
call fcn.140137f30
xor ebx, ebx
mov rdi, qword [rsp + 0x88]
mov rcx, rsi
call fcn.140149ff0
mov rcx, r15
call fcn.140149ff0
test eax, eax
jne 0x1400c31cd
test ebx, ebx
jne 0x1400c31cd
mov rcx, r14
call fcn.1401518b8
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401312e0
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.1401518b8
test ebx, ebx
je 0x1400c31e8
mov eax, recv
cmp ebx, 0xa
cmove ebx, eax
mov eax, ebx
jmp 0x1400c31aa
mov ebx, recv
mov eax, ebx
jmp 0x1400c31aa
Function at 0x1400c3200
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.140139fe8
mov rbp, rax
test rax, rax
jne 0x1400c323b
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 0x1400c3262
cmp ebx, esi
jae 0x1400c32df
mov eax, esi
sub eax, ebx
mov r8d, eax
cmp eax, 0x4000
jb 0x1400c3268
mov r8d, 0x4000
mov r9, r14
mov edx, 1
mov rcx, rbp
call fcn.140154fec
mov rdi, rax
test rax, rax
je 0x1400c32c4
mov r9, r15
mov r8, rax
mov edx, 1
mov rcx, rbp
call fcn.140154ce8
cmp rax, rdi
jne 0x1400c329c
add ebx, edi
jmp 0x1400c3247
mov rcx, rbp
call fcn.140137f30
mov ecx, 2
call fcn.14014a478
mov rcx, rax
lea rdx, str._fcopy:_write_error_n
call fcn.1400560e0
mov eax, 0xa
jmp 0x1400c32e9
mov rcx, r14
call fcn.140154018
test eax, eax
je 0x1400c32df
mov rcx, rbp
call fcn.140137f30
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x1400c32e9
mov rcx, rbp
call fcn.140137f30
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 0x1400c3860
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
movzx ecx, byte [rcx]
call fcn.14014bbd0
test eax, eax
je 0x1400c3890
cmp byte [rbx + 1], 0x3a
je 0x1400c38b3
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.140150660
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.14014a2ac
mov rcx, rax
lea rdx, [0x1401d2e70]
mov r8d, 3
call fcn.140143800
test eax, eax
je 0x1400c3971
mov r8d, 4
lea rdx, str.VFAT
lea rcx, [rsp + 0x60]
call fcn.140143800
test eax, eax
je 0x1400c3971
mov r8d, 4
lea rdx, str.HPFS
lea rcx, [rsp + 0x60]
call fcn.140143800
test eax, eax
je 0x1400c3971
xor eax, eax
jmp 0x1400c3976
mov eax, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401312e0
add rsp, 0x290
pop rbx
ret
Function at 0x1400c4650
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x1401fcf2c]
mov rbx, rcx
mov ecx, dword [0x14023e984]
test eax, eax
jne 0x1400c469e
mov r8d, edx
mov rdx, rbx
call fcn.14014ea00
mov edi, eax
lea ecx, [rax + 1]
test ecx, 0xfffffffe
jne 0x1400c476d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 1
jne 0x1400c46f7
shr edx, 1
mov esi, edx
mov r8d, edx
add rsi, rbx
mov rdx, rsi
call fcn.14014ea00
mov edi, eax
mov ecx, eax
dec eax
cmp eax, 0xfffffffd
ja 0x1400c4796
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 0x1400c46eb
mov word [rbx - 1], 0xa0d
inc rbx
inc edi
add ecx, 0xffffffff
jne 0x1400c46d0
mov eax, edi
sub rbx, rax
jmp 0x1400c476d
lea r8d, [rdx - 1]
mov rsi, rbx
mov rdx, rbx
call fcn.14014ea00
mov edi, eax
mov ecx, eax
lea eax, [rdi - 1]
cmp eax, 0xfffffffd
ja 0x1400c4796
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 0x1400c473d
cmp byte [rsi], 0xa
jne 0x1400c473d
mov rbx, rdx
dec edi
add ecx, 0xffffffff
jne 0x1400c4720
test edi, edi
jne 0x1400c475e
mov ecx, dword [0x14023e984]
mov edi, 1
mov r8d, edi
mov rdx, rbx
call fcn.14014ea00
jmp 0x1400c476d
mov eax, edi
lea ecx, [rdi - 1]
sub rbx, rax
cmp byte [rcx + rbx], 0x1a
cmove edi, ecx
mov ecx, dword [0x14023e964]
mov r8d, edi
mov rdx, rbx
call fcn.1400bbb90
mov dword [0x14023e964], eax
mov eax, dword [0x14023ed90]
add eax, edi
mov dword [0x14023ed90], eax
cmp eax, edi
jb 0x1400c47a8
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.1400bf160
int3
Function at 0x1400c4ed0
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
cmp dword [0x1401fcf3c], 1
mov rbx, rcx
jne 0x1400c4ffb
xor esi, esi
mov dword [0x1401fcf3c], 2
test rcx, rcx
je 0x1400c4f13
movzx eax, byte [rcx]
cmp al, 0x80
jae 0x1400c4f13
cmp byte [rcx + 1], 0x3a
jne 0x1400c4f13
lea rcx, [0x1402898a0]
movzx edi, byte [rax + rcx]
jmp 0x1400c4f15
mov edi, esi
xor ecx, ecx
mov dword [0x14023ed98], 0x28
mov dword [0x14023ed9c], 0x210000
call fcn.14013a110
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.140151184
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.140150178
mov qword [0x14023eda0], 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, [0x14023e968]
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 0x1400c4fd4
xor r8d, r8d
mov qword [0x1401fce08], rdi
mov rcx, rdi
call fcn.1400c2a70
jmp 0x1400c4fdb
mov qword [0x1401fce08], rsi
test rbx, rbx
je 0x1400c4ff1
cmp byte [rbx], 0x80
jae 0x1400c4ffb
cmp byte [rbx + 1], 0x3a
jne 0x1400c4ffb
cmp byte [rbx + 2], sil
jne 0x1400c4ffb
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx], 0x2d
jne 0x1400c5018
cmp byte [rbx + 1], 0
jne 0x1400c5018
xor r8d, r8d
mov rcx, rbx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
jmp fcn.1400c2a70
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400c5020
add rcx, 2
call fcn.140139fe8
mov rdi, rax
test rax, rax
jne 0x1400c5045
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 0x1400c5050
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x1400c508f
cmp al, 0x5c
jne 0x1400c506f
mov byte [rbx], 0x2f
call fcn.1401507f4
movsxd rdx, eax
mov rcx, rbx
call fcn.1401505b8
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400c5068
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x1400c50b7
cmp al, 0x3a
je 0x1400c50d9
call fcn.1401507f4
movsxd rdx, eax
mov rcx, rbx
call fcn.1401505b8
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400c5096
mov rsi, rdi
mov rdx, rsi
mov rcx, rdi
call fcn.1400c4ae0
mov rcx, rdi
mov ebx, eax
call fcn.140137f30
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 0x1400c5109
cmp al, 0x3a
je 0x1400c511d
call fcn.1401507f4
movsxd rdx, eax
mov rcx, rbx
call fcn.1401505b8
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400c50e8
cmp rsi, rdi
jbe 0x1400c50ba
cmp byte [rsi], 0
jne 0x1400c50ba
mov eax, 0x2e
mov word [rsi], ax
jmp 0x1400c50ba
mov eax, 0xffffffff
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400c9570
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 [0x14023edc0], eax
mov r8d, 0x34567890
mov dword [0x14023edc4], r9d
mov dword [0x14023edc8], r8d
test cl, cl
je 0x1400c960a
mov r11, qword [0x140289e50]
nop word [rax + rax]
xor rcx, qword [0x14023edc0]
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 [0x14023edc0], eax
imul r9d, ecx, 0x8088405
inc r9d
mov ecx, r9d
mov dword [0x14023edc4], r9d
shr rcx, 0x18
xor rcx, qword [0x14023edc8]
movzx ecx, cl
xor r8d, dword [r11 + rcx*4]
movzx ecx, byte [r10]
mov dword [0x14023edc8], r8d
test cl, cl
jne 0x1400c95b0
ret
Function at 0x1400c9900
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
cmp qword [0x1401fcf70], 0
mov r15, r9
mov rdi, r8
mov rsi, rcx
je 0x1400c99ec
mov qword [rsp + 0x40], rbx
mov rbx, rcx
mov r11d, edi
test edi, edi
je 0x1400c99e7
mov r9d, dword [0x14023edc8]
mov r10d, dword [0x14023edc0]
mov qword [rsp + 0x48], rbp
mov ebp, dword [0x14023edc4]
mov qword [rsp + 0x50], r14
mov r14, qword [0x140289e50]
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 [0x14023edc0]
movzx ecx, al
xor r10d, dword [r14 + rcx*4]
movzx eax, r10b
add eax, ebp
mov dword [0x14023edc0], r10d
imul ebp, eax, 0x8088405
inc ebp
mov eax, ebp
mov dword [0x14023edc4], ebp
shr rax, 0x18
xor rax, qword [0x14023edc8]
movzx eax, al
xor r9d, dword [r14 + rax*4]
mov eax, r8d
xor eax, 1
mov dword [0x14023edc8], r9d
imul eax, r8d
shr eax, 8
xor al, dl
mov byte [rbx - 1], al
add r11d, 0xffffffff
jne 0x1400c9960
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.140154ce8
Function at 0x1400cb540
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 [0x1401fd0f4], 0
je 0x1400cb576
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 0x1400cb6f6
xchg dword [0x1401fcff8], eax
mov qword [rsp + 0x68], rdi
movsxd rdi, eax
test eax, eax
je 0x1400cb5de
mov eax, edi
mov rcx, rsi
xchg dword [0x1401fcff8], 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 [0x1401fd0f4]
jmp 0x1400cb6f1
lea rcx, [0x14028bfa0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
lea rcx, [0x1402595e0]
mov r8d, 0x124
call fcn.140133cd0
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 0x1400cb6e0
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 0x1400cb67b
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 0x1400cb67b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400cb67b
mov dword [0x1401fcf6c], ebx
jmp 0x1400cb6d5
cmp dword [0x1401fcf6c], edi
jne 0x1400cb6d5
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeSecurityPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400cb6d5
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 0x1400cb6d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1401fd0f8]
test eax, eax
cmove ecx, ebx
mov dword [0x1401fd0f8], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
mov dword [0x1401fd0f4], 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 0x1400cc260
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov edi, edx
movsxd rcx, r8d
call fcn.1400cbd10
mov r10d, eax
mov r8d, 0x80000000
xor r9d, r9d
test r10d, r8d
je 0x1400cc293
xor r9d, ebx
lea ecx, [r8 - 1]
test r10d, ecx
je 0x1400cc2ab
mov ecx, ebx
shr r8d, 1
mov eax, ebx
shr ecx, 1
mov ebx, ecx
xor ebx, 0xedb88320
and al, 1
cmove ebx, ecx
jmp 0x1400cc282
mov rbx, qword [rsp + 0x30]
xor r9d, edi
mov eax, r9d
add rsp, 0x20
pop rdi
ret
Function at 0x140116e60
Capabilities:
Encode data using xor

Disassembly:
push rbx
and r8d, 0x1f
mov r9, rdx
movabs rbx, 0xc2b2ae3d27d4eb4f
movabs r11, 0x9e3779b185ebca87
cmp r8, 8
jb 0x140116a9c
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 0x140116a70
mov rdi, qword [rsp + 0x10]
mov rax, r9
movabs r10, 0x165667b19e3779f9
cmp r8, 4
jb 0x140116acb
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 0x140116afd
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 0x140116ae0
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 0x140116f3d
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 0x140116f4a
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 0x140116a30
Function at 0x140123f50
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, [0x140122ea0]
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, [0x140123ef0]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call fcn.14015584c
lea rcx, [rsp + 0x50]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rsp + 0x40], edi
jne 0x140123fec
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 0x140123fd0
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 0x140124080
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 [0x140258d70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14012413a
lea rcx, [0x1401fdfd0]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401fdf20]
test rax, rax
je 0x1401240df
mov qword [rbx], rax
mov rax, qword [rax + 0xa8]
mov rdi, qword [rbx]
mov qword [0x1401fdf20], rax
jmp 0x140124124
mov ecx, 0xb0
call fcn.140131308
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.1401246b0
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, [0x1401fdfd0]
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
Function at 0x140124400
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x40
mov edx, dword [0x140258da8]
mov rbp, rcx
lea eax, [rdx + 1]
mov dword [0x140258da8], eax
test edx, edx
jne 0x140124523
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140258d70], eax
cmp eax, 0xffffffff
je 0x140124553
mov qword [rsp + 0x60], rbx
mov ecx, 0x28
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], r15
call fcn.140131308
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0xa8
mov qword [0x1401fdf18], rbx
call fcn.140131308
mov rsi, rax
lea rax, vtable.omni_thread.0
lea rcx, [rsi + 8]
mov qword [rsi], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, rsi
call fcn.1401246b0
xor r15d, r15d
mov qword [rsi + 0x40], r15
mov qword [rsi + 0x48], r15
mov dword [rsi + 0x30], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
lea r9, [rsi + 0x70]
mov rcx, rax
mov dword [rsp + 0x28], r15d
mov r8, rdi
mov dword [rsp + 0x20], r15d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r15, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
test eax, eax
je 0x140124577
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x140258d70]
mov rdx, rsi
mov dword [rsi + 0x78], eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14012459b
mov rcx, qword [rsi + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x14012452f
mov rax, rbp
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140124020
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x68]
call fcn.140133f60
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140124020
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x68]
call fcn.140133f60
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140124020
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x68]
call fcn.140133f60
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140124020
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x68]
call fcn.140133f60
int3