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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400b3120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400b3100]
test rbx, rbx
je 0x14002c2dc
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 0x14002c2d3
test eax, eax
jne 0x14002c2d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14002c2b8
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 0x14002c610
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14002c690
Capabilities:
Parse pe header

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

Function at 0x14002c750
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400a6f00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14002c76f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14002c778
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14002d2a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14002d2d0
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14002d2f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14002d320
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14002e260
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x1400a6fe0]
mov rdx, qword [rax]
mov qword [rsp + 0x98], rdx
xor edx, edx
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x78], 0
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 + 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.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14002e37a
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14002e352
add rax, 1
cmp rax, 0x6b
je 0x14002e36f
cmp byte [rcx + rax], 0
jne 0x14002e348
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x14002e36f
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14002e360

Function at 0x14002e710
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400b3240], 1
je 0x14002e788
lea rdi, [0x1400b3240]
mov rcx, rdi
call fcn.14002dff0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14002d990
mov esi, dword [0x1400b3240]
test esi, esi
jne 0x14002e798
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400a1648], eax
cmp eax, 0xffffffff
je 0x1400464f6
mov dword [0x1400b3240], 1
mov rcx, rbp
call fcn.14002dc60
test rbx, rbx
je 0x14002e788
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14002e390
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14002e768
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14002d3a0
jmp 0x14002e768
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x14002e7c0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14002e4a0
cmp qword [0x1400b6048], 0
mov rbx, rax
je 0x14002e8d8
test rax, rax
je 0x14002e8d8
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.140031dd0
cmp eax, 1
je 0x14002e8e6
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.1400464fc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400a1648]
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 0x14002e8ec
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.14002e260
nop
jmp fcn.1400464fc

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

Disassembly:
sub rsp, 0x28
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002e920
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14002e7c0
Function at 0x14002f0e0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x1400a6fe0]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14002f228
cmp eax, 1
je 0x14002f14d
call fcn.14002dff0
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.14002d990
mov r13d, dword [rbx]
test r13d, r13d
je 0x14002f170
cmp r13d, 1
jne 0x14002f200
mov rcx, r12
call fcn.14002dc60
test rdi, rdi
je 0x14002f14d
mov rcx, rdi
call fcn.14002e390
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x14002f27b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14002e470]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14002e710
mov ecx, dword [0x1400a1648]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x14002f268
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call r13
test rax, rax
je 0x14002f250
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call r13
test rax, rax
je 0x14002f238
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14002f138
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14002d3a0
jmp 0x14002f138
mov eax, 0x16
jmp 0x14002f14f
call fcn.14002e7c0
test rax, rax
jne 0x14002f1e9
jmp 0x14004652e
call fcn.14002e7c0
test rax, rax
jne 0x14002f1c5
jmp 0x14004651f
call fcn.14002e7c0
test rax, rax
jne 0x14002f19f
jmp 0x140046515
call fcn.14002d2f0
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x14002f500
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002f578
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140031de0
cmp esi, dword [rbx + 0x48]
jae 0x14002f553
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14002f553
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140031e20
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14002e7c0
mov rbx, rax
jmp 0x14002f52d
Function at 0x14002f590
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002f690
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140031de0
cmp esi, dword [rbx + 0x48]
jae 0x14002f610
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140031e20
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov rdi, rax
test rax, rax
je 0x14002f69d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov r14, rax
test rax, rax
je 0x14002f69d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14002f5df
call fcn.14002e7c0
mov rbx, rax
jmp 0x14002f5ca
mov rcx, r13
call fcn.140031e20
mov eax, 0xc
jmp 0x14002f5fd

Function at 0x14002f720
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002f748
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14002e7c0
test rax, rax
jne 0x14002f73a
add rsp, 0x28
ret

Function at 0x14002f7b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002f7d8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14002e7c0
test rax, rax
jne 0x14002f7ca
jmp 0x14002f7ce

Function at 0x14002f8f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400b3248]
test eax, eax
jne 0x14002f908
xor eax, eax
add rsp, 0x28
ret
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002f938
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14002f8fe
test byte [rax + 0x40], 3
je 0x14002f8fe
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14002f900
call fcn.14002e7c0
test rax, rax
jne 0x14002f91e
jmp 0x14002f8fe
Function at 0x14002f950
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002f990
test ebx, ebx
jle 0x14002f980
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14002e7c0
test rax, rax
jne 0x14002f96d
add rsp, 0x20
pop rbx
ret

Function at 0x14002fa80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002faf8
test byte [rbx + 0x40], 0xc
jne 0x14002faaf
mov eax, dword [0x1400b3248]
test eax, eax
jne 0x14002fac0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14002d990
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14002fae3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14002fae3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002fb0c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14002dc60
call fcn.14002e7c0
mov rbx, rax
test rax, rax
jne 0x14002fa9f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002fb2a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14002dc60
call fcn.14002f9a0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002fbb0
call fcn.140030dd0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14002fbe8
call fcn.14002e710
mov ecx, dword [0x1400a1648]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002fc40
test esi, esi
je 0x14002fbc6
call fcn.14002fa80
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002fc20
mov edx, edi
call fcn.140030ea0
call fcn.14002fa80
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002fc30
call fcn.14002fa80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002fa80
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002e710
mov ecx, dword [0x1400a1648]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002fb85
call fcn.14002e7c0
mov rbx, rax
jmp 0x14002fb85
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002fb9e
call fcn.14002e7c0
jmp 0x14002fbc6
call fcn.14002e7c0
mov rbx, rax
jmp 0x14002fb81
Function at 0x14002fb40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002faf8
test byte [rbx + 0x40], 0xc
jne 0x14002faaf
mov eax, dword [0x1400b3248]
test eax, eax
jne 0x14002fac0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14002d990
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14002fae3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14002fae3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002fb0c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14002dc60
call fcn.14002e7c0
mov rbx, rax
test rax, rax
jne 0x14002fa9f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002fb2a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14002dc60
call fcn.14002f9a0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002fbb0
call fcn.140030dd0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14002fbe8
call fcn.14002e710
mov ecx, dword [0x1400a1648]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002fc40
test esi, esi
je 0x14002fbc6
call fcn.14002fa80
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002fc20
mov edx, edi
call fcn.140030ea0
call fcn.14002fa80
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002fc30
call fcn.14002fa80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002fa80
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002e710
mov ecx, dword [0x1400a1648]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002fb85
call fcn.14002e7c0
mov rbx, rax
jmp 0x14002fb85
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002fb9e
call fcn.14002e7c0
jmp 0x14002fbc6
call fcn.14002e7c0
mov rbx, rax
jmp 0x14002fb81

Function at 0x14002fc50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14002e710
mov ecx, dword [0x1400a1648]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002fcc0
test esi, esi
je 0x14002fca0
call fcn.14002fa80
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002fcd0
mov edx, esi
call fcn.140030ea0
call fcn.14002fa80
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14002fa80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002fa80
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14002e7c0
mov rbx, rax
jmp 0x14002fc71
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002fc8a
Function at 0x1400311a0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x1400a1658]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call fcn.140031de0
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x1400311e9
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x1400311e9
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call fcn.140031e20
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], 0x28
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov rcx, rax
lea rdx, str.Assertion_failed:___s___file__s__line__d_n
call fcn.14002d3a0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
neg eax
mov dword [rcx + 0xc], eax
mov rbx, rcx
lea rcx, [rcx + 0x20]
mov dword [rcx - 0x10], 0
call fcn.14002dc60
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.14002dc60

Function at 0x140031630
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140031470
test eax, eax
je 0x140031658
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.14002d990
test eax, eax
jne 0x140031681
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x140031698
mov rcx, rdi
call fcn.14002dc60
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400311a0
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.14002d990
mov ebp, eax
test eax, eax
je 0x1400316c0
mov rcx, rdi
call fcn.14002dc60
mov edx, ebp
jmp 0x140031683
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call fcn.14002dc60
mov rcx, rdi
mov esi, eax
call fcn.14002dc60
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x140031683

Function at 0x140031960
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.140031130
test eax, eax
jne 0x1400319e0
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x1400319b0
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call fcn.14002dc60
lea rcx, [rsi + 0x18]
mov edi, eax
call fcn.14002dc60
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.1400311a0
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.14002d990
mov edx, eax
test eax, eax
jne 0x14003199d
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x1400319f0
mov rcx, rdi
call fcn.14002dc60
mov edx, eax
jmp 0x14003199d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call fcn.140032750
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call fcn.14002dc60
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x14003199d
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
push rax
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
pop rsi
pop rcx
add rax, rdx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x14000f140
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, section..rdata
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000f196
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140021f88
cmp rax, 0x105
jb 0x14000f1ad
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140023e80
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.140022450
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call int.140010040
test eax, eax
je 0x14000f196
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000f1fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000f196
lea rdx, str.UpdateLogs
mov rcx, rdi
call int.140010040
test eax, eax
je 0x14000f196
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000f22f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000f196
mov esi, 1
jmp 0x14000f196