joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464b2c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x464b34
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x464d26
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x464d3c
mov eax, esi
call fcn.004628bc
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404a94
lea ecx, [ebp - 0x10]
mov edx, 0x464d50
mov eax, esi
call fcn.004628bc
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404a94
lea ecx, [ebp - 0x14]
mov edx, 0x464d68
mov eax, esi
call fcn.004628bc
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404a94
lea ecx, [ebp - 0x18]
mov edx, 0x464d84
mov eax, esi
call fcn.004628bc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404a94
lea ecx, [ebp - 0x1c]
mov edx, 0x464da0
mov eax, esi
call fcn.004628bc
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404a94
lea ecx, [ebp - 0x24]
mov edx, 0x464db8
mov eax, esi
call fcn.004628bc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408d50
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409298
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x464dd0
mov eax, esi
call fcn.004628bc
mov eax, dword [ebp - 0x28]
call fcn.004619d4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x464de0
mov eax, esi
call fcn.004628bc
mov eax, dword [ebp - 0x2c]
call fcn.004619d4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x464df8
mov eax, esi
call fcn.004628bc
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409298
inc eax
je 0x464cc9
lea ecx, [ebp - 0x34]
mov edx, 0x464df8
mov eax, esi
call fcn.004628bc
mov eax, dword [ebp - 0x34]
call fcn.0040925c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040abe4
fstp qword [ebp - 0x3c]
wait
call fcn.0040af74
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x464ce4
lea ecx, [ebp - 0x40]
mov edx, 0x464df8
mov eax, esi
call fcn.004628bc
mov eax, dword [ebp - 0x40]
call fcn.004619d4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x464e08
mov eax, esi
call fcn.004628bc
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464d2d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404a64
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404a64
ret
Function at 0x470fc4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x47101e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00470fb4
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00460640
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00460240
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471025
lea eax, [ebp - 4]
call fcn.00404a40
ret

Function at 0x4758e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ef0
xor eax, eax
push ebp
push 0x475968
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404d00
test eax, eax
jle 0x475947
mov eax, dword [ebp - 4]
call fcn.00404d00
mov esi, eax
test si, si
jbe 0x475947
mov bx, 1
lea eax, [ebp - 4]
call fcn.00404f58
movzx edi, bx
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, 0x55
mov byte [eax + edi - 1], dl
inc ebx
dec si
jne 0x475928
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47596f
lea eax, [ebp - 4]
call fcn.00404a40
ret

Function at 0x475b7c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ef0
xor eax, eax
push ebp
push 0x475c9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
xor eax, eax
push ebp
push 0x475c7b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
mov edx, 0x44
call fcn.00407848
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
xor eax, eax
mov al, bl
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f00
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x475c0a
mov byte [ebp - 6], 1
xor eax, eax
push ebp
push 0x475c2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x475c35
cmp byte [ebp - 5], 1
jne 0x475c46
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
push ebp
push 0x475c67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x475c71
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x475c89
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475ca6
lea eax, [ebp - 4]
call fcn.00404a40
ret
Function at 0x475cb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ef0
xor eax, eax
push ebp
push 0x475d36
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
mov edx, 0x1e
call fcn.00407848
mov dword [ebp - 0x1e], 3
mov word [ebp - 0x12], 0x14
lea eax, [ebp - 0x28]
mov ecx, 0x475d4c
mov edx, dword [ebp - 4]
call fcn.00404d4c
mov eax, dword [ebp - 0x28]
call fcn.00404f00
mov dword [ebp - 0x1a], eax
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475d3d
lea eax, [ebp - 0x28]
call fcn.00404a40
lea eax, [ebp - 4]
call fcn.00404a40
ret

Function at 0x476574
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ef0
xor eax, eax
push ebp
push 0x4765df
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0047642c
test eax, eax
je 0x4765c9
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jbe 0x4765c9
push 0
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push 0x7d0
call sub.kernel32.dll_Sleep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4765e6
lea eax, [ebp - 4]
call fcn.00404a40
ret

Function at 0x4765f0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe48
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ef0
xor eax, eax
push ebp
push 0x4766c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404a40
lea eax, [ebp - 0x198]
push eax
push 2
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00404f00
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4766a6
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x1b4], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 0x1ac], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 0x1a4], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 0x19c], 0
lea edx, [ebp - 0x1b8]
mov ecx, 3
mov eax, 0x4766d8
call fcn.00409fc8
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4766c8
lea eax, [ebp - 4]
call fcn.00404a40
ret
Function at 0x476794
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x476869
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov eax, ebx
call fcn.00404f00
push eax
call sub.WSock32.Dll_inet_addr
mov esi, eax
cmp esi, dword [0x490634]
jne 0x4767ea
mov ecx, 0x476884
mov dl, 1
mov eax, dword [0x407e34]
call fcn.0040ccfc
call fcn.004043f8
call sub.Icmp.Dll_IcmpCreateFile
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47680c
mov ecx, 0x4768d4
mov dl, 1
mov eax, dword [0x407e34]
call fcn.0040ccfc
call fcn.004043f8
mov eax, dword [ebp - 4]
push eax
push 0x11c
lea eax, [ebp - 0x124]
push eax
push 0
lea eax, [ebp - 0x128]
mov edx, edi
call fcn.00404c38
mov eax, dword [ebp - 0x128]
call fcn.00404d00
push eax
push edi
push esi
push ebx
call sub.Icmp.Dll_IcmpSendEcho
cmp dword [ebp - 0x120], 0
sete byte [ebp - 5]
push ebx
call sub.Icmp.Dll_IcmpCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476870
lea eax, [ebp - 0x128]
call fcn.00404a40
ret

Function at 0x47978c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4797ba
mov eax, ebx
call fcn.0047a240
cmp dword [ebx + 0x40], 0
je 0x4797b3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47982b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47981d
cmp dword [ebx + 8], 0
je 0x4797dc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4797ee
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47981d
cmp dword [ebx + 8], 0
je 0x4797cf
cmp eax, 3
je 0x479801
dec eax
jne 0x4797cf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4797cf
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4797cf
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x479849
cmp dword [ebx + 0x14], 0xcc
je 0x479849
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00479854
pop ebx
ret

Function at 0x48a2a4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ef0
xor eax, eax
push ebp
push 0x48a30f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0048a15c
test eax, eax
je 0x48a2f9
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jbe 0x48a2f9
push 0
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push 0x3e8
call sub.kernel32.dll_Sleep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a316
lea eax, [ebp - 4]
call fcn.00404a40
ret
Function at 0x48af4c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48b000
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0x10]
mov edx, 0x48b018
call fcn.00404ad8
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x48afea
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404f00
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test bl, bl
je 0x48afb6
mov dword [ebp - 0x14], 2
jmp 0x48afbd
mov dword [ebp - 0x14], 0x80000000
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x48afe1
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b007
lea eax, [ebp - 0x10]
call fcn.00404a40
ret

Function at 0x48b02c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48b0a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040508c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f00
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x48b084
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404f60
jmp 0x48b090
mov eax, ebx
mov edx, 0x48b0bc
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b0ad
lea eax, [ebp - 4]
call fcn.00404a40
ret
Function at 0x40b540
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword [0x54ae7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40b70b
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40b569
mov eax, 0x7000000
jmp 0x40b571
test eax, eax
je 0x40b6e6
mov dword [esp + 0x14], eax
mov ecx, dword [0x54ae7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x94]
mov ebx, dword [ecx + 0x98]
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
lea edx, [ebp + ebx]
shr edx, 6
inc edx
mov dword [ecx + 0x94], ebx
mov dword [ecx + 0x98], ebp
mov dword [esp], edx
call sym.runtime.uint32tofloat64
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov ecx, eax
shr ecx, 0x14
and ecx, 0x7ff
mov edx, eax
shr edx, 0xf
and edx, 0x1f
shl eax, 5
mov ebx, dword [esp + 0x28]
shr ebx, 0x1b
or ebx, eax
lea eax, [0x51ce20]
movsd xmm0, qword [eax + edx*8]
mov ebp, ecx
add ecx, 0xfffffc01
add edx, 1
mov esi, 0
adc esi, 0
test esi, esi
jne 0x40b6fe
cmp edx, 0x21
jae 0x40b6f2
movsd qword [esp + 0x18], xmm0
add ebp, 0xfffffc01
mov ebp, 0xffffffff
adc ebp, 0
and ebx, 0xfffff
mov dword [esp + 0x10], ebx
movsd xmm0, qword [eax + edx*8]
movsd qword [esp + 0x20], xmm0
mov dword [esp + 4], ebp
mov dword [esp], ecx
call sym.runtime.int64tofloat64
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sym.runtime.uint64tofloat64
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x18]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x20]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x4bbac8]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x4bbb08]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40b6c1
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x4bbb40]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, edx
mov ecx, 0x21
call sym.runtime.panicIndexU
mov eax, edx
mov ecx, 0x21
call sym.runtime.panicExtendIndexU
nop
call sym.runtime.morestack_noctxt
jmp sym.runtime.fastexprand
Function at 0x412970
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [0x54ae7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x412b7e
sub esp, 0x18
mov eax, dword [0x54adb8]
test eax, eax
jne 0x412b67
nop
nop
lea eax, [0x54ada8]
mov dword [esp], eax
call sym.runtime.lock2
mov eax, dword [0x54adac]
test eax, eax
je 0x4129b8
cmp dword [eax + 8], 0xcc
jne 0x412a2e
mov edx, dword [0x54adb0]
test edx, edx
jne 0x412a10
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x54f510]
mov dword [esp + 8], eax
call sym.runtime.persistentalloc
mov eax, dword [esp + 0xc]
mov dword [0x54adb0], eax
mov ecx, dword [0x54adb4]
mov dword [eax], ecx
mov eax, dword [0x54adb0]
mov dword [0x54adb4], eax
movzx eax, byte [0x54b1e0]
test al, al
jne 0x412a10
xor eax, eax
jmp 0x412b38
mov edx, dword [0x54adb0]
mov ebx, dword [edx + 4]
mov dword [0x54adb0], ebx
mov ebx, dword [0x54adac]
mov dword [edx + 4], ebx
mov dword [0x54adac], edx
mov edx, dword [0x54adac]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x412b17
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.runtime_internal_atomic.Xadd
mov eax, dword [0x54af50]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
test eax, eax
jne 0x412a78
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
jmp 0x412a8e
call sym.runtime.gcWriteBarrier2
mov eax, dword [esp + 0x20]
mov dword [edi], eax
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + ecx*4 + 0x10]
mov dword [edi + 4], ebx
mov dword [edx + ecx*4 + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [edx + ecx*4 + 0x18], eax
mov eax, dword [0x54af50]
test eax, eax
jne 0x412ab2
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
jmp 0x412ae0
call sym.runtime.gcWriteBarrier6
mov eax, dword [esp + 0x28]
mov dword [edi], eax
mov ebx, dword [edx + ecx*4 + 0x1c]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [edi + 8], ebx
mov ebp, dword [edx + ecx*4 + 0x20]
mov dword [edi + 0xc], ebp
mov ebp, dword [esp + 0x1c]
mov dword [edi + 0x10], ebp
mov esi, dword [edx + ecx*4 + 0x14]
mov dword [edi + 0x14], esi
mov dword [edx + ecx*4 + 0x1c], eax
mov dword [edx + ecx*4 + 0x20], ebx
mov dword [edx + ecx*4 + 0x14], ebp
nop
nop
lea eax, [0x54ada8]
mov dword [esp], eax
call sym.runtime.unlock2
nop
lea eax, [0x54ada4]
mov dword [esp], eax
mov dword [esp + 4], 8
call sym.runtime_internal_atomic.Or
add esp, 0x18
ret
mov ecx, 0xcc
call sym.runtime.panicIndexU
lea edx, [0x51c250]
movzx ebx, byte [edx + eax]
lea ebp, [0x54b1e0]
mov byte [ebp + ecx], bl
lea eax, [ecx + 1]
cmp eax, 0x80
jge 0x412a10
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
cmp eax, 5
jb 0x412b21
mov ecx, 5
call sym.runtime.panicIndex
lea eax, [0x4a0be2]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call sym.runtime.throw
nop
call sym.runtime.morestack_noctxt
jmp sym.runtime.queuefinalizer
Function at 0x420670
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x54ae7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x420758
sub esp, 0x1c
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jae 0x420752
mov ecx, dword [edx]
lea ecx, [ecx + eax*8]
mov dword [esp], ecx
call sym.runtime._atomicScavChunkData_.load
movzx eax, word [esp + 4]
movzx ecx, word [esp + 6]
mov edx, dword [esp + 8]
movzx ebx, byte [esp + 0xc]
mov word [esp + 0x10], ax
mov word [esp + 0x12], cx
mov dword [esp + 0x14], edx
mov byte [esp + 0x18], bl
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x2c]
lea edx, [esp + 0x10]
mov dword [esp], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call sym.runtime._scavChunkData_.alloc
movzx eax, byte [esp + 0x18]
test al, 2
je 0x420706
cmp word [esp + 0x10], 0x1f0
jbe 0x420706
and eax, 0xfffffffd
nop
mov byte [esp + 0x18], al
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jae 0x42074d
mov ecx, dword [edx]
lea eax, [ecx + eax*8]
movzx ecx, word [esp + 0x10]
movzx edx, word [esp + 0x12]
mov ebx, dword [esp + 0x14]
movzx ebp, byte [esp + 0x18]
mov dword [esp], eax
mov word [esp + 4], cx
mov word [esp + 6], dx
mov dword [esp + 8], ebx
xchg ebp, eax
mov byte [esp + 0xc], al
xchg ebp, eax
call sym.runtime._atomicScavChunkData_.store
add esp, 0x1c
ret
call sym.runtime.panicIndexU
call sym.runtime.panicIndexU
nop
call sym.runtime.morestack_noctxt
jmp sym.runtime._scavengeIndex_.alloc
Function at 0x420770
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x54ae7c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4208a4
sub esp, 0x20
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jae 0x42089e
mov ecx, dword [edx]
lea ecx, [ecx + eax*8]
mov dword [esp], ecx
call sym.runtime._atomicScavChunkData_.load
movzx eax, word [esp + 4]
movzx ecx, word [esp + 6]
mov edx, dword [esp + 8]
movzx ebx, byte [esp + 0xc]
mov word [esp + 0x14], ax
mov word [esp + 0x16], cx
mov dword [esp + 0x18], edx
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x2c]
lea edx, [esp + 0x14]
mov dword [esp], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call sym.runtime._scavChunkData_.free
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x28]
cmp edx, ecx
jae 0x420897
mov ecx, dword [eax]
lea ecx, [ecx + edx*8]
movzx ebx, word [esp + 0x14]
movzx ebp, word [esp + 0x16]
mov esi, dword [esp + 0x18]
movzx edi, byte [esp + 0x1c]
mov dword [esp], ecx
mov word [esp + 4], bx
mov word [esp + 6], bp
mov dword [esp + 8], esi
xchg edi, eax
mov byte [esp + 0xc], al
xchg edi, eax
call sym.runtime._atomicScavChunkData_.store
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea eax, [ecx + eax - 1]
shl eax, 0xd
mov ecx, dword [esp + 0x28]
shl ecx, 0x16
add eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0x28], eax
jae 0x42085a
mov dword [ecx + 0x28], eax
lea eax, [ecx + 0x20]
mov dword [esp], eax
call sym.runtime._atomicOffAddr_.Load
mov eax, dword [esp + 0x10]
cmp dword [esp + 4], eax
jae 0x420893
mov ecx, dword [esp + 0x24]
add ecx, 0x20
nop
mov dword [esp], ecx
xor ecx, ecx
sub ecx, eax
mov eax, 0
sbb eax, 0
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sym.runtime_internal_atomic.Storeint64
add esp, 0x20
ret
mov eax, edx
call sym.runtime.panicIndexU
call sym.runtime.panicIndexU
nop
call sym.runtime.morestack_noctxt
jmp sym.runtime._scavengeIndex_.free