joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a9a10
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 0x6a9a5d
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x6a9a6d
mov dword [esi + 4], 0
jmp 0x6a9a7f
cmp eax, 0x103
je 0x6a9a9b
test eax, eax
js 0x6a9a88
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], 0x8c97d0
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.006a0c20
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.006a0d80
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push edi
push esi
mov eax, dword [0x9193bc]
test eax, eax
je 0x6ad328
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x6ad33e
cmp dword [eax + 4], 0
mov edi, eax
je 0x6ad33e
add edi, 8
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x9193bc
call fcn.00721c80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x6ad318
mov eax, dword [0x9193bc]
test eax, eax
je 0x6ad3f2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x6ad40c
mov esi, eax
test eax, eax
jne 0x6ad3b9
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x6ad385
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x6ad41f
mov dword [0x919820], eax
push 0xc
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6ad41f
mov dword [eax], 0x9193bc
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x9193bc]
test eax, eax
je 0x6ad413
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 0x6ad323
test ecx, ecx
je 0x6ad323
lock dec dword [ecx]
jne 0x6ad323
call fcn.0068d8b0
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x9193bc
call fcn.00721c80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x6ad35c
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x9193bc
call fcn.00721c80
jmp 0x6ad3b1
mov ecx, 4
mov edx, 0xc
call fcn.00709d20
ud2
Function at 0x6b4440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.006a39d0
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x6b44a5
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.006b45e0
mov edi, dword [esp]
test edi, edi
je 0x6b44b4
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6b44c9
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x6b44c1
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0
mov ecx, esp
call fcn.004715d0
mov dword [esi], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi], 0
je 0x6b44c1
push edi
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x6b44c1
Function at 0x6b6060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x707170
mov esi, edx
mov edi, ecx
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x6b60b3
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x6b616d
mov dword [0x919820], eax
push 8
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6b616d
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x6b64e0
push esi
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x6b60f5
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x6b615c
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x24], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je 0x6b6142
cmp dword [eax + 8], 9
jae 0x6b612d
mov eax, dword [ebp - 0x20]
jmp 0x6b6133
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
push edi
push 0
push dword [0x919820]
call dword [sym.imp.kernel32.dll_HeapFree]
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.00709d20
ud2
Function at 0x6b69d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x103c
call fcn.007082a0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x7071b0
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], edx
lea ebx, [ebp - 0x1048]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea edi, [ebp - 0x48]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], eax
push 0x6ae3d0
push edi
push 0x1000
push ebx
mov dword [ebp - 0x20], esi
push esi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x6b6b23
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x34], 0
je 0x6b6a5a
cmp dword [ebp - 0x30], 0
jne 0x6b6b28
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x6b6b28
cmp ecx, 0x1000
mov dword [ebp - 0x24], ecx
ja 0x6b6b67
xor esi, esi
nop dword [eax]
mov eax, ecx
sub eax, esi
jb 0x6b6b4c
xorps xmm0, xmm0
lea edx, [ebp - 0x34]
lea ecx, [ebp + esi - 0x1048]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], edx
push 0x6ae3d0
push edi
push eax
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x6b6b23
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x34], 0
je 0x6b6ad0
cmp dword [ebp - 0x30], 0
jne 0x6b6b28
add esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
cmp esi, ecx
jne 0x6b6a90
xorps xmm0, xmm0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], eax
push 0x6ae3d0
push edi
push 0x1000
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x6b6a5a
call sub.kernel32.dll_GetLastError
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x28]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x103c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x8c9a3c
call fcn.0070a2f0
add esp, 4
jmp 0x6b6b80
mov dword [ebp - 0x10], 0
mov edx, 0x1000
push 0x8c9a3c
call fcn.0070a080
add esp, 4
ud2
Function at 0x6b6be0
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], 0x7071c0
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 0x6b6c5e
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], 0x8c9b50
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, 0x8c9b7c
mov dword [esi + 0x2c], fcn.006a7970
mov dword [esi + 0x3c], 1
call fcn.00709f70
ud2

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

Disassembly:
push esi
mov eax, dword [0x91939c]
test eax, eax
je 0x6b8624
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x6b85a3
cmp byte [eax + 4], 0
mov esi, eax
jne 0x6b861d
mov eax, dword [0x91939c]
test eax, eax
je 0x6b8643
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x6b865d
mov esi, eax
test eax, eax
jne 0x6b8617
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x6b85ea
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x6b866f
mov dword [0x919820], eax
push 8
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6b866f
mov dword [eax], 0x91939c
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x91939c]
test eax, eax
je 0x6b8663
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, 0x91939c
call fcn.00721c80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x6b859b
jmp 0x6b85a3
mov ecx, 0x91939c
call fcn.00721c80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x6b85c1
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x91939c
call fcn.00721c80
jmp 0x6b860f
mov ecx, 4
mov edx, 8
call fcn.00709d20
ud2
Function at 0x6b86a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x707210
lea eax, [esi + 0x30]
mov edi, dword fs:[0]
mov dword [esi + 0x30], edi
mov dword fs:[0], eax
movq xmm0, qword [0x919840]
mov dword [esi + 8], edx
movd edi, xmm0
pshufd xmm0, xmm0, 0x55
movd ebx, xmm0
mov eax, edi
or eax, ebx
jne 0x6b8735
mov edi, ecx
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x6b87e8
movq xmm0, qword [esi]
mov edx, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, edi
movq qword [0x919840], xmm0
mov eax, edx
mov edi, edx
mov edx, dword [esi + 8]
or eax, ebx
je 0x6b87cf
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ecx
push ebx
push edi
push edx
push ecx
call fcn.007082d0
mov ebx, edx
mov ecx, edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edi
mul edi
imul ecx, ebx
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
add ecx, edx
mov edx, ebx
imul edx, edi
add ecx, edx
mov edx, dword [esi + 0x14]
sub edx, eax
mov eax, dword [esi + 8]
sbb eax, ecx
imul ecx, eax, 0x3b9aca00
mov eax, edx
mov edx, 0x3b9aca00
mul edx
add edx, ecx
push ebx
push dword [esi + 0x18]
push edx
push eax
call fcn.007082d0
mov ebx, eax
mov ecx, edx
mov eax, edi
mov edx, 0x3b9aca00
mul edx
mov edi, eax
imul eax, dword [esi + 0x1c], 0x3b9aca00
add eax, edx
add edi, ebx
adc eax, ecx
push 0
push 0x3b9aca00
push eax
push edi
call fcn.007082d0
imul ecx, eax, 0xc4653600
add ecx, edi
mov edi, dword [esi + 0x30]
mov dword fs:[0], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x8c7a10
mov edx, 0x19
push 0x8c8ff0
call fcn.0070a0f0
add esp, 4
ud2
call sub.kernel32.dll_GetLastError
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x20]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x8c9fb8
push 0x8c7c18
push eax
call fcn.0070a360
add esp, 0xc
ud2
Function at 0x6bc280
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
movzx eax, byte [edx]
mov esi, ecx
cmp al, 4
jne 0x6bc2f4
mov ebp, dword [edx + 4]
mov eax, dword [0x919824]
cmp eax, 3
jne 0x6bc3f0
cmp word [ebp], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov edi, eax
cmp eax, 0xffffffff
je 0x6bc310
cmp word [ebp], 0
je 0x6bc369
movups xmm0, xmmword [ebp + 4]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x14]
add ebp, 0x1c
mov eax, 0x1c
mov bx, 0x17
jmp 0x6bc37b
movzx ecx, byte [edx + 3]
movzx edi, word [edx + 1]
mov edx, dword [edx + 4]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x6bc3e8
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x6bc328
cmp eax, 0x2726
jne 0x6bc3d8
push 1
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x6bc3d2
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x6bc2ce
call sub.kernel32.dll_GetLastError
mov ebx, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
mov eax, ebx
jmp 0x6bc3d8
lea ecx, [ebp + 2]
add ebp, 6
mov eax, 0x10
mov bx, 2
xorps xmm0, xmm0
movzx ebp, word [ebp]
mov ecx, dword [ecx]
mov word [esp], bx
rol bp, 8
mov word [esp + 2], bp
mov dword [esp + 4], ecx
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x18], edx
mov ecx, esp
push eax
push ecx
push edi
call dword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x6bc3b3
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x6bc3e8
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x6bc3e8
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00722180
jmp 0x6bc2a1
Function at 0x6bc420
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x9193ac]
test eax, eax
je 0x6bc448
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x6bc45e
cmp dword [eax + 4], 0
mov edi, eax
je 0x6bc45e
add edi, 8
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x9193ac
call fcn.00721c80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x6bc438
mov eax, dword [0x9193ac]
test eax, eax
je 0x6bc4d2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
xor edi, edi
cmp eax, 1
je 0x6bc443
mov esi, eax
test eax, eax
jne 0x6bc4e7
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x6bc49f
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x6bc521
mov dword [0x919820], eax
push 0xc
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6bc521
mov dword [eax], 0x9193ac
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x9193ac]
test eax, eax
jne 0x6bc4de
mov ecx, 0x9193ac
call fcn.00721c80
jmp 0x6bc4df
mov ecx, 0x9193ac
call fcn.00721c80
jmp 0x6bc468
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
call fcn.007222b0
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x6bc443
test ecx, ecx
je 0x6bc443
lock dec dword [ecx]
jne 0x6bc443
call fcn.00592120
mov eax, edi
pop esi
pop edi
ret
mov ecx, 4
mov edx, 0xc
call fcn.00709d20
ud2
Function at 0x6bc750
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 [0x9193cc]
test eax, eax
je 0x6bc84b
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x6bc781
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x6bc846
mov eax, dword [0x9193cc]
test eax, eax
je 0x6bc86a
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x6bc884
mov esi, eax
test eax, eax
jne 0x6bc807
movzx eax, byte [0x919aa5]
mov eax, dword [0x919820]
test eax, eax
jne 0x6bc7c8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
test eax, eax
je 0x6bc89d
mov dword [0x919820], eax
push 0x20
push 0
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x6bc89d
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x9193cc
mov esi, eax
mov eax, dword [0x9193cc]
test eax, eax
je 0x6bc88e
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 0x6bc827
movaps xmm0, xmmword [esp]
jmp 0x6bc835
lea ecx, [esp + 0x10]
call fcn.006b6be0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x6bc886
mov ecx, 0x9193cc
call fcn.00721c80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x6bc774
jmp 0x6bc781
mov ecx, 0x9193cc
call fcn.00721c80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x6bc79f
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x9193cc
call fcn.00721c80
jmp 0x6bc7ff
mov ecx, 8
mov edx, 0x20
call fcn.00709d20
ud2
Function at 0x6bd010
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [ecx + 4], 0
je 0x6bd01e
add ecx, 8
jmp fcn.006bccd0
ret

Function at 0x6bd640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov esi, esp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], esp
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0x7073b0
lea eax, [esi + 0x60]
mov edx, dword fs:[0]
mov dword [esi + 0x60], edx
mov dword fs:[0], eax
mov eax, dword [ecx]
nop word [eax + eax]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x6bd680
test al, 1
je 0x6bd720
test al, 2
jne 0x6bd738
test al, 8
mov dword [esi + 0xc], ecx
jne 0x6bd6c4
add ecx, 0x18
lea edx, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 4
mov dword [esi + 0x68], 0
call fcn.006c4b10
jmp 0x6bd6e6
test al, 0x10
je 0x6bd6e6
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x40]
mov dword [esi + 0x68], 0
test eax, eax
je 0x6bd7ad
push dword [ecx + 0x44]
call dword [eax + 8]
add esp, 4
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x10], 1
mov eax, 0xffffffc0
lock xadd dword [ecx], eax
shr eax, 6
cmp eax, dword [esi + 0x10]
jb 0x6bd758
jne 0x6bd70f
mov dword [esi + 0x68], 0xffffffff
call fcn.006bd4d0
mov eax, dword [esi + 0x60]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x8cb504
mov edx, 0x23
mov dword [esi + 0x68], 0xffffffff
push 0x8cb528
jmp 0x6bd74e
mov ecx, str.assertion_failed:__prev.is_complete__
mov edx, 0x25
mov dword [esi + 0x68], 0xffffffff
push 0x8cb4f4
call fcn.0070a0f0
add esp, 4
ud2
lea ecx, [esi + 0x14]
lea edx, [esi + 0x10]
mov dword [esi + 0x40], 0x8cb548
mov dword [esi + 0x44], 2
mov dword [esi + 0x50], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x30]
mov dword [esi + 0x34], 0x4262e0
mov dword [esi + 0x38], edx
mov edx, 0x8cb558
mov dword [esi + 0x3c], 0x4262e0
mov dword [esi + 0x48], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x4c], 2
call fcn.00709f70
ud2
lea ecx, [esi + 0x18]
mov edx, 0x8cb0cc
mov dword [esi + 0x18], 0x8cb0c4
mov dword [esi + 0x1c], 1
mov dword [esi + 0x28], 0
mov dword [esi + 0x20], str.not_implementedC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinit_0.28.6_srcplatform_implwindowsdrop_handler.rs
mov dword [esi + 0x24], 0
call fcn.00709f70
ud2
Function at 0x6d0a10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, esp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], esp
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x2c], 0x707990
mov ebx, ecx
lea eax, [esi + 0x28]
mov edi, edx
mov ecx, dword fs:[0]
mov dword [esi + 0x28], 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 0x6d0b08
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
call fcn.006b86a0
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ecx
lea ecx, [esi + 0x10]
mov edx, ebx
push dword [ebp + 8]
push edi
call fcn.006b8840
add esp, 8
mov edi, eax
mov dword [esi + 4], edx
mov edx, 0x431bde83
mov eax, ecx
xor ebx, ebx
mul edx
mov eax, dword [esi + 4]
shr edx, 0x12
cmp ecx, 0x3b9aca00
mov ecx, 0x3e8
cmove edi, ebx
cmove eax, ebx
cmovne ebx, edx
mov dword [esi + 4], eax
mov eax, edi
mul ecx
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, edx
mov edx, 0x3e8
mul edx
add ecx, eax
adc edx, 0
add edi, ebx
adc ecx, 0
adc edx, 0
setb al
cmp edx, 1
mov edx, 0xffffffff
movzx eax, al
sbb eax, 0
mov eax, 0xfffffffd
cmovb eax, edi
mov edi, dword [esi + 0x28]
cmovb edx, ecx
mov dword fs:[0], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x30], 0
lea eax, [esi + 0x10]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x8c9fc8
push 0x8c7c18
push eax
call fcn.0070a360
add esp, 0xc
ud2