joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
and qword [r13 - 0x1b80b7f], r10
mov eax, dword [rax + 0x5c]
mov esi, dword [rsp + rbx*2 - 6]
cld
sbb eax, esi
jp 0x1400232f1
sbb eax, 0x1260deae
in eax, dx
push r10
add ecx, edi
cmp eax, 0xf02ecb95
invalid
pop rdi
invalid
Function at 0x1400057d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140005860
cmp r11, r10
ja 0x1400058d6
cmp r10, rdx
ja 0x1400058e8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140005862
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005840
jmp 0x1400058c4
ja 0x14000586a
mov r11, r10
cmp rax, r8
jne 0x140005804
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x1400058a0
mov rdi, r8
sub ecx, edx
jns 0x1400058bb
jmp 0x1400058c6
cmp r8, rsi
je 0x1400058f7
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400058c6
xor al, 1
cmp rdi, rsi
jne 0x140005880
jmp 0x1400058c6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140003b70
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140003140
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400034e0
int3

Function at 0x14000bc10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140002cd0
cmp rax, rcx
je 0x14000bc35
cmp rdx, 4
jae 0x14000bc38
xor eax, eax
xor r8d, r8d
jmp 0x14000bcd0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400364b0]
movdqa xmm3, xmmword [0x1400364c0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000bc60
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000bce7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000bcd0
ret
Function at 0x14000cfa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x14000cffb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000cffb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x14000d016
cmp eax, 0x42
jne 0x14000cffb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000d0c6
cmp byte [r8 + r11], 0x5f
jne 0x14000d0c6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000d12e
mov rcx, rsi
xor edx, edx
call fcn.140008640
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140008640
test al, al
jne 0x14000d1c1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000d052
lea rdx, [0x140039033]
mov r8d, 1
call fcn.1400031c0
test al, al
jne 0x14000d1c1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000d00a
xor r14d, r14d
lea rbx, [0x1400393a1]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000d084
cmp byte [rax + rcx], 0x45
je 0x14000d1e3
sub r14, 1
jb 0x14000d0a9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000d0a9
mov r8d, 2
mov rdx, rbx
call fcn.1400031c0
test al, al
jne 0x14000d1c1
mov rcx, rsi
call fcn.140009e70
test al, al
jne 0x14000d1c1
mov rax, qword [rsi]
test rax, rax
jne 0x14000d070
jmp 0x14000d00a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x14000d188
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x14000d122
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000d10c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000d0fb
add dl, 0xa9
jmp 0x14000d10a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000d188
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000d188
movzx edx, bl
add rax, rdx
jae 0x14000d0d0
jmp 0x14000d188
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000d188
cmp rax, rcx
jae 0x14000d185
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000d1db
cmp qword [rsi + 0x20], 0
je 0x14000d1d4
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14000cfa0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000d00c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000d1c9
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x140039380]
test r9b, r9b
cmovne rdx, rax
call fcn.1400031c0
test al, al
je 0x14000d1c9
mov dil, 2
jmp 0x14000d00a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000d00a
mov dil, 1
xor r9d, r9d
jmp 0x14000d18a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000d00a
Function at 0x140010550
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400105d5
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140010616
cmp dword [rsp + 0x2c], 0
je 0x1400105fa
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14001062e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140043150]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140043150], rsi
jne 0x1400105b0
mov byte [0x140043148], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14001060c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140010678
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1400105ff
mov edi, dword [rsp + 0x28]
jmp 0x14001060c
mov edi, dword [rsi + 0x18]
jmp 0x14001060a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140010ad0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.1400027a0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140010b20
int3
Function at 0x1400109a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400350a8]
test ecx, ecx
je 0x140010a80
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400109d4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400109d4
add rdi, 0x10
jmp 0x140010a76
mov ecx, dword [0x1400350a8]
test ecx, ecx
je 0x140010a93
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140010a74
mov rsi, rax
test rax, rax
jne 0x140010a43
movzx eax, byte [0x1400430a0]
mov ecx, 0x18
mov edx, 8
call fcn.1400082a0
test rax, rax
je 0x140010ab6
mov rsi, rax
lea rax, [0x140035090]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400350a8]
test ecx, ecx
je 0x140010aa6
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140010a76
test rcx, rcx
je 0x140010a76
lock dec qword [rcx]
jne 0x140010a76
call fcn.140010500
jmp 0x140010a76
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140035090]
call fcn.140010550
mov ecx, eax
jmp 0x1400109b6
lea rcx, [0x140035090]
call fcn.140010550
mov ecx, eax
jmp 0x1400109e4
lea rcx, [0x140035090]
call fcn.140010550
mov ecx, eax
jmp 0x140010a3b
mov ecx, 8
mov edx, 0x18
call fcn.140001fa0
int3

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400350c8]
test ecx, ecx
je 0x14001112f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400110b9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14001111e
mov ecx, dword [0x1400350c8]
test ecx, ecx
je 0x140011142
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140011124
mov rsi, rax
test rax, rax
jne 0x140011118
movzx eax, byte [0x1400430a0]
mov ecx, 0x10
mov edx, 8
call fcn.1400082a0
test rax, rax
je 0x140011165
mov rsi, rax
lea rax, [0x1400350b0]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400350c8]
test ecx, ecx
je 0x140011155
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140011126
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400350b0]
call fcn.140010550
mov ecx, eax
jmp 0x1400110a5
lea rcx, [0x1400350b0]
call fcn.140010550
mov ecx, eax
jmp 0x1400110c5
lea rcx, [0x1400350b0]
call fcn.140010550
mov ecx, eax
jmp 0x140011110
mov ecx, 8
mov edx, 0x10
call fcn.140001fa0
int3
Function at 0x140011d80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140035088]
test ecx, ecx
je 0x140011e3d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140011db0
cmp qword [rax + 8], 0
je 0x140011db0
add rax, 0x10
jmp 0x140011e37
mov ecx, dword [0x140035088]
test ecx, ecx
je 0x140011e50
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140011e35
mov rsi, rax
test rax, rax
jne 0x140011e1b
movzx eax, byte [0x1400430a0]
mov ecx, 0x20
mov edx, 8
call fcn.1400082a0
test rax, rax
je 0x140011e73
mov rsi, rax
lea rax, [0x140035070]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140035088]
test ecx, ecx
je 0x140011e63
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140011e37
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140035070]
call fcn.140010550
mov ecx, eax
jmp 0x140011d95
lea rcx, [0x140035070]
call fcn.140010550
mov ecx, eax
jmp 0x140011dc0
lea rcx, [0x140035070]
call fcn.140010550
mov ecx, eax
jmp 0x140011e13
mov ecx, 8
mov edx, 0x20
call fcn.140001fa0
int3
Function at 0x140033c40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400349e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400349e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140033cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400431e4]
mov rbx, rcx
test esi, esi
jle 0x140033de0
mov rax, qword [0x1400431e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140033cfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140033d85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140033ce0
mov rcx, rbx
call fcn.140034700
mov rdi, rax
test rax, rax
je 0x140033e02
mov rax, qword [0x1400431e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140034840
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400431e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140033de7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140033d7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140033d90
add dword [0x1400431e4], 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 [0x1400431e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140033d7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140033c40
nop dword [rax]
xor esi, esi
jmp 0x140033d08
mov rax, qword [0x1400431e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140033c40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140033c40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140034370
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140043240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140043220]
test rbx, rbx
je 0x1400343cc
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 eax, eax
jne 0x1400343c3
test rsi, rsi
je 0x1400343c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400343a8
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 0x140034700
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14003c430]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140034720
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140034728
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140034720
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14003477d
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 0x140034774
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140034720
add rax, 0x28
cmp rax, r9
jne 0x140034760
xor eax, eax
ret

Function at 0x140034780
Capabilities:
Parse pe header

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

Function at 0x140034840
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003c430]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003485f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140034868
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002f20
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov r13, rcx
mov rax, qword [0x140166028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rcx], 1
mov qword [rcx + 8], 0
mov byte [rcx + 0x10], 0
mov eax, dword [0x14016e328]
mov ecx, dword [0x140169930]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400030d1
mov ecx, dword [0x140169448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140003054
movsxd rcx, dword [0x14016e320]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14016e324]
jne 0x140003054
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x140003054
movabs r12, 0x6000000000000000
movabs r15, 0xffffffffffffff
mov rax, qword [rdi]
mov rbx, rax
and rbx, r15
and rax, r12
movabs rcx, 0x4000000000000000
cmp rax, rcx
jne 0x14000301a
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140003007
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
mov byte [r13 + 0x10], 1
movabs rsi, 0x8000000000000001
mov qword [r13 + 8], rbx
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [fcn.14004bab0]
mov rax, qword [rbx]
lea rcx, [r14 + rsi]
cmp rcx, 2
jae 0x14000305b
add rsi, rax
cmp rsi, 1
ja 0x14000307d
cmp rax, r14
je 0x14000307d
int3
mov byte [r13], 0
jmp 0x1400030b1
xor ecx, ecx
mov rdx, rax
add rdx, r14
setns cl
movabs rdx, 0x7fffffffffffffff
add rdx, rcx
add rax, r14
cmovo rax, rdx
mov r14, rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000309f
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
mov rax, qword [rdi]
and rax, r12
and r14, r15
or r14, rax
mov qword [rdi], r14
inc dword [rdi + 0x14]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007ed30
mov rax, r13
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14016e328]
call fcn.14007c144
cmp dword [0x14016e328], 0xffffffff
jne 0x140002f78
mov qword [0x14016e320], 0
lea rcx, [0x14016e320]
xor edx, edx
call fcn.140043450
lea rcx, [0x14016e328]
call fcn.14007c0e4
jmp 0x140002f78

Function at 0x140003f30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14016c578]
cmp rsi, 1
jbe 0x140003f75
mov ecx, dword [0x140169448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140003fc7
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140003fc7
mov rax, qword [rax + rcx]
test rax, rax
je 0x140003fc7
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14016c578]
call fcn.14004b9f0
test al, al
je 0x140003fbb
mov qword [0x14016c580], 0
lea rdi, [0x14016c578]
lea rsi, [0x14016c580]
mov rcx, rsi
xor edx, edx
call fcn.140043450
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14004b960
jmp 0x140003f43
mov rsi, qword [0x14016c578]
jmp 0x140003f43
int3
Function at 0x1400058a0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebp, edx
mov rsi, rcx
mov ebx, dword [0x140171950]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test edi, edi
jne 0x140005985
cmp rbx, 1
je 0x1400058e3
mov eax, dword [rsi + 0x1518]
test eax, eax
je 0x1400058ea
xor eax, eax
jmp 0x14000597a
mov eax, 1
lock xadd dword [rsi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x1400059d1
mov rcx, rsi
call fcn.140035bd0
mov rdi, rax
lock dec dword [rsi + 0x1518]
inc qword [rax + 0x5a0]
cmp bp, 0x29
jae 0x140005992
movzx edx, bp
mov rsi, rdx
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov rax, qword [rdi + rsi]
test rax, rax
je 0x1400059a5
inc qword [rdi + 0x5a8]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000595d
mov rdx, rcx
not rdx
cmp qword [rax + 8], rdx
jne 0x1400059cc
bswap rcx
prefetcht0 byte [rcx]
jmp 0x14000595f
xor ecx, ecx
dec byte [rdi + rsi + 8]
mov qword [rbx], rcx
movzx ecx, word [rdi + rsi + 0xa]
mov qword [r14], rcx
movzx ecx, word [rdi + rsi + 0xa]
sub qword [rdi + 0x590], rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400058d3
inc qword [rdi + 0x5c0]
inc qword [rdi + 0x5b0]
jmp 0x1400058e3
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
call fcn.140046b70
mov rax, qword [rbx]
test rax, rax
jne 0x140005941
jmp 0x1400058e3
call fcn.1400ae330
int3

Function at 0x140005e00
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140005ebc
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140005e89
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140005e64
mov qword [rsi], rdi
call fcn.140042800
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x140005ec0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140042800
mov r14, qword [rsi]
mov rcx, qword [0x140170360]
test rcx, rcx
je 0x140005eae
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140005e52
call fcn.1400bfac0
mov rcx, qword [0x140170360]
jmp 0x140005e9d
mov byte [rsi + 8], 1
int3