joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000be80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e50f4]
mov rbx, rcx
test esi, esi
jle 0x14000bfb0
mov rax, qword [0x1400e50f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000becb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000bf55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000beb0
mov rcx, rbx
call fcn.14000c8f0
mov rdi, rax
test rax, rax
je 0x14000bfd2
mov rax, qword [0x1400e50f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000ca30
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e50f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000bfb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000bf4e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000bf60
add dword [0x1400e50f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400e50f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000bf4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000be10
nop dword [rax]
xor esi, esi
jmp 0x14000bed8
mov rax, qword [0x1400e50f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000be10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000be10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000c560
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e5160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e5140]
test rbx, rbx
je 0x14000c5bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000c5b3
test eax, eax
jne 0x14000c5b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000c598
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000c8f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400be440]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c910
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c918
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c910
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000c96d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000c964
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c910
add rax, 0x28
cmp rax, r9
jne 0x14000c950
xor eax, eax
ret

Function at 0x14000c970
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400be440]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000c98f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000c998
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000c98f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000ca30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400be440]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000ca4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000ca58
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140077cf0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140077d38
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x140077d0a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008b490
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008b4b8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
test eax, eax
jle 0x14008b500
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008b4d0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008b50c
call rbp
cmp dword [rax], 4
je 0x14008b4d0
lea rcx, str.random_device_could_not_be_read
call fcn.1400b29a0
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140097850
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0x80000000
mov dword [rbp - 0x18], 0x7fffffff
mov qword [rbp - 8], 0
jmp 0x1400978e2
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x18d]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x24]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x24]
and eax, 1
test eax, eax
je 0x1400978c9
mov eax, 0x9908b0df
jmp 0x1400978ce
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov dword [rax + rdx*4], ecx
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0xe2
jbe 0x140097874
mov qword [rbp - 0x10], 0xe3
jmp 0x140097964
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 0xe3]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x20]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x20]
and eax, 1
test eax, eax
je 0x14009794b
mov eax, 0x9908b0df
jmp 0x140097950
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov dword [rax + rdx*4], ecx
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 0x26e
jbe 0x1400978f6
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x9bc]
and eax, 0x80000000
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0x7fffffff
or eax, edx
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x630]
mov edx, dword [rbp - 0x1c]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x1c]
and eax, 1
test eax, eax
je 0x1400979b1
mov eax, 0x9908b0df
jmp 0x1400979b6
mov eax, 0
xor edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x9bc], edx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400979e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov ecx, eax
call fcn.1400a7070
mov rdx, qword [rbp + 0x10]
mov dword [rdx], eax
mov qword [rbp - 8], 1
jmp 0x140097a58
mov rax, qword [rbp - 8]
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
shr eax, 0x1e
xor dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
imul eax, eax, 0x6c078965
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov ecx, eax
call fcn.1400a70a0
add dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, eax
call fcn.1400a7070
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp - 8]
mov dword [rdx + rcx*4], eax
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0x26f
jbe 0x140097a09
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0x270
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140097ab0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
cmp rax, 0x26f
jbe 0x140097adb
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.140097850
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
lea rcx, [rax + 1]
mov rdx, qword [rbp + 0x10]
mov qword [rdx + 0x9c0], rcx
mov rdx, qword [rbp + 0x10]
mov eax, dword [rdx + rax*4]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0xb
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0x12
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x1400b1de0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b71e0]
jmp 0x14000d7a0
Function at 0x14000b950
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000b7bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b7bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b7bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b7bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b7bb
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b7bb
cmp dword [rcx + 0xf8], 0
je 0x14000b7bb
mov ecx, ebx
call fcn.14000b86c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000b648
nop
cmp dword [rbp + 0x20], 0
je 0x14000b809
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000b814
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000b74c
Function at 0x14001318c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400131bc
xor eax, eax
jmp 0x14001327f
mov rbp, rbx
cmp word [rax], si
je 0x1400131e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400131c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400131c4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400130ac
movsxd r14, eax
test eax, eax
jne 0x14001321f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400131b5
mov rcx, r14
call fcn.14001166c
mov rdi, rax
test rax, rax
jne 0x140013238
xor ecx, ecx
call fcn.1400117a8
jmp 0x140013214
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400130ac
test eax, eax
jne 0x140013269
mov rcx, rdi
call fcn.1400117a8
jmp 0x140013273
xor ecx, ecx
call fcn.1400117a8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140017858
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140011338
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400178e2
cmp byte [rbp - 0x21], r15b
je 0x1400178dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140017918
call fcn.140013990
test eax, eax
jne 0x140017904
cmp byte [rbp - 0x21], r15b
je 0x1400178fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140017918
cmp byte [rbp - 0x21], r15b
je 0x140017915
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400117f8
test eax, eax
jne 0x1400179b8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140011338
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140017957
cmp byte [rbp - 0x21], r15b
je 0x14001798c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001798c
call fcn.140013990
test eax, eax
jne 0x140017978
cmp byte [rbp - 0x21], r15b
je 0x140017971
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001798c
cmp byte [rbp - 0x21], r15b
je 0x140017989
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400117f8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400179b8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400179bb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400179c9
mov rcx, rdi
call fcn.1400117a8
cmp byte [rbp + 0x3f], r15b
je 0x1400179d8
mov rcx, qword [rbp + 0x27]
call fcn.1400117a8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001abdc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001abf2
mov al, 1
jmp 0x14001ac52
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ac03
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001ac50
mov ecx, dword [rcx + 0x18]
nop
call fcn.140014ad8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001ac50
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001ac50
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001ac50
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001ac52
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140002834
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000287e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000287e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000287e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000287e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000287e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002880
xor al, al
add rsp, 0x28
ret
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x1400134c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014810
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014830
xor al, al
jmp 0x1400148b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014843
xor al, al
jmp 0x1400148b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001486d
xor al, al
jmp 0x1400148b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014881
xor al, al
jmp 0x1400148b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014893
xor al, al
jmp 0x1400148b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400148af
xor al, al
jmp 0x1400148b1
mov al, 1
add rsp, 0x38
ret
Function at 0x140002d30
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm14
movaps xmmword [rsp + 0x70], xmm13
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x50], xmm11
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
aesimc xmm9, xmmword [rdx + 0xa0]
aesimc xmm10, xmmword [rdx + 0xb0]
aesimc xmm11, xmmword [rdx + 0xc0]
aesimc xmm12, xmmword [rdx + 0xd0]
movaps xmm13, xmmword [rdx]
movaps xmm14, xmmword [rdx + 0xe0]
movaps xmmword [rcx], xmm13
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movdqa xmmword [rcx + 0xa0], xmm9
movdqa xmmword [rcx + 0xb0], xmm10
movdqa xmmword [rcx + 0xc0], xmm11
movdqa xmmword [rcx + 0xd0], xmm12
movaps xmmword [rcx + 0xe0], xmm14
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
movaps xmm14, xmmword [rsp + 0x80]
add rsp, 0x98
ret
Function at 0x14000b069
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword [rcx]
mov r8d, 1
jmp 0x1401507c9

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
mov esi, dword [0x1401a2040]
test esi, esi
je 0x14000b29b
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
ja 0x14000b285
je 0x14000b283
movabs rax, 0x736f6d6570736575
lea rdi, [rsp + 0x48]
mov qword [rdi], rax
movabs rax, 0x6c7967656e657261
mov qword [rdi + 8], rax
movabs rax, 0x646f72616e646f6d
mov qword [rdi + 0x10], rax
movabs rax, 0x7465646279746573
mov qword [rdi + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
and qword [rdi + 0x40], 0
call fcn.140155e20
mov ebx, edx
mov rcx, rdi
mov rdx, rax
call fcn.14007bc61
lea r14, [rsp + 0x20]
mov dword [r14], ebx
mov r8d, 4
mov rcx, rdi
mov rdx, r14
call fcn.14007bc81
call fcn.140155dc0
mov rbx, rax
mov qword [r14], rax
mov rdx, qword [rax + 0x28]
mov rcx, rdi
call fcn.14007bc61
lock dec qword [rbx]
jne 0x14000b151
lea rcx, [rsp + 0x20]
call fcn.14007bd59
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x10], xmm1
mov r12, qword [rsp + 0x78]
shl r12, 0x38
or r12, qword [rsp + 0x80]
movaps xmmword [rdi], xmm0
xor qword [rdi + 0x18], r12
mov rcx, rdi
call fcn.14007bda5
mov r14, qword [rdi]
mov r15, qword [rdi + 8]
mov r13, qword [rdi + 0x10]
mov rbx, qword [rdi + 0x18]
mov al, byte [0x1402a6198]
mov edx, 0x10
xor ecx, ecx
call fcn.140188040
test rax, rax
je 0x14000b2ae
mov rdi, rax
xor r15, 0xff
add r15, rbx
mov rax, r13
rol rax, 0xd
xor r14, r12
add r14, r13
xor rax, r14
lea rdx, [r15 + rax]
rol rax, 0x11
xor rax, rdx
rol rbx, 0x10
xor rbx, r15
rol r14, 0x20
add r14, rbx
lea rcx, [r14 + rax]
rol rax, 0xd
rol rbx, 0x15
xor rax, rcx
xor rbx, r14
rol rdx, 0x20
add rdx, rbx
lea r8, [rdx + rax]
rol rax, 0x11
xor rax, r8
rol rbx, 0x10
xor rbx, rdx
rol rcx, 0x20
add rcx, rbx
lea rdx, [rcx + rax]
rol rax, 0xd
rol rbx, 0x15
xor rax, rdx
xor rbx, rcx
rol r8, 0x20
add r8, rbx
lea rcx, [r8 + rax]
rol rax, 0x11
mov rdx, rcx
rol rdx, 0x20
rol rbx, 0x10
xor rbx, r8
rol rbx, 0x15
xor rbx, rax
xor rbx, rdx
xor rbx, rcx
lea rax, [rbx*2 + 1]
mov qword [rdi], rax
mov dword [rdi + 8], esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
mov ecx, esi
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rbx, rbx
je 0x14000b285
mov rcx, rbx
call fcn.14007bc57
jmp 0x14000b285
xor edi, edi
mov rax, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1401a2028]
call fcn.140153820
mov esi, eax
jmp 0x14000b099
mov ecx, 8
mov edx, 0x10
call fcn.14003a45d
int3
Function at 0x140017150
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x78
lea rbp, [rsp + 0x70]
call fcn.1401a0c40
lea rdx, [0x140154ec0]
xor ecx, ecx
call sub.KERNEL32.dll_AddVectoredExceptionHandler
mov dword [rbp - 0x48], 0x5000
lea rcx, [rbp - 0x48]
call sub.KERNEL32.dll_SetThreadStackGuarantee
call sub.KERNEL32.dll_GetCurrentThread
mov r8, qword [0x1401a2108]
lea rdx, [0x14027ffb0]
mov rcx, rax
call r8
mov ecx, dword [0x1402a6138]
test ecx, ecx
je 0x1400171a5
dec ecx
jmp 0x1400171b3
lea rcx, [0x1402a6120]
call fcn.140153820
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x1400171c2
call fcn.140155060
mov rsi, rax
movzx eax, byte [0x1402a6198]
mov edx, 0x38
xor ecx, ecx
call fcn.140188040
test rax, rax
je 0x14001725a
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
mov qword [rax + 0x28], rsi
mov byte [rax + 0x30], 0
mov rcx, rax
call fcn.1401550d0
test rax, rax
jne 0x14001726b
lea rcx, [0x14000da9b]
call fcn.140002fd3
mov eax, dword [0x1402a606c]
cmp eax, 3
je 0x140017251
mov byte [rbp - 0x10], 1
lea rax, [rbp - 0x10]
mov qword [rbp - 0x48], rax
lea rax, str.std_src_rt.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1402a606c]
lea r9, [0x14027ea48]
lea r8, [rbp - 0x48]
xor edx, edx
call fcn.1401551d0
xor eax, eax
add rsp, 0x78
pop rsi
pop rbp
ret
mov ecx, 8
mov edx, 0x38
call fcn.14003a45d
ud2
mov rsi, rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 8], 0
mov byte [rbp - 4], 0
lea rax, str.fatal_runtime_error:_code_running_before_main_must_not_use_thread::current_n
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
mov rax, rbp
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 8]
lea rdx, [rbp - 0x48]
call fcn.140153a00
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.140153b10
mov ecx, 7
int 0x29
ud2

Function at 0x140019c97
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret