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

Disassembly:
push edi
push esi
sub esp, 0x1c
mov edi, dword [esp + 0x28]
mov eax, dword [edi]
test eax, eax
je 0x1006c74d
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x1006c762
jmp 0x1006c76e
push edi
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x1006c76e
cmp byte [eax + 0x18], 2
mov esi, eax
jne 0x1006c85b
mov eax, dword [edi]
test eax, eax
je 0x1006c7db
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x1006c7f0
mov esi, eax
test eax, eax
jne 0x1006c7ba
push 4
push 0x20
call fcn.1001d510
add esp, 8
test eax, eax
je 0x1006c863
mov byte [eax + 0x18], 2
mov dword [eax + 0x1c], edi
mov esi, eax
mov eax, dword [edi]
test eax, eax
jne 0x1006c7b2
push edi
call fcn.1009c440
add esp, 4
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1006c7ce
mov cl, byte [eax + 0x18]
mov byte [eax + 0x18], 2
cmp cl, 2
jne 0x1006c7f4
mov eax, esp
push eax
call fcn.1006c330
add esp, 4
jmp 0x1006c827
push edi
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x1006c780
xor esi, esi
jmp 0x1006c85b
movsd xmm0, qword [eax + 0x10]
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
movzx edx, word [eax + 0x19]
mov al, byte [eax + 0x1b]
movsd qword [esp + 0x10], xmm0
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm2
mov byte [esp + 0x18], cl
mov word [esp + 0x19], dx
mov byte [esp + 0x1b], al
movsd xmm0, qword [esp]
movsd xmm1, qword [esp + 8]
mov al, byte [esi + 0x18]
movsd qword [esi], xmm0
movsd qword [esi + 8], xmm1
cmp al, 2
movsd xmm0, qword [esp + 0x10]
movsd qword [esi + 0x10], xmm0
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x18], ecx
je 0x1006c85b
lock dec dword [0x1015fb60]
mov eax, esi
add esp, 0x1c
pop esi
pop edi
ret
push 4
push 0x20
call fcn.100f97e0
add esp, 8
ud2
Function at 0x10083000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x1008301a
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x1008302f
jmp 0x10083036
push edi
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x10083036
cmp dword [eax], 0
mov esi, eax
jne 0x100830a6
mov eax, dword [edi]
test eax, eax
je 0x100830ae
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x100830c3
mov esi, eax
test eax, eax
jne 0x10083080
push 4
push 0xc
call fcn.1001d510
add esp, 8
test eax, eax
je 0x100830ca
mov dword [eax], 0
mov dword [eax + 8], edi
mov esi, eax
mov eax, dword [edi]
test eax, eax
jne 0x10083078
push edi
call fcn.1009c440
add esp, 4
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10083098
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ecx], 0
cmp edx, 1
je 0x1008309d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi], 1
mov dword [esi + 4], eax
add esi, 4
mov eax, esi
pop esi
pop edi
ret
push edi
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x10083048
xor esi, esi
mov eax, esi
pop esi
pop edi
ret
push 4
push 0xc
call fcn.100f97e0
add esp, 8
ud2
Function at 0x10085440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x18]
xor edx, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp], esi
jmp 0x10085483
mov edi, edx
mov edx, dword [esp]
mov eax, ebp
sub eax, esi
add edx, eax
mov dword [esp], edx
mov dword [ecx + 8], edx
mov edx, edi
cmp ebx, 0x110001
jne 0x10085530
mov esi, dword [esp + 0x10]
mov ebx, 0x110000
mov dword [esp + 0xc], edx
cmp ebp, esi
je 0x10085542
lea esi, [ebp + 1]
mov edx, dword [esp]
mov dword [ecx + 0xc], esi
movzx eax, byte [ebp]
movzx edi, al
test al, al
jns 0x1008555a
lea esi, [ebp + 2]
and edi, 0x1f
mov dword [ecx + 0xc], esi
movzx edx, byte [ebp + 1]
and edx, 0x3f
cmp al, 0xdf
jbe 0x10085549
lea esi, [ebp + 3]
mov dword [esp + 8], edi
shl edx, 6
mov dword [ecx + 0xc], esi
movzx edi, byte [ebp + 2]
mov dword [esp + 4], edi
and dword [esp + 4], 0x3f
add dword [esp + 4], edx
cmp al, 0xf0
mov edx, dword [esp + 4]
jb 0x1008554e
lea esi, [ebp + 4]
mov edi, dword [esp + 8]
shl edx, 6
mov dword [ecx + 0xc], esi
movzx eax, byte [ebp + 3]
and edi, 7
shl edi, 0x12
and eax, 0x3f
or eax, edx
mov edx, dword [esp]
or edi, eax
cmp edi, 0x110000
mov eax, edx
jne 0x1008555a
jmp 0x10085565
mov eax, dword [esp]
mov esi, ebp
cmp ebx, 0x110000
jne 0x1008557b
jmp 0x10085643
mov edx, dword [esp]
mov eax, edx
jmp 0x10085565
shl edi, 6
jmp 0x10085555
mov edi, dword [esp + 8]
shl edi, 0xc
or edi, edx
mov edx, dword [esp]
mov eax, esi
mov ebx, edi
sub eax, ebp
add eax, edx
mov dword [ecx + 8], eax
mov dword [ecx + 0x14], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 0x18], ebx
cmp ebx, 0x110000
je 0x10085643
add ebx, 0xffffffd0
cmp ebx, 0xa
jae 0x10085643
mov edi, dword [ecx + 0x18]
mov dword [esp], eax
lea eax, [edx + edx*4]
mov ebp, esi
mov dword [ecx + 0x18], 0x110001
mov dword [esp + 0x14], 1
lea edx, [ebx + eax*2]
mov ebx, 0x110001
xor edi, ebx
jne 0x10085483
mov ebp, dword [esp + 0x10]
cmp esi, ebp
je 0x10085483
lea ebp, [esi + 1]
mov dword [ecx + 0xc], ebp
movzx eax, byte [esi]
test al, al
jns 0x10085470
lea ebp, [esi + 2]
cmp al, 0xe0
mov dword [ecx + 0xc], ebp
jb 0x10085470
movzx edi, byte [esi + 1]
lea ebp, [esi + 3]
cmp al, 0xf0
mov dword [ecx + 0xc], ebp
jb 0x10085470
mov ebp, edi
movzx edi, al
movzx eax, byte [esi + 2]
mov dword [esp + 0xc], edx
and edi, 7
and ebp, 0x3f
mov dword [esp + 8], ebp
lea ebp, [esi + 4]
shl edi, 0x12
mov dword [ecx + 0xc], ebp
mov dword [esp + 4], edi
mov edi, dword [esp + 8]
movzx edx, byte [esi + 3]
and eax, 0x3f
shl eax, 6
shl edi, 0xc
or eax, edi
and edx, 0x3f
or edx, eax
add edx, dword [esp + 4]
cmp edx, 0x110000
mov edx, dword [esp + 0xc]
je 0x10085483
jmp 0x10085470
mov eax, dword [esp + 0x14]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10088320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x1008833a
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x1008834f
jmp 0x1008835c
push edi
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x1008835c
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x1008835c
add eax, 8
pop esi
pop edi
ret
mov eax, dword [edi]
test eax, eax
je 0x100883bd
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x100883d2
mov esi, eax
test eax, eax
jne 0x100883ad
push 8
push 0x38
call fcn.1001d510
add esp, 8
test eax, eax
je 0x100883d7
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x30], edi
mov esi, eax
mov eax, dword [edi]
test eax, eax
jne 0x100883a5
push edi
call fcn.1009c440
add esp, 4
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push dword [esp + 0x10]
push esi
call fcn.10088600
add esp, 8
pop esi
pop edi
ret
push edi
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x1008836e
xor eax, eax
pop esi
pop edi
ret
push 8
push 0x38
call fcn.100f97e0
add esp, 8
ud2
Function at 0x10090500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
sub esp, 0x1c
mov edi, dword [esp + 0x28]
mov eax, dword [edi]
test eax, eax
je 0x1009051d
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x10090532
jmp 0x1009053e
push edi
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x1009053e
cmp byte [eax + 0x18], 2
mov esi, eax
jne 0x1009062b
mov eax, dword [edi]
test eax, eax
je 0x100905ab
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x100905c0
mov esi, eax
test eax, eax
jne 0x1009058a
push 4
push 0x20
call fcn.1001d510
add esp, 8
test eax, eax
je 0x10090633
mov byte [eax + 0x18], 2
mov dword [eax + 0x1c], edi
mov esi, eax
mov eax, dword [edi]
test eax, eax
jne 0x10090582
push edi
call fcn.1009c440
add esp, 4
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1009059e
mov cl, byte [eax + 0x18]
mov byte [eax + 0x18], 2
cmp cl, 2
jne 0x100905c4
mov eax, esp
push eax
call fcn.100901c0
add esp, 4
jmp 0x100905f7
push edi
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x10090550
xor esi, esi
jmp 0x1009062b
movsd xmm0, qword [eax + 0x10]
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
movzx edx, word [eax + 0x19]
mov al, byte [eax + 0x1b]
movsd qword [esp + 0x10], xmm0
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm2
mov byte [esp + 0x18], cl
mov word [esp + 0x19], dx
mov byte [esp + 0x1b], al
movsd xmm0, qword [esp]
movsd xmm1, qword [esp + 8]
mov al, byte [esi + 0x18]
movsd qword [esi], xmm0
movsd qword [esi + 8], xmm1
cmp al, 2
movsd xmm0, qword [esp + 0x10]
movsd qword [esi + 0x10], xmm0
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x18], ecx
je 0x1009062b
lock dec dword [0x1015fb9c]
mov eax, esi
add esp, 0x1c
pop esi
pop edi
ret
push 4
push 0x20
call fcn.100f97e0
add esp, 8
ud2
Function at 0x10090b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10090e30
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [edi]
test eax, eax
je 0x10090b94
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x10090ba9
jmp 0x10090bb4
push edi
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x10090bb4
cmp dword [eax], 0
mov esi, eax
jne 0x10090c85
mov eax, dword [edi]
test eax, eax
je 0x10090c2d
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x10090c42
mov esi, eax
test eax, eax
jne 0x10090c02
push 4
push 0x14
call fcn.1001d510
add esp, 8
test eax, eax
je 0x10090c9b
mov dword [eax], 0
mov dword [eax + 0x10], edi
mov esi, eax
mov eax, dword [edi]
test eax, eax
jne 0x10090bfa
push edi
call fcn.1009c440
add esp, 4
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10090c46
mov ecx, dword [edi]
xor eax, eax
mov edx, 0
mov dword [edi], 0
cmp ecx, 1
mov ecx, 0
jne 0x10090c4c
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
jmp 0x10090c4c
push edi
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x10090bc6
xor esi, esi
jmp 0x10090c88
xor eax, eax
xor ecx, ecx
xor edx, edx
mov edi, dword [esi + 4]
cmp dword [esi], 0
mov dword [esi], 1
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
je 0x10090c85
test edi, edi
je 0x10090c85
lock inc dword [edi + 0x3c]
mov dword [ebp - 0x20], edi
mov eax, 2
xchg dword [edi + 0x34], eax
cmp eax, 1
mov dword [ebp - 0x24], eax
jne 0x10090ca9
mov eax, dword [ebp - 0x20]
lock dec dword [eax + 0x3c]
add esi, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 0x14
call fcn.100f97e0
add esp, 8
ud2
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x24]
push 0x10133bc4
push eax
push ecx
push 0x10133b60
push 0
call fcn.100f8a00
add esp, 0x14
ud2
Function at 0x10093f60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x434
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100a3910
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x440]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, 0x200
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
cmp ebx, 0x201
jae 0x10093ff0
jmp 0x10094030
mov ebx, edi
jbe 0x10094084
cmp ebx, 0x201
jb 0x10094030
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov eax, ebx
sub eax, edx
sub ecx, edx
cmp ecx, eax
jae 0x1009401f
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
push eax
call fcn.100f8c90
add esp, 4
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x24]
mov esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
jmp 0x1009403b
lea edi, [ebp - 0x440]
mov esi, 0x200
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1009405e
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x100940c3
cmp edi, ebx
jne 0x10093fe0
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1009410c
add ebx, ebx
cmp ebx, 0x201
jb 0x10094030
jmp 0x10093ff0
cmp edi, esi
mov dword [ebp - 0x10], 0
ja 0x10094129
lea eax, [ebp - 0x40]
push edi
push dword [ebp - 0x20]
push eax
call fcn.10099060
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x40]
mov dword [esi + 0xc], eax
movsd qword [esi + 4], xmm0
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x100940e4
jmp 0x100940f6
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100940f6
add eax, eax
je 0x100940f6
push 2
push eax
push dword [ebp - 0x24]
call fcn.1001d520
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x434
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x10135e94
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_dc80ca78b6ec2b6bba02560470347433bcd0bb3clibrary_alloc_src_vecmod.rsPC
call fcn.100f9870
add esp, 0xc
jmp 0x10094138
push 0x10135ea4
push esi
push edi
call fcn.100f9af0
add esp, 0xc
ud2
Function at 0x100946a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov esi, esp
mov dword [esi + 0x80], ebp
mov dword [esi + 0x84], esp
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x8c], 0x100a3930
movaps xmm0, xmmword [0x10133f10]
mov ebx, ecx
lea edi, [esi + 0xc]
lea ecx, [esi + 0x30]
mov eax, dword fs:[0]
mov dword [esi + 0x88], eax
lea eax, [esi + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov word [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
movups xmmword [esi + 0xc], xmm0
push edi
push eax
call fcn.1009f4a0
add esp, 8
cmp dword [esi + 0x30], 0
je 0x10094746
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], 1
jmp 0x10094773
mov edx, dword [esi + 0x34]
lea ecx, [esi + 0x30]
mov dword [esi + 8], ebx
mov dword [esi + 0x90], 0
mov dword [esi + 4], edx
call fcn.1009f700
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x30], 0
mov ebx, dword [esi + 8]
je 0x10094799
movsd xmm0, qword [esi + 0x34]
mov eax, 1
movsd qword [ebx + 4], xmm0
mov ecx, dword [esi + 0x88]
mov dword [ebx], eax
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 0x38]
lea ecx, [ebx + 8]
push 0x48
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
jmp 0x10094782

Function at 0x10098ff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10099023
mov dword [esi + 4], eax
jmp 0x10099037
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1009903f
mov dword [esi + 4], 0
xor eax, eax
mov dword [esi], eax
mov eax, esi
pop esi
ret
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
mov dword [esi], eax
mov eax, esi
pop esi
ret
Function at 0x1009acd0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, esp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], esp
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x44], 0x100a3ae0
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x40]
mov edx, dword fs:[0]
mov dword [esi + 0x40], edx
mov dword fs:[0], ecx
mov eax, dword [eax]
mov ebx, dword [eax]
mov dword [eax], 0
test ebx, ebx
je 0x1009ad70
xorps xmm0, xmm0
lea eax, [esi + 0x10]
movaps xmmword [esi + 0x10], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov edi, eax
test eax, eax
je 0x1009ad5a
call dword [sym.imp.kernel32.dll_GetLastError]
xorps xmm0, xmm0
mov dword [esi + 4], eax
mov dword [esi], 0
movaps xmmword [esi + 0x10], xmm0
push 0x10
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1009ad86
test edi, edi
setne byte [ebx]
mov eax, dword [esi + 0x40]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10134ea4
push 0x2b
push 0x1013426f
call fcn.100f9870
add esp, 0xc
ud2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 0xc], eax
mov eax, esi
mov dword [esi + 0x10], 0x10135cb8
mov dword [esi + 0x14], 3
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x28], eax
lea eax, [esi + 8]
mov dword [esi + 0x2c], fcn.100956a0
mov dword [esi + 0x30], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x34], fcn.100956a0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 2
push 0x10135cd0
lea eax, [esi + 0x10]
push eax
call fcn.100f99c0
add esp, 8
ud2
Function at 0x1009c440
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100a3b90
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1015fc0c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebp - 0x20], 0x1015fc0c
mov esi, dword [edi]
test esi, esi
jne 0x1009c4e5
mov ebx, dword [edi + 4]
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1009c501
mov esi, eax
test ebx, ebx
je 0x1009c4dd
push 4
push 0xc
call fcn.1001d510
add esp, 8
test eax, eax
je 0x1009c5aa
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], 0
mov ecx, eax
mov eax, dword [0x1015fc40]
nop word cs:[eax + eax]
nop dword [eax]
mov dword [ecx + 8], eax
lock cmpxchg dword [0x1015fc40], ecx
jne 0x1009c4d0
mov eax, esi
test esi, esi
xchg dword [edi], eax
je 0x1009c521
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x10135d9c
push 0x2e
push 0x10135d3c
call fcn.100f9870
add esp, 0xc
jmp 0x1009c5bd
lea eax, [ebp - 0x68]
mov dword [ebp - 0x50], 0x10134414
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x68], 0x10135180
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0x10133fe8
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], fcn.100b1ee0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x3c], 1
push eax
push ecx
push edx
call fcn.10097640
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.100920d0
mov ecx, 7
int 0x29
ud2
mov dword [ebp - 0x10], 0
push 4
push 0xc
call fcn.100f97e0
add esp, 8
ud2
Function at 0x1009ec50
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov esi, esp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], esp
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x24], 0x100a3c70
lea eax, [esi + 0x20]
mov ecx, dword fs:[0]
mov dword [esi + 0x20], ecx
mov dword fs:[0], eax
mov eax, dword [0x1015f8ec]
test eax, eax
je 0x1009ec9c
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
ja 0x1009ecb5
jmp 0x1009ecc2
push 0x1015f8ec
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x1009ecc2
mov edi, eax
mov eax, dword [eax]
or eax, dword [edi + 4]
jne 0x1009ee0c
mov eax, dword [0x1015f8ec]
test eax, eax
je 0x1009edb0
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x1009edcd
mov edi, eax
test eax, eax
jne 0x1009ed2d
push 8
push 0x20
call fcn.1001d510
add esp, 8
test eax, eax
je 0x1009ee22
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x1015f8ec
mov edi, eax
mov eax, dword [0x1015f8ec]
test eax, eax
jne 0x1009ed25
push 0x1015f8ec
call fcn.1009c440
add esp, 4
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
test eax, eax
je 0x1009ed53
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax], 0
xor ecx, 1
or ecx, dword [eax + 4]
mov dword [eax + 4], 0
je 0x1009edfb
mov eax, dword [0x1015fc38]
cmp eax, 3
jne 0x1009edd1
cmp byte [0x1015fc3c], 0
je 0x1009eddf
xorps xmm0, xmm0
mov ebx, esi
movaps xmmword [esi], xmm0
push 0x10
push ebx
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
jne 0x1009edf8
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov dword [esi + 0x28], 1
push 0x10135c30
push 0x1013429c
push ebx
push 0x30
push str.couldnt_generate_random_bytes_with_fallback_RNGlibrary_std_src_syswindows_rand.rs
call fcn.100f9a60
add esp, 0x14
jmp 0x1009ee60
push 0x1015f8ec
call fcn.1009c440
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x1009ecdf
xor edi, edi
jmp 0x1009ee0f
call fcn.100f95b0
cmp byte [0x1015fc3c], 0
jne 0x1009ed66
xorps xmm0, xmm0
mov ebx, esi
movaps xmmword [esi], xmm0
push 2
push 0x10
push ebx
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jne 0x1009ee30
movaps xmm0, xmmword [esi]
mov dword [edi + 4], 0
mov dword [edi], 1
movups xmmword [edi + 8], xmm0
add edi, 8
mov eax, dword [esi + 0x20]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 0x20
call fcn.100f97e0
add esp, 8
ud2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov dword [esi + 0x28], 0
push 0x10135c74
push 0x1013429c
push ebx
push 0x31
push str.couldnt_generate_random_bytes_with_preferred_RNG
call fcn.100f9a60
add esp, 0x14
ud2