joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c4eb0
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 0x1400c4fdb
xor esi, esi
mov dword [0x1401fcf3c], 2
test rcx, rcx
je 0x1400c4ef3
movzx eax, byte [rcx]
cmp al, 0x80
jae 0x1400c4ef3
cmp byte [rcx + 1], 0x3a
jne 0x1400c4ef3
lea rcx, [0x1402898a0]
movzx edi, byte [rax + rcx]
jmp 0x1400c4ef5
mov edi, esi
xor ecx, ecx
mov dword [0x14023ed98], 0x28
mov dword [0x14023ed9c], 0x210000
call fcn.14013a0f0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.140151164
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.140150158
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 0x1400c4fb4
xor r8d, r8d
mov qword [0x1401fce08], rdi
mov rcx, rdi
call fcn.1400c2a50
jmp 0x1400c4fbb
mov qword [0x1401fce08], rsi
test rbx, rbx
je 0x1400c4fd1
cmp byte [rbx], 0x80
jae 0x1400c4fdb
cmp byte [rbx + 1], 0x3a
jne 0x1400c4fdb
cmp byte [rbx + 2], sil
jne 0x1400c4fdb
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
cmp byte [rbx], 0x2d
jne 0x1400c4ff8
cmp byte [rbx + 1], 0
jne 0x1400c4ff8
xor r8d, r8d
mov rcx, rbx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
jmp fcn.1400c2a50
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400c5000
add rcx, 2
call fcn.140139fc8
mov rdi, rax
test rax, rax
jne 0x1400c5025
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 0x1400c5030
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x1400c506f
cmp al, 0x5c
jne 0x1400c504f
mov byte [rbx], 0x2f
call fcn.1401507d4
movsxd rdx, eax
mov rcx, rbx
call fcn.140150598
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400c5048
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x1400c5097
cmp al, 0x3a
je 0x1400c50b9
call fcn.1401507d4
movsxd rdx, eax
mov rcx, rbx
call fcn.140150598
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400c5076
mov rsi, rdi
mov rdx, rsi
mov rcx, rdi
call fcn.1400c4ac0
mov rcx, rdi
mov ebx, eax
call fcn.140137f10
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 0x1400c50e9
cmp al, 0x3a
je 0x1400c50fd
call fcn.1401507d4
movsxd rdx, eax
mov rcx, rbx
call fcn.140150598
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test al, al
jne 0x1400c50c8
cmp rsi, rdi
jbe 0x1400c509a
cmp byte [rsi], 0
jne 0x1400c509a
mov eax, 0x2e
mov word [rsi], ax
jmp 0x1400c509a
mov eax, 0xffffffff
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400c9550
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 0x1400c95ea
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 0x1400c9590
ret
Function at 0x1400c98e0
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 0x1400c99cc
mov qword [rsp + 0x40], rbx
mov rbx, rcx
mov r11d, edi
test edi, edi
je 0x1400c99c7
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 0x1400c9940
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.140154cc8
Function at 0x1400cb520
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 0x1400cb556
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401312c0
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 0x1400cb6d6
xchg dword [0x1401fcff8], eax
mov qword [rsp + 0x68], rdi
movsxd rdi, eax
test eax, eax
je 0x1400cb5be
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 0x1400cb6d1
lea rcx, [0x14028bfa0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
lea rcx, [0x1402595e0]
mov r8d, 0x124
call fcn.140133cb0
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 0x1400cb6c0
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 0x1400cb65b
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 0x1400cb65b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400cb65b
mov dword [0x1401fcf6c], ebx
jmp 0x1400cb6b5
cmp dword [0x1401fcf6c], edi
jne 0x1400cb6b5
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeSecurityPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400cb6b5
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 0x1400cb6b5
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.1401312c0
add rsp, 0x50
pop rbx
ret
Function at 0x1400cc240
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.1400cbcf0
mov r10d, eax
mov r8d, 0x80000000
xor r9d, r9d
test r10d, r8d
je 0x1400cc273
xor r9d, ebx
lea ecx, [r8 - 1]
test r10d, ecx
je 0x1400cc28b
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 0x1400cc262
mov rbx, qword [rsp + 0x30]
xor r9d, edi
mov eax, r9d
add rsp, 0x20
pop rdi
ret
Function at 0x140116e40
Capabilities:
Encode data using xor

Disassembly:
push rbx
and r8d, 0x1f
mov r9, rdx
movabs rbx, 0xc2b2ae3d27d4eb4f
movabs r11, 0x9e3779b185ebca87
cmp r8, 8
jb 0x140116a7c
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 0x140116a50
mov rdi, qword [rsp + 0x10]
mov rax, r9
movabs r10, 0x165667b19e3779f9
cmp r8, 4
jb 0x140116aab
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 0x140116add
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 0x140116ac0
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 0x140116f1d
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 0x140116f2a
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 0x140116a10
Function at 0x140123f30
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, [0x140122e80]
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, [0x140123ed0]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call fcn.14015582c
lea rcx, [rsp + 0x50]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rsp + 0x40], edi
jne 0x140123fcc
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 0x140123fb0
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 0x140124060
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 0x14012411a
lea rcx, [0x1401fdfd0]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401fdf20]
test rax, rax
je 0x1401240bf
mov qword [rbx], rax
mov rax, qword [rax + 0xa8]
mov rdi, qword [rbx]
mov qword [0x1401fdf20], rax
jmp 0x140124104
mov ecx, 0xb0
call fcn.1401312e8
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.140124690
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 0x1401243e0
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 0x140124503
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140258d70], eax
cmp eax, 0xffffffff
je 0x140124533
mov qword [rsp + 0x60], rbx
mov ecx, 0x28
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], r15
call fcn.1401312e8
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0xa8
mov qword [0x1401fdf18], rbx
call fcn.1401312e8
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.140124690
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 0x140124557
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 0x14012457b
mov rcx, qword [rsi + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x14012450f
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.140124000
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x68]
call fcn.140133f40
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140124000
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x68]
call fcn.140133f40
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140124000
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x68]
call fcn.140133f40
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140124000
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x68]
call fcn.140133f40
int3
Function at 0x140124850
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
mov rbx, rcx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x30], 0
jne 0x14012493f
mov edx, dword [0x1401fdf28]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [0x1401245a0]
mov qword [rsp + 0x50], rdi
mov r9, rbx
xor edi, edi
mov dword [rsp + 0x20], 4
xor ecx, ecx
mov dword [rsp + 0x48], edi
call fcn.14015582c
mov ecx, dword [rsp + 0x48]
mov dword [rbx + 0x78], ecx
mov qword [rbx + 0x70], rax
test rax, rax
je 0x140124951
mov ecx, dword [rbx + 0x34]
test ecx, ecx
je 0x1401248d3
sub ecx, 1
je 0x1401248d8
cmp ecx, 1
jne 0x140124975
lea edi, [rcx + 1]
jmp 0x1401248d8
mov edi, 0xfffffffe
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x140124987
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x14012491b
lea rcx, [rbx + 8]
mov dword [rbx + 0x30], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140124000
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x40]
call fcn.140133f40
int3
lea rdx, [0x1401eb458]
lea rcx, [rsp + 0x40]
call fcn.140133f40
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140124000
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x40]
call fcn.140133f40
int3
lea rdx, [0x1401eb458]
lea rcx, [rsp + 0x40]
call fcn.140133f40
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140124000
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x40]
call fcn.140133f40
int3

Function at 0x1401249b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rbx + 0x30]
lea rcx, [rbx + 8]
dec eax
cmp eax, 1
ja 0x140124a39
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x140258d70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rbx, rax
je 0x140124a50
cmp dword [rbx + 0x58], 0
jne 0x140124a62
mov rcx, qword [rbx + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140124a74
test rdi, rdi
je 0x140124a1c
mov rax, qword [rbx + 0x80]
mov qword [rdi], rax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [rax]
call sub.KERNEL32.dll_LeaveCriticalSection
lea rdx, [0x1401eb458]
lea rcx, [rsp + 0x30]
call fcn.140133f40
int3
lea rdx, [0x1401eb458]
lea rcx, [rsp + 0x30]
call fcn.140133f40
int3
lea rdx, [0x1401eb458]
lea rcx, [rsp + 0x30]
call fcn.140133f40
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140124000
lea rdx, [0x1401eb488]
lea rcx, [rsp + 0x30]
call fcn.140133f40
int3
Function at 0x140124b30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140258d70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x140124ba2
lea rcx, [rax + 8]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 8]
mov dword [rdi + 0x30], 2
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rdi + 0x58], 0
mov rbx, qword [rsp + 0x30]
je 0x140124b9b
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r8]
xor ecx, ecx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140155900
mov qword [rdi + 0x80], rsi
xor ecx, ecx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140155900

Function at 0x140127750
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x1401860c0]
mov rbx, rdx
mov r11, rcx
not r8d
cmp rdx, 8
jbe 0x140127856
mov qword [rsp + 0x10], rdi
test cl, 7
je 0x14012779f
nop word [rax + rax]
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
shr r8d, 8
xor r8d, dword [rsi + rcx*4]
test r11b, 7
jne 0x140127780
mov rdi, rbx
and ebx, 7
and rdi, 0xfffffffffffffff8
add rdi, r11
cmp r11, rdi
jae 0x140127851
nop word [rax + rax]
xor r8d, dword [r11]
mov r10d, dword [r11 + 4]
add r11, 8
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
shr rax, 8
movzx ecx, al
mov eax, r10d
mov r8d, dword [rsi + rdx*4 + 0x1400]
shr rax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r10d
shr rax, 8
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
xor r8d, dword [rsi + rax*4 + 0x1000]
mov eax, r10d
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0x1c00]
movzx eax, r10b
xor r8d, dword [rsi + rax*4 + 0xc00]
cmp r11, rdi
jb 0x1401277c0
mov rdi, qword [rsp + 0x10]
test rbx, rbx
je 0x14012787d
nop dword [rax + rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [rsi + rcx*4]
sub rbx, 1
jne 0x140127860
mov rbx, qword [rsp + 0x18]
not r8d
mov eax, r8d
pop rsi
ret
Function at 0x140127ce0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x140188290]
mov rbx, rdx
mov r11, rcx
not r8
cmp rdx, 4
jbe 0x140127daf
mov qword [rsp + 0x10], rdi
test cl, 3
je 0x140127d2f
nop word [rax + rax]
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
shr r8, 8
xor r8, qword [rsi + rcx*8]
test r11b, 3
jne 0x140127d10
mov rdi, rbx
and ebx, 3
and rdi, 0xfffffffffffffffc
add rdi, r11
cmp r11, rdi
jae 0x140127daa
nop dword [rax]
nop word [rax + rax]
mov r10d, dword [r11]
add r11, 4
mov eax, r8d
xor r10, rax
mov rax, r10
shr rax, 0x10
movzx edx, al
mov rax, r10
shr rax, 8
movzx ecx, al
mov rax, r10
shr rax, 0x18
mov r9, qword [rsi + rdx*8 + 0x800]
xor r9, qword [rsi + rcx*8 + 0x1000]
xor r9, qword [rsi + rax*8]
movzx eax, r10b
xor r9, qword [rsi + rax*8 + 0x1800]
mov rax, r8
shr rax, 0x20
mov r8, r9
xor r8, rax
cmp r11, rdi
jb 0x140127d50
mov rdi, qword [rsp + 0x10]
test rbx, rbx
je 0x140127ddd
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8, 8
xor r8, qword [rsi + rcx*8]
sub rbx, 1
jne 0x140127dc0
mov rbx, qword [rsp + 0x18]
not r8
mov rax, r8
pop rsi
ret