joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x30], eax
test ecx, ecx
jne 0x10035f31
push dword [esi]
push 0
call fcn.100355f0
add esp, 8
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.1002cad0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea edi, [esp + 0x10]
push edi
call fcn.10035990
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [edi + 0x18]
mov ecx, dword [esi]
sub eax, edx
jne 0x10035f55
push ecx
jmp 0x10035f12
push ecx
push eax
call fcn.100355f0
add esp, 8
mov ecx, dword [esi]
mov ebx, 8
lea eax, [esp + 8]
push ebx
push eax
call fcn.10035bc0
mov ecx, dword [esi]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x10]
push eax
push edi
call fcn.10035fd0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
movsd xmm0, qword [eax + 0x68]
mov eax, esp
movsd qword [eax], xmm0
push ebx
push eax
call fcn.10035bc0
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 0x10035f9e
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ecx, edi
push 8
lea eax, [esp + 4]
push eax
call fcn.10035bc0
jmp 0x10035f1c

Function at 0x10037b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, edx
mov edi, ecx
cmp byte [ecx + 0x38], 0
je 0x10037b95
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 0x10037b95
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 0x10037bc5
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 0x10037c03
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 0x10037ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor eax, eax
cmp byte [ecx + 0x40], 0
je 0x10038001
pop esi
pop edi
pop ebp
ret
cmp dword [ecx + 0x10], 0
je 0x1003809b
cmp dword [ecx + 0x14], 0xf
mov eax, ecx
jbe 0x10038015
mov eax, dword [ecx]
xor esi, esi
mov edx, esi
movzx edi, byte [eax]
rol esi, 5
xor esi, edi
imul esi, esi, 0x9e3779b9
inc eax
test edi, edi
jne 0x10038017
imul eax, edx, 0x9e3779b9
movzx edx, byte [ecx + 0x18]
rol eax, 5
xor eax, edx
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, dword [ecx + 0x20]
imul eax, eax, 0x9e3779b9
rol eax, 5
imul eax, eax, 0x9e3779b9
mov edx, eax
rol edx, 5
xor edx, dword [ecx + 0x28]
imul edx, edx, 0x9e3779b9
cmp byte [ecx + 0x2c], 0
cmove edx, eax
mov eax, edx
rol eax, 5
xor eax, dword [ecx + 0x30]
imul eax, eax, 0x9e3779b9
cmp byte [ecx + 0x34], 0
cmove eax, edx
cmp byte [ecx + 0x3c], 0
je 0x10037ffd
rol eax, 5
xor eax, dword [ecx + 0x38]
imul eax, eax, 0x9e3779b9
jmp 0x10037ffd
xor eax, eax
jmp 0x10038032
Function at 0x1003e5a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, edx
mov eax, dword [edx + 0x1c]
bt eax, 8
jb 0x1003e5b8
mov eax, dword [edi]
jmp 0x1003e5cc
cmp eax, 0x370000
jae 0x1003e62f
shr eax, 0x10
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x1006af88]
mov dword [ecx], eax
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 esi, ecx
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 0x1003e5e2
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 edx, edi
xor eax, dword [ebp - 0x18]
or eax, edx
jne 0x1003e602
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__
int3

Function at 0x1003e650
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [0x1007b4d8]
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x1003e6d7
push 0x1007b4d8
call fcn.1002d432
add esp, 4
cmp dword [0x1007b4d8], 0xffffffff
jne 0x1003e6d7
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 0x1003e6e3
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 0x1003e6ea
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.1002d432
add esp, 4
cmp dword [0x1007b4d4], esi
setge al
pop esi
pop ebp
ret
mov eax, 5
jmp 0x1003e6c5
mov eax, 4
jmp 0x1003e6c5
Function at 0x100428a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov esi, ecx
mov dword [ecx + 4], edx
mulsd xmm0, qword [0x1006aed0]
addsd xmm0, qword [0x1006af28]
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]
cvttsd2si eax, qword [esp]
xor ecx, ecx
inc ecx
test eax, eax
cmovg ecx, eax
mov dword [esi + 8], ecx
call fcn.10042950
test al, al
je 0x1004290d
mov eax, dword [esi + 8]
cmp eax, 0x270f
jg 0x1004290d
mov ecx, 0x10624dd3
imul ecx
mov eax, edx
shr eax, 0x1f
sar edx, 6
add edx, eax
push edx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
push eax
push eax
push esi
push 0x100429c0
push eax
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x10042931
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_CRASH__beginthreadex_failed_
int3

Function at 0x10042950
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1007b520]
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10042977
mov al, byte [0x1007b51c]
pop ebp
ret
push 0x1007b520
call fcn.1002d432
add esp, 4
cmp dword [0x1007b520], 0xffffffff
jne 0x10042970
push str.PROFILER_ADJUST_TIMER_RESOLUTION
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
setne byte [0x1007b51c]
push 0x1007b520
call fcn.1002d432
add esp, 4
jmp 0x10042970
Function at 0x100496b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov dword [ebp - 0x10], edx
mov edi, ecx
mov esi, dword [ecx]
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 0x100496be
mov eax, dword [ebp + 8]
cmp eax, ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
sbb eax, ecx
mov eax, dword [edi + 8]
mov edx, dword [edi]
mov esi, dword [edi + 4]
jae 0x10049702
xor edi, edi
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push edi
push edi
push eax
push esi
call fcn.10049720
add esp, 0x10
mov eax, ebx
jmp 0x10049717
mov edi, dword [ebp - 0x10]
mov ecx, edi
push ebx
push dword [ebp + 8]
push eax
push esi
call fcn.10049720
add esp, 0x10
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1004d0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [ecx + 0x38], 0
je 0x1004d173
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x1004d173
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 0x1004d171
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 0x1004d187
cmp eax, 1
je 0x1004d14a
test eax, eax
jne 0x1004d171
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
sub edi, eax
je 0x1004d168
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 0x1004d171
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x1004d173
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002cad0
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
jmp 0x1004d173
Function at 0x1004ef80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, edx
mov edi, ecx
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x20], eax
push ecx
call fcn.10034f30
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1004efbf
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.1002cad0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 0xc], edi
mov ecx, edi
push 8
mov edi, eax
push eax
call fcn.10034f90
mov dword [esp + 4], esi
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x58]
mov dword [esp + 8], eax
mov edi, dword [esi + 0x5c]
mov edx, edi
lock cmpxchg8b qword [esi + 0x58]
xor edx, edi
xor eax, dword [esp + 8]
or eax, edx
jne 0x1004efe0
mov edi, dword [esp + 4]
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ecx
mov ecx, edi
call fcn.1004f110
test al, al
je 0x1004f03a
lea esi, [esp + 0x18]
mov ecx, edi
mov edx, esi
call fcn.10037c10
mov edx, dword [esp + 0x14]
cmp dword [esi], edx
jae 0x1004f089
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_aBuffer.BufferLength__.value_____len_
int3
lea esi, [esp + 0x10]
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.10047aa0
mov eax, dword [esi]
mov dword [esi], 0
lea esi, [esp + 0x18]
mov dword [esi], eax
mov ecx, edi
mov edx, esi
call fcn.1004f160
mov ebx, dword [esi]
test ebx, ebx
je 0x1004f078
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
push 1
call esi
lea ecx, [esp + 0x10]
call fcn.10047b80
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 4]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], eax
mov ecx, edi
lea esi, [esp + 0x18]
push esi
call fcn.1004f230
add esp, 4
mov eax, 8
mov ecx, ebx
push eax
push esi
call fcn.10034f90
movsd xmm0, qword [esp + 0x18]
movsd qword [edi + 0x68], xmm0
mov ecx, ebx
mov eax, 8
push eax
push esi
call fcn.10034f90
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x70]
mov dword [esp + 8], eax
mov edi, dword [esi + 0x74]
mov edx, edi
lock cmpxchg8b qword [esi + 0x70]
xor edx, edi
xor eax, dword [esp + 8]
or eax, edx
jne 0x1004f0db
xor eax, eax
mov ecx, dword [esp + 4]
mov dword [ecx + 0x7c], eax
mov dword [ecx + 0x78], eax
jmp 0x1004efac
Function at 0x1004f510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, edx
mov edi, ecx
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ecx
cmp byte [ecx + 0x38], 0
je 0x1004f54a
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 + 0x3c]
test ebx, ebx
je 0x1004f6ef
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [section..00cfg]
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call esi
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.10033e40
mov esi, dword [edi + 0x44]
test esi, esi
mov ebx, edi
je 0x1004f5f8
lea edi, [esp + 0x18]
push 1
push edi
call sym.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::NowUnfuzzed_bool_
add esp, 8
movsd xmm0, qword [edi + 0x10]
movsd qword [esi + 0x18], xmm0
movups xmm0, xmmword [edi]
movups xmmword [esi + 8], xmm0
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x44]
test edx, edx
je 0x1004f6e3
test eax, eax
je 0x1004f5d4
mov ecx, edx
mov edx, dword [edx + 0x38]
test edx, edx
jne 0x1004f5b7
add ecx, 0x38
mov dword [ebx + 0x44], 0
push eax
call fcn.10014560
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], 0
mov eax, edx
xor edi, edi
lea esi, [esp + 0x18]
mov dword [esi], edi
lea ecx, [esp + 0x10]
push eax
call fcn.10014560
mov ecx, esi
push edi
call fcn.10014560
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x48]
test edx, edx
je 0x1004f6d7
test eax, eax
je 0x1004f628
mov ecx, edx
mov edx, dword [edx + 0x38]
test edx, edx
jne 0x1004f60b
add ecx, 0x38
mov dword [ebx + 0x48], 0
push eax
call fcn.10014560
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], 0
mov eax, edx
xor edi, edi
lea esi, [esp + 0x18]
mov dword [esi], edi
lea ecx, [esp + 0x10]
push eax
call fcn.10014560
mov ecx, esi
push edi
call fcn.10014560
mov esi, dword [ebx + 0x3c]
mov eax, dword [esi]
mov edi, ebx
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
mov ebx, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
mov dword [edi + 0x64], ecx
mov dword [esp + 8], edi
mov dword [edi + 0x60], ebx
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x58]
mov dword [esp + 0xc], eax
mov edi, dword [esi + 0x5c]
mov edx, edi
lock cmpxchg8b qword [esi + 0x58]
xor edx, edi
xor eax, dword [esp + 0xc]
or eax, edx
jne 0x1004f676
lea ecx, [esp + 0x10]
mov eax, dword [ecx]
xor edx, edx
mov dword [ecx], edx
mov esi, dword [esp + 4]
mov dword [esi], eax
push edx
call fcn.10014560
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x38], 0
je 0x1004f6c2
mov dword [eax + 0x30], 0
add eax, 0x18
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.1002cad0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebx + 0x48], 0
jmp 0x1004f632
mov dword [ebx + 0x44], 0
jmp 0x1004f5de
mov dword [esi], 0
jmp 0x1004f6a7
Function at 0x10054270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x1007a00c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 4
cmp dword [eax + 0x14], 7
jbe 0x1005429d
mov eax, dword [eax]
lea edi, [ebp - 0x18]
lea ebx, [ebp - 0x14]
push edi
push ebx
push ecx
push 0x10
push eax
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegGetValueW]
mov ecx, 8
test eax, eax
jne 0x100542bd
mov ecx, dword [ebp - 0x14]
setne byte [esi + 4]
mov dword [esi], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002cad0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10054520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov esi, ecx
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x2c]
mov ecx, edi
mov edx, 0x1006a018
call fcn.100546e0
mov edi, dword [edi]
test edi, edi
jne 0x10054568
mov byte [esi + 4], 1
mov dword [esi], 0xb
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002cad0
mov eax, esi
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [0x1007a224], 0xffffffff
jne 0x100546b7
lea ebx, [ebp - 0x28]
mov ecx, ebx
call fcn.1004fa50
cmp byte [ebx + 4], 0
jne 0x100546c7
mov ebx, dword [ebp - 0x28]
movzx eax, word [ebx]
test ax, ax
je 0x100545b2
lea ecx, [ebx + 2]
lea edx, [eax - 0x41]
cmp dx, 0x19
ja 0x100545a7
add eax, 0x20
mov word [ecx - 2], ax
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10054597
mov dword [esp], 0x12
call sym.mozglue.dll_moz_xmalloc
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [ebp - 0x30], eax
mov word [eax + 0x10], 0
xor edx, edx
mov dword [ebp - 0x34], ebx
mov ecx, ebx
mov eax, edx
movzx ebx, word [ecx]
rol edx, 5
xor edx, ebx
imul edx, edx, 0x9e3779b9
add ecx, 2
test ebx, ebx
jne 0x100545d4
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.10055050
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], 0
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov dword [esp], eax
lea ebx, [ebp - 0x28]
mov ecx, ebx
mov edx, edi
call fcn.10014f30
mov dword [esp], 0x20
mov ecx, ebx
mov edx, 0x100717bc
call fcn.10014f30
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov dword [esp], eax
mov ecx, ebx
mov edx, dword [ebp - 0x30]
call fcn.10014f30
cmp dword [ebp - 0x14], 7
jbe 0x10054657
mov ebx, dword [ebp - 0x28]
xor eax, eax
mov dword [esp + 0x18], eax
movaps xmm0, xmmword [0x1006b600]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
mov dword [esp + 0x14], 0x4000000
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov dword [0x1007a224], eax
cmp eax, 0xffffffff
mov eax, 0
mov ebx, dword [ebp - 0x34]
jne 0x10054697
mov dword [esi], 0xa
mov al, 1
mov byte [esi + 4], al
lea ecx, [ebp - 0x28]
call fcn.100150f0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym.mozglue.dll__aligned_free
mov dword [esp], ebx
call sym.mozglue.dll__aligned_free
jmp 0x100546bb
mov byte [esi + 4], 0
mov ecx, edi
call fcn.100549b0
jmp 0x10054554
mov eax, dword [ebp - 0x28]
mov byte [esi + 4], 1
mov dword [esi], eax
jmp 0x100546bb
Function at 0x10054a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, edx
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x2c], eax
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x10054a3e
mov ecx, dword [edi]
lea edx, [esp + 0x2c]
push edx
push eax
push eax
push eax
push ecx
push esi
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x10054a71
mov byte [ebx + 0xc], 1
mov dword [ebx], 8
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.1002cad0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x2c]
test bl, 0xf
je 0x10054a8e
mov ebx, dword [esp + 4]
mov byte [ebx + 0xc], 1
mov dword [ebx], 0xe
jmp 0x10054a5c
xor eax, eax
dec eax
add ebx, ebx
cmovb ebx, eax
push ebx
call sym.mozglue.dll_malloc
add esp, 4
test eax, eax
je 0x10054af4
push ebx
xor ebx, ebx
push ebx
mov dword [esp + 0x10], eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 7
jbe 0x10054abc
mov edi, dword [edi]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xc]
push ebx
push 8
push edi
push ebx
push esi
call dword [sym.imp.advapi32.dll_RegGetValueW]
test eax, eax
mov ebx, dword [esp + 4]
je 0x10054b07
mov byte [ebx + 0xc], 1
mov dword [ebx], 8
push dword [esp + 8]
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10054a5c
mov ebx, dword [esp + 4]
mov byte [ebx + 0xc], 1
mov dword [ebx], 4
jmp 0x10054a5c
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x10
mov esi, dword [esp + 0x2c]
mov eax, 0x10
mov edx, 0
mov dword [esp + 0xc], esi
cmp esi, 0x10
jb 0x10054bab
xor ecx, ecx
mov eax, 0x10
xor edx, edx
xor edi, edi
mov ebx, dword [esp + 8]
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
cmp edx, ecx
jne 0x10054b81
movsd qword [esp + 0x10], xmm1
movsd qword [esp + 0x18], xmm0
lea ecx, [esp + 0x20]
call fcn.100156d0
test al, al
je 0x10054bd0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
movsd xmm0, qword [esp + 0x18]
movsd xmm1, qword [esp + 0x10]
shl edx, 4
movsd qword [eax + edx], xmm0
movsd qword [eax + edx + 8], xmm1
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x24], edx
inc edi
mov esi, dword [esp + 0xc]
shr esi, 4
add ebx, 0x10
cmp edi, esi
jb 0x10054b3f
mov ebx, dword [esp + 4]
mov byte [ebx + 0xc], 0
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
cmp eax, 0x10
je 0x10054bc5
mov dword [ebx], eax
jmp 0x10054ae3
mov dword [ebx], 0x10
jmp 0x10054ae3
mov ebx, dword [esp + 4]
mov byte [ebx + 0xc], 1
mov dword [ebx], 4
mov eax, dword [esp + 0x20]
cmp eax, 0x10
je 0x10054ae3
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x10054ae3
Function at 0x10054c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x10054c62
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
lea edi, [ebp - 0x1c]
push eax
push edi
push ebx
push 0x10
push str.AppsUseLightTheme
push ebx
push esi
call dword [sym.imp.advapi32.dll_RegGetValueW]
or eax, dword [edi]
sete bl
push esi
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002cad0
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10054e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
add eax, eax
xor edi, edi
dec edi
mov esi, 8
mul esi
mov ebx, eax
mov dword [ebp - 0x14], ecx
cmovo ebx, edi
push ebx
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov edi, eax
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp + 0x10]
add esp, 0xc
test edx, edx
jle 0x10054eb2
mov eax, dword [ebp + 0xc]
mov ecx, edx
movsd xmm0, qword [eax + esi - 8]
movsd qword [edi + esi - 8], xmm0
movsd xmm0, qword [eax + esi]
movsd qword [edi + esi], xmm0
add esi, 0x10
dec ecx
jne 0x10054e96
shl edx, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 7
jbe 0x10054ec0
mov ecx, dword [ecx]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push edx
push edi
push 3
push 0
push ecx
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
test eax, eax
je 0x10054ef6
mov dword [esi], 8
mov al, 1
mov byte [esi + 4], al
push edi
call sym.mozglue.dll__aligned_free
add esp, 4
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x10054ee0