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

Disassembly:
push edi
push esi
mov eax, dword [0x94b95c]
test eax, eax
je 0x70ef18
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x70ef2e
cmp dword [eax + 4], 0
mov edi, eax
je 0x70ef2e
add edi, 8
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x94b95c
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x70ef08
mov eax, dword [0x94b95c]
test eax, eax
je 0x70efc7
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x70efe1
mov esi, eax
test eax, eax
jne 0x70ef8e
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 0xc
call fcn.0071ee80
test eax, eax
je 0x70eff4
mov dword [eax], 0x94b95c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x94b95c]
test eax, eax
je 0x70efe8
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x70ef13
test ecx, ecx
je 0x70ef13
lock dec dword [ecx]
jne 0x70ef13
call fcn.004c23a0
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x94b95c
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x70ef4c
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x94b95c
call fcn.007d1810
jmp 0x70ef86
mov ecx, 4
mov edx, 0xc
call fcn.007c1490
int3

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

Disassembly:
push esi
mov eax, dword [0x94b96c]
test eax, eax
je 0x70f4fd
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x70f49f
cmp byte [eax + 4], 0
mov esi, eax
jne 0x70f4f6
mov eax, dword [0x94b96c]
test eax, eax
je 0x70f515
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x70f52b
mov esi, eax
test eax, eax
jne 0x70f4f0
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 8
call fcn.0071ee80
test eax, eax
je 0x70f53d
mov dword [eax], 0x94b96c
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x94b96c]
test eax, eax
je 0x70f531
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
mov eax, esi
pop esi
ret
mov ecx, 0x94b96c
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x70f497
jmp 0x70f49f
mov ecx, 0x94b96c
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x70f4b5
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x94b96c
call fcn.007d1810
jmp 0x70f4e8
mov ecx, 4
mov edx, 8
call fcn.007c1490
int3
Function at 0x710400
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x94b94c]
test eax, eax
je 0x710422
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x710438
cmp dword [eax + 4], 0
je 0x710438
add eax, 8
pop esi
ret
mov ecx, 0x94b94c
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x710417
mov eax, dword [0x94b94c]
test eax, eax
je 0x7104a3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x7104b9
mov esi, eax
test eax, eax
jne 0x71048c
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 0x10
call fcn.0071ee80
test eax, eax
je 0x7104c9
mov dword [eax], 0x94b94c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x94b94c]
test eax, eax
je 0x7104bd
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
mov ecx, 0x94b94c
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x71044e
xor eax, eax
pop esi
ret
mov ecx, 0x94b94c
call fcn.007d1810
jmp 0x710484
mov ecx, 4
mov edx, 0x10
call fcn.007c1490
int3
Function at 0x711110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], esp
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0x75f480
lea eax, [esi + 0x38]
mov ecx, dword fs:[0]
mov dword [esi + 0x38], ecx
mov dword fs:[0], eax
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x71127b
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
movq xmm0, qword [0x94bf30]
movd edx, xmm0
pshufd xmm0, xmm0, 0x55
mov dword [esi + 4], ecx
movd edi, xmm0
mov eax, edx
or eax, edi
jne 0x7111c9
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x7112b3
movq xmm0, qword [esi + 8]
mov edx, dword [esi + 8]
mov edi, dword [esi + 0xc]
movq qword [0x94bf30], xmm0
mov eax, edx
mov ecx, dword [esi + 4]
or eax, edi
je 0x711267
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], ebx
push edi
push edx
push ecx
push ebx
mov edi, edx
mov dword [esi + 0x28], edx
call fcn.007bcb10
mov dword [esi + 0x1c], eax
mov ebx, edx
mov ecx, edi
mov dword [esi + 0x2c], edx
mul edi
mov edi, dword [esi + 0x20]
imul ecx, ebx
mov ebx, dword [esi + 0x1c]
add ecx, edx
mov edx, edi
imul edx, ebx
add ecx, edx
mov edx, dword [esi + 0x24]
sub edx, eax
mov eax, dword [esi + 4]
sbb eax, ecx
imul ecx, eax, 0x3b9aca00
mov eax, edx
mov edx, 0x3b9aca00
mul edx
add edx, ecx
push edi
push dword [esi + 0x28]
push edx
push eax
call fcn.007bcb10
mov ecx, eax
mov dword [esi + 4], edx
mov eax, ebx
mov edx, 0x3b9aca00
mul edx
mov edi, eax
imul eax, dword [esi + 0x2c], 0x3b9aca00
add eax, edx
add edi, ecx
adc eax, dword [esi + 4]
push 0
push 0x3b9aca00
push eax
push edi
call fcn.007bcb10
imul ecx, eax, 0xc4653600
add ecx, edi
mov edi, dword [esi + 0x38]
mov dword fs:[0], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.attempt_to_divide_by_zero
mov edx, 0x19
push 0x9347a4
call fcn.007c1ca0
call sub.kernel32.dll_GetLastError
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 0
lea eax, [esi + 0x14]
mov ecx, 0x93b384
mov edx, 0x2b
push 0x935468
push 0x9337b4
push eax
call fcn.007c1f60
add esp, 0xc
jmp 0x7112e9
call sub.kernel32.dll_GetLastError
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x40], 1
lea eax, [esi + 0x14]
mov ecx, 0x93b384
mov edx, 0x2b
push 0x935458
push 0x9337b4
push eax
call fcn.007c1f60
add esp, 0xc
ud2
Function at 0x7128c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x75f4c0
mov dword [ebp - 0x28], ecx
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x712950
jmp 0x71293e
jbe 0x7129d4
cmp esi, 0x201
jae 0x712950
mov dword [ebp - 0x2c], 0x200
lea ebx, [ebp - 0x448]
mov edi, esi
jmp 0x712981
mov edi, dword [ebp - 0x20]
sub esi, edi
je 0x712975
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.007d1a90
add esp, 4
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x7129a4
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x712a36
cmp esi, edi
jne 0x712930
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x712a54
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x71293e
jmp 0x712950
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
cmp esi, edx
ja 0x712a74
lea ecx, [ebp - 0x48]
mov edx, ebx
push esi
call fcn.00713060
add esp, 4
movsd xmm0, qword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x40]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x712a22
push dword [ebp - 0x24]
push 0
push dword [0x94bf18]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov ecx, dword [ebp - 0x28]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 0x80000000
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x712a11
jmp 0x712a22
mov dword [ebp - 0x10], 0
mov ecx, str.internal_error:_entered_unreachable_code
mov edx, 0x28
push 0x9354b4
call fcn.007c1ca0
add esp, 4
jmp 0x712a83
mov ecx, esi
push 0x9354a4
call fcn.007c1c40
add esp, 4
ud2
Function at 0x717a10
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x75f560
mov edx, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 0x16
lea ecx, [ebp - 0x3c]
push 0x16
call fcn.00710ab0
add esp, 4
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
cmp esi, 0x80000000
jne 0x717a74
mov edi, dword [ebp - 0x34]
mov eax, ebx
mov ecx, ebx
shrd eax, edi, 8
shr edi, 8
jmp 0x717a9e
push 0
push ebx
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x717ab4
mov cl, 4
test esi, esi
je 0x717a9e
push ebx
push 0
push dword [0x94bf18]
mov esi, eax
mov ebx, ecx
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, ebx
mov eax, esi
cmp cl, 4
jne 0x717ac9
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov edi, eax
shl eax, 0x18
xor ecx, ecx
shr edi, 8
test esi, esi
jne 0x717a87
jmp 0x717a9e
shld edi, eax, 8
shl eax, 8
movzx ecx, cl
lea edx, [ebp - 0x24]
mov dword [ebp - 0x3c], 0x933bcc
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
or ecx, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x50], 0x69d5e0
mov dword [ebp - 0x4c], edx
mov edx, 0x933bdc
mov dword [ebp - 0x48], fcn.00717140
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 2
call fcn.007c1b50
ud2

Function at 0x718d50
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x718d9d
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x718dad
mov dword [esi + 4], 0
jmp 0x718dbf
cmp eax, 0x103
je 0x718ddb
test eax, eax
js 0x718dc8
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x34
pop esi
pop edi
ret
mov eax, esp
mov dword [esp + 0x1c], 0x934e20
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.0070e4e0
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.0070e640
mov ecx, 7
int 0x29
ud2
Function at 0x71ced0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x94b97c]
test eax, eax
je 0x71cef8
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x71cf0e
cmp dword [eax + 4], 0
mov edi, eax
je 0x71cf0e
add edi, 8
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x94b97c
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x71cee8
mov eax, dword [0x94b97c]
test eax, eax
je 0x71cfa7
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x71cfc1
mov esi, eax
test eax, eax
jne 0x71cf6e
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 0xc
call fcn.0071ee80
test eax, eax
je 0x71cfd4
mov dword [eax], 0x94b97c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x94b97c]
test eax, eax
je 0x71cfc8
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x71cef3
test ecx, ecx
je 0x71cef3
lock dec dword [ecx]
jne 0x71cef3
call fcn.00724770
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x94b97c
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x71cf2c
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x94b97c
call fcn.007d1810
jmp 0x71cf66
mov ecx, 4
mov edx, 0xc
call fcn.007c1490
int3

Function at 0x71dd00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x80
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push edx
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x71dda6
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x71ddbf
cmp ecx, 0x17
jne 0x71dde3
cmp eax, 0x1b
jbe 0x71ddf9
movzx eax, word [esp + 0x12]
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov word [esi], 1
rol ax, 8
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
lea esp, [ebp - 4]
pop esi
pop ebp
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x71ddee
cmp eax, 0xf
jbe 0x71de0d
movzx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x14]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov byte [esi + 4], 2
mov dword [esi + 8], 0x93584c
mov word [esi], 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x9357e8
mov edx, 0x43
push 0x93582c
call fcn.007c1ca0
mov ecx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
mov edx, 0x42
push 0x9357d8
call fcn.007c1ca0
int3
Function at 0x71e8c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x75f7a0
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x71e93e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x935058
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x935088
mov dword [esi + 0x2c], fcn.00717140
mov dword [esi + 0x3c], 1
call fcn.007c1b50
ud2
Function at 0x721e50
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x94b98c]
test eax, eax
je 0x721f30
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x721e81
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x721f2b
mov eax, dword [0x94b98c]
test eax, eax
je 0x721f4f
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x721f69
mov esi, eax
test eax, eax
jne 0x721eec
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 0x20
call fcn.0071ee80
test eax, eax
je 0x721f82
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x94b98c
mov esi, eax
mov eax, dword [0x94b98c]
test eax, eax
je 0x721f73
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x721f0c
movaps xmm0, xmmword [esp]
jmp 0x721f1a
lea ecx, [esp + 0x10]
call fcn.0071e8c0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x721f6b
mov ecx, 0x94b98c
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x721e74
jmp 0x721e81
mov ecx, 0x94b98c
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x721e9f
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x94b98c
call fcn.007d1810
jmp 0x721ee4
mov ecx, 8
mov edx, 0x20
call fcn.007c1490
int3
Function at 0x722840
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x94bcb0]
mov esi, ecx
test eax, eax
je 0x72286d
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x722883
cmp dword [eax + 4], 0
je 0x722883
add eax, 8
jmp 0x722910
mov ecx, 0x94bcb0
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x72285f
mov eax, dword [0x94bcb0]
test eax, eax
je 0x722a25
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x722916
mov edi, eax
test eax, eax
jne 0x7228e3
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 0x1c
call fcn.0071ee80
test eax, eax
je 0x722a6c
mov dword [eax], 0x94bcb0
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x94bcb0]
test eax, eax
je 0x722a5d
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
lea eax, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
mov dword [eax], 0
mov eax, dword [0x94b99c]
cmp eax, 2
jne 0x7229df
lea edi, [0x94b9a4]
push edi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x7229e9
xor ebx, ebx
movzx eax, byte [0x94b9a8]
test al, al
jne 0x722a02
mov ebp, dword [esi]
mov esi, dword [0x94b9b4]
cmp esi, dword [0x94b9ac]
mov ecx, esi
jne 0x722971
mov ecx, esi
call fcn.00722a80
mov ecx, dword [0x94b9b4]
mov eax, dword [0x94b9b0]
mov dword [eax + ecx*4], ebp
inc ecx
test esi, esi
mov dword [0x94b9b4], ecx
mov ecx, dword [eax + esi*4]
je 0x7229aa
nop word [eax + eax]
lea ebp, [esi - 1]
mov edx, ebp
shr edx, 1
mov edi, dword [eax + edx*4]
cmp edi, ecx
jbe 0x7229b5
mov dword [eax + esi*4], edi
cmp ebp, 1
mov esi, edx
ja 0x722990
jmp 0x7229ac
xor edx, edx
test bl, bl
mov dword [eax + edx*4], ecx
jne 0x7229ca
jmp 0x7229be
mov edx, esi
test bl, bl
mov dword [eax + edx*4], ecx
jne 0x7229ca
mov eax, dword [0x94bfbc]
test eax, 0x7fffffff
jne 0x722a44
lea eax, [0x94b9a4]
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.007d2140
jmp 0x722924
call fcn.007d1b30
mov ebx, eax
xor bl, 1
movzx eax, byte [0x94b9a8]
test al, al
je 0x722952
mov dword [esp], edi
mov byte [esp + 4], bl
mov eax, esp
mov ecx, 0x93b384
mov edx, 0x2b
push 0x935d9c
push 0x935d08
push eax
call fcn.007c1f60
mov ecx, 0x94bcb0
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x72289d
jmp 0x722916
call fcn.007d1b30
test al, al
jne 0x7229ca
mov byte [0x94b9a8], 1
jmp 0x7229ca
mov ecx, 0x94bcb0
call fcn.007d1810
jmp 0x7228db
mov ecx, 4
mov edx, 0x1c
call fcn.007c1490
int3
Function at 0x724480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x94b9d4]
test eax, eax
je 0x7244b3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x7244c9
mov ebx, eax
mov eax, dword [eax]
or eax, dword [ebx + 4]
je 0x7244c9
add ebx, 8
jmp 0x7245b3
mov ecx, 0x94b9d4
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x7244a2
mov eax, dword [0x94b9d4]
test eax, eax
je 0x724597
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x7245b1
mov ebx, eax
test eax, eax
jne 0x724534
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 0x50
call fcn.0071ee80
test eax, eax
je 0x7245cc
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x48], 0x94b9d4
mov ebx, eax
mov eax, dword [0x94b9d4]
test eax, eax
je 0x7245bd
dec eax
push ebx
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov edi, esp
mov ecx, 0x12
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 4], 0
mov dword [ebx], 1
add ebx, 8
mov ecx, 0x10
mov esi, 0x936cd0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp]
or eax, dword [esp + 4]
je 0x7245b3
mov eax, dword [esp + 0xc]
cmp eax, 2
je 0x7245b3
test eax, eax
lea ecx, [esp + 0x10]
je 0x724587
mov eax, dword [esp + 0x10]
lock dec dword [eax]
jne 0x7245b3
call fcn.00722e30
jmp 0x7245b3
mov eax, dword [esp + 0x10]
lock dec dword [eax]
jne 0x7245b3
call fcn.00722da0
jmp 0x7245b3
mov ecx, 0x94b9d4
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x7244e7
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x94b9d4
call fcn.007d1810
jmp 0x72452c
mov ecx, 8
mov edx, 0x50
call fcn.007c1490
int3
Function at 0x726a30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x94b9e4]
test eax, eax
je 0x726a56
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x726a6c
cmp dword [eax + 4], 0
mov esi, eax
je 0x726a6c
add esi, 4
mov eax, esi
pop esi
ret
mov ecx, 0x94b9e4
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x726a47
mov eax, dword [0x94b9e4]
test eax, eax
je 0x726b2e
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x726b48
mov esi, eax
test eax, eax
jne 0x726ad0
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 8
call fcn.0071ee80
test eax, eax
je 0x726b6c
mov dword [eax], 0x94b9e4
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x94b9e4]
test eax, eax
je 0x726b4e
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
movzx eax, byte [0x94bfc5]
xor ecx, ecx
mov edx, 0x18
call fcn.0071ee80
test eax, eax
je 0x726b5d
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov byte [eax + 0xc], 0
mov dword [eax + 0x10], 0
add esi, 4
mov dword [eax + 0x14], 0
mov ecx, dword [esi]
mov dword [esi], eax
test ecx, ecx
je 0x726a52
lock dec dword [ecx]
jne 0x726a52
call fcn.006ed620
mov eax, esi
pop esi
ret
mov ecx, 0x94b9e4
call fcn.007d1810
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x726a8a
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x94b9e4
call fcn.007d1810
jmp 0x726ac8
mov ecx, 4
mov edx, 0x18
call fcn.007c1490
mov ecx, 4
mov edx, 8
call fcn.007c1490
int3