joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013b90
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x1007a00c]
xor esi, esi
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ecx
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10013c57
mov edi, eax
xor esi, esi
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
test eax, eax
je 0x10013c50
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
xor esi, esi
push 0x40
push esi
push esi
push 4
push ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
je 0x10013c6b
mov dword [ebp - 0x40], ebx
mov ebx, dword [eax + 0x3c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, ebx
xor edx, edx
div dword [ebp - 0x18]
sub ebx, edx
lea eax, [edx + 0xf8]
mov dword [ebp - 0x38], edx
push eax
push ebx
mov ebx, dword [ebp - 0x40]
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
je 0x10013c40
mov ecx, dword [ebp - 0x38]
mov esi, dword [eax + ecx + 8]
push eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x3c]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069260
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor esi, esi
jmp 0x10013c50
Function at 0x10013c80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x1007a00c]
mov ebx, edx
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
push edx
call sub.version.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x10013d2d
mov edi, eax
mov dword [ebp - 0x20], esi
push eax
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov esi, eax
xor eax, eax
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], esi
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x10013d4d
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov dword [eax], 0
push ecx
push eax
push 0x10072406
mov esi, dword [ebp - 0x1c]
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
mov edx, esi
je 0x10013d73
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov esi, dword [ebp - 0x20]
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], edi
push edx
call sym.mozglue.dll__aligned_free
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069260
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], ecx
jmp 0x10013d19
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp - 0x20]
movzx ecx, ax
mov edx, dword [ebp - 0x1c]
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], ecx
jmp 0x10013d10
xor eax, eax
jmp 0x10013d01
Function at 0x10014530
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [0x1007a00c]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx + 0x10]
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
mov dword [ebp - 0x38], ecx
mov dword [ecx + 4], eax
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov edx, dword [0x1007a860]
mov eax, dword [ecx + eax*4]
cmp edx, dword [eax + 4]
jg 0x10014603
mov ecx, dword [0x1007a85c]
lea eax, [ebx + edi - 1]
xor edx, edx
xor edi, edi
div ecx
mov esi, eax
mov eax, ebx
xor edx, edx
div ecx
sub esi, eax
inc esi
mov dword [ebp - 0x48], esi
je 0x100145ee
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], ecx
imul ebx, ecx
add eax, 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x34]
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x10014641
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
je 0x10014652
mov edx, ecx
mov ecx, dword [ecx + 4]
inc edi
mov dword [ecx + eax*8], esi
mov dword [ecx + eax*8 + 4], ebx
inc dword [edx + 8]
mov ecx, dword [ebp - 0x44]
add ebx, ecx
cmp edi, dword [ebp - 0x48]
jne 0x100145b4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069260
mov eax, dword [ebp - 0x38]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1007a860
call fcn.10069bc2
add esp, 4
cmp dword [0x1007a860], 0xffffffff
jne 0x10014583
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x1007a85c], eax
push 0x1007a860
call fcn.10069bc2
add esp, 4
jmp 0x10014583
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
call fcn.100146f0
jmp 0x100145ee
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call fcn.100147c0
test al, al
je 0x10014648
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ecx + 8]
jmp 0x100145d4

Function at 0x10014670
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov eax, dword [0x1007a860]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100146b6
mov esi, dword [0x1007a85c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10069260
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
push 0x1007a860
call fcn.10069bc2
add esp, 4
cmp dword [0x1007a860], 0xffffffff
jne 0x1001469e
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x1007a85c], eax
push 0x1007a860
call fcn.10069bc2
add esp, 4
jmp 0x1001469e
Function at 0x100146f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x1007a00c]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov eax, dword [0x1007a860]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10014770
mov eax, dword [esi + 8]
test eax, eax
jne 0x10014742
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069260
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esi + 4]
mov ecx, dword [0x1007a85c]
lea edi, [ebx + eax*8]
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
push dword [ebp - 0x38]
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x100147aa
add ebx, 8
cmp ebx, edi
je 0x10014729
jmp 0x10014751
push 0x1007a860
call fcn.10069bc2
add esp, 4
cmp dword [0x1007a860], 0xffffffff
jne 0x10014722
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x1007a85c], eax
push 0x1007a860
call fcn.10069bc2
add esp, 4
jmp 0x10014722
mov dword [ebp - 0x34], 0
jmp 0x10014767
Function at 0x10015c90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov eax, dword [0x1007a86c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x10015cf3
push 0x1007a86c
call fcn.10069bc2
add esp, 4
cmp dword [0x1007a86c], 0xffffffff
jne 0x10015cf3
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x1007a868], eax
push 0x1007a86c
call fcn.10069bc2
add esp, 4
mov esi, dword [0x1007a868]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10069260
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret

Function at 0x10016570
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x100165f6
mov eax, dword [ebp + 0xc]
and ecx, 0xfffffffc
mov edi, edx
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
call fcn.10014b70
test al, al
je 0x100165f6
mov dword [ebp - 0x10], ebx
push edi
push dword [esi + 0x34]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x100165f6
mov ecx, eax
mov edi, eax
call fcn.10014b70
test al, al
je 0x100165f6
lea ecx, [esi + 0x18]
mov edx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.10016600
add esp, 8
mov ecx, eax
mov al, 1
test cl, cl
jne 0x100165f8
cmp byte [esi + 0x14], 0
jne 0x100165e6
mov dword [esi + 0x14], 1
mov dword [esi + 0x10], 0
mov ecx, esi
mov edx, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.10014be0
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10018d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x1007a00c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x20], eax
mov dword [esi], 0
mov ebx, dword [ecx + 0x3c]
test ebx, ebx
jne 0x10018d6e
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.10069260
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov edi, ecx
mov ecx, dword [ecx + 0x4c]
mov dword [edi + 0x4c], 0
test ecx, ecx
jne 0x10018e58
mov eax, dword [ebx]
mov ecx, dword [eax + 0x20]
mov dword [esp], ecx
call dword [section..00cfg]
mov ecx, ebx
call dword [esp]
xor eax, eax
mov dword [edi + 0x3c], eax
mov ecx, dword [edi + 0x40]
mov dword [edi + 0x40], eax
mov dword [esi], ecx
mov ebx, dword [edi + 0x44]
test ebx, ebx
je 0x10018deb
lea eax, [esp + 8]
push 1
push eax
call sym.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::NowUnfuzzed_bool_
add esp, 8
lea eax, [esp + 8]
movsd xmm0, qword [eax + 0x10]
movsd qword [ebx + 0x18], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [ebx + 0x10], xmm1
movsd qword [ebx + 8], xmm0
mov ebx, dword [edi + 0x44]
mov dword [edi + 0x44], 0
test ebx, ebx
jne 0x10018e77
mov ebx, dword [edi + 0x48]
mov dword [edi + 0x48], 0
test ebx, ebx
jne 0x10018e65
mov ebx, dword [edi + 0x60]
mov ecx, dword [edi + 0x64]
mov dword [edi + 0x54], ecx
mov dword [edi + 0x50], ebx
mov eax, dword [edi + 0x58]
mov dword [esp], eax
mov edx, dword [edi + 0x5c]
mov dword [esp + 4], edx
lock cmpxchg8b qword [edi + 0x58]
xor edx, dword [esp + 4]
xor eax, dword [esp]
or eax, edx
jne 0x10018e05
xor eax, eax
xor ecx, ecx
xor ebx, ebx
mov dword [edi + 0x6c], eax
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x70]
mov dword [esp], eax
mov edx, dword [edi + 0x74]
mov dword [esp + 4], edx
lock cmpxchg8b qword [edi + 0x70]
xor edx, dword [esp + 4]
xor eax, dword [esp]
or eax, edx
jne 0x10018e2e
xor eax, eax
mov dword [edi + 0x7c], eax
mov dword [edi + 0x78], eax
jmp 0x10018d57
call fcn.10018e90
mov ebx, dword [edi + 0x3c]
jmp 0x10018d82
mov ecx, ebx
call fcn.10018ed0
push ebx
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10018df9
mov ecx, ebx
call fcn.10018ed0
push ebx
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10018deb
Function at 0x10019b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 0x58]
mov edi, dword [ecx + 0x5c]
mov esi, dword [ebp - 0x10]
mov eax, ebx
mov edx, edi
mov ecx, edi
lock cmpxchg8b qword [esi + 0x58]
mov ecx, dword [ebp - 0x10]
xor edx, edi
xor eax, ebx
or eax, edx
jne 0x10019b64
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x28]
mov ecx, dword [edx + 0x2c]
cmp esi, ebx
mov eax, ecx
sbb eax, edi
jb 0x10019b61
add esi, dword [edx + 0x20]
mov edx, edi
mov edi, dword [ebp - 0x10]
mov eax, ebx
adc ecx, 0
mov ebx, esi
lock cmpxchg8b qword [edi + 0x58]
mov eax, dword [ebp + 0xc]
jne 0x10019b61
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
mov eax, dword [ecx + 0x70]
mov dword [ebp - 0x18], eax
mov ebx, eax
mov edi, dword [ecx + 0x74]
add ebx, dword [ebp - 0x14]
mov ecx, edi
mov edx, edi
adc ecx, 0
lock cmpxchg8b qword [esi + 0x70]
mov ecx, dword [ebp - 0x10]
xor eax, dword [ebp - 0x18]
xor edx, edi
or eax, edx
jne 0x10019bb9
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10019f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
cmp byte [ecx + 0x38], 0
mov esi, ecx
je 0x10019f34
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edi, eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [esi + 0x30], edi
mov ebx, dword [esi + 0x58]
mov edi, dword [esi + 0x5c]
mov eax, ebx
mov edx, edi
mov ecx, edi
lock cmpxchg8b qword [esi + 0x58]
xor edx, edi
xor eax, ebx
or eax, edx
jne 0x10019f34
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x64]
cmp byte [esi + 0x38], 0
je 0x10019f74
mov dword [esi + 0x30], 0
add esi, 0x18
push esi
mov dword [ebp - 0x10], eax
mov esi, ecx
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x10]
mov ecx, esi
xor ebx, ecx
xor edi, eax
or edi, ebx
sete al
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001c1c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x1007a00c]
mov esi, ecx
mov ecx, dword [ebp + 8]
xor eax, ebp
test ecx, ecx
mov dword [esp + 0x30], eax
jne 0x1001c201
push dword [esi]
push 0
call fcn.1001bd30
add esp, 8
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.10069260
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea edi, [esp + 0x10]
push edi
call fcn.1001bc10
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 8], ecx
sub eax, ecx
mov ecx, dword [esi]
jne 0x1001c225
push ecx
jmp 0x1001c1e2
push ecx
push eax
call fcn.1001bd30
add esp, 8
mov ecx, dword [esi]
mov ebx, 8
lea eax, [esp + 8]
push ebx
push eax
call fcn.1001bf20
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
add eax, dword [esp + 0x10]
push eax
push edi
call fcn.1001c2a0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
movsd xmm0, qword [eax + 0x68]
mov eax, esp
movsd qword [eax], xmm0
push ebx
push eax
call fcn.1001bf20
mov edi, dword [esi]
mov esi, dword [esi + 4]
mov ebx, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [esi + 0x70]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1001c26e
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov ecx, edi
push 8
lea eax, [esp + 4]
push eax
call fcn.1001bf20
jmp 0x1001c1ec
Function at 0x10020fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
cmp byte [ecx + 0x38], 0
mov esi, edx
mov edi, ecx
je 0x10020ff5
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ebx, eax
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [edi + 0x30], ebx
mov ebx, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [edi + 0x58]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x10020ff5
mov dword [esi], ebx
mov dword [esi + 4], ecx
movsd xmm0, qword [edi + 0x60]
movsd qword [esi + 8], xmm0
movsd xmm0, qword [edi + 0x68]
movsd qword [esi + 0x10], xmm0
mov ebx, dword [edi + 0x70]
mov ecx, dword [edi + 0x74]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [edi + 0x70]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x10021025
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ecx
movsd xmm0, qword [edi + 0x78]
movsd qword [esi + 0x20], xmm0
cmp byte [edi + 0x38], 0
je 0x10021063
mov dword [edi + 0x30], 0
add edi, 0x18
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10022c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [edx + 0x1c]
mov edi, edx
bt eax, 8
jb 0x10022c78
mov eax, dword [edi]
jmp 0x10022c8c
cmp eax, 0x370000
jae 0x10022cef
shr eax, 0x10
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x1006bd58]
mov dword [ecx], eax
mov esi, ecx
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x18]
mov dword [ecx + 0x18], eax
mov ebx, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [edi + 0x10]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x10022ca2
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 0x14]
mov edx, edi
lock cmpxchg8b qword [esi + 0x10]
xor eax, dword [ebp - 0x18]
xor edx, edi
or eax, edx
jne 0x10022cc2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_categoryPairIndex___uint32_t_ProfilingCategoryPair::LAST__
mov ecx, 0x42
int3

Function at 0x10022dd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov eax, dword [0x1007b4d8]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x10022e57
push 0x1007b4d8
call fcn.10069bc2
add esp, 4
cmp dword [0x1007b4d8], 0xffffffff
jne 0x10022e57
push str.MOZ_BASE_PROFILER_VERBOSE_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x10022e63
push str.MOZ_BASE_PROFILER_DEBUG_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x10022e6a
push str.MOZ_BASE_PROFILER_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ecx + ecx*2]
mov dword [0x1007b4d4], eax
push 0x1007b4d8
call fcn.10069bc2
add esp, 4
cmp dword [0x1007b4d4], esi
setge al
pop esi
pop ebp
ret
mov eax, 5
jmp 0x10022e45
mov eax, 4
jmp 0x10022e45
Function at 0x100263e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x10
mulsd xmm0, qword [0x1006bcf0]
mov esi, ecx
mov dword [ecx + 4], edx
addsd xmm0, qword [0x1006bd10]
sub esp, 8
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
add esp, 8
fstp qword [esp]
xor eax, eax
cvttsd2si ecx, qword [esp]
inc eax
test ecx, ecx
cmovg eax, ecx
cmp eax, 0x270f
mov dword [esi + 8], eax
jg 0x1002643a
mov ecx, 0x10624dd3
mul ecx
shr edx, 6
push edx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
push eax
push eax
push esi
push 0x10026480
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0xc], eax
je 0x1002645e
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_CRASH__beginthreadex_failed_
mov ecx, 0xec
int3
Function at 0x1002ddf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ecx]
mov edi, ecx
mov dword [ebp - 0x10], edx
mov ebx, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
mov eax, ebx
mov edx, ecx
lock cmpxchg8b qword [esi + 0x58]
xor edx, ecx
xor eax, ebx
or eax, edx
jne 0x1002ddfe
mov eax, dword [ebp + 8]
mov edx, dword [edi]
mov esi, dword [edi + 4]
cmp eax, ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
sbb eax, ecx
mov eax, dword [edi + 8]
jae 0x1002de42
mov ebx, dword [ebp - 0x10]
xor edi, edi
mov ecx, ebx
push edi
push edi
push eax
push esi
call fcn.1002df30
add esp, 0x10
mov eax, ebx
jmp 0x1002de57
mov edi, dword [ebp - 0x10]
mov ecx, edi
push ebx
push dword [ebp + 8]
push eax
push esi
call fcn.1002df30
add esp, 0x10
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10038350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x1007a00c]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x38], 0
je 0x100383f3
cmp byte [ecx + 0x3d], 0
mov esi, ecx
je 0x100383f3
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 0xffffffffffffffff
call edi
cmp eax, 0xffffffff
je 0x100383f1
mov edi, dword [esi + 0x38]
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [section..00cfg]
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp - 0x38]
call ebx
cmp eax, 3
je 0x10038407
cmp eax, 1
je 0x100383ca
test eax, eax
jne 0x100383f1
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
sub edi, eax
je 0x100383e8
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100383f1
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x100383f3
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069260
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
jmp 0x100383f3
Function at 0x1003a9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
xor eax, eax
cmp byte [ecx + 0x40], 0
je 0x1003a9b3
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
cmp dword [ecx + 0x10], 0
je 0x1003a9eb
cmp dword [ecx + 0x14], 0xf
mov eax, ecx
jbe 0x1003a9c5
mov eax, dword [ecx]
mov bl, byte [eax]
test bl, bl
je 0x1003a9eb
inc eax
xor edx, edx
movzx edi, bl
mov bl, byte [eax]
rol edx, 5
inc eax
mov esi, edx
xor esi, edi
imul edx, esi, 0x9e3779b9
test bl, bl
jne 0x1003a9ce
imul edx, esi, 0xe35e67b1
movzx eax, byte [ecx + 0x18]
rol edx, 5
xor edx, eax
imul eax, edx, 0x9e3779b9
imul edx, edx, 0xc6ef3720
shr eax, 0x1b
or eax, edx
xor eax, dword [ecx + 0x20]
imul edx, eax, 0x9e3779b9
imul eax, eax, 0xc6ef3720
shr edx, 0x1b
or edx, eax
imul eax, edx, 0x9e3779b9
cmp byte [ecx + 0x2c], 0
je 0x1003aa39
imul edx, edx, 0xc6ef3720
shr eax, 0x1b
or eax, edx
xor eax, dword [ecx + 0x28]
imul eax, eax, 0x9e3779b9
cmp byte [ecx + 0x34], 0
je 0x1003aa4b
rol eax, 5
xor eax, dword [ecx + 0x30]
imul eax, eax, 0x9e3779b9
cmp byte [ecx + 0x3c], 0
je 0x1003a9ae
rol eax, 5
xor eax, dword [ecx + 0x38]
imul eax, eax, 0x9e3779b9
jmp 0x1003a9ae