joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005c50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14000d9a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140005cc8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140005cc8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140005cc8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140005cc8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140005cbc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140005cd0
add rdx, 0x28
cmp rdx, r10
jne 0x140005ca8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140005ce0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140005cee
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140005cc5
test r8d, r8d
jg 0x140005cd8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x4014cf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x310
mov byte [rbp - 0x100], 0x30
mov byte [rbp - 0xff], 0x2e
mov byte [rbp - 0xfe], 0x74
mov byte [rbp - 0xfd], 0x63
mov byte [rbp - 0xfc], 0x70
mov byte [rbp - 0xfb], 0x2e
mov byte [rbp - 0xfa], 0x6e
mov byte [rbp - 0xf9], 0x67
mov byte [rbp - 0xf8], 0x72
mov byte [rbp - 0xf7], 0x6f
mov byte [rbp - 0xf6], 0x6b
mov byte [rbp - 0xf5], 0x2e
mov byte [rbp - 0xf4], 0x69
mov byte [rbp - 0xf3], 0x6f
mov byte [rbp - 0xf2], 0
mov word [rbp - 0x102], 0x3399
mov byte [rbp - 0x302], 0x2f
mov byte [rbp - 0x301], 0x44
mov byte [rbp - 0x300], 0x79
mov byte [rbp - 0x2ff], 0x6b
mov byte [rbp - 0x2fe], 0x4d
mov byte [rbp - 0x2fd], 0x61
mov byte [rbp - 0x2fc], 0x37
mov byte [rbp - 0x2fb], 0x30
mov byte [rbp - 0x2fa], 0x46
mov byte [rbp - 0x2f9], 0x75
mov byte [rbp - 0x2f8], 0x59
mov byte [rbp - 0x2f7], 0x48
mov byte [rbp - 0x2f6], 0x53
mov byte [rbp - 0x2f5], 0x42
mov byte [rbp - 0x2f4], 0x4e
mov byte [rbp - 0x2f3], 0x4d
mov byte [rbp - 0x2f2], 0x47
mov byte [rbp - 0x2f1], 0x74
mov byte [rbp - 0x2f0], 0x42
mov byte [rbp - 0x2ef], 0x52
mov byte [rbp - 0x2ee], 0x41
mov byte [rbp - 0x2ed], 0x53
mov byte [rbp - 0x2ec], 0x67
mov byte [rbp - 0x2eb], 0x59
mov byte [rbp - 0x2ea], 0x4c
mov byte [rbp - 0x2e9], 0x30
mov byte [rbp - 0x2e8], 0x6f
mov byte [rbp - 0x2e7], 0x68
mov byte [rbp - 0x2e6], 0x7a
mov byte [rbp - 0x2e5], 0x4f
mov byte [rbp - 0x2e4], 0x68
mov byte [rbp - 0x2e3], 0x71
mov byte [rbp - 0x2e2], 0x6e
mov byte [rbp - 0x2e1], 0x36
mov byte [rbp - 0x2e0], 0x36
mov byte [rbp - 0x2df], 0x5f
mov byte [rbp - 0x2de], 0x39
mov byte [rbp - 0x2dd], 0x49
mov byte [rbp - 0x2dc], 0x58
mov byte [rbp - 0x2db], 0x32
mov byte [rbp - 0x2da], 0x49
mov byte [rbp - 0x2d9], 0x56
mov byte [rbp - 0x2d8], 0x38
mov byte [rbp - 0x2d7], 0x77
mov byte [rbp - 0x2d6], 0x55
mov byte [rbp - 0x2d5], 0x2d
mov byte [rbp - 0x2d4], 0x4b
mov byte [rbp - 0x2d3], 0x4d
mov byte [rbp - 0x2d2], 0x52
mov byte [rbp - 0x2d1], 0x53
mov byte [rbp - 0x2d0], 0x36
mov byte [rbp - 0x2cf], 0x73
mov byte [rbp - 0x2ce], 0
mov r9, 1
lea rax, [rbp - 0x302]
mov r8, rax
mov dx, word [rbp - 0x102]
lea rcx, [rbp - 0x100]
sub rsp, 0x20
call section..text
add rsp, 0x20
mov rax, 0
mov rsp, rbp
pop rbp
ret
Function at 0x140049fa0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140049fad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140049fbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140049fa5
lea eax, [rcx + 1]
jmp 0x140049fcb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140049fde
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140049fc4
sub eax, 3
jb 0x140049ffe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14004a04d
sar eax, 1
movsxd rbp, eax
jb 0x14004a034
jmp 0x14004a00c
add ebx, ebx
jne 0x14004a00a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004a034
inc ecx
add ebx, ebx
jne 0x14004a01a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004a034
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004a02d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004a01c
add ecx, 2
jmp 0x14004a039
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140049f62
jmp 0x140049fad
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x27800
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14004a09d
cmp rsi, rcx
jae 0x14004a0a5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14004a084
cmp al, 0x8f
ja 0x14004a084
cmp byte [rsi - 2], 0xf
je 0x14004a08a
sub al, 0xe8
cmp al, 1
ja 0x14004a06e
cmp rsi, rcx
jae 0x14004a0a5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14004a074
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004a0a5
lodsb al, byte [rsi]
jmp 0x14004a084
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x47000]
mov eax, dword [rdi]
or eax, eax
je 0x14004a102
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4ab28]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14004a0b2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14004a0fc
mov qword [rbx], rax
add rbx, 8
jmp 0x14004a0d2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14004a13c
cmp al, 0xef
ja 0x14004a12e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004a10e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004a11d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x20f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14004a190
sub rsp, 0xffffffffffffff80
jmp 0x140013b30
Function at 0x140001710
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.14005ed60
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.14005ed60
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 0x140001780
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400a8094]
mov rbx, rcx
test esi, esi
jle 0x1400018b0
mov rax, qword [0x1400a8098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001855
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017b0
mov rcx, rbx
call fcn.1400021f0
mov rdi, rax
test rax, rax
je 0x1400018d2
mov rax, qword [0x1400a8098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002330
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400a8098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000184e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001860
add dword [0x1400a8094], 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 [0x1400a8098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000184e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001710
nop dword [rax]
xor esi, esi
jmp 0x1400017d8
mov rax, qword [0x1400a8098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001710
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001710
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400a8100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400a80e0]
test rbx, rbx
je 0x140001ebc
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 0x140001eb3
test eax, eax
jne 0x140001eb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e98
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 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002270
Capabilities:
Parse pe header

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

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14009f790]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140059c70
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140059ca0
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 0x140059cc0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140059cf0
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 0x14005fd70
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14009f880]
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.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14005fe8a
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14005fe62
add rax, 1
cmp rax, 0x6b
je 0x14005fe7f
cmp byte [rcx + rax], 0
jne 0x14005fe58
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x14005fe7f
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.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14005fe70

Function at 0x140060220
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400a8c30], 1
je 0x140060298
lea rdi, [0x1400a8c30]
mov rcx, rdi
call fcn.14005fb00
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14005f4a0
mov esi, dword [0x1400a8c30]
test esi, esi
jne 0x1400602a8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400986d8], eax
cmp eax, 0xffffffff
je 0x140072a36
mov dword [0x1400a8c30], 1
mov rcx, rbp
call fcn.14005f770
test rbx, rbx
je 0x140060298
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14005fea0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140060278
mov ecx, 2
call qword [fcn.14005ed60]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140060278
call sub.msvcrt.dll_abort
nop
Function at 0x1400602d0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14005ffb0
cmp qword [0x1400ab048], 0
mov rbx, rax
je 0x1400603e8
test rax, rax
je 0x1400603e8
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.140063750
cmp eax, 1
je 0x1400603f6
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.140072a3c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400986d8]
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 0x1400603fc
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.14005fd70
nop
jmp fcn.140072a3c

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

Disassembly:
sub rsp, 0x28
call fcn.140060220
mov ecx, dword [0x1400986d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140060430
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400602d0
Function at 0x140060bf0
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 [0x14009f880]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140060d38
cmp eax, 1
je 0x140060c5d
call fcn.14005fb00
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.14005f4a0
mov r13d, dword [rbx]
test r13d, r13d
je 0x140060c80
cmp r13d, 1
jne 0x140060d10
mov rcx, r12
call fcn.14005f770
test rdi, rdi
je 0x140060c5d
mov rcx, rdi
call fcn.14005fea0
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x140060d8b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14005ff80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140060220
mov ecx, dword [0x1400986d8]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x140060d78
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140060220
mov ecx, dword [0x1400986d8]
call r13
test rax, rax
je 0x140060d60
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140060220
mov ecx, dword [0x1400986d8]
call r13
test rax, rax
je 0x140060d48
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140060c48
mov ecx, 2
call qword [fcn.14005ed60]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140060c48
mov eax, 0x16
jmp 0x140060c5f
call fcn.1400602d0
test rax, rax
jne 0x140060cf9
jmp 0x140072a6e
call fcn.1400602d0
test rax, rax
jne 0x140060cd5
jmp 0x140072a5f
call fcn.1400602d0
test rax, rax
jne 0x140060caf
jmp 0x140072a55
call fcn.140059cc0
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 0x140061010
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.140060220
mov ecx, dword [0x1400986d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140061088
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140063760
cmp esi, dword [rbx + 0x48]
jae 0x140061063
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140061063
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400637a0
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.1400602d0
mov rbx, rax
jmp 0x14006103d
Function at 0x1400610a0
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.140060220
mov ecx, dword [0x1400986d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400611a0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140063760
cmp esi, dword [rbx + 0x48]
jae 0x140061120
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.1400637a0
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.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x1400611ad
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x1400611ad
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.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x1400610ef
call fcn.1400602d0
mov rbx, rax
jmp 0x1400610da
mov rcx, r13
call fcn.1400637a0
mov eax, 0xc
jmp 0x14006110d

Function at 0x140061230
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140060220
mov ecx, dword [0x1400986d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140061258
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400602d0
test rax, rax
jne 0x14006124a
add rsp, 0x28
ret

Function at 0x1400612c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140060220
mov ecx, dword [0x1400986d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400612e8
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400602d0
test rax, rax
jne 0x1400612da
jmp 0x1400612de

Function at 0x140061400
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400a8c38]
test eax, eax
jne 0x140061418
xor eax, eax
add rsp, 0x28
ret
call fcn.140060220
mov ecx, dword [0x1400986d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140061448
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14006140e
test byte [rax + 0x40], 3
je 0x14006140e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140061410
call fcn.1400602d0
test rax, rax
jne 0x14006142e
jmp 0x14006140e

Function at 0x140061460
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140060220
mov ecx, dword [0x1400986d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400614a0
test ebx, ebx
jle 0x140061490
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.1400602d0
test rax, rax
jne 0x14006147d
add rsp, 0x20
pop rbx
ret
Function at 0x140061590
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140060220
mov ecx, dword [0x1400986d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140061608
test byte [rbx + 0x40], 0xc
jne 0x1400615bf
mov eax, dword [0x1400a8c38]
test eax, eax
jne 0x1400615d0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14005f4a0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400615f3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400615f3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14006161c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14005f770
call fcn.1400602d0
mov rbx, rax
test rax, rax
jne 0x1400615af
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 0x14006163a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14005f770
call fcn.1400614b0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400616c0
call fcn.140062830
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400616f8
call fcn.140060220
mov ecx, dword [0x1400986d8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140061750
test esi, esi
je 0x1400616d6
call fcn.140061590
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140061730
mov edx, edi
call fcn.140062900
call fcn.140061590
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140060220
mov ecx, dword [0x1400986d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140061740
call fcn.140061590
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140061590
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140060220
mov ecx, dword [0x1400986d8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140061695
call fcn.1400602d0
mov rbx, rax
jmp 0x140061695
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400616ae
call fcn.1400602d0
jmp 0x1400616d6
call fcn.1400602d0
mov rbx, rax
jmp 0x140061691