joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x43500c]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push 0x31
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_shim_base_file_version_info_win.cpp
push str.CreateFileVersionInfoWin
push eax
call fcn.00405d60
add esp, 0x10
cmp dword [ebx + 0x14], 7
jbe 0x401419
mov ebx, dword [ebx]
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x401441
mov dword [esi], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042da80
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x28]
mov edx, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov edi, eax
mov dword [ebp - 0x20], 0
call fcn.00401650
test al, al
je 0x401480
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, edi
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
push eax
push edi
push dword [ebp - 0x2c]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
xor edi, edi
test eax, eax
je 0x4014e0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push eax
push ecx
push str.VarFileInfoTranslation
push dword [ebp - 0x30]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4014e0
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4014e0
push 0x18
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
movzx eax, word [ebx + 2]
movzx ebx, word [ebx]
lea edx, [ebp - 0x28]
mov ecx, edi
push eax
push ebx
call fcn.004014f0
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [esi], edi
call fcn.004016d0
jmp 0x40142d
Function at 0x403ed0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x18], edx
mov esi, dword [ebp + 8]
mov eax, dword [0x43500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
mov ebx, dword [ecx + 0xc]
mov edi, dword [esi]
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [esi + 2]
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [esi + 3]
xor edx, eax
imul edx, edx, 0x1000193
and edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 4]
mov eax, dword [ebx + edx*8]
lea edx, [edx + edx + 1]
mov dword [ebp - 0x20], edx
mov edx, eax
nop word cs:[eax + eax]
nop
cmp eax, ecx
mov esi, eax
je 0x403f4e
mov esi, dword [ebp - 0x20]
mov esi, dword [ebx + esi*4]
mov esi, dword [esi]
cmp esi, edx
je 0x403f6a
cmp dword [edx + 8], edi
je 0x403f5b
mov edx, dword [edx]
jmp 0x403f40
cmp edx, ecx
je 0x403f6a
mov esi, dword [ebp - 0x18]
mov dword [esi], edx
mov byte [esi + 4], 0
jmp 0x403f9d
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov edx, dword [ecx]
lea ecx, [esi + 4]
push eax
call fcn.00404100
add esp, 4
mov eax, dword [esi + 4]
mov ecx, esi
mov esi, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, esi
push eax
add eax, 8
push eax
call fcn.00403fc0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042da80
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403fc0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov ebx, dword [ecx + 0xc]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [esi + 2]
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [esi + 3]
mov esi, edi
xor edx, eax
imul eax, edx, 0x1000193
and eax, dword [ecx + 0x18]
mov edx, dword [ebx + eax*8]
add eax, eax
cmp edx, edi
je 0x404027
lea esi, [eax*4]
or esi, 4
mov esi, dword [ebx + esi]
mov esi, dword [esi]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
nop dword [eax]
cmp edx, esi
je 0x404060
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
jne 0x404030
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [edx], eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
dec dword [edx + 8]
call fcn.00403670
mov edi, dword [ebp - 0x14]
xor eax, eax
jmp 0x4040c4
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
cmp ecx, edx
je 0x404098
mov esi, dword [ebp + 0xc]
mov ebx, esi
mov esi, dword [esi + 4]
mov dword [esi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov esi, dword [edx + 4]
mov dword [esi], ebx
mov edi, dword [ecx + 4]
mov esi, dword [edx + 4]
mov dword [edx + 4], edi
mov edi, dword [ebx + 4]
mov dword [ecx + 4], edi
mov dword [ebx + 4], esi
mov esi, dword [ebp - 0x10]
mov edi, dword [esi + 4]
mov ebx, dword [esi + 0xc]
mov esi, dword [ebx + eax*4]
lea ecx, [ebx + eax*4]
cmp esi, edi
jne 0x4040d3
mov edx, dword [ebp + 0xc]
shl eax, 2
mov edi, dword [ebp - 0x14]
or eax, 4
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0xc]
mov esi, eax
mov dword [esi], edx
call fcn.004044d0
mov esi, dword [ebp + 0xc]
mov al, 1
mov dword [edi], esi
mov byte [edi + 4], al
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
cmp esi, edx
mov esi, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
je 0x4040b8
or eax, 1
mov edx, dword [ebx + eax*4]
mov edx, dword [edx]
cmp edx, dword [ebp + 0xc]
mov dword [ebx + eax*4], edx
je 0x4040ba
mov edx, dword [ecx + 0xc]
lea esi, [edx + eax*4]
mov eax, dword [edx + eax*4]
mov edx, dword [eax + 4]
jmp 0x4040b8
Function at 0x404620
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
jbe 0x40463a
mov esi, dword [esi]
test ebx, 0x7fffffff
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], esi
je 0x404661
lea ecx, [ebx + ebx]
mov eax, 0x811c9dc5
movzx edi, byte [esi]
inc esi
xor edi, eax
imul eax, edi, 0x1000193
dec ecx
jne 0x404650
jmp 0x404666
mov eax, 0x811c9dc5
mov ecx, dword [ebp - 0x10]
and eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0xc]
mov edi, dword [ecx + 4]
mov ecx, dword [edx + eax*8]
add eax, eax
mov dword [ebp - 0x1c], edi
cmp ecx, edi
mov dword [ebp - 0x14], ecx
je 0x404690
lea ecx, [eax*4]
or ecx, 4
mov ecx, dword [edx + ecx]
mov edi, dword [ecx]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x14], edi
je 0x404713
mov edi, dword [edi + 4]
cmp ebx, dword [edi + 0x18]
jne 0x404693
test ebx, ebx
je 0x4046d2
cmp dword [edi + 0x1c], 7
jbe 0x4046b0
mov ecx, dword [edi + 8]
jmp 0x4046b3
lea ecx, [edi + 8]
xor esi, esi
nop word cs:[eax + eax]
nop
mov edx, dword [ebp - 0x24]
movzx edx, word [edx + esi*2]
cmp dx, word [ecx + esi*2]
jne 0x404693
inc esi
cmp ebx, esi
jne 0x4046c0
mov eax, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [eax]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10]
dec dword [ecx + 8]
lea ecx, [esi + 8]
call fcn.00401890
push 0x24
push esi
call sub.mozglue.dll_void___cdecl_operator_delete_void___unsigned_int_
add esp, 8
mov esi, dword [ebp - 0x18]
xor eax, eax
mov dword [esi], edi
mov byte [esi + 4], al
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [edi]
cmp ecx, dword [ebp - 0x14]
je 0x404750
mov edx, dword [edi + 4]
mov ebx, dword [ebp - 0x14]
mov dword [edx], ecx
mov edx, dword [ecx + 4]
mov dword [edx], ebx
mov edx, dword [ebx + 4]
mov dword [edx], edi
mov esi, dword [ecx + 4]
mov edx, dword [ebx + 4]
mov dword [ebx + 4], esi
mov esi, dword [edi + 4]
mov dword [ecx + 4], esi
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x10]
mov ebx, dword [edx + 4]
mov esi, dword [edx + 0xc]
mov ecx, dword [esi + eax*4]
lea edx, [esi + eax*4]
cmp ecx, ebx
jne 0x40477d
mov ecx, dword [ebp - 0x10]
shl eax, 2
mov dword [edx], edi
mov esi, dword [ebp - 0x18]
or eax, 4
add eax, dword [ecx + 0xc]
mov ecx, edi
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00404840
mov al, 1
jmp 0x404704
mov ebx, esi
cmp ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov ecx, edi
je 0x40476f
or eax, 1
mov ecx, dword [ebx + eax*4]
mov ecx, dword [ecx]
cmp ecx, edi
mov dword [ebx + eax*4], ecx
je 0x404771
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc]
lea edx, [ecx + eax*4]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 4]
jmp 0x40476f
Function at 0x404a30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 7
jbe 0x404a4a
mov ecx, dword [ecx]
test esi, 0x7fffffff
mov dword [esp], edx
je 0x404a71
lea edi, [esi + esi]
mov eax, 0x811c9dc5
mov ebx, ecx
nop
movzx ebp, byte [ebx]
inc ebx
xor ebp, eax
imul eax, ebp, 0x1000193
dec edi
jne 0x404a60
jmp 0x404a76
mov eax, 0x811c9dc5
mov edi, dword [esp + 4]
mov edx, dword [edi + 4]
and eax, dword [edi + 0x18]
mov dword [esp + 8], edx
mov edx, dword [edi + 0xc]
mov ebp, dword [edx + eax*8]
mov dword [esp + 4], edx
lea eax, [eax + eax + 1]
mov dword [esp + 0xc], eax
mov edx, ebp
jmp 0x404aa2
mov edx, dword [edx]
cmp ebp, dword [esp + 8]
mov eax, ebp
je 0x404ab7
mov eax, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
cmp eax, edx
je 0x404b16
cmp dword [edx + 0x18], esi
jne 0x404aa0
cmp dword [edx + 0x1c], 7
jbe 0x404ad0
mov eax, dword [edx + 8]
test esi, esi
jne 0x404ad7
jmp 0x404b0f
lea eax, [edx + 8]
test esi, esi
je 0x404b0f
xor edi, edi
nop dword [eax]
movzx ebx, word [eax + edi*2]
cmp bx, word [ecx + edi*2]
jne 0x404aa0
inc edi
cmp esi, edi
jne 0x404ae0
xor edi, edi
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx ebx, word [ecx + edi*2]
cmp bx, word [eax + edi*2]
jne 0x404b16
inc edi
cmp esi, edi
jne 0x404b00
mov eax, dword [esp]
mov dword [eax], edx
jmp 0x404b1f
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404b30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ecx + 4]
mov dword [esp], edx
movzx eax, byte [ebp]
movzx esi, byte [ebp + 1]
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
xor esi, eax
imul eax, esi, 0x1000193
movzx esi, byte [ebp + 2]
xor esi, eax
imul eax, esi, 0x1000193
movzx esi, byte [ebp + 3]
mov ebp, dword [ebp]
xor esi, eax
imul edi, esi, 0x1000193
mov esi, dword [ecx + 0xc]
and edi, dword [ecx + 0x18]
mov eax, dword [esi + edi*8]
lea edi, [edi + edi + 1]
mov ecx, eax
nop word cs:[eax + eax]
cmp eax, ebx
mov edx, eax
je 0x404b9b
mov edx, dword [esi + edi*4]
mov edx, dword [edx]
cmp edx, ecx
je 0x404bd0
cmp dword [ecx + 8], ebp
je 0x404ba8
mov ecx, dword [ecx]
jmp 0x404b90
mov edx, ecx
mov dword [esp + 4], edi
nop
cmp eax, ebx
mov edi, eax
je 0x404bbf
mov edi, dword [esp + 4]
mov edi, dword [esi + edi*4]
mov edi, dword [edi]
cmp edi, edx
je 0x404bcc
cmp ebp, dword [edx + 8]
jne 0x404bcc
mov edx, dword [edx]
jmp 0x404bb0
cmp ecx, edx
jne 0x404bd4
mov ecx, ebx
mov edx, ebx
mov eax, dword [esp]
mov dword [eax], ecx
mov dword [eax + 4], edx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404cb0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
movzx edx, byte [ecx + 8]
movzx esi, byte [ecx + 9]
xor edx, 0x811c9dc5
imul edx, edx, 0x1000193
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ecx + 0xa]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ecx + 0xb]
xor esi, edx
imul edi, esi, 0x1000193
mov esi, dword [eax + 0xc]
and edi, dword [eax + 0x18]
lea ebx, [edi + edi]
lea edx, [esi + edi*8]
mov dword [ebp - 0x10], edx
cmp dword [esi + ebx*4 + 4], ecx
mov edx, dword [esi + edi*8]
je 0x404d18
cmp edx, ecx
jne 0x404d27
mov esi, dword [ebp - 0x10]
mov edi, ecx
jmp 0x404d23
cmp edx, ecx
je 0x404d4b
lea esi, [esi + ebx*4 + 4]
lea edi, [ecx + 4]
mov edx, dword [edi]
mov dword [esi], edx
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [edx], esi
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
dec dword [eax + 8]
call fcn.00403670
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [eax + 4]
mov esi, dword [ebp - 0x10]
mov dword [esi], edx
lea esi, [edi + edi + 1]
lea edi, [eax + 4]
shl esi, 2
add esi, dword [eax + 0xc]
mov esi, esi
jmp 0x404d23
Function at 0x4054f0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [0x43500c]
mov esi, ecx
xor ecx, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
cpuid
mov edi, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x38], 0
lea ecx, [esi + 0x28]
push eax
call fcn.00405710
test edi, edi
jle 0x40568f
mov eax, 1
xor ecx, ecx
cpuid
cmp edi, 7
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edx
jl 0x40555f
mov edi, eax
mov eax, 7
xor ecx, ecx
cpuid
shr bl, 5
mov eax, edi
and bl, 1
mov dword [ebp - 0x4c], ebx
mov ebx, eax
mov dword [esi], eax
and eax, 0xf
mov ecx, ebx
mov dword [esi + 0x10], eax
mov eax, ebx
shr ecx, 0xc
shr eax, 4
mov edx, ecx
and eax, 0xf
and ecx, 3
and edx, 0xf0
or edx, eax
mov eax, ebx
shr eax, 8
mov dword [esi + 0xc], edx
and eax, 0xf
mov dword [esi + 8], eax
mov eax, ebx
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x48]
shr ebx, 0x14
shr eax, 0x10
and eax, 0xf
mov dword [esi + 0x14], eax
movzx eax, bl
mov dword [esi + 0x18], eax
mov eax, ecx
shr eax, 0x17
and al, 1
mov byte [esi + 0x1c], al
mov eax, ecx
shr ecx, 0x1a
shr eax, 0x19
and cl, 1
and al, 1
mov byte [esi + 0x1d], al
mov byte [esi + 0x1e], cl
mov ecx, dword [ebp - 0x50]
mov eax, ecx
and al, 1
mov byte [esi + 0x1f], al
mov eax, ecx
shr eax, 9
and al, 1
mov byte [esi + 0x20], al
mov eax, ecx
shr eax, 0x13
and al, 1
mov byte [esi + 0x21], al
mov eax, ecx
shr eax, 0x14
and al, 1
mov byte [esi + 0x22], al
mov eax, ecx
shr eax, 0x17
and al, 1
test ecx, ecx
mov byte [esi + 0x23], al
mov eax, ecx
setns byte [ebp - 0x48]
xor edi, edi
and eax, 0x1c000000
cmp eax, 0x1c000000
mov eax, 0
jne 0x405621
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov ecx, dword [ebp - 0x50]
mov byte [esi + 0x24], al
shr ecx, 0x19
and cl, 1
test al, al
movzx eax, byte [ebp - 0x4c]
mov byte [esi + 0x26], cl
cmove eax, edi
mov byte [esi + 0x25], al
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000004
jge 0x405695
cmp byte [esi + 0x27], 0
setne al
or byte [ebp - 0x48], al
jne 0x40567d
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp edx, 0x76482074
jne 0x40567d
cmp ebx, 0x7263694d
jne 0x40567d
cmp ecx, 0x666f736f
jne 0x40567d
mov byte [esi + 0x27], 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042da80
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [ebp - 0x48], 1
jmp 0x40563c
mov edi, eax
mov eax, 0x80000002
xor ecx, ecx
cpuid
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov eax, 0x80000003
xor ecx, ecx
cpuid
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov eax, 0x80000004
xor ecx, ecx
cpuid
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x14], 0
lea ecx, [esi + 0x40]
push eax
call fcn.00405710
cmp edi, 0x80000007
jl 0x40564c
mov eax, 0x80000007
xor ecx, ecx
cpuid
and dh, 1
mov byte [esi + 0x27], dh
jmp 0x40564c
Function at 0x405c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
je 0x4013cb
mov edx, dword [esp + 0x1c]
test edx, edx
jle 0x4013cb
mov eax, edx
mov edi, edx
and eax, 3
shr edi, 2
je 0x401373
mov esi, edx
mov ebx, ecx
mov dword [esp], eax
nop word cs:[eax + eax]
nop dword [eax]
movzx ebp, word [ebx]
add ebp, esi
movzx esi, word [ebx + 2]
add ebx, 4
mov eax, ebp
shl eax, 0x10
xor eax, ebp
shl esi, 0xb
xor eax, esi
mov esi, eax
shr esi, 0xb
add esi, eax
dec edi
jg 0x401320
mov eax, dword [esp]
and edx, 0xfffffffc
add ecx, edx
cmp eax, 1
je 0x40137a
cmp eax, 2
je 0x40138c
cmp eax, 3
jne 0x40139f
movzx eax, word [ecx]
add esi, eax
movsx eax, byte [ecx + 2]
shl eax, 0x12
xor eax, esi
shl esi, 0x10
xor eax, esi
mov esi, eax
shr esi, 0xb
jmp 0x40139d
mov esi, edx
cmp eax, 1
jne 0x40134f
movsx eax, byte [ecx]
add esi, eax
mov eax, esi
shl eax, 0xa
xor eax, esi
mov esi, eax
shr esi, 1
jmp 0x40139d
movzx eax, word [ecx]
add esi, eax
mov eax, esi
shl eax, 0xb
xor eax, esi
mov esi, eax
shr esi, 0x11
add esi, eax
lea eax, [esi*8]
xor eax, esi
mov ecx, eax
shr ecx, 5
add ecx, eax
mov eax, ecx
shl eax, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
add ecx, eax
mov edx, ecx
shl edx, 0x19
xor edx, ecx
mov eax, edx
shr eax, 6
add eax, edx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 8], 0
js 0x405c7c
jmp 0x4012e0
xor eax, eax
ret

Function at 0x406170
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edi, dword [ebp + 8]
cmp dword [ecx], edi
je 0x4061bf
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.004061d0
lea eax, [edi + 1]
cmp eax, 2
jb 0x4061b6
mov dword [esi], edi
call fcn.00405d90
mov edi, dword [ebp + 4]
mov ebx, eax
call sym.plugin_container.exe_GetHandleVerifier
mov edx, dword [eax]
mov ecx, eax
push ebx
push edi
push esi
push dword [ebp + 8]
call dword [edx + 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x409f20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1408
call fcn.0042e6e0
mov eax, dword [0x43500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x435028]
cmp eax, 0xffffffff
je 0x409f4f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x409f64
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042da80
add esp, 0x1408
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, eax
cmp eax, 1
je 0x40a034
lea ebx, [ebp - 0x810]
push 0x800
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [0x435028]
push ebx
mov dword [ebp - 0x1414], eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call sub.mozglue.dll_void___cdecl_operator_delete___void__
add esp, 4
call fcn.0040a350
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea eax, [ebp - 0x1410]
push 0xc00
push 0x4354f0
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, 0x100
mov al, 1
test al, 1
je 0x40a021
mov edi, 0xfffff400
xor eax, eax
mov ecx, dword [ebx]
test ecx, ecx
jne 0x409ff0
add ebx, 8
add edi, 0xc
jne 0x409fe0
jmp 0x40a013
cmp dword [ebp + edi - 0x810], 0
je 0x409fe6
mov edx, dword [ebx + 4]
cmp edx, dword [ebp + edi - 0x808]
jne 0x409fe6
mov edx, dword [ebp + edi - 0x80c]
test edx, edx
je 0x409fe6
jmp 0x40a03e
cmp esi, 2
lea esi, [esi - 1]
lea ebx, [ebp - 0x810]
jae 0x409fd5
push 1
push dword [ebp - 0x1414]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x409f4f
push 0
push dword [0x435028]
jmp 0x40a029
mov dword [ebx], 0
push ecx
call edx
add esp, 4
mov al, 1
jmp 0x409fe6
Function at 0x40a050
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov eax, dword [0x43500c]
mov edi, edx
mov esi, ecx
xor eax, ebp
mov dword [esp + 0xc0], eax
mov eax, dword [0x435028]
cmp eax, 0xffffffff
je 0x40a086
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x40a08b
call fcn.0040a1b0
call fcn.0040a350
mov ebx, eax
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x4354ec]
mov dword [esp], 0x100
inc eax
movzx edx, al
lea ecx, [edx + edx*2]
cmp dword [ecx*4 + 0x4354f0], 0
jne 0x40a128
lea eax, [ecx*4 + 0x4354f0]
mov dword [0x4354ec], edx
mov dword [eax], 1
lea eax, [edx*4]
mov dword [eax + eax*2 + 0x4354f4], edi
mov dword [esi], edx
mov eax, dword [eax + eax*2 + 0x4354f8]
mov dword [esi + 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
mov dword [esp + 8], 0xffffffff
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x40a134
mov eax, dword [esi]
mov dword [esp + 8], 0x100
cmp eax, 0xff
mov dword [esp + 4], eax
jg 0x40a16e
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.0042da80
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
inc eax
dec dword [esp]
jne 0x40a0a6
jmp 0x40a0e3
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kInvalidSlotValue
push eax
push ecx
call fcn.00401e80
add esp, 0xc
test eax, eax
je 0x40a0fd
lea edi, [esp + 8]
mov ecx, edi
push eax
push 0x159
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.00401c20
mov ecx, edi
call fcn.00401cb0
jmp 0x40a0fd
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kThreadLocalStorageSize
push eax
push ecx
call fcn.00401e80
add esp, 0xc
test eax, eax
je 0x40a112
lea esi, [esp + 8]
mov ecx, esi
push eax
push 0x15a
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.00401c20
mov ecx, esi
call fcn.00401cb0
jmp 0x40a112