joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1025d717
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10258d0a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10258d0a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1025d78e
cmp word [ecx], dx
je 0x1025d78e
mov eax, dword [0x104283fc]
push edi
dec eax
push eax
push 0x104282e8
call fcn.1025d907
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1025d801
cmp word [eax], dx
je 0x1025d801
mov eax, dword [edi]
test eax, eax
je 0x1025d7b2
cmp word [eax], dx
je 0x1025d7b2
lea eax, [ebp - 0x10]
push eax
call fcn.1025d968
jmp 0x1025d7bb
lea eax, [ebp - 0x10]
push eax
call fcn.1025dc63
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1025d82b
mov eax, dword [0x104282e4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10427fd8
call fcn.1025d907
add esp, 0xc
test al, al
je 0x1025d82b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1025d7f6
cmp word [eax], di
je 0x1025d7f6
lea eax, [ebp - 0x10]
push eax
call fcn.1025d968
pop ecx
jmp 0x1025d82d
lea eax, [ebp - 0x10]
push eax
call fcn.1025dc63
jmp 0x1025d7f3
mov eax, dword [edi]
test eax, eax
je 0x1025d818
cmp word [eax], dx
je 0x1025d818
lea eax, [ebp - 0x10]
push eax
call fcn.1025dda5
pop ecx
jmp 0x1025d82b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1025d8f6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1025de97
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1025d8f6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1025d8f6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1025d8f6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1025d883
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.102597fc
test ebx, ebx
je 0x1025d8f1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.102597fc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1025d8f6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1025d8f6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1024d244
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1025d8f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1023b4d8
leave
ret
Function at 0x1025df9d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10258d0a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1025e00c
cmp esi, dword [ebp - 4]
je 0x1025e007
cmp dword [ebp + 0xc], 0
je 0x1025e007
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1025dfe4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1025e066
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1025e00e
xor eax, eax
inc eax
jmp 0x1025e00e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1025fcd9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1044bf40]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1025fd19
cmp byte [ebx], 0xa
jne 0x1025fd19
or byte [edi + eax + 0x28], 4
jmp 0x1025fd1e
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1025fe1d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1025fe00
inc eax
cmp dl, 0xd
je 0x1025fd4a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1025fd70
cmp eax, ecx
jae 0x1025fd7e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1025fd32
jmp 0x1025fe1d
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1025fdfb
cmp dword [ebp - 0x10], 0
je 0x1025fdfb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1044bf40]
test byte [eax + edi + 0x28], 0x48
je 0x1025fdd5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1025fdc0
mov byte [esi], dl
jmp 0x1025fdd1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1044bf40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1025fe1d
cmp byte [ebp - 1], 0xa
jne 0x1025fde4
cmp esi, ebx
jne 0x1025fde4
mov byte [esi], 0xa
jmp 0x1025fe1c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1025f43c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1025fe1d
mov byte [esi], 0xd
jmp 0x1025fe1c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1044bf40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1025fe1a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1025fe1d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1025fe26
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1044bf40]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1025fe6c
cmp word [ebx], dx
jne 0x1025fe6c
or byte [eax + edi + 0x28], 4
jmp 0x1025fe71
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1025ffd4
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1025ffb4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1025feb2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1025fee8
cmp eax, edx
jae 0x1025fef6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1025fe8d
jmp 0x1025ffd4
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1025ffaf
cmp dword [ebp - 0x18], 0
je 0x1025ffaf
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1044bf40]
test byte [eax + edi + 0x28], 0x48
je 0x1025ff85
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1025ff49
mov word [esi], cx
jmp 0x1025ff80
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1044bf40]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1044bf40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1044bf40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1025ffd4
pop eax
cmp word [ebp - 4], ax
jne 0x1025ff95
cmp esi, ebx
jne 0x1025ff95
mov word [esi], ax
jmp 0x1025ffd1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1025f43c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1025ffd4
push 0xd
pop eax
jmp 0x1025ff90
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1044bf40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1025ffce
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1025ffd4
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x102600e2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1026017f
push ebx
push esi
call fcn.102601d0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1025ffe6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1026012c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1026017e
push edi
push eax
call fcn.1025ac78
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1026014c
call fcn.102586b5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1026017d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1025ffe6
add esp, 0x20
test eax, eax
jne 0x1026016b
push edi
call fcn.102586b5
jmp 0x10260173
push ebx
call fcn.102586b5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10260182
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10260193
pop esi
ret
push ebx
push edi
push esi
call fcn.102601d0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1025ac78
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x102601bb
push ebx
push esi
push edi
call fcn.1023e3e0
add esp, 0xc
push 0
call fcn.102586b5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10260212
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1026047d
Function at 0x10260fbd
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10261154
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1026112c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1026112c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x102610e1
jg 0x10261019
test eax, eax
je 0x102610d7
push 1
push 0x1000
call fcn.10258658
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1026103c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x102610ce
push 0x8000
push ebx
call fcn.10260eb7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10261065
jg 0x10261060
cmp ecx, 0x1000
jb 0x10261065
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10250b9f
add esp, 0x10
cmp eax, 0xffffffff
je 0x102610aa
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10261060
jl 0x10261091
test ecx, ecx
jne 0x10261052
push dword [ebp - 0xc]
push ebx
call fcn.10260eb7
push esi
call fcn.102586b5
add esp, 0xc
xor ebx, ebx
jmp 0x1026113a
cmp byte [edi + 0x24], 0
je 0x102610c1
cmp dword [edi + 0x20], 5
jne 0x102610c1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x102610cc
mov ebx, dword [edi + 0x18]
jmp 0x102610ce
xor ebx, ebx
push esi
call fcn.102586b5
pop ecx
jmp 0x1026113a
test ecx, ecx
jg 0x102610a3
jl 0x102610e1
test eax, eax
jae 0x102610a3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1025f43c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10261101
cmp byte [edi + 0x1c], 0
je 0x102610a3
jmp 0x10261132
push ebx
call fcn.1024c4ca
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x102610a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1026113a
cmp byte [edi + 0x1c], 0
je 0x10261137
mov ebx, dword [edi + 0x18]
jmp 0x1026113a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1025f43c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408e84
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x73e02e0f
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x28e24497
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406024
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406048
xor eax, eax
test eax, eax
je 0x40605a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40605a
xor ecx, ecx
jmp 0x40605d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406107
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x40613e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406118
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x406113
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40616f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x406151
pop edi
not eax
pop esi
ret 0xc

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x10007170
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
push 1
push esi
call sub.kernel32.dll_TlsSetValue
mov eax, dword [edi]
mov ecx, dword [eax + 0x410]
test ecx, ecx
je 0x100071cf
mov edx, dword [eax + 0x40c]
lea ebx, [ecx - 1]
cmp ecx, 1
mov dword [eax + 0x410], ebx
jne 0x100071a8
test edx, edx
je 0x100071c4
mov eax, dword [0x100f2e2c]
push edi
push 0
push dword [eax]
call sub.kernel32.dll_HeapFree
push 0
push esi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sym.crossbeam_epoch::internal::Local::finalize::h01bc6b0953415ad6
add esp, 4
jmp 0x100071a8
push 0x1007374c
call sym.core::panicking::panic_const::panic_const_sub_overflow::h31f5191bdbee8bd5
nop dword [eax]

Function at 0x10009140
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0x1007407c
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push 0x10074084
push edx
push 0x10073b38
push eax
push 0x10073b38
push ecx
push 0
call sym.core::panicking::assert_failed_inner::ha88f2a696e3dfa33
nop
Function at 0x10009170
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
xorps xmm0, xmm0
mov edi, ecx
lea esi, [ebp - 0x30]
mov dword [ebp - 0x10], edx
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x30], xmm0
push 2
push 0x20
push esi
push 0
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x100091ad
mov ebx, eax
push 0x20
push esi
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x100091f8
movups xmm0, xmmword [ebp - 0x30]
movups xmm1, xmmword [ebp - 0x20]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
movups xmmword [edi], xmm0
xorps xmm0, xmm0
movups xmmword [edi + 0x10], xmm1
movsd qword [edi + 0x20], xmm0
movsd qword [edi + 0x28], xmm0
add eax, 0xffffff00
mov dword [edi + 0x40], 0
adc ecx, 0xffffffff
jo 0x1000924e
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x3c], ecx
mov ecx, edi
mov dword [edi + 0x38], eax
call sym.__LT_rand_chacha..chacha..ChaCha12Core_u20_as_u20_rand_core..block..BlockRngCore_GT_::generate::hf46067daa4b9b543
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x100f2e44]
movzx eax, byte [eax]
sub esp, 0xc
mov dword [esp + 8], 4
mov dword [esp + 4], 0
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
add esp, 0xc
test eax, eax
je 0x10009258
mov ecx, dword [0x100f2e2c]
and ebx, 0x7fffffff
mov dword [eax], ebx
push eax
push 0
push dword [ecx]
call sub.kernel32.dll_HeapFree
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
add eax, 0xffffff00
mov dword [edi + 0x40], 0
adc ecx, 0xffffffff
jno 0x100091e0
push 0x10073bc8
call sym.core::panicking::panic_const::panic_const_sub_overflow::h31f5191bdbee8bd5
push 4
push 4
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
nop word cs:[eax + eax]
nop dword [eax + eax]
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
push 5
push str.Error_rustc_f6e511eec7342f59a25f7c0534f1dbea00d01b14library_alloc_srccollections_btree_navigate.rs
push dword [eax + 0x14]
call dword [ecx + 0xc]
add esp, 0xc
pop ebp
ret
Function at 0x1000c5b0
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0x28], ecx
call 0x1000c5c1
pop eax
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
jmp 0x1000c60e
xor esi, esi
jmp 0x1000c635
movzx eax, byte [eax]
add dword [ebp - 0x20], 1
mov byte [ecx], al
mov ecx, ebx
adc ecx, 0
add esi, edi
cmp esi, 4
je 0x1000c693
cmp esi, 4
ja 0x1000c75d
mov edi, dword [ebp - 0x20]
mov eax, ecx
mov ebx, ecx
cmp edi, edx
sbb eax, 0
mov eax, edi
jb 0x1000c650
mov eax, edx
mov ecx, edx
sub ecx, eax
jb 0x1000c76a
mov edi, 4
add eax, dword [ebp - 0x28]
sub edi, esi
cmp edi, ecx
cmovae edi, ecx
lea ecx, [ebp + esi - 0x18]
cmp edi, 1
je 0x1000c620
push edi
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [ebp - 0x20], edi
mov ecx, ebx
adc ecx, 0
test edi, edi
je 0x1000c6d0
mov edx, dword [ebp - 0x1c]
add esi, edi
cmp esi, 4
jne 0x1000c635
mov eax, dword [ebp - 0x10]
add eax, 4
jb 0x1000c79b
mov dword [ebp - 0x10], eax
imul eax, dword [ebp - 0x18], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, dword [ebp - 0x14]
rol eax, 0xd
lea eax, [eax + eax*4 - 0x19ab949c]
mov dword [ebp - 0x14], eax
jmp 0x1000c60e
mov eax, dword [esi*4 + 0x1000c7c4]
add eax, dword [ebp - 0x24]
jmp eax
push 0x10073e0c
push 4
push esi
call sym.core::slice::index::slice_start_index_len_fail::hb6088e54b0b075d5
mov dword [ebp - 0x40], 0x1007394c
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x40]
push 0x100739a0
push eax
call sym.core::panicking::panic_fmt::hced28cb7137b21e1
push 0x10073d6c
call sym.core::panicking::panic_const::panic_const_add_overflow::hf3b41c4c75c49a6d
push 0x10073d7c
call sym.core::panicking::panic_const::panic_const_add_overflow::hf3b41c4c75c49a6d
push 0x10073d9c
call sym.core::panicking::panic_const::panic_const_add_overflow::hf3b41c4c75c49a6d
push 0x10073d8c
call sym.core::panicking::panic_const::panic_const_add_overflow::hf3b41c4c75c49a6d
nop
insd dword es:[edi], dx
add dword [eax], eax
add byte [edi], ah
add byte [eax], al
add byte [ebx], bl
add dword [eax], eax
add byte [ebx], dh
add dword [eax], eax
add byte [esi + 0x2e], ah
nop dword [eax + eax]
nop