joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007e440
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov rsi, rcx
mov rbx, rdx
test rcx, rcx
je 0x14007e588
test rdx, rdx
je 0x14007e588
cmp qword [rdx], 0
je 0x14007e588
lea rdi, [rsp + 0x40]
mov ecx, 0x105
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, eax
test rax, rax
je 0x14007e540
cmp rax, 0x105
ja 0x14007e59a
cmp word [rsp + rax*2 + 0x3e], 0x5c
lea rdx, [rax - 1]
je 0x14007e560
xor edx, edx
mov r9d, 0xffffffff
mov r8, rdi
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbp
test eax, eax
je 0x14007e540
mov rdx, qword [rbx]
mov eax, eax
cmp rdx, rax
jb 0x14007e590
mov dword [rsp + 0x28], edx
mov r9d, 0xffffffff
xor edx, edx
mov r8, rdi
mov qword [rsp + 0x38], 0
mov ecx, 0xfde9
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rsi
call rbp
test eax, eax
je 0x14007e540
sub eax, 1
mov qword [rbx], rax
xor eax, eax
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400605e0
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp rax, 3
je 0x14007e578
xor eax, eax
mov word [rsp + rdx*2 + 0x40], ax
jmp 0x14007e4a7
cmp word [rsp + 0x42], 0x3a
jne 0x14007e566
jmp 0x14007e4a7
mov eax, 0xfffff019
jmp 0x14007e52e
mov qword [rbx], rax
mov eax, 0xfffff024
jmp 0x14007e52e
mov eax, 0xfffff01a
jmp 0x14007e52e
Function at 0x14007eaf0
Capabilities:
Get common file path
Get session user name

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
mov rbx, rcx
test rcx, rcx
je 0x14007ec6a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14007ec00
lea rsi, [rsp + 0x34]
lea rdi, [rsp + 0x250]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x34], 0x104
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x14007eb88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x7a
je 0x14007ec60
mov ecx, ebx
call fcn.1400605e0
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rbp, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x34], 0x101
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14007ec20
mov qword [rbx + 0x18], 0
lea r8, [rbx + 0x18]
mov edx, 0xffffffff
mov rcx, rdi
call fcn.14007e5f0
test eax, eax
jne 0x14007eb75
mov qword [rbx], 0
mov r8, rbx
mov edx, 0xffffffff
mov rcx, rbp
call fcn.14007e5f0
test eax, eax
jne 0x14007ec40
mov qword [rbx + 0x10], 0
mov qword [rbx + 8], 0xffffffffffffffff
jmp 0x14007eb75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400605e0
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 0x7a
je 0x14007ec60
call fcn.1400605e0
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x2c], eax
call fcn.140082d20
mov eax, dword [rsp + 0x2c]
jmp 0x14007eb75
mov eax, 0xfffff027
jmp 0x14007eb75
mov eax, 0xfffff019
jmp 0x14007eb75
Function at 0x14007ec90
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10058
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400c95f0
sub rsp, rax
test rdx, rdx
mov rsi, rdx
mov rdi, r8
sete al
test r8, r8
sete dl
or al, dl
jne 0x14007edf0
test rcx, rcx
je 0x14007edf0
cmp qword [r8], 0
je 0x14007edf0
lea r8, [rsp + 0x48]
mov edx, 0xffffffff
call fcn.14007ea10
mov ebx, eax
test eax, eax
je 0x14007ed00
mov eax, ebx
add rsp, 0x10058
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r13, qword [rsp + 0x48]
lea r12, [rsp + 0x50]
mov r8d, 0x7fff
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, r13
mov ebp, eax
call fcn.140082d20
test ebp, ebp
jne 0x14007ed50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 0xcb
je 0x14007edfa
call fcn.1400605e0
mov ebx, eax
jmp 0x14007ece7
xor edx, edx
mov r9d, 0xffffffff
mov r8, r12
mov ecx, 0xfde9
mov qword [rsp + 0x38], 0
mov rbp, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rbp
test eax, eax
je 0x14007ede0
mov rdx, qword [rdi]
mov eax, eax
cmp rdx, rax
jb 0x14007ee04
mov dword [rsp + 0x28], edx
mov r9d, 0xffffffff
xor edx, edx
mov r8, r12
mov qword [rsp + 0x38], 0
mov ecx, 0xfde9
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rsi
call rbp
test eax, eax
je 0x14007ede0
sub eax, 1
mov qword [rdi], rax
jmp 0x14007ece7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x14007ed3d
mov ebx, 0xfffff019
jmp 0x14007ece7
mov ebx, 0xfffff026
jmp 0x14007ece7
mov qword [rdi], rax
mov ebx, 0xfffff024
jmp 0x14007ece7
Function at 0x14007f570
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rbx
sub rsp, 0x468
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14007f781
xor edx, edx
lea r8, [0x140274f80]
lea rcx, str.0.0.0.0
call fcn.140084010
test eax, eax
jne 0x140211d60
xor edx, edx
lea r8, [0x140274f60]
lea rcx, [0x1402277c3]
call fcn.140084060
test eax, eax
jne 0x140211d60
mov rsi, qword [sym.imp.WS2_32.dll_socket]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call rsi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007f6e0
lea rax, [rsp + 0x3c]
mov r8d, 0x2005
mov edx, 0xffff
mov dword [rsp + 0x3c], 0x274
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14007f76d
test byte [rsp + 0x1e2], 2
je 0x14007f6c0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x14007f759
xor r8d, r8d
mov edx, 1
mov ecx, 0x17
call rsi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007f710
lea rax, [rsp + 0x3c]
mov r8d, 0x2005
mov edx, 0xffff
mov dword [rsp + 0x3c], 0x274
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14007f76d
test byte [rsp + 0x1e2], 2
je 0x14007f6d0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x14007f759
add rsp, 0x468
pop rbx
pop rsi
ret
mov dword [0x140274f94], 1
jmp 0x14007f633
mov dword [0x140274f90], 1
jmp 0x14007f6a2
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
cmp eax, 0x273c
jle 0x14007f738
sub eax, 0x273e
cmp eax, 1
jbe 0x14007f645
call rbx
lea rdx, str.socket
mov ecx, eax
call fcn.140060580
nop
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
cmp eax, 0x273c
jle 0x14007f748
sub eax, 0x273e
cmp eax, 1
ja 0x14007f6fe
add rsp, 0x468
pop rbx
pop rsi
ret
cmp eax, 0x273a
jg 0x14007f645
jmp 0x14007f6fe
cmp eax, 0x273a
jle 0x14007f6fe
add rsp, 0x468
pop rbx
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.closesocket
mov ecx, eax
call fcn.140060580
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.getsockopt
mov ecx, eax
call fcn.140060580
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.140060580
nop

Function at 0x1400882a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
test dl, dl
jne 0x1400882d8
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, 0x40
mov rdx, rbx
xor ecx, ecx
mov rax, rsi
mov r8d, 0x3000
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rax, [rcx - 1]
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov r9d, 0x40
and rax, 0xffffffffffe00000
mov r8d, 0x20003000
lea rdx, [rax + 0x200000]
call rsi
test rax, rax
je 0x1400882b4
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x1400883b0
Capabilities:
Manipulate user privileges

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
test rcx, rcx
jne 0x1400883c8
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call fcn.140088170
mov edx, eax
mov eax, 1
test edx, edx
je 0x1400883f0
mov byte [0x140275360], al
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140088418
xor eax, eax
jmp 0x1400883d8
lea rsi, [rsp + 0x50]
mov edx, 1
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rdi
mov edx, dword [rsp + 0x50]
test edx, edx
jne 0x140088478
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov qword [rsp + 0x20], rsi
call rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400883d8
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov edx, 1
mov rbx, rax
mov r9d, dword [rsp + 0x50]
mov r8, rax
call rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14008840d
pxor xmm0, xmm0
xor ecx, ecx
lea r9, [rsp + 0x38]
mov rdx, rsi
mov r8d, 0xf0fff
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm0
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
je 0x1400884f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x1400883d8
lea rsi, str.SeLockMemoryPrivilege
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov r9d, 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
lea edx, [rax + 1]
movzx ecx, ax
mov eax, edx
mov rdx, qword [rbx]
shl eax, 0x10
or eax, ecx
mov rcx, qword [rsp + 0x38]
movd xmm0, eax
psllw xmm0, 1
movd dword [rsp + 0x40], xmm0
call sub.ADVAPI32.dll_LsaAddAccountRights
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x140088548
call sub.ADVAPI32.dll_LsaClose
jmp 0x1400884df
call sub.ADVAPI32.dll_LsaClose
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.140088170
test eax, eax
setne al
jmp 0x1400883d8
Function at 0x14009e690
Capabilities:
Hash data using sha512

Disassembly:
push rdi
sub rsp, 0x40
mov r8, rcx
test rcx, rcx
je 0x14009e78c
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x14009e773
mov eax, 0x101
lea rdi, [rcx + 0x48]
mov byte [rsp], dl
movabs r9, 0x3c6ef372fe94f82b
mov word [rsp + 2], ax
and rdi, 0xfffffffffffffff8
mov eax, ecx
movabs r10, 0xa54ff53a5f1d36f1
sub eax, edi
mov byte [rsp + 1], 0
movdqa xmm0, xmmword [0x14022b8e0]
mov dword [rsp + 4], 0
mov qword [rsp + 8], 0
mov qword [rcx + 0x40], 0
mov qword [rcx + 0xe8], 0
lea ecx, [rax + 0xf0]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov qword [r8 + 0x10], r9
xor eax, eax
movabs r9, 0x510e527fade682d1
mov qword [r8 + 0x18], r10
movabs r10, 0x9b05688c2b3e6c1f
mov qword [r8 + 0x20], r9
pxor xmm0, xmmword [rsp]
movabs r9, 0x1f83d9abfb41bd6b
mov qword [r8 + 0x28], r10
movabs r10, 0x5be0cd19137e2179
mov qword [r8 + 0x30], r9
mov qword [r8 + 0x38], r10
mov dword [r8 + 0xe4], edx
movups xmmword [r8], xmm0
add rsp, 0x40
pop rdi
ret
cmp byte [rcx + 0xe8], 0
je 0x14009e784
mov qword [rcx + 0x58], 0xffffffffffffffff
mov qword [r8 + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x14009e76d
Function at 0x1400a03a0
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r12, rdx
lea rax, [r8 + 1]
mov rsi, rcx
mov rbx, r8
movabs rdx, 0x5851f42d4c957f2d
lea r13, [rcx + 0x20]
lea rdi, [rsp + 0x20]
imul rax, rdx
lea rbp, [rcx + 0xc3e0]
movabs rdx, 0x810a978a59f5a1fc
xor rdx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdx
movabs rdx, 0xa77099df38c2d846
xor rdx, rax
mov qword [rsp + 0x30], rdx
movabs rdx, 0x8126b91cbf22495c
xor rdx, rax
mov qword [rsp + 0x38], rdx
movabs rdx, 0x494d2597179f8a62
xor rdx, rax
mov qword [rsp + 0x40], rdx
movabs rdx, 0x9237efb9ceaaec0c
xor rdx, rax
mov qword [rsp + 0x48], rdx
movabs rdx, 0x2f2a56746ce62d78
xor rdx, rax
mov qword [rsp + 0x50], rdx
movabs rdx, 0x84853bf7b62ce54e
xor rax, rdx
mov qword [rsp + 0x58], rax
nop word [rax + rax]
and ebx, 0x3fffff
mov rdx, r13
mov rcx, rdi
add r13, 0x1878
shl rbx, 6
add rbx, qword [rsi]
prefetchnta byte [rbx]
call fcn.1400a2390
mov rax, qword [rbx]
xor qword [rsp + 0x20], rax
mov rax, qword [rbx + 8]
xor qword [rsp + 0x28], rax
mov rax, qword [rbx + 0x10]
xor qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x18]
xor qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x20]
xor qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x28]
xor qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x30]
xor qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x38]
xor qword [rsp + 0x58], rax
movsxd rax, dword [r13 - 0x64]
mov rbx, qword [rsp + rax*8 + 0x20]
cmp rbp, r13
jne 0x1400a0460
movdqa xmm0, xmmword [rsp + 0x20]
movdqa xmm1, xmmword [rsp + 0x30]
movdqa xmm2, xmmword [rsp + 0x40]
movdqa xmm3, xmmword [rsp + 0x50]
movups xmmword [r12], xmm0
movups xmmword [r12 + 0x10], xmm1
movups xmmword [r12 + 0x20], xmm2
movups xmmword [r12 + 0x30], xmm3
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1400b25a0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop word [rax + rax]
movdqu xmm0, xmmword [rcx + rax]
movdqu xmm1, xmmword [rdx + rax]
pxor xmm0, xmm1
movups xmmword [rcx + rax], xmm0
add rax, 0x10
cmp rax, 0x400
jne 0x1400b25a8
ret

Function at 0x1400b28a0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x820
mov rbp, rcx
mov rbx, rdx
test rcx, rcx
je 0x1400b2a51
test rdx, rdx
je 0x1400b2a51
mov r10, qword [rcx]
test r10, r10
je 0x1400b2a51
mov eax, dword [rdx + 0x18]
mov r11, qword [rdx]
lea r12, [rsp + 0x20]
mov ecx, pe_nt_image_headers64
mov rdi, r12
mov r9, rax
shl rax, 0xa
lea rsi, [r11 + rax - 0x400]
rep movsq qword [rdi], qword [rsi]
mov esi, dword [rdx + 0x1c]
cmp esi, 1
jbe 0x1400b29a9
cmp esi, 3
jbe 0x1400b2a63
lea eax, [rsi - 4]
lea r13d, [r9 + r9 - 1]
mov edi, 3
and eax, 0xfffffffe
lea r14d, [rax + 5]
mov r8d, r13d
lea ecx, [r13 + r9]
mov rax, r12
xor edx, edx
shl r8, 0xa
mov r13, rcx
shl rcx, 0xa
add r8, r11
add rcx, r11
nop dword [rax]
movdqu xmm0, xmmword [r8 + rdx]
movdqu xmm1, xmmword [r8 + rdx + 0x10]
add rax, 0x20
pxor xmm0, xmmword [rax - 0x20]
pxor xmm1, xmmword [rax - 0x10]
movaps xmmword [rax - 0x20], xmm0
movaps xmmword [rax - 0x10], xmm1
movdqu xmm2, xmmword [rcx + rdx + 0x10]
movdqu xmm3, xmmword [rcx + rdx]
add rdx, 0x20
pxor xmm1, xmm2
pxor xmm0, xmm3
movaps xmmword [rax - 0x20], xmm0
movaps xmmword [rax - 0x10], xmm1
cmp rdx, 0x400
jne 0x1400b2948
lea eax, [rdi + 2]
add r13d, r9d
cmp r14d, eax
je 0x1400b2a68
mov edi, eax
jmp 0x1400b2923
lea r8, [rsp + 0x420]
mov rdi, r8
mov edx, dword [rbp + 8]
mov ecx, pe_nt_image_headers64
mov rsi, r12
rep movsq qword [rdi], qword [rsi]
lea rsi, [rsp + 0x420]
mov r9d, 0x400
mov rcx, r10
mov r8, rsi
call fcn.1400b5ce0
mov r9d, dword [0x1402794e0]
test r9d, r9d
je 0x1400b2a0d
mov edx, 0x400
mov rcx, r12
call fcn.1400b24e0
mov r8d, dword [0x1402794e0]
test r8d, r8d
je 0x1400b2a0d
mov edx, 0x400
mov rcx, rsi
call fcn.1400b24e0
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x1400b2ab9
mov esi, dword [rbx + 0x10]
mov edx, dword [0x1402794e0]
mov rcx, qword [rbx]
shl esi, 0xa
test edx, edx
je 0x1400b2a38
test rcx, rcx
je 0x1400b2a38
mov rdx, rsi
call fcn.1400b24e0
mov eax, dword [rbx + 0x2c]
test eax, eax
jne 0x1400b2a51
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbx]
test rax, rax
je 0x1400b2aca
mov rdx, rsi
call rax
nop
add rsp, 0x820
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edi, 1
add edi, 1
lea r8, [rsp + 0x420]
mov ecx, edi
imul ecx, r9d
sub ecx, 1
mov edx, ecx
mov rax, r12
shl rdx, 0xa
add rdx, r11
nop dword [rax + rax]
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmmword [rax]
add rax, 0x10
add rdx, 0x10
movaps xmmword [rax - 0x10], xmm0
cmp rax, r8
jne 0x1400b2a90
add ecx, r9d
cmp edi, esi
jae 0x1400b29b1
add edi, 1
jmp 0x1400b2a7c
mov edx, dword [rbp + 8]
mov rcx, qword [rbp]
call fcn.1400b3da0
jmp 0x1400b2a18
call fcn.1400d47d8
jmp 0x1400b2a51
Function at 0x1400b5a30
Capabilities:
Hash data using sha512

Disassembly:
pxor xmm0, xmm0
movabs r8, 0xbb67ae8584caa73b
movabs r9, 0x3c6ef372fe94f82b
movabs r10, 0xa54ff53a5f1d36f1
movabs rax, 0x6a09e667f3bcc908
movabs r11, 0x510e527fade682d1
or rdx, 0x1010000
mov qword [rcx + 8], r8
movabs r8, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x10], r9
xor rdx, rax
movabs r9, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x18], r10
movabs r10, 0x5be0cd19137e2179
mov qword [rcx + 0x20], r11
mov qword [rcx + 0x28], r8
mov qword [rcx + 0x30], r9
mov qword [rcx + 0x38], r10
mov qword [rcx + 0xd0], 0
mov qword [rcx], rdx
movups xmmword [rcx + 0x40], xmm0
ret
Function at 0x1400c8c60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140233e90]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400c8cd9
mov rcx, r10
call fcn.1400c8b30
test eax, eax
je 0x1400c8cd9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400c8cd6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400c8ccd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400c8cd9
add r8, 0x28
cmp r8, r9
jne 0x1400c8cb8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400c9390
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1402f9da0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402f9d80]
test rbx, rbx
je 0x1400c93e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400c93db
test r12, r12
je 0x1400c93db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400c93c0
lea rcx, [0x1402f9da0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400d5ef0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400d5ff2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400d5fca
add rax, 1
cmp rax, 0x6b
je 0x1400d5fe7
cmp byte [rcx + rax], 0
jne 0x1400d5fc0
movsxd rdx, eax
cmp eax, 0x6a
je 0x1400d5fe7
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400d5fdb
Function at 0x1400d6390
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1402fa870], 1
je 0x1400d6408
lea rdi, [0x1402fa870]
mov rcx, rdi
call fcn.1400d5c70
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1400d5580
mov esi, dword [0x1402fa870]
test esi, esi
jne 0x1400d6418
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140217508], eax
cmp eax, 0xffffffff
je 0x140216126
mov dword [0x1402fa870], 1
mov rcx, rbp
call fcn.1400d5870
test rbx, rbx
je 0x1400d6408
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400d6010
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400d63e8
mov ecx, 2
call qword [fcn.1400d4dc0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400d63e8
call sub.msvcrt.dll_abort
nop

Function at 0x1400d6440
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400d6120
cmp qword [0x1402ff050], 0
mov rbx, rax
je 0x1400d6558
test rax, rax
je 0x1400d6558
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400d5b70
cmp eax, 1
je 0x1400d6566
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14021612c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140217508]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400d656c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.1400d5ef0
nop
jmp fcn.14021612c

Function at 0x1400d6580
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400d6390
mov ecx, dword [0x140217508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400d65a0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400d6440