joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474bd0
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, 0x28
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x492630
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov eax, dword [eax]
cmp byte [eax], 0
mov byte [eax], 0
je 0x474e20
mov byte [ebp - 0x1d], 0
mov eax, dword [0x4eb180]
cmp eax, 3
jne 0x474dc0
cmp byte [ebp - 0x1d], 0
jne 0x474dd2
mov eax, dword [0x4eb06c]
test eax, eax
je 0x474df3
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x474c51
cmp byte [eax + 4], 0
mov esi, eax
jne 0x474cd9
mov eax, dword [0x4eb06c]
test eax, eax
je 0x474e02
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474c93
mov esi, eax
cmp eax, 1
jne 0x474cd3
lea eax, [ebp - 0x34]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_std_src_threadlocal.rs
mov edx, 0x46
push 0x4be870
push 0x4be04c
push eax
call fcn.00493e90
add esp, 0xc
ud2
movzx eax, byte [0x4eb238]
mov ecx, 8
mov edx, 4
call fcn.004071f0
test eax, eax
je 0x474e4c
mov dword [eax], 0x4eb06c
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x4eb06c]
test eax, eax
je 0x474e11
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov word [esi + 4], 1
mov eax, dword [0x4eb1a0]
add esi, 5
cmp eax, esi
jne 0x474d06
mov eax, dword [0x4eb1a4]
inc eax
jne 0x474d26
mov ecx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
mov edx, 0x26
push 0x4beb88
call fcn.00493f10
add esp, 4
ud2
lea eax, [0x4eb19c]
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x474dd2
mov dword [0x4eb1a0], esi
mov eax, 1
mov dword [0x4eb1a4], eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x26], 0
mov dword [ebp - 0x2a], 0
cmp dword [0x4eb184], 0
jne 0x474e39
lea ecx, [0x4eb188]
mov dword [0x4eb184], 0xffffffff
mov dword [ebp - 0x10], 1
call fcn.00474f10
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x2c]
mov dword [0x4eb198], eax
movsd qword [0x4eb190], xmm1
movsd qword [0x4eb188], xmm0
inc dword [0x4eb184]
dec dword [0x4eb1a4]
jne 0x474dd2
lea eax, [0x4eb19c]
mov dword [0x4eb1a0], 0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x474dd2
lea ecx, [ebp - 0x1d]
call fcn.00495fd0
cmp byte [ebp - 0x1d], 0
je 0x474c2b
mov eax, dword [0x4eb1dc]
cmp eax, 3
jne 0x474de2
call dword [0x4eb1e0]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x4eb06c
call fcn.00495db0
jmp 0x474c39
mov ecx, 0x4eb06c
call fcn.00495db0
jmp 0x474c5f
mov ecx, 0x4eb06c
call fcn.00495db0
jmp 0x474ccb
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x4beae8
call fcn.00493be0
add esp, 4
ud2
mov ecx, 0x4be840
mov dword [ebp - 0x10], 2
call fcn.00493df0
ud2
mov ecx, 4
mov edx, 8
call fcn.00493860
ud2
Function at 0x475590
Capabilities:
Write 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_NtWriteFile]
cmp eax, 0x103
jne 0x4755e4
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x475607
test eax, eax
js 0x4755f3
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov al, 4
jmp 0x4755ff
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
add esp, 0x34
pop esi
pop edi
ret
mov eax, esp
mov dword [esp + 0x1c], 0x4bf538
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.00473f10
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.00474040
mov ecx, 7
int 0x29
ud2
Function at 0x475b20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x4eb04c]
test eax, eax
je 0x475bb8
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x475b46
cmp dword [eax + 4], 0
je 0x475b46
add eax, 8
pop esi
ret
mov eax, dword [0x4eb04c]
test eax, eax
je 0x475bc7
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x475bb4
mov esi, eax
test eax, eax
jne 0x475b9d
movzx eax, byte [0x4eb238]
mov ecx, 0x10
mov edx, 4
call fcn.004071f0
test eax, eax
je 0x475be2
mov dword [eax], 0x4eb04c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x4eb04c]
test eax, eax
je 0x475bd6
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
xor eax, eax
pop esi
ret
mov ecx, 0x4eb04c
call fcn.00495db0
jmp 0x475b2f
mov ecx, 0x4eb04c
call fcn.00495db0
jmp 0x475b50
mov ecx, 0x4eb04c
call fcn.00495db0
jmp 0x475b95
mov ecx, 4
mov edx, 0x10
call fcn.00493860
ud2
Function at 0x47ce90
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, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4927d0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x4eb07c]
test eax, eax
je 0x47cf95
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x47cee7
cmp dword [eax + 4], 0
mov edi, eax
je 0x47cee7
add edi, 8
jmp 0x47cf82
mov eax, dword [0x4eb07c]
test eax, eax
je 0x47cfa4
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x47cf80
mov esi, eax
test eax, eax
jne 0x47cf56
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x4eb07c
mov ecx, 0xc
mov edx, 4
movzx eax, byte [0x4eb238]
call fcn.004071f0
test eax, eax
je 0x47cfbf
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x28]
movsd qword [esi], xmm0
mov eax, dword [0x4eb07c]
test eax, eax
je 0x47cfb3
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 0x47cf82
test ecx, ecx
je 0x47cf82
lock dec dword [ecx]
jne 0x47cf82
call fcn.0047d000
jmp 0x47cf82
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x4eb07c
call fcn.00495db0
jmp 0x47cecb
mov ecx, 0x4eb07c
call fcn.00495db0
jmp 0x47cef5
mov ecx, 0x4eb07c
call fcn.00495db0
jmp 0x47cf4e
mov ecx, 4
mov edx, 0xc
mov dword [ebp - 0x10], 0
call fcn.00493860
ud2
Function at 0x47d490
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1a8
mov edi, dword [edx]
mov ebp, dword [edx + 4]
movzx ebx, word [edx + 8]
mov eax, dword [0x4eb1dc]
mov esi, ecx
cmp eax, 3
jne 0x47d61b
cmp ebp, 0x17f
ja 0x47d62c
lea eax, [esp + 0x28]
push ebp
push edi
mov edi, eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp + 1]
cmp ebp, 6
mov byte [esp + ebp + 0x28], 0
ja 0x47d4f5
xor edx, edx
nop
cmp byte [esp + edx + 0x28], 0
je 0x47d58f
inc edx
cmp eax, edx
jne 0x47d4e0
jmp 0x47d5e5
lea ecx, [esp + 0x2b]
and ecx, 0xfffffffc
sub ecx, edi
je 0x47d528
je 0x47d528
xor edx, edx
nop word cs:[eax + eax]
nop
cmp byte [esp + edx + 0x28], 0
je 0x47d58f
inc edx
cmp ecx, edx
jne 0x47d510
lea edx, [ebp - 7]
mov dword [esp], ebx
cmp ecx, edx
jbe 0x47d530
jmp 0x47d56e
mov dword [esp], ebx
lea edx, [ebp - 7]
xor ecx, ecx
movdqa xmm0, xmmword [0x497340]
movdqa xmm1, xmmword [0x497350]
movq xmm2, qword [esp + ecx + 0x28]
movdqa xmm3, xmm2
paddd xmm3, xmm0
pandn xmm2, xmm3
pand xmm2, xmm1
movd edi, xmm2
pshufd xmm2, xmm2, 0x55
movd ebx, xmm2
or ebx, edi
jne 0x47d56e
add ecx, 8
cmp ecx, edx
jbe 0x47d540
mov ebx, dword [esp]
sub eax, ecx
je 0x47d5e5
lea edi, [esp + ecx + 0x28]
xor edx, edx
nop dword [eax + eax]
cmp byte [edi + edx], 0
je 0x47d58d
inc edx
cmp eax, edx
jne 0x47d580
jmp 0x47d5e5
add edx, ecx
cmp edx, ebp
jne 0x47d5e5
pxor xmm0, xmm0
lea eax, [esp + 4]
mov dword [esp + 4], 0
lea ecx, [esp + 8]
movdqu xmmword [esp + 8], xmm0
movdqu xmmword [esp + 0x18], xmm0
mov dword [esp + 0x10], 1
push eax
push ecx
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x47d5fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x47d60e
mov eax, dword [0x4bec60]
mov ecx, dword [0x4bec64]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x47d610
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], bx
mov dword [esi], eax
add esp, 0x1a8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00496270
cmp ebp, 0x17f
jbe 0x47d4bf
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.004962c0
add esp, 0x1b0
jmp 0x47d616
Function at 0x47dd70
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], 0x492810
mov esi, edx
mov edi, ecx
mov ecx, 8
mov edx, 4
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x4eb238]
call fcn.004071f0
test eax, eax
je 0x47de4c
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 0x47dec0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x47dded
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x47de3b
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]
cmp dword [eax + 4], 0
je 0x47de22
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x20]
call fcn.00407250
mov ecx, dword [ebp - 0x28]
mov edx, 4
call fcn.00407250
call dword [sym.imp.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.00493860
ud2

Function at 0x47dff0
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], 0x492830
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 0x47e06e
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 dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x4bf708
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, 0x4bf734
mov dword [esi + 0x2c], fcn.0047b0b0
mov dword [esi + 0x3c], 1
call fcn.00493a60
ud2
Function at 0x481930
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 [0x4eb08c]
test eax, eax
je 0x481a15
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x481961
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x481a0a
mov eax, dword [0x4eb08c]
test eax, eax
je 0x481a24
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4819e7
mov esi, eax
test eax, eax
jne 0x4819c7
movzx eax, byte [0x4eb238]
mov ecx, 0x20
mov edx, 8
call fcn.004071f0
test eax, eax
je 0x481a3f
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x4eb08c
mov esi, eax
mov eax, dword [0x4eb08c]
test eax, eax
je 0x481a33
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 0x4819eb
movaps xmm0, xmmword [esp]
jmp 0x4819f9
xor esi, esi
jmp 0x481a0d
lea ecx, [esp + 0x10]
call fcn.0047dff0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x4eb08c
call fcn.00495db0
jmp 0x481948
mov ecx, 0x4eb08c
call fcn.00495db0
jmp 0x48196f
mov ecx, 0x4eb08c
call fcn.00495db0
jmp 0x4819bf
mov ecx, 8
mov edx, 0x20
call fcn.00493860
ud2
Function at 0x486fa3
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x486fa5
test al, 1
je 0x486fbc
test al, 2
jne 0x486fcb
xor eax, 3
ret
push 0x23
pop edx
mov ecx, str.assertion_failed:_prev.is_running__
push 0x4c2768
jmp 0x486fd8
push 0x25
pop edx
mov ecx, 0x4c2778
push 0x4c27a0
call fcn.00493be0
pop eax
ud2

Function at 0x4876f0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push eax
mov bl, byte [esp + 0x10]
mov esi, ecx
mov ecx, edx
call fcn.0048695f
mov eax, dword [eax]
movzx ecx, bl
mov edx, esp
mov dword [edx], ecx
push 4
push edx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x487732
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
and word [esi + 1], 0
xor ecx, ecx
mov byte [esi + 3], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 4
pop esi
pop ebx
ret
Function at 0x48798f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [esp], ecx
xor ecx, ecx
mov eax, dword [esp + 0x50]
cmp dword [edx + 0xc], 0xffffffff
lea ebp, [edx + 0xc]
mov edi, closesocket
mov esi, edx
mov dword [esp + 0x24], edx
cmove ebp, ecx
cmp eax, edi
cmovb edi, eax
mov dword [esp + 0x28], edi
lea edi, [esp + 0xc]
mov edx, dword [esi + 8]
mov ecx, edi
push dword [esp + 0x48]
call fcn.004876e2
pop eax
mov edx, dword [esp + 0xc]
cmp edx, 2
je 0x487b00
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test edx, edx
jne 0x487b08
mov dword [esp + 0x2c], ecx
mov ecx, ebp
mov edx, 0x4c0d84
mov dword [esp + 0x30], eax
call fcn.00421dff
push 0
push dword [esp + 0x2c]
push dword [esp + 0x54]
push dword [ebp]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x487a27
mov dword [esp + 8], eax
mov byte [esp + 4], 4
jmp 0x487abb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
lea ecx, [esp + 4]
mov byte [esp + 4], al
and word [esp + 5], 0
mov byte [esp + 7], al
mov dword [esp + 8], esi
call fcn.0041457c
cmp al, 0xd
jne 0x487abb
mov eax, dword [ebp + 4]
test eax, eax
je 0x487aae
mov dword [esp + 0x20], esi
mov esi, dword [eax + 4]
mov edx, dword [eax]
lock inc dword [esi]
jle 0x487b2a
add edx, 8
mov ecx, edi
push dword [eax + 0xc]
push dword [eax + 8]
push esi
call fcn.0042c638
add esp, 0xc
push 4
pop ecx
call fcn.004734e9
cmp byte [esp + 0xc], 4
je 0x487abb
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
cmp bl, 4
je 0x487abb
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
call fcn.004734e9
jmp 0x487ad0
and dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
cmp bl, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
je 0x487b12
lea ecx, [esp + 0x18]
call fcn.0041457c
cmp al, 0xd
jne 0x487b1a
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov ecx, esi
call fcn.004874ed
push edi
call fcn.0048297d
pop eax
jmp 0x4879c1
mov eax, dword [esp]
mov byte [eax], 5
jmp 0x487b22
mov edx, dword [esp]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x487b22
mov eax, dword [esp]
mov byte [eax], 4
jmp 0x487b1f
mov eax, dword [esp]
mov dword [eax], ebx
mov dword [eax + 4], esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x49326d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4932ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4932ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4932ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4932ac
cmp dword [ecx + 0x74], 0xe
jbe 0x4932ac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x495db0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x495e31
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x495e6c
cmp dword [esp + 4], 0
je 0x495e53
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x495e8f
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x4eb1e8]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x4eb1e8], esi
jne 0x495e10
mov byte [0x4eb1e4], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x495e63
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x495ed2
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x495e57
mov edi, dword [esp]
jmp 0x495e63
mov edi, dword [esi]
jmp 0x495e62
mov edi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x4bfa34
push 0x4bfa94
push eax
call fcn.00495f10
add esp, 8
ud2
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x4bfa84
mov dword [esp + 8], 0x4bfa4c
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x4e7238
mov dword [esp + 0x14], 0
call fcn.00493a60
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x4bfa4c
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x4e7238
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00495f50
ud2
Function at 0x4962c0
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [esp + 4]
push dword [esp + 0x44]
call fcn.00407440
add esp, 4
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x496300
mov eax, dword [0x4bec60]
mov edx, dword [0x4bec64]
cmp dword [esp + 8], 0
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov dword [esi], 1
jne 0x49636f
jmp 0x496379
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x496350
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x496364
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x496379
mov ecx, edi
mov edx, 1
call fcn.00407250
add esp, 0x34
pop esi
pop edi
pop ebx
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x40c0a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x40c0e6
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x40c0b5
jmp 0x40c0e6
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x40c0d6
pop esi
pop ebp
ret

Function at 0x40d006
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40d03b
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40d065
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40d065
test edi, edi
je 0x40d032
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40d032
test edi, edi
je 0x40d06d
mov eax, edi
jmp 0x40d034
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40d034
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_autoland_w32_d_000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.00410bfd
add esp, 0xc
int3
Function at 0x410c31
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestSegmentedVector.exe_gMozillaPoisonSize], eax
call fcn.0040d006
pop ecx
mov ecx, dword [sym.TestSegmentedVector.exe_gMozillaPoisonSize]
mov dword [sym.TestSegmentedVector.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x410c69
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestSegmentedVector.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret