Function at 0x100599c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x100a400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 4]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [section..00cfg]
mov ecx, dword [ebp - 0x28]
call esi
test al, al
je 0x10059a01
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi], eax
jmp 0x10059b68
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x14], eax
mov ecx, dword [edx]
test ecx, ecx
je 0x10059a2d
mov edx, dword [edx + 4]
xor esi, esi
xor eax, eax
movzx edi, byte [edx + esi]
rol eax, 5
xor eax, edi
imul eax, eax, 0x9e3779b9
inc esi
cmp ecx, esi
jne 0x10059a17
jmp 0x10059a2f
xor eax, eax
lea edx, [ebx + 0x48]
imul esi, eax, 0x9e3779b9
lea ecx, [esi - 2]
cmp esi, 2
cmovb esi, ecx
mov dword [ebp - 0x18], eax
and esi, 0xfffffffe
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebx + 0x50]
test ebx, ebx
mov dword [ebp - 0x48], edx
je 0x10059b96
mov ecx, dword [edx + 4]
shr ecx, 0x18
mov dword [ebp - 0x30], esi
shr esi, cl
mov dword [ebp - 0x2c], ecx
neg ecx
xor edx, edx
inc edx
shl edx, cl
lea ecx, [ebx + edx*4]
mov dword [ebp - 0x34], ebx
lea edi, [ebx + esi*4]
lea ecx, [ecx + esi*8]
mov edx, dword [edi]
test edx, edx
je 0x10059b4b
mov dword [ebp - 0x3c], ecx
mov ecx, edx
and ecx, 0xfffffffe
cmp ecx, dword [ebp - 0x30]
jne 0x10059a9f
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], eax
jne 0x10059a9f
mov ecx, dword [ebp - 0x3c]
jmp 0x10059b4b
mov ebx, 0x20
sub ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x2c]
shr eax, cl
mov ecx, ebx
xor ebx, ebx
dec ebx
shl ebx, cl
or eax, 1
mov dword [ebp - 0x50], eax
not ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
mov bl, 1
mov dword [ebp - 0x28], ebx
test al, al
je 0x10059b21
xor eax, eax
mov ebx, dword [ebp - 0x34]
sub esi, dword [ebp - 0x50]
and esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x2c]
neg cl
xor edx, edx
inc edx
shl edx, cl
test ebx, ebx
cmove edx, ebx
lea ecx, [ebx + edx*4]
mov dword [ebp - 0x34], ebx
lea edi, [ebx + esi*4]
lea ecx, [ecx + esi*8]
mov edx, dword [edi]
test edx, edx
je 0x10059b47
mov eax, edx
and eax, 0xfffffffe
cmp eax, dword [ebp - 0x30]
jne 0x10059ad6
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x18]
jne 0x10059ad6
jmp 0x10059b4b
cmp edx, 1
je 0x10059d02
or edx, 1
mov dword [edi], edx
mov eax, dword [ebp - 0x38]
mov ebx, dword [eax + 0x50]
movzx eax, byte [eax + 0x4f]
mov dword [ebp - 0x2c], eax
mov al, 1
mov dword [ebp - 0x28], 0
jmp 0x10059ae7
test al, al
je 0x10059b7e
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
cmp dword [edi], 2
jb 0x10059ba1
mov eax, dword [ecx + 4]
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov byte [edi + 4], 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004f020
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
test ecx, ecx
jne 0x10059b57
jmp 0x10059ba1
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
lea esi, [ebp - 0x18]
lea edx, [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
push eax
push esi
call fcn.10075c70
add esp, 8
test al, al
je 0x10059bee
mov esi, dword [ebp - 0x38]
lea ecx, [esi + 8]
push dword [ebp + 0xc]
push 0x10092758
call fcn.10012240
mov esi, dword [esi + 0x3c]
mov eax, dword [esi]
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
test eax, eax
jne 0x10059c4f
mov eax, dword [ebp - 0x14]
jmp 0x10059b5f
mov esi, esp
push eax
sub esp, 0x14
mov edi, esp
push 0x40
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov dword [edi + 0x10], 0x34
mov dword [edi + 0x14], 0x3f
movups xmm0, xmmword [str.OOM_in_UniqueJSONStrings::GetOrAddIndex_adding_a_map]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x100954ef]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x100954ff]
movups xmmword [eax + 0x20], xmm0
mov dword [eax + 0x30], 0x70616d20
mov byte [eax + 0x34], 0
mov dword [edi], eax
mov ecx, dword [ebp - 0x38]
call sym.mozglue.dll_private:_void___thiscall_mozilla::baseprofiler::UniqueJSONStrings::ClearAndSetFailure_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
mov esp, esi
xor eax, eax
mov edi, dword [ebp + 8]
jmp 0x100599f7
mov ebx, eax
mov esi, esp
sub esp, 0x18
mov edi, esp
mov dword [edi], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xf
jbe 0x10059cb4
mov dword [ebp - 0x28], esi
test eax, eax
js 0x10059d0f
mov dword [ebp - 0x34], eax
or eax, 0xf
cmp eax, 0x17
mov ecx, 0x16
cmovae ecx, eax
cmp ecx, 0xfff
mov dword [ebp - 0x2c], ecx
jb 0x10059ccd
lea eax, [ecx + 0x24]
push eax
call sym.mozglue.dll_moz_xmalloc
add esp, 4
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x10059cdb
mov dword [edi + 0x10], eax
push eax
push ebx
push edi
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
jmp 0x10059c3b
lea eax, [ecx + 1]
push eax
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov ecx, eax
mov esi, dword [ebp - 0x34]
mov dword [edi + 0x10], esi
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x14], eax
push esi
push ebx
push ecx
mov ebx, ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebx + esi], 0
mov dword [edi], ebx
mov esi, dword [ebp - 0x28]
jmp 0x10059c3b
xor eax, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], ecx
jmp 0x10059ae4
call fcn.10056620
int3