joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a9e42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400e2bc8]
test eax, eax
je 0x1400a9eda
lea rax, [0x1400e2ba0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400e2bd0]
mov qword [rbp - 8], rax
jmp 0x1400a9ebe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400a9eb2
cmp qword [rbp - 0x10], 0
je 0x1400a9eb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400a9e78
lea rax, [0x1400e2ba0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400a9edb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400a9fe0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400aa008
mov eax, 0
jmp 0x1400aa056
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400aa031
mov eax, 0
jmp 0x1400aa056
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400aa051
mov eax, 0
jmp 0x1400aa056
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400aa05c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400aa0da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400aa0d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400aa0d1
mov rax, qword [rbp - 8]
jmp 0x1400aa0ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400aa0a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004588
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400043b4

Function at 0x140802058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408021df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140802089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14080206f
add dl, dl
jne 0x140802096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408020f6
xor eax, eax
add dl, dl
jne 0x1408020a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408021ad
add dl, dl
jne 0x1408020b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408020c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408020d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408020dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408020ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14080207e
mov eax, 1
add dl, dl
jne 0x140802106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140802113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408020fb
sub eax, ebx
mov ebx, 1
jne 0x14080214c
mov ecx, 1
add dl, dl
jne 0x14080212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14080213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140802123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14080207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140802168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140802175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14080215d
cmp eax, 0x7d00
jae 0x14080219b
cmp eax, 0x500
jb 0x140802196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14080207e
cmp eax, 0x7f
ja 0x14080219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14080207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408021d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14080207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001080
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14001e020]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400010f1
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400010f1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400132f0
add rsp, 0x158
ret
xor eax, eax
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400132f0
add rsp, 0x158
ret
Function at 0x140001df0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x14001e020]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov edi, dword [rcx + 0x24]
mov rbx, rcx
cmp edi, 1
jne 0x140001e26
xor eax, eax
jmp 0x14000202a
mov qword [rsp + 0x8b0], r12
xor r12d, r12d
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x400
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call sub.MSVCR100.dll_memset
lea rcx, [rbp + 0x36c]
xor edx, edx
mov r8d, 0x400
mov qword [rbp + 0x360], r12
mov dword [rbp + 0x368], r12d
call sub.MSVCR100.dll_memset
cmp edi, 3
jne 0x140001f4e
mov rax, qword [rbx + 0xc0]
lea rdi, [rbx + 0xb0]
mov qword [rsp + 0x8a8], rsi
cmp qword [rdi + 0x18], 8
jb 0x140001e9d
mov rdi, qword [rdi]
lea esi, [rax + rax]
cmp esi, 0x400
ja 0x140001ef1
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x410
call sub.MSVCR100.dll_memset
mov dword [rsp + 0x50], 2
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], 1
test rdi, rdi
je 0x140001ef1
lea rcx, [rsp + 0x60]
mov r9d, esi
mov r8, rdi
mov edx, 0x400
mov dword [rsp + 0x5c], esi
call qword [sym.imp.MSVCR100.dll_memcpy_s]
lea r8, [rbp + 0x360]
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov rcx, rbx
call fcn.140002450
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x400
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call sub.MSVCR100.dll_memset
lea rcx, [rbp + 0x36c]
xor edx, edx
mov r8d, 0x400
mov qword [rbp + 0x360], r12
mov dword [rbp + 0x368], r12d
call sub.MSVCR100.dll_memset
mov rsi, qword [rsp + 0x8a8]
cmp dword [rbx + 0x24], 3
jne 0x140001f67
cmp qword [rbx + 0xe8], r12
jne 0x140001f67
mov eax, 9
jmp 0x140002022
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x410
mov dword [rsp + 0x40], r12d
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x60]
mov r9d, 8
mov r8, rbx
mov edx, 0x400
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 8
call qword [sym.imp.MSVCR100.dll_memcpy_s]
lea rcx, [rbx + 0xd8]
cmp qword [rcx + 0x18], 8
jb 0x140001fcf
mov rcx, qword [rcx]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], r12d
lea r9, [rbp + 0x360]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov r8d, 0x410
mov dword [rsp + 0x20], 0x40c
call qword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140002020
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x60], r12
xor eax, eax
mov r12, qword [rsp + 0x8b0]
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.1400132f0
add rsp, 0x880
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400069a0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rdi, rcx
mov rsi, qword [rcx + 0x80]
add rsi, 8
mov qword [rsp + 0x28], rsi
mov rcx, rsi
call fcn.140012cf0
mov dword [rsp + 0x30], 1
cmp qword [rdi + 0x98], 0
jbe 0x140006a47
nop dword [rax + rax]
mov rbx, qword [rdi + 0x90]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x18]
add rcx, 0x58
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 0x18]
add rcx, 0x58
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140006a29
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rdi + 0x88]
call fcn.1400072f0
cmp qword [rdi + 0x98], 0
ja 0x1400069f0
mov rcx, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
jmp fcn.140012d30
Function at 0x1400093e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rdi, rcx
mov dword [rsp + 0x38], 0xfffe00ff
call fcn.140009180
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], 0x10000
call fcn.140009180
mov r11d, dword [rbx + 0xc]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], r11d
call fcn.140009180
mov r11d, dword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], r11d
call fcn.140009180
mov eax, dword [rbx + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x38], eax
call fcn.140009180
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140009180
Function at 0x140012770
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, 8
call fcn.14001338e
xor edx, edx
test rax, rax
je 0x14001278f
mov qword [rax], rdx
jmp 0x140012792
mov rax, rdx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], edx
lea r8, [0x140012760]
xor edx, edx
mov r9, rbx
xor ecx, ecx
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x20]
mov qword [rcx], rax
add rsp, 0x30
pop rbx
ret

Function at 0x1400129f0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x60
xor r9d, r9d
mov rbx, rcx
xor edx, edx
lea r8d, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 8], eax
test eax, eax
jne 0x140012a50
lea rax, vtable.RSException.0
lea rdx, str.unable_to_create_tls_index
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.140010f30
lea rdx, [0x14001c678]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, rbx
add rsp, 0x60
pop rbx
ret

Function at 0x140012a70
Capabilities:
Set thread local storage value

Disassembly:
test rdx, rdx
je 0x140012ad0
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140012acb
lea rax, vtable.RSException.0
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.140010f30
lea rdx, [0x14001c678]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
add rsp, 0x60
pop rbx
repz ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140012b98
lea edx, [rax + 4]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x140012b4c
lea rax, vtable.RSException.0
lea rdx, str.unable_to_create_tls_data
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.140010f30
lea rdx, [0x14001c678]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
mov dword [rax], 0
mov ecx, dword [rdi + 8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140012b98
lea rax, vtable.RSException.0
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.140010f30
lea rdx, [0x14001c678]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140012c00
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140012c4d
lea rax, vtable.RSException.0
lea rdx, str.likely_unbalanced_enter_exit_monitor_pair__extra_exit_
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.140010f30
lea rdx, [0x14001c678]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
dec dword [rax]
jne 0x140012c5c
mov rdx, rax
mov rcx, rbx
call fcn.140012a70
add rsp, 0x60
pop rbx
ret

Function at 0x140012c70
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012cb7
cmp dword [rax], 0
jbe 0x140012cb7
mov rcx, rbx
call fcn.140012c00
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012ca7
cmp dword [rax], 0
jne 0x140012cb1
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x60
pop rbx
ret
lea rax, vtable.RSException.0
lea rdx, str.must_own_monitor_prior_to_calling_exit__
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.140010f30
lea rdx, [0x14001c678]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rcx, qword [rcx + 8]
jmp 0x140012c70

Function at 0x140012cf0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012d0d
cmp dword [rax], 0
jne 0x140012d17
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.140012ae0
inc dword [rax]
add rsp, 0x20
pop rbx
ret

Function at 0x140012d30
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012cb7
cmp dword [rax], 0
jbe 0x140012cb7
mov rcx, rbx
call fcn.140012c00
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140012ca7
cmp dword [rax], 0
jne 0x140012cb1
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x60
pop rbx
ret
lea rax, vtable.RSException.0
lea rdx, str.must_own_monitor_prior_to_calling_exit__
lea rcx, [rsp + 0x28]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.140010f30
lea rdx, [0x14001c678]
lea rcx, [rsp + 0x20]
call sub.MSVCR100.dll__CxxThrowException
int3
mov rcx, qword [rcx + 8]
jmp 0x140012c70
Function at 0x1400138ff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001e020]
jne 0x14001330a
rol rcx, 0x10
test cx, 0xffff
jne 0x140013306
repz ret
ror rcx, 0x10
jmp 0x140013858
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001e480]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001e578]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400138dd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14001e480]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400138ff
mov rax, qword [rsp + 0x88]
mov qword [0x14001e578], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001e518], rax
mov rax, qword [0x14001e578]
mov qword [0x14001e3f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001e500], rax
mov dword [0x14001e3e0], 0xc0000409
mov dword [0x14001e3e4], 1
mov rax, qword [0x14001e020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001e028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001e478], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140016a60]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001e478], 0
jne 0x140013986
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1800062b0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800d9060]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x44], 0x10
mov qword [rcx], rbx
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bl
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rbx + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1800063ff
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800063ff
mov r8d, dword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x180006364
mov rdi, qword [rdi]
xor r9d, r9d
mov rdx, rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1800063ff
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x58]
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1800063ff
cmp dword [rsp + 0x44], 0
jbe 0x1800063ff
nop word [rax + rax]
mov eax, ebx
movzx r9d, byte [rsp + rax + 0x58]
lea r8, str._02x
mov edx, 3
lea rcx, [rsp + 0x40]
call fcn.18000d900
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1800063e0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180009270
inc ebx
cmp ebx, dword [rsp + 0x44]
jb 0x1800063b0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18000640f
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180006421
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18006d7e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180006ea0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800d9060]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dil
test eax, eax
je 0x180006f18
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], dil
jne 0x180006f00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18000dc10
jmp 0x180006f2b
xor r8d, r8d
lea rdx, [0x1800bde6b]
mov rcx, rbx
call fcn.18000dc10
nop
mov dword [rsp + 0x20], 1
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18006d7e0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret

Function at 0x1800075b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800075d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18000764c
mov rdi, r14
mov rcx, rbx
call fcn.180009230
test rax, rax
jle 0x180007624
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.18006f8c0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000763c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180007644
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800075e6
sub r14, rdi
jmp 0x180007739
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180007663
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180007665
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000769a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18006f8c0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180007736
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x1800076d5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x180007711
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180078150
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x18000774f
cmp rbp, rax
ja 0x1800076e1
mov r8, rdi
test rdi, rdi
je 0x180007736
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180078150
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x180007739