joyce8/EMBER2024-capa huggingface dataset:
Function at 0x33e0730e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [str.kernel32LoadLibrGetProcALocalAll_not_found_]
lea rdi, [rsp + 0x20]
mov byte [rsp + 0x2c], 0
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x6c6c642e
call fcn.33e072980
mov byte [rsp + 0x2c], 0
mov rbx, rax
mov rax, qword [0x33e1370a8]
mov dword [rsp + 0x28], 0x41797261
mov qword [rsp + 0x20], rax
movsxd rax, dword [rbx + 0x3c]
mov r12d, dword [rbx + rax + 0x88]
test r12d, r12d
je 0x33e073090
lea r13, [rbx + r12]
mov esi, dword [r13 + 0x20]
mov ebp, dword [r13 + 0x18]
add rsi, rbx
test ebp, ebp
je 0x33e0730aa
mov r15, rsi
xor r14d, r14d
jmp 0x33e072f41
add r14, 1
add r15, 4
cmp rbp, r14
je 0x33e0730c0
mov ecx, dword [r15]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x33e072f30
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
mov byte [rsp + 0x2e], 0
add rax, rbx
mov qword [0x33e15f040], rax
mov rax, qword [0x33e1370b0]
mov edx, 0x7373
mov dword [rsp + 0x28], 0x65726464
xor r14d, r14d
mov word [rsp + 0x2c], dx
mov qword [rsp + 0x20], rax
jmp 0x33e072fb1
add r14, 1
add rsi, 4
cmp rbp, r14
je 0x33e0730b8
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x33e072fa0
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov qword [0x33e15f048], rax
mov rax, qword [0x33e1370b8]
add r12, rbx
xor ebp, ebp
mov byte [rsp + 0x2a], 0
mov qword [rsp + 0x20], rax
mov eax, 0x636f
mov word [rsp + 0x28], ax
mov esi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rsi, rbx
test r13d, r13d
jne 0x33e07302d
jmp 0x33e0730a6
add rbp, 1
add rsi, 4
cmp r13, rbp
je 0x33e0730a6
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x33e073020
mov edx, dword [r12 + 0x24]
lea rcx, [rbx + rbp*2]
mov eax, dword [r12 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov ecx, 0x4098
mov qword [0x33e15f038], rax
call fcn.33e072e10
test rax, rax
mov qword [0x33e15f030], rax
setne al
movzx eax, al
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [0x33e15f040], 0
mov qword [0x33e15f048], 0
xor eax, eax
jmp 0x33e07305a
mov qword [0x33e15f040], 0
nop dword [rax]
xor eax, eax
jmp 0x33e072fdc
mov qword [0x33e15f040], 0
mov byte [rsp + 0x2e], 0
jmp 0x33e072f79
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x33e072ea0
Function at 0x33e0761e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov rax, rcx
lea rcx, [rcx + 0xf]
sub rcx, rdx
cmp rcx, 0x1e
jbe 0x33e0762c4
movdqu xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm0
movzx edi, byte [rax + 0x1f]
movzx r9d, byte [rax + 0x1e]
mov r10d, 8
lea r11, [0x33e137380]
movzx r8d, byte [rax + 0x1d]
movzx edx, byte [rax + 0x1c]
lea rbx, [0x33e137260]
jmp 0x33e076289
movzx r8d, r8b
movzx edx, dl
movzx ecx, byte [r11 + r8]
movzx r8d, r9b
movzx r9d, dil
movzx edi, byte [r11 + rdx]
mov edx, r10d
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + r9]
shr edx, 3
xor cl, byte [rbx + rdx]
mov edx, ecx
xor dl, byte [rax]
xor r8b, byte [rax + 1]
add r10d, 1
add rax, 4
xor r9b, byte [rax - 2]
xor dil, byte [rax - 1]
mov byte [rax + 0x1c], dl
mov byte [rax + 0x1d], r8b
mov byte [rax + 0x1e], r9b
mov byte [rax + 0x1f], dil
cmp r10d, 0x3c
je 0x33e0762c0
mov ecx, r10d
and ecx, 7
je 0x33e076230
cmp ecx, 4
jne 0x33e07625e
movzx edx, dl
movzx r8d, r8b
movzx esi, r9b
movzx ecx, dil
movzx edx, byte [r11 + rdx]
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + rsi]
movzx edi, byte [r11 + rcx]
jmp 0x33e07625e
pop rbx
pop rsi
pop rdi
ret
movzx ecx, byte [rdx]
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
mov byte [rax + 1], cl
movzx ecx, byte [rdx + 2]
mov byte [rax + 2], cl
movzx ecx, byte [rdx + 3]
mov byte [rax + 3], cl
movzx ecx, byte [rdx + 4]
mov byte [rax + 4], cl
movzx ecx, byte [rdx + 5]
mov byte [rax + 5], cl
movzx ecx, byte [rdx + 6]
mov byte [rax + 6], cl
movzx ecx, byte [rdx + 7]
mov byte [rax + 7], cl
movzx ecx, byte [rdx + 8]
mov byte [rax + 8], cl
movzx ecx, byte [rdx + 9]
mov byte [rax + 9], cl
movzx ecx, byte [rdx + 0xa]
mov byte [rax + 0xa], cl
movzx ecx, byte [rdx + 0xb]
mov byte [rax + 0xb], cl
movzx ecx, byte [rdx + 0xc]
mov byte [rax + 0xc], cl
movzx ecx, byte [rdx + 0xd]
mov byte [rax + 0xd], cl
movzx ecx, byte [rdx + 0xe]
mov byte [rax + 0xe], cl
movzx ecx, byte [rdx + 0xf]
mov byte [rax + 0xf], cl
movzx ecx, byte [rdx + 0x10]
mov byte [rax + 0x10], cl
movzx ecx, byte [rdx + 0x11]
mov byte [rax + 0x11], cl
movzx ecx, byte [rdx + 0x12]
mov byte [rax + 0x12], cl
movzx ecx, byte [rdx + 0x13]
mov byte [rax + 0x13], cl
movzx ecx, byte [rdx + 0x14]
mov byte [rax + 0x14], cl
movzx ecx, byte [rdx + 0x15]
mov byte [rax + 0x15], cl
movzx ecx, byte [rdx + 0x16]
mov byte [rax + 0x16], cl
movzx ecx, byte [rdx + 0x17]
mov byte [rax + 0x17], cl
movzx ecx, byte [rdx + 0x18]
mov byte [rax + 0x18], cl
movzx ecx, byte [rdx + 0x19]
mov byte [rax + 0x19], cl
movzx ecx, byte [rdx + 0x1a]
mov byte [rax + 0x1a], cl
movzx ecx, byte [rdx + 0x1b]
mov byte [rax + 0x1b], cl
movzx ecx, byte [rdx + 0x1c]
mov byte [rax + 0x1c], cl
movzx ecx, byte [rdx + 0x1d]
mov byte [rax + 0x1d], cl
movzx ecx, byte [rdx + 0x1e]
mov byte [rax + 0x1e], cl
movzx edx, byte [rdx + 0x1f]
mov byte [rax + 0x1f], dl
jmp 0x33e076207
Function at 0x33e080ec0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov r9, rdx
not eax
cmp r8, 3
jbe 0x33e080f90
lea rdx, [r8 - 4]
lea r10, [0x33e137ca0]
shr rdx, 2
lea rcx, [r9 + rdx*4 + 4]
nop dword [rax]
mov edx, eax
xor al, byte [r9]
add r9, 4
movzx eax, al
shr edx, 8
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [r9 - 3]
movzx edx, dl
shr eax, 8
xor eax, dword [r10 + rdx*4]
mov edx, eax
xor al, byte [r9 - 2]
movzx eax, al
shr edx, 8
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [r9 - 1]
movzx edx, dl
shr eax, 8
xor eax, dword [r10 + rdx*4]
cmp r9, rcx
jne 0x33e080ee8
and r8d, 3
test r8, r8
je 0x33e080f84
mov r9d, eax
xor al, byte [rcx]
lea rdx, [0x33e137ca0]
movzx eax, al
shr r9d, 8
xor r9d, dword [rdx + rax*4]
mov eax, r9d
cmp r8, 1
je 0x33e080f84
xor al, byte [rcx + 1]
shr r9d, 8
movzx eax, al
xor r9d, dword [rdx + rax*4]
mov eax, r9d
cmp r8, 2
je 0x33e080f84
xor al, byte [rcx + 2]
mov r8d, r9d
movzx eax, al
shr r8d, 8
xor r8d, dword [rdx + rax*4]
mov eax, r8d
not eax
ret
mov rcx, rdx
jmp 0x33e080f34
Function at 0x33e097fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movzx esi, byte [rcx + 0x40]
mov rbx, rcx
test sil, sil
je 0x33e097fd0
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x48]
movzx edx, word [rcx + 0x50]
mov r8d, 0xa
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x33e098078
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x33e098078
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r13, rax
test rax, rax
je 0x33e098078
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
movsxd r12, eax
mov qword [rbx + 0x38], rdx
lea rcx, [r12 + 1]
call sub.msvcrt.dll_malloc
mov rdi, rax
test rax, rax
je 0x33e09805b
mov r8, r12
mov rdx, r13
mov rcx, rax
mov esi, 1
call sub.msvcrt.dll_memcpy
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov qword [rbx + 0x30], rdi
mov byte [rbx + 0x40], sil
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor edi, edi
jmp 0x33e09805b

Function at 0x33e0a5190
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.33e0b0e10
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.33e0b0e10
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x33e0a5b92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x33e15f108]
test eax, eax
je 0x33e0a5c2a
lea rax, [0x33e15f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x33e15f110]
mov qword [rbp - 8], rax
jmp 0x33e0a5c0e
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 0x33e0a5c02
cmp qword [rbp - 0x10], 0
je 0x33e0a5c02
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 0x33e0a5bc8
lea rax, [0x33e15f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x33e0a5c2b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x33e0a5d30
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 0x33e0a5d58
mov eax, 0
jmp 0x33e0a5da6
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 0x33e0a5d81
mov eax, 0
jmp 0x33e0a5da6
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 0x33e0a5da1
mov eax, 0
jmp 0x33e0a5da6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x33e0a5dac
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 0x33e0a5e2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x33e0a5e21
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 0x33e0a5e21
mov rax, qword [rbp - 8]
jmp 0x33e0a5e3f
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 0x33e0a5df4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x33e0b36a0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
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 + 0x78], 0
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 0x33e0b37a2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x33e0b377a
add rax, 1
cmp rax, 0x6b
je 0x33e0b3797
cmp byte [rcx + rax], 0
jne 0x33e0b3770
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x33e0b3797
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 0x33e0b3788
Function at 0x33e0b3b40
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x33e15fcf0], 1
je 0x33e0b3bb8
lea rdi, [0x33e15fcf0]
mov rcx, rdi
call fcn.33e0b3430
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.33e0b2d60
mov esi, dword [0x33e15fcf0]
test esi, esi
jne 0x33e0b3bc8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x33e134358], eax
cmp eax, 0xffffffff
je 0x33e1337d6
mov dword [0x33e15fcf0], 1
mov rcx, rbp
call fcn.33e0b3030
test rbx, rbx
je 0x33e0b3bb8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.33e0b37c0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x33e0b3b98
mov ecx, 2
call qword [fcn.33e0b0e10]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x33e0b3b98
call sub.msvcrt.dll_abort
nop

Function at 0x33e0b3bf0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.33e0b38d0
cmp qword [0x33e165040], 0
mov rbx, rax
je 0x33e0b3d08
test rax, rax
je 0x33e0b3d08
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.33e0b3330
cmp eax, 1
je 0x33e0b3d16
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.33e1337dc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x33e134358]
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 0x33e0b3d1c
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.33e0b36a0
nop
jmp fcn.33e1337dc

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

Disassembly:
sub rsp, 0x28
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x33e0b3d50
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.33e0b3bf0
Function at 0x33e0b44c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x33e0b45e8
cmp eax, 1
je 0x33e0b451b
call fcn.33e0b3430
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.33e0b2d60
mov r12d, dword [rbx]
test r12d, r12d
je 0x33e0b4530
cmp r12d, 1
jne 0x33e0b45c0
mov rcx, rbp
call fcn.33e0b3030
test rdi, rdi
je 0x33e0b451b
mov rcx, rdi
call fcn.33e0b37c0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x33e0b38a0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x33e0b4628
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
call r12
test rax, rax
je 0x33e0b4610
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
call r12
test rax, rax
je 0x33e0b4600
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x33e0b4506
mov ecx, 2
call qword [fcn.33e0b0e10]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x33e0b4506
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.33e0b3bf0
test rax, rax
jne 0x33e0b45a9
jmp 0x33e1337f5
call fcn.33e0b3bf0
test rax, rax
jne 0x33e0b4585
jmp 0x33e13380e
call fcn.33e0b3bf0
test rax, rax
jne 0x33e0b455f
jmp 0x33e133804
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x33e0b48b0
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.33e0b3b40
mov ecx, dword [0x33e134358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x33e0b4928
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.33e0b3340
cmp esi, dword [rbx + 0x48]
jae 0x33e0b4903
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x33e0b4903
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.33e0b3380
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.33e0b3bf0
mov rbx, rax
jmp 0x33e0b48dd
Function at 0x33e0b4940
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.33e0b3b40
mov ecx, dword [0x33e134358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x33e0b4a40
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.33e0b3340
cmp esi, dword [rbx + 0x48]
jae 0x33e0b49c0
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.33e0b3380
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 0x33e0b4a4d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x33e0b4a4d
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 0x33e0b498f
call fcn.33e0b3bf0
mov rbx, rax
jmp 0x33e0b497a
mov rcx, r13
call fcn.33e0b3380
mov eax, 0xc
jmp 0x33e0b49ad

Function at 0x33e0b4ad0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x33e0b4af8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.33e0b3bf0
test rax, rax
jne 0x33e0b4aea
add rsp, 0x28
ret

Function at 0x33e0b4b60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x33e0b4b88
add rax, 0x18
add rsp, 0x28
ret
call fcn.33e0b3bf0
test rax, rax
jne 0x33e0b4b7a
jmp 0x33e0b4b7e

Function at 0x33e0b4ca0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x33e15fcf8]
test eax, eax
jne 0x33e0b4cb8
xor eax, eax
add rsp, 0x28
ret
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x33e0b4ce8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x33e0b4cae
test byte [rax + 0x40], 3
je 0x33e0b4cae
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x33e0b4cb0
call fcn.33e0b3bf0
test rax, rax
jne 0x33e0b4cce
jmp 0x33e0b4cae

Function at 0x33e0b4d00
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x33e0b4d40
test ebx, ebx
jle 0x33e0b4d30
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.33e0b3bf0
test rax, rax
jne 0x33e0b4d1d
add rsp, 0x20
pop rbx
ret
Function at 0x33e0b4e30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x33e0b4ea8
test byte [rbx + 0x40], 0xc
jne 0x33e0b4e5f
mov eax, dword [0x33e15fcf8]
test eax, eax
jne 0x33e0b4e70
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.33e0b2d60
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x33e0b4e93
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x33e0b4e93
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x33e0b4ebc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.33e0b3030
call fcn.33e0b3bf0
mov rbx, rax
test rax, rax
jne 0x33e0b4e4f
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 0x33e0b4eda
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.33e0b3030
call fcn.33e0b4d50
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x33e0b4f60
call fcn.33e0b2b10
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x33e0b4f98
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x33e0b4ff0
test esi, esi
je 0x33e0b4f76
call fcn.33e0b4e30
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x33e0b4fd0
mov edx, edi
call fcn.33e0b2bc0
call fcn.33e0b4e30
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x33e0b4fe0
call fcn.33e0b4e30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.33e0b4e30
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.33e0b3b40
mov ecx, dword [0x33e134358]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x33e0b4f35
call fcn.33e0b3bf0
mov rbx, rax
jmp 0x33e0b4f35
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x33e0b4f4e
call fcn.33e0b3bf0
jmp 0x33e0b4f76
call fcn.33e0b3bf0
mov rbx, rax
jmp 0x33e0b4f31